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

Discrete 3D Cuts for Slice-Wise Foundation Features

Large pretrained image models are trained on flat photographs. When clinicians apply them to CT or MRI, they cut each scan into 2D slices and segment every slice on its own. The result loses volumetric context. A voxel labelled pancreas on one slice is often labelled fat on the next, which produces jagged, hollow, or fragmented organs. The standard repairs are continuous: blur the stacked probability maps with a 3D Gaussian, or train a small 3D network over the slice outputs. A hard mask is then obtained by thresholding. A separate line of work on direct discrete optimization argues that this two-step "smooth, then threshold" pattern is the wrong shape. These methods update hard one-hot labels directly, so every intermediate answer is a valid segmentation, and they avoid rounding a soft solution at the end.

We propose to treat inter-slice coherence as a discrete graph-cut problem. Each scan gets a sparse 3D graph over frozen 2D foundation-model features. Through-plane edges are weighted by the physical slice spacing. The 2D model's per-slice predictions anchor the labels. We minimize a normalized-cut objective (it measures how much affinity is severed between segments, relative to each segment's size) directly over hard labels, using row-wise proximal updates of the kind introduced by Falcon. We add an explicit correction so that small organs are not pulled toward equal-sized partitions. The method needs no 3D training. It targets the cases where learned 3D aggregators are weakest: boundary accuracy and transfer to new hospitals and contrast phases.

Core Claim

Inter-slice inconsistency in slice-wise segmentation can be repaired at test time by a direct discrete cut on an anisotropic 3D feature graph. We claim this repair improves boundary accuracy (Normalized Surface Dice, which scores how much of the predicted surface lies within a tolerance of the true surface) over continuous 3D smoothing. We also claim it narrows the out-of-distribution gap of a trained 3D aggregator.

The method's ingredients come from the discrete-optimization side. Falcon minimizes the K-way normalized cut directly over a one-hot indicator matrix. It uses volume-weighted gradient scores, an inertia term against label flicker, and a backtracking line search that never increases the objective. It is confined to 2D natural images with dense $O(N^2)$ token affinities. Discrete-Continuous ADMM shows that keeping labels integral during transductive inference beats a frozen inductive network: 0.7087 against 0.5063 IoU on DAVIS. That evidence motivates operating on the test volume itself. Volumetric Bias in Segmentation and Reconstruction supplies a constraint on the design. It proves that common likelihood energies hide a pull toward equal segment sizes and corrects it with an entropy term over segment sizes, cutting GrabCut error from 14.41% to 7.87%. Despite the shared word, "volumetric" there means segment cardinality, not 3D context.

The normalized cut's denominator also rewards balanced partitions. That is dangerous for the pancreas, which AbdomenCT-1K reports is consistently the hardest abdominal organ. Whether Gorelick et al.'s style of correction transfers to a normalized cut is an empirical question this proposal tests. We do not assume it.

Research Program

The objective, over a hard indicator matrix $Y \in \{0,1\}^{n\times K}$ with columns $y_k$, is

$$E(Y) = \sum_{k=1}^{K} \frac{y_k^\top (D-W)\, y_k}{y_k^\top D\, y_k} \;-\; \lambda \sum_{i=1}^{n} \log p_i(Y_i) \;+\; \beta\, H\!\left(\tfrac{|S_1|}{n},\dots,\tfrac{|S_K|}{n}\right),$$

where the symbols are as follows:

  • $W$ is the sparse 3D affinity matrix and $D$ is its diagonal degree matrix.
  • $p_i(Y_i)$ is the probability the frozen 2D model assigns to node $i$'s chosen label.
  • $|S_k|$ is the number of nodes in segment $k$, and $H$ is the entropy of the segment-size distribution.
  • $\beta \ge 0$ controls how strongly the solver is discouraged from equalizing segment sizes.

Because labels stay one-hot throughout, the segmentation produced at every iteration is valid. There is no final rounding step.

The graph is the main construction. Nodes are encoder patch tokens on each slice, for example a DINOv3 or SAM encoder applied slice by slice. That gives roughly $10^5$ to $10^6$ nodes per scan rather than the roughly $5\times 10^7$ raw voxels the research file flags as infeasible for Falcon's dense affinities. Edges come from two sources:

  • In-plane edges connect each token to its k nearest feature neighbours within a spatial window.
  • Through-plane edges connect each token to tokens at the same and nearby positions on the slices one or two steps away. Their weights are scaled by the ratio of in-plane spacing to slice thickness, which handles the anisotropy (for example 0.7 mm in-plane against 2.5–5 mm between slices) that symmetric neighbourhoods ignore.

Each proximal update costs time proportional to the number of edges times K, not $N^2$. Falcon's monotone line search carries over unchanged, because it only needs objective evaluations. We will report monotonic descent empirically. We will not claim Falcon's linear-convergence rate for the modified objective unless we can prove that its Kurdyka–Łojasiewicz argument extends.

Two practical choices keep the problem well posed:

  • Choosing K. Falcon estimates K with a spectral heuristic that the file notes is fragile on clinical data. We avoid estimating K: it is fixed to the target organ classes plus background, and labels are initialized from the 2D model's argmax.
  • Recovering voxel resolution. Token labels are mapped back to voxels by a unary-guided upsampling step. We measure the boundary error that this resolution limit introduces separately, so it is not confused with the error of the cut itself.

The method is applied on top of two pipelines:

  • A weak slice-wise model: frozen SAM features with a per-slice head.
  • PanSAM's per-slice segmentor, with its 3D aggregator either removed or kept.

Baselines

Naive reference. The do-nothing reference is the slice-wise model's argmax with no 3D coupling. This is the setting in which Roth et al. observed a Dice of 56% on NIH Pancreas-CT.

