Research

ResearchPreprint · 2026

BEN3

Foreground, understood.

A foreground segmentation model that keeps every candidate mask it proposes and fuses them into a single, more accurate result.

By Maxwell Meyer and Jack Spruyt

Dozens of small subjects against open sky. BEN3 output composited on green. Drag to compare.

01 · Video

BEN3 on footage that moves.

Hair in motion, a flock of birds, a pylon's lattice, a breakdancer. Pick a clip and drag the divider.

Hair in motion Curls whipping across a plain wall.

Clips from the BEN3 launch reel. Right of the divider: BEN3 output composited on green.

02 · Fine detail

See every edge.

BEN3 processed each crop separately. Switch between the original, the alpha matte and the cutout, or run the lens across the frame.

Detail 01

Wire cart

Follow the thin wires across the cart where the front and back grids overlap.

Move across the image to see BEN3's alpha beneath.

Detail 02

Spokes

Wire spokes a few pixels wide, with the wall visible between every pair.

Move across the image to see BEN3's alpha beneath.

Detail 03

Tent frame

The roof poles cross open sky, while the wooden lattice stands against trees and grass.

Move across the image to see BEN3's alpha beneath.

03 · Soft edges

Whether, or how much.

A hard mask decides whether a pixel is foreground. BEN3 predicts a value between 0 and 1, so the pixels where a curl meets the sky keep part of each.

Hard mask Thresholded at 0.5
00000011111111
BEN3 alpha Values as predicted
0.090.160.220.290.380.490.590.670.740.780.830.870.910.94

28 × 16 pixels of BEN3 alpha at native resolution, sampled from the marked hair edge. Nothing is interpolated or redrawn.

Curls crop with the sampled region marked
Sampled region

04 · Difficult cases

Built for the difficult pixels.

Tentacles, foliage, open lattices, spokes and crowded scenes. Hover a cutout to see the photo it came from.

  • Tentacles, original
    Tentacles, BEN3 cutout
    Tentacles
    BEN3 cutout
  • Foliage, original
    Foliage, BEN3 cutout
    Foliage
    BEN3 cutout
  • Thin frame, original
    Thin frame, BEN3 cutout
    Thin frame
    BEN3 cutout
  • Open structure, original
    Open structure, BEN3 cutout
    Open structure
    BEN3 cutout
  • Many garments, original
    Many garments, BEN3 cutout
    Many garments
    BEN3 cutout
  • Rider and bike, original
    Rider and bike, BEN3 cutout
    Rider and bike
    BEN3 cutout
  • Complex scene, original
    Complex scene, BEN3 cutout
    Complex scene
    BEN3 cutout
  • Portrait, original
    Portrait, BEN3 cutout
    Portrait
    BEN3 cutout

05 · Evaluation

Evaluation on DIS5K

BEN3 records the best or tied-best result in 29 of the 30 metric and split combinations reported in the paper. The exception is MAE on DIS-TE1, where it ranks second.

Fβω ↑
0.905
Fβmx ↑
0.931
M ↓
0.026
Sα ↑
0.922
Eϕmn ↑
0.952
IoU ↑
0.861

BEN3 on DIS-TE1–4 (2,000 images) at 1024 × 1024.

2,000 images

Results on DIS-TE1–4. DIS5K. All predictions evaluated at 1024×1024 using the same metric definitions. Comparison values are as reported in the BEN3 paper (Table 1). Best per column in bold, second best underlined.
MethodFβω ↑Fβmx ↑M ↓Sα ↑Eϕmn ↑
IS-Net0.7260.7990.0700.8190.858
InSPyReNet0.8380.8910.0390.9000.923
BiRefNet0.8580.8960.0350.9010.934
GenPercept0.8160.8680.0430.8800.923
MVANet0.8620.9070.0340.9090.938
DiffDIS0.8480.9180.0360.9160.919
PDFNet0.8740.9130.0310.9130.943
LawDIS0.8840.9180.0300.9160.947
S3OD0.8900.9190.0290.9120.949
BEN30.9050.9310.0260.9220.952

DIS5K. All predictions evaluated at 1024×1024 using the same metric definitions. Comparison values are as reported in the BEN3 paper (Table 1). Best per column in bold, second best underlined.

06 · Architecture

Inside BEN3

