NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Boundary-Band Convex Aggregation for Low-Contrast Segmentation

When several segmentation networks are combined, the usual practice is to average their per-pixel probabilities with the same weights everywhere in the image. That choice wastes most of what an ensemble could offer on low-contrast images such as colonoscopy frames, pancreatic CT, or cardiac MRI. Deep in the interior of an organ or lesion, every reasonable model agrees and the weights do not matter. Almost all of the disagreement, and almost all of the error, sits in a band a few millimetres wide around the object's edge. Different architectures also fail in different ways inside that band. A convolutional network with "reverse attention" (a module that erases the confident interior so later layers focus on the uncertain rim) tends to be sharp near the true edge. A transformer tends to be reliable about the object's overall extent but blurry at fine scale. We propose to learn ensemble weights that vary only with signed distance to the ensemble's consensus contour. The weights are a small table, one convex combination per distance band. They are fitted on out-of-fold predictions from models that have each been calibrated within each band.

The central bet is statistical rather than architectural. Boundary bands contain few independent pieces of evidence: what counts is the number of images, not the number of pixels, because neighbouring pixels are strongly correlated. Classical aggregation theory says that flexible combiners pay a heavy price when evidence is scarce. A small, distance-indexed convex table should therefore beat both uniform averaging, which ignores where errors live, and a learned refinement network on top of the members, which overfits on medical-sized datasets. We predict that the ranking reverses as held-out data grows. That crossover is the claim that makes the proposal falsifiable.

Core Claim

Let $M$ calibrated base segmenters output foreground probabilities $\tilde p_m(x)$ at voxel $x$. Let $d(x)$ be the signed distance from $x$ to the contour of the uniformly averaged prediction, and let $k(x)\in\{1,\dots,K\}$ be the distance band that $d(x)$ falls into. The aggregated prediction is

$$ \hat p(x) = \sum_{m=1}^{M} w_{m,k(x)}\, \tilde p_m(x), \qquad w_{m,k}\ge 0,\ \sum_m w_{m,k}=1, $$

with $K(M-1)$ free parameters in total. The weights in band $k$ are chosen to minimise held-out cross-entropy over voxels in that band. Calibration happens first and is also band-specific: each member gets its own temperature in each band before weights are fit. This follows the finding of Applying probability calibration to ensemble methods to predict 2-year mortality in patients with DLBCL, where calibrating base models before stacking raised AUC from 0.806 to 0.820 and lowered ECE from 9.866 to 8.983 on tabular data. We carry that result into dense prediction.

The rate argument comes from Optimal Rates of Aggregation. It shows that picking the single best of $M$ fixed estimators costs order $\log M/n$, while convex combination costs order $M/n$ when $M\le\sqrt{n}$. Unrestricted combiners cost more still. Here $n$ should be read as the number of held-out cases contributing to a band. With roughly 50 to 200 cases and $M=4$ heterogeneous members, convex aggregation per band is affordable. A refinement CNN with thousands of parameters is not.

That paper assumes fixed rather than learned base estimators, a gap the research file flags. We approximate the fixed-estimator setting by cross-fitting. Members are trained on $F-1$ folds and predict the held-out fold, so the aggregation weights are always fit on predictions the members never trained on. Where per-band evidence is thin, the theory also suggests a compound rule. The rule chooses the best single member in that band, and it does so when $M$ approaches $\sqrt{n_k}$, where $n_k$ is the number of cases with voxels in band $k$. We implement this as an explicit option.

Understanding Aggregations of Proper Learners in Multiclass Classification gives a softer motivation. Combining learners from a restricted class can represent decision rules that no single member can. A distance-varying mixture can produce a contour that none of the members produces alone. The same paper's negative result, that finite aggregation provably fails for some learnable classes, is a reminder that this is an empirical bet and not a guarantee.

Relation to Prior Work

The boundary literature motivates the spatial focus. SegFix: Model-Agnostic Boundary Refinement for Segmentation showed that segmentation error falls sharply with distance from the edge. It repairs edge pixels by copying labels from a fixed offset inward. That fails when the transition zone is wide, and it spreads interior mistakes outward. We use the same observation about where errors live but act differently: we reweight several models rather than borrowing labels from one.

Architectural boundary methods supply our ensemble members rather than competing as a design philosophy. CaraNet uses reverse attention, Polyp-PVT uses a transformer backbone, and DB-MSMUNet uses state-space layers. Each is a single model that encodes one inductive bias.

The closest existing combinations are coarse. The union of attention U-Nets for metallography uses a boolean union across colour spaces, which systematically dilates boundaries and has no calibration. DUCore/DyCON uses entropy-weighted agreement between two identical 3D U-Nets during semi-supervised training. It is not a post-training combiner of different architectures, and it needs dataset-specific focal settings ($\gamma=0.5$ versus $0.8$).

One paper constrains the claim. Beyond Boundary Noise shows that ensemble pixel entropy lights up as a halo at low-contrast edges but is near random (AUROC 0.48 on LIDC-IDRI) at detecting whether experts disagree that a nodule exists at all. That supports our premise that ensemble disagreement is concentrated at boundaries. It also tells us that boundary-band weighting addresses edge placement, not presence ambiguity, and we do not claim otherwise.

Research Program

The work has three parts. First, we build a heterogeneous ensemble per task and calibrate each member band by band. For 2D polyp segmentation the members are CaraNet, Polyp-PVT, MISNet, and a plain U-Net. For 3D CT and MRI the members are a 3D U-Net, a TransUNet built from Beckschen/TransUNet, and a Mamba U-Net. All members are trained with five-fold cross-fitting.