Continuous 3D smoothing. The classic repair is Roth et al.'s 3D Gaussian smoothing of stacked probabilities followed by thresholding, which reached a mean Dice of 68% ± 10% in their pipeline. We will rerun it on our own unaries. Its kernel width will be tuned per slice spacing on the same validation split, with the same number of trials our method receives for $\lambda$ and $\beta$.

Strongest existing method. The strongest competitor is PanSAM. It feeds frozen SAM slice outputs into a learned 3D convolutional aggregator and reports 87.01% Dice on NIH Pancreas-CT and 83.20% Dice zero-shot on AbdomenCT-1K. It is strongest because it already addresses volumetric context with supervision. We will reproduce it on the same training split and compare in two ways. First, our training-free cut replaces the aggregator. Second, our cut is appended after the aggregator. We consider PanSAM beaten in either of two cases:

  • In-domain: the appended cut raises NIH Normalized Surface Dice at equal or better Dice.
  • Out-of-distribution: on AbdomenCT-1K, either variant closes a statistically significant part of the in-domain-to-zero-shot gap (87.01 to 83.20) under paired tests across scans.

Matching PanSAM's NIH Dice without training is not required. Reaching it would be a bonus.

Isolating the ingredients. Three ablations each remove one piece:

  • A 3D Potts graph cut solved by alpha-expansion, using the same graph and unaries but no normalization. This tests whether the normalized-cut form matters at all.
  • The same discrete solver with $\beta=0$. This isolates the cardinality correction.
  • Through-plane edges removed. This gives 2D per-slice discrete cuts and tests whether discreteness alone, without 3D coupling, explains any gain.

Rounding baseline. A continuous spectral relaxation of the same 3D graph followed by k-means tests the rounding argument, and is run across ten seeds.

Why not just…?

Why not just blur the 3D probabilities and threshold, as Roth et al. did? This works in Dice terms. The 56% to 68% jump in Roth et al. is real. The concern is boundaries. A Gaussian kernel spreads probability across thin structures such as the pancreatic tail, so the thresholded surface shrinks or bleeds. AbdomenCT-1K shows that Dice above 95% can coexist with poor surface accuracy. The Gaussian baseline above is tuned with the same budget as our method. If it matches our Normalized Surface Dice, the discrete formulation is not earning its complexity, and we would say so.

Why not just run a 3D CRF or Potts graph cut, which is already discrete? This is the most serious threat, and the Potts ablation exists to settle it. AbdomenCT-1K reports that CRF post-processing "did not provide the expected improvements" in its weakly supervised setting. This is a negative result that cuts against all post-hoc discrete repair, ours included. Our hypothesis is that CRFs fail there for two reasons. Their pairwise terms use raw intensity, which is uninformative between the pancreas and fat. And their energy has no size normalization or cardinality term. If a Potts cut on foundation-feature affinities with spacing-aware through-plane weights performs as well as our normalized objective, then the contribution reduces to the graph construction. The proposal would be reframed around that.

Why not just train a better 3D aggregator or a full 3D network? With labels in the same domain, a trained aggregator will likely win on Dice. PanSAM's 87.01% Dice is a high bar for any training-free method. Our claim is narrower. The learned aggregator is tied to its training distribution, and AbdomenCT-1K documents a 15% Dice drop across contrast phases for supervised models. A test-time cut built on frozen general-purpose features should degrade less. The PanSAM-plus-cut and PanSAM-versus-cut comparisons on AbdomenCT-1K's held-out centres directly measure whether that holds.

Why not just use spectral relaxation in 3D? Falcon reports gains of +13.2 mIoU on Pascal VOC and +27.7 mIoU on COCO-Object over DiffCut's relaxation, and roughly a 10× speedup. Work on direct discrete clustering (Huang et al.) reports zero run-to-run variance once k-means rounding is removed. On a 3D graph with $10^5$ to $10^6$ nodes, eigensolvers are also costly. The ten-seed spectral baseline tests whether these 2D findings carry over to volumes.

Proposed Experiments

Datasets. The primary benchmark is NIH Pancreas-CT, using PanSAM's reported split protocol. For out-of-distribution evaluation we use AbdomenCT-1K, with 1,112 scans from 12 centres and multiple phases, reporting results per centre and per phase for the pancreas and kidney. The kidney is included because it is where the phase-shift drop is documented. As a secondary test of anisotropy and modality, we use AbdomenMRI. On AbdomenMRI, Swin-UMamba reports 0.7760 DSC, and we apply our cut on top of its slice outputs.

Metrics. We report:

  • Dice and Normalized Surface Dice.
  • Inter-slice consistency: the Dice between masks on adjacent slices, and the number of 3D connected components per organ.
  • Run-to-run standard deviation.
  • Runtime and peak memory per scan.

Decisive checks. Five results determine whether the core claim holds:

  1. The full method must beat tuned Gaussian smoothing on Normalized Surface Dice for the pancreas on NIH. A Dice-only gain is not enough.
  2. The full method must beat the Potts ablation. Otherwise the normalized objective is unnecessary.
  3. Setting $\beta>0$ must reduce systematic over-segmentation of the pancreas relative to $\beta=0$. We will measure the signed volume error against ground truth. If the cardinality correction does nothing, it is dropped.
  4. On AbdomenCT-1K's held-out centres, PanSAM plus our cut must recover part of PanSAM's zero-shot gap.
  5. Removing through-plane edges must erase most of the gain. This confirms that the improvement comes from repairing volumetric context rather than from discreteness alone.

The research file reports no result for a direct discrete normalized-cut solver on any 3D medical volume. These experiments would produce the first such numbers.