Multi-hypothesis models propose several plausible masks, then usually keep one. BEN3 keeps all of them: a fusion network reads the image and every candidate together, and uses their agreements and disagreements to synthesize a new mask.

  1. 01Input

    RGB image

    x · 3 × H × W

    Candidate hypotheses

    h₁ h₂ h₃ · frozen S3OD

  2. 02Early fusion

    Channel concatenation

    z₀ · 6 channels

    Projection stem

    shallow detail s₀ · embedding + downsample

  3. 03Encoder

    Hierarchical Swin Transformer

    four stages · e₁ → e₄

  4. 04Bridge

    Cross-scale attention

    e₃ + e₄ → d₄ · residual fusion

  5. 05Decoder

    Coarse-to-fine transformer decoder

    Up2 + lateral skips · Swin layers

  6. 06Prediction

    Full-resolution reconstruction

    r

    Prediction head

    σ(Ψ[z₀, s₀, r]) → ŷ

z₀ and s₀ bypass the encoder and rejoin at the prediction head

The RGB image and all K = 3 candidate hypotheses from a frozen generator are concatenated into a six-channel representation. A shallow projection preserves full-resolution detail while a hierarchical Swin encoder builds context. The two deepest scales meet in cross-scale attention, a coarse-to-fine transformer decoder restores resolution, and the prediction head reads the decoder output alongside the shallow features and the original hypotheses.

Training objective

ℒfusion = ℒDA + ℒlap + ℒrec

Supervision concentrates on pixels the strongest hypothesis still gets wrong, while global and multi-scale terms keep the whole mask and its fine structure consistent.

L DADisagreement-aware Charbonnier
Applied only where the best training hypothesis disagrees with the ground truth.
L recGlobal ℓ₁ reconstruction
Constrains every foreground and background pixel.
L lapMulti-scale Laplacian residual
Matches high-frequency residuals across five pyramid levels to preserve thin structures and boundaries.

07 · Analysis

Why fuse instead of select?

The three candidate masks are similar on average, but which one is best changes from image to image. Choosing one by predicted score leaves most of that spread unused.

Selection versus fusion · DIS-TE1–4

Selection versus fusion. Mean IoU on DIS-TE1–4. Fixed-index rows report each S3OD output channel. Per-image rows rank the three hypotheses using ground truth. The oracle is not deployable, because it requires the reference mask.
StrategyIoU ↑
Fixed hypothesis
S3OD hypothesis 0
0.829
S3OD hypothesis 1
0.834
S3OD hypothesis 2
0.827
Mean over all hypotheses
0.831
Per-image rank (uses ground truth)
Worst hypothesis
0.783
Middle hypothesis
0.836
Oracle best-of-three
0.873
Deployable
S3OD predicted selection
0.841
BEN3 fusion
0.861

62.5% of the gap between predicted selection and the oracle, recovered by fusion without any ground truth at test time.

Mean IoU on DIS-TE1–4. Fixed-index rows report each S3OD output channel. Per-image rows rank the three hypotheses using ground truth. The oracle is not deployable, because it requires the reference mask.

08 · Method

Training BEN3

The hypothesis generator is trained first and then frozen. Only the fusion network learns, so the candidates act as fixed spatial priors.

Generator
Pretrained S3OD, three soft hypotheses, frozen
Trainable
Fusion network parameters only
Resolution
1024 × 1024
Benchmark
DIS5K · 5,470 image–mask pairs
Model selection
DIS-VD (470 images)
Test
DIS-TE1–4 (4 × 500 images, increasing complexity)
Loss weights
λ_DA = λ_lap = λ_rec = 1

Limitations

  • Adds a second high-resolution inference stage, with the compute and memory that implies.
  • Depends on the quality and diversity of the hypotheses produced by the frozen generator.
  • Narrows the gap to oracle selection on DIS-TE1–4 (0.861 vs 0.873 IoU) but does not close it.

09 · Lineage

BEN, BEN2, BEN3

  1. 2025

    BEN

    Confidence-guided matting: a base network produces a trimap from its own confidence, and a refiner revisits the uncertain region.

  2. Second generation

    BEN2

    A broader training set and revised activation functions improved robustness across a wider range of foregrounds.

  3. 2026

    BEN3

    Hypothesis-conditioned fusion: every candidate mask becomes a spatial prior for a single, new prediction.

10 · Publication

Paper

BackgroundErase Research

2026

Preprint

BEN3

MHFNet: Multi-Hypothesis Fusion Network for Dichotomous Image Segmentation

Maxwell Meyer, Jack Spruyt

Prama

Multi-hypothesis models generate several plausible foreground masks, then usually keep one and discard the rest. BEN3 instead treats the complete hypothesis set as structured spatial priors: a fusion network reads the RGB image together with every candidate mask and synthesizes a new prediction that is not restricted to any single hypothesis.

BackgroundErase API

Put BEN3 to work.

Access BEN3 through the BackgroundErase API: one request in, a transparent PNG out.

curl -H "x-api-key: YOUR_API_KEY" \
  -F "[email protected]" \
  -o foreground.png \
  https://api.backgrounderase.com/v2