Second, we fit the band weights and study them. The design choices we vary are the number of bands, band width in physical units, and the selection-versus-convex switch. We also check whether the learned weight profiles are stable across folds and interpretable. For example, if the contour-sharp CNN's weight peaks at small $|d|$ and the transformer's dominates in outer bands, the mechanism is doing what we claim.

Third, we run a controlled sample-size study. We subsample the held-out pool to 10, 25, 50, 100, and all available cases. For each size we compare band weights against a flexible learned stacker, to locate the predicted crossover.

Baselines

The naive reference point is the uniform average of the same heterogeneous members' raw probabilities, thresholded at 0.5. Every ensemble gain must be measured against this. We also report each member alone.

The first strong competitor is the uniform average of band-calibrated members. It isolates calibration from weighting, and it is the most likely thing to explain any improvement.

The second strong competitor is the strongest published single model on each benchmark. On polyps, the file reports Polyp-PVT at 0.808 mean Dice on ColonDB and 0.787 on ETIS (Polyp-PVT), CaraNet at 74.7% on ETIS, and MISNet at 0.903 on Kvasir-SEG and 0.918 on CVC-ClinicDB (MISNet). On Spleen CT, the contour-loss method of Niu et al. reports a 95% Hausdorff distance of 5.8814 against 7.5744 for a plain U-Net. On Pancreas-NIH and LA, the file reports only semi-supervised numbers from DyCON (84.81% Dice with 20% labels; 91.18% with 5% labels), so fully supervised comparisons will be our own reruns. We found no reported boundary-specific metric (surface Dice or HD95) on Lacuna for any polyp method, and no reported result for any multi-architecture ensemble on these benchmarks.

We retrain published methods from their released code on our identical folds and do not copy their numbers into the comparison. The quoted figures serve only as sanity targets for our reruns.

The third competitor is a flexible stacker. This is a small CNN that takes all members' calibrated maps plus the image and outputs a refined map. It is trained on the same out-of-fold predictions with the same tuning budget.

The fourth competitor is SegFix trained on our data and applied to the calibrated uniform average.

The fifth competitor addresses compute fairness. Our ensemble costs roughly $M$ forward passes, so we also include a homogeneous ensemble of $M$ random seeds of the best single architecture, with uniform and band weights.

The ablations isolate the key ingredient. They are a single global convex weight ($K=1$), band weights without calibration, per-band best-member selection, and band weights over homogeneous seeds.

Beating the field means three things. Normalized surface Dice at a 1 mm tolerance (2 px for polyps) and HD95 must improve over the calibrated uniform average on at least four of six datasets, under a paired case-level bootstrap at 95% confidence. Dice must not drop. The gain must be at least as large as the flexible stacker's whenever the held-out pool is under about 100 cases.

Why not just…?

Why not just calibrate the members and average them uniformly? This is the real threat. The DLBCL result suggests calibration alone captures much of the benefit of careful aggregation. If band weights add nothing over the calibrated uniform average, the honest conclusion is that calibration is all low-contrast ensembling needs, and we will report that. The band-wise error breakdown shows whether any residual gain is located where the mechanism says it should be. The heterogeneous-versus-homogeneous ablation tests the explanation: weights should collapse toward uniform for same-architecture seeds and diverge only when members have genuinely different biases.

Why not just train a refinement network on top of the members' outputs? A learned stacker can represent anything band weights can and more. It should win with enough data. Our claim is that on 50 to 200 medical cases it overfits the thin boundary band, as the convex-versus-unrestricted rates in Optimal Rates of Aggregation predict. The sample-size sweep settles this directly. If the stacker wins even at 25 held-out cases, the rate-based rationale is wrong for this setting.

Why not just use one strong boundary-aware model? MISNet and the contour-loss method of Niu et al. already target edges inside a single network, and they cost one forward pass. We answer in two ways. First, the matched-compute homogeneous ensemble shows how much of any gain is just averaging. Second, we compare against these models directly on boundary metrics. If a single MISNet matches the heterogeneous band ensemble on surface Dice, the extra inference cost is unjustified.

Why not just apply SegFix to the ensemble? SegFix's fixed inward jump lands inside wide transition zones and propagates interior errors, by its authors' own account. We include it as a baseline rather than argue the point. Its failure, or success, on Pancreas-NIH and LA, where transitions are thick, is informative either way.

Proposed Experiments

The benchmarks are Kvasir-SEG, CVC-ClinicDB, CVC-ColonDB, and ETIS for camouflaged 2D boundaries. We use ETIS as the out-of-distribution test, with weights fit on Kvasir and ClinicDB folds only. For 3D we use Pancreas-NIH, the Left Atrium challenge set, and Spleen CT.

Metrics are Dice, normalized surface Dice, and HD95. We add a band-resolved error curve, which plots misclassification rate against signed distance and directly shows where gains occur. We also report expected calibration error inside the boundary band.

There are four decisive checks. First, band weighting must beat the calibrated uniform average on boundary metrics, with the gain concentrated within the inner bands. Second, the advantage over the flexible stacker must shrink and reverse as held-out cases increase. Third, weights learned on Kvasir and ClinicDB must transfer to ETIS without losing their advantage. Fourth, weights over homogeneous seeds must be near uniform and give little gain.

As a negative control motivated by Beyond Boundary Noise, we will run the method on LIDC-IDRI. We expect band weighting to improve margin delineation on nodules all readers agree exist and to do nothing for cases with presence disagreement. Seeing a gain on the presence cases would suggest we are measuring something other than what we think.