When a radiologist outlines a pancreas on a CT scan, the organ edge is often nearly invisible. It has the same gray level as the fat and bowel around it, so the radiologist places the line partly by reference to structures that are easy to see: the aorta, the spine, the splenic vein. Deep segmentation networks also use distant context, and graph-based and attention-based decoders were built to do this. They do not tell anyone which distant structures moved a given stretch of boundary, and the post-hoc heatmaps attached to them are not guaranteed to reflect what the network actually computed. We propose a segmentation decoder that works more like the radiologist. Points on an uncertain boundary may receive long-range information only through a small, sparse set of explicit links to confidently segmented "anchor" structures in the same scan. Each boundary point then predicts two contours rather than one: an inner contour ("definitely the target") and an outer contour ("possibly the target").
Because the links are the only path for long-range information, they form a complete audit trail rather than an approximate one. A clinician can ask why the outer contour bulges at a particular spot and get a concrete answer, such as "because of its relation to this anchor on the aorta." That answer can be checked by removing the anchor and watching the contour move. The bet is that this constraint costs little accuracy relative to the strongest unconstrained graph decoder. In return it buys explanations that pass a causal test which standard post-hoc attributions fail. It should also produce an uncertainty band that widens, in a predictable way, when its supporting anchors are missing.
Core Claim
Forcing non-local information to reach low-contrast boundary points only through a sparse anchor-to-boundary graph turns the graph's edge weights into faithful explanations. "Faithful" here means that deleting a highly weighted anchor displaces the contour in proportion to its weight. Under the same encoder and training budget, this constraint should stay within about one Dice point of an unconstrained graph decoder. The same routing should also make the width of the predicted min/max band depend on anchor support, linking structural uncertainty to identifiable missing evidence rather than to pixel noise.
The novelty lies in that combination of a sparse information bottleneck, single-scan anchors, and nested contour outputs. None of the three is new alone, and the paper succeeds or fails on whether the bottleneck makes the trace causal.
Relation to Prior Work
Three papers motivate the gap. OrganNet segments unseen organs by computing dense correlations between a target CT and a separate annotated anchor volume. It reaches 81.5% Dice on unseen organs, which shows that anchor-based reasoning works. It needs a second registered annotated scan at inference, and its dense correlation matrices give no per-boundary explanation. We find anchors inside the single scan being segmented, and we keep only a few links per boundary point.
Structure Boundary Preserving Segmentation shows that boundary keypoints help on ambiguous edges (TVUS Dice 83.52% vs. 82.40%). It selects those keypoints with a fixed iterative heuristic on the ground truth and enforces shape through an adversarial discriminator, which explains nothing. We replace the heuristic with differentiable sampling along the predicted band, and we replace the discriminator with explicit anchor edges.
Confidence Contours shows that clinicians find nested min/max contours more interpretable than Bayesian heatmaps. It also reports that predicting two boundaries does not hurt the "definitely" region, and that the representation reduces error by 19.9% on the LIDC lung-nodule CT dataset. That work used only local CNN backbones and offered no account of why the band is wide in one place and narrow in another. We supply that account.
Three further papers supply the method. G-CASCADE shows that putting graph reasoning in a lightweight decoder on a pretrained hierarchical transformer encoder works well (84.54% Dice on the Synapse abdominal CT benchmark). We reuse that encoder–decoder split. Its patch nodes are connected to their K nearest neighbours in feature space, and those edges are dense and recomputed per layer, so they are not a usable trace. Boundary-aware Graph Reasoning shows, on natural images, that a boundary score map can re-weight the graph so that messages concentrate on error-prone edge pixels. We adopt that focus on the boundary but restrict the edges to anchor targets. ViG-UNet contributes the max-relative graph convolution, which aggregates feature differences to sharpen local contrast. It also serves as a warning: a model built entirely from graph blocks reaches about 700 million parameters, which is why we keep graph reasoning in a small decoder.
Research Program
The model starts from a pretrained PVTv2 encoder, the same one used by G-CASCADE. A first decoder pass produces a coarse class map and a per-token confidence. Tokens whose confidence and stability are high become candidate anchor nodes. Stability is measured as agreement under small input perturbations, and anchors can belong to any class, so the aorta can serve as an anchor for the pancreas. Boundary nodes are placed by differentiable sampling of points along the zero level set of the coarse target prediction, with density increased where the coarse prediction is uncertain.
Each boundary node sees two inputs. The first is a local high-resolution feature window, processed with a max-relative convolution to keep fine contrast. The second is a message from anchors, computed with sparsemax attention over all anchor nodes. Sparsemax is a variant of softmax that outputs exact zeros, and we cap it to at most $k$ nonzero anchors, with $k$ around 4. Anchor keys combine appearance features with a relative-position encoding, because "8 mm anterior to the aorta" is the kind of geometric fact we want the edges to carry. Each boundary node outputs two signed offsets along its normal, giving the inner and outer contour. Training uses min/max targets where multiple annotators exist and a single hard target elsewhere. In the single-annotation case, the inner and outer offsets are tied to the annotation with a small width penalty, so the band does not collapse or inflate arbitrarily.
The key structural constraint is that boundary nodes receive no global context except through anchor edges. Their local window is deliberately limited to a fixed physical radius. That makes the explanation complete by construction: anything distant that influenced a boundary point passed through a named edge. Without this constraint, edge weights would only be suggestive. The program has three phases. First, build and tune the decoder on Synapse and Kvasir-SEG. Second, train contour outputs on LIDC, where min/max targets come from the intersection and union of the radiologists' outlines. Third, run the faithfulness and uncertainty analyses described below, followed by a small expert reading study modeled on the Confidence Contours protocol.
Baselines
The naive reference point is a U-Net trained with the Confidence Contours two-boundary loss. This is the configuration Confidence Contours itself evaluated. It shows how much any long-range modeling adds to the min/max representation.
The strongest existing competitor for accuracy is G-CASCADE on the same PVTv2 encoder. It is the strongest because it is the best-reported graph decoder in the file on our main benchmark: the file reports 84.54% Dice on Synapse for the MERIT-GCASCADE variant. We will rerun it ourselves with an identical encoder checkpoint, data splits, augmentation, epoch budget, and an equal hyperparameter search budget of the same number of trials. We will also run a version extended with a two-boundary head, so that it predicts min/max contours exactly as our model does. The file gives no per-organ HD95 numbers for G-CASCADE on Synapse (HD95 is the 95th-percentile distance between predicted and true surfaces), so we will measure it.
On Kvasir-SEG, the boundary-specialist reference is MISNet, a reverse-attention and boundary-attention polyp network reporting mDice 0.903. We will report that published number and also retrain it on our splits. On LIDC, no absolute representation-error number is reported in the file. The Confidence Contours result is a 19.9% reduction relative to single-annotation baselines, and we will reproduce their setting for direct comparison.
Beating G-CASCADE on accuracy is not the goal. The bar is to match it within one Dice point and within a comparable HD95 margin, while clearly beating it on the faithfulness test.
Three ablations isolate the key ingredient. The first gives boundary nodes dense softmax attention over all tokens, which removes the bottleneck and should keep accuracy but destroy trace completeness. The second gives them no anchor edges at all, which should show whether long-range information matters for low-contrast organs such as the pancreas. The third uses random anchors with matched sparsity, which should show that the learned choice of anchors, not mere sparsity, carries the gains.
Why not just…?
Why not just read the K-nearest-neighbour edges or attention maps that G-CASCADE already has? This is the most serious alternative. Those edges link patches by feature similarity, are recomputed at every layer, and coexist with convolutional and spatial-attention paths. Removing what an edge points to need not change the output, because the information can arrive by another route. We will test this directly. We will apply the same anchor-deletion protocol to G-CASCADE's highest-weight neighbours and to Grad-CAM attributions, and compare the correlation between attribution weight and contour displacement against our model. If G-CASCADE's edges prove as causally predictive as ours, our bottleneck is unnecessary and the paper's claim fails.
Why not just train a strong global decoder to output min/max contours, without anchors? This would likely match our accuracy, and Confidence Contours suggests the two-boundary head is cheap. That is why the extended G-CASCADE two-boundary baseline is included. What this alternative cannot provide is a reason for the band width at a given point. Our decisive uncertainty test asks whether removing supporting anchors widens the band where those anchors were linked and nowhere else. A model without explicit anchors can only answer that with post-hoc attribution, which brings back the faithfulness problem above.
Why not just add a contour loss or boundary branch to a local network? Boundary-focused local models do well on polyps (MISNet reports mDice 0.903 on Kvasir-SEG). On polyps the edge is often locally visible, so we may well not beat MISNet there, and we will say so if that happens. Our claim is concentrated on cases where the edge is not locally determined, such as pancreas, stomach, and juxtapleural nodules. There, the no-anchor ablation directly measures what local information alone achieves.
Decisive Experiments
The first check is an anchor-deletion faithfulness test. For each boundary node on held-out Synapse and LIDC cases, we replace the feature of each linked anchor with a dataset-mean feature and measure the displacement of the inner and outer contours along the normal. We report the rank correlation between edge weight and displacement. We also report the fraction of total distant influence that the top-$k$ edges explain, estimated by deleting non-linked distant regions of the image and confirming the contour does not move. Both numbers are compared against Grad-CAM, G-CASCADE neighbour edges, and the dense-attention ablation.
The second check concerns uncertainty. We expect band width to grow when anchors are deleted, at the boundary nodes those anchors supported, and not elsewhere. We also expect band width to track inter-annotator disagreement on LIDC better than the U-Net Confidence Contours baseline does.
The third check concerns non-locality. We record how far each edge reaches in millimetres, organ by organ. If almost all edges point to adjacent tissue, the model has collapsed to local reasoning, and the "anchor" story is unsupported.
The final check is accuracy. We report Dice and HD95 on Synapse, Kvasir-SEG, and LIDC against the baselines above, under matched compute, with parameter counts and FLOPs. A short reading study then asks experts whether the anchor citations shown with a contour match how they would justify that boundary.
References
- Generalized Organ Segmentation by Imitating One-Shot Reasoning Using Anatomical Correlation
- Structure Boundary Preserving Segmentation for Medical Image With Ambiguous Boundary
- Confidence Contours: Uncertainty-Aware Annotation for Medical Semantic Segmentation
- G-CASCADE: Efficient Cascaded Graph Convolutional Decoding for 2D Medical Image Segmentation
- Boundary-aware Graph Reasoning for Semantic Segmentation
- ViG-UNet: Vision Graph Neural Networks for Medical Image Segmentation