Finding the Slices That Only Matter Together: Interaction-Guided Token Pruning for 3D Medical Scans

Large vision-language models read a CT or MRI scan as a stack of 2D slices, and every slice becomes hundreds of visual tokens. A whole scan can exceed ten thousand tokens, so practical systems throw most of them away before the language model sees them. Current pruning rules keep a token when it looks different from the same location in neighboring slices. That rule misses a specific kind of evidence: findings that no single slice reveals, and that appear only when two or more slices are read together. Examples include a vessel whose continuity must be traced, a lesion whose extent spans the stack, or a question about which of two organs lies higher in the body.

We propose to measure this kind of evidence directly with an interaction detector, a tool that asks whether the model's output changes more when two input regions are present together than the sum of their separate effects predicts. We run the detector offline on a full-token model to find cross-slice token pairs whose joint effect is non-additive. We then distill those measurements into a cheap selector that runs at inference cost comparable to today's heuristics. In two sentences: heuristic token pruners keep tokens that differ from their neighbors, which captures marginal novelty but not cross-slice conjunctions. We label conjunctions using mixed-difference interaction tests on the unpruned model and train a lightweight selector to keep them, then test whether this recovers the volumetric context that pruning destroys.

Core Claim

The closest existing work is CARVE. CARVE is a training-free 2.5D pipeline for slice-based multimodal models such as Hulu-Med-7B and Qwen3-VL. It windows the scan along the z-axis, keeps within-slice anchor tokens by quadtree refinement, and retrieves additional tokens across slices whose "local residual" (deviation from the corresponding location in adjacent slices) is large. It then folds the discarded tokens into nearby anchors. CARVE reports preserving 98.1% of full-token performance at a 20% keep ratio across AMOS-MM, 3D-RAD and M3D-VQA.

A local residual is a first-order, neighbor-relative quantity. Two far-apart slices, each unremarkable relative to its own neighbors, can jointly determine the answer, and a residual rule has no way to flag that pair. Our claim has two parts. First, a non-negligible share of the performance lost under aggressive pruning comes from exactly such cross-slice conjunctions. Second, a selector trained on interaction measurements recovers it where residual-based and marginal-importance selectors do not.

The interaction measurement comes from Archipelago, which supplies the method. Its detector, ArchDetect, scores pairwise non-additivity with a discrete mixed difference in $O(p^2)$ evaluations for $p$ units. Archipelago was built and evaluated only on text, tabular data and 2D images grouped into SLIC superpixels, including a qualitative 2D chest X-ray check. It has never been posed over a slice depth axis. For a question-scan pair, let $f$ be the language model's log-likelihood of the reference answer. Let $a$ and $b$ be token regions in two different slabs, where a slab is a run of adjacent slices. We define the cross-slab interaction as

$$I(a,b)=f(x_{a,b})-f(x_{a})-f(x_{b})+f(x_{\varnothing}),$$

where $x_{S}$ is the token sequence with the regions in $S$ kept and the other candidate regions replaced by their folded anchor. Following ArchDetect, the score is averaged over two contexts: all other tokens present, and all other tokens pruned. Using the pruned state rather than zero padding as the neutral baseline means the score measures exactly what pruning would lose.

Research Program

The first component is a volumetric version of the detector that respects anisotropy. Clinical scans often have in-plane resolution far finer than slice spacing, so slabs are defined by physical thickness in millimetres, not by slice count. The regions inside a slab are CARVE's quadtree cells rather than SLIC superpixels. This removes the dependence on low-level superpixel boundaries that the research file lists as a weakness of ArchDetect in vision.

Scoring all region pairs is too expensive. We therefore restrict candidates to the top regions per slab by single-region occlusion effect, plus a random sample so the labels are not biased toward marginally important regions. Pairwise scores are merged into islands as in Archipelago. This pass costs many forward evaluations per question, so it is run only offline, on a training subset, to produce labels.

The second component is the distilled selector. A small network reads frozen per-slice encoder features within a sliding z-window and predicts, for each token region, its maximum interaction score with any region in another slab. It is trained with a ranking loss against the offline labels. At inference it runs once over encoder features, before the language model. Its budget sits inside CARVE's pipeline: it replaces only the inter-slice retrieval branch and keeps CARVE's anchors and folding. Any gain can therefore be attributed to the selection criterion alone.

The third component validates the detector itself. Do little interactions get lost in dark random forests? constrains the design. It showed that pairwise interaction measures often assign higher interaction scores to models with purely marginal effects than to models with true interactions. We will not trust our labels until they pass controls with known answers.

The negative control is a 2D slice network with post-hoc Gaussian smoothing of stacked probability maps, in the style of Roth et al.. There, each slice's pre-threshold output depends only on its own input and the smoothing is linear, so cross-slab interaction should be near zero by construction. We build this on the TransUNet codebase on Synapse CT. TransUNet itself is slice-based, which makes it a natural host for the control.

The positive control is a synthetic volume task in which the label is a planted conjunction of two features in distant slabs. Neither feature alone predicts the label, and there is a matched marginal-only variant. The detector must separate the two variants before it is used for anything else.

Baselines

The naive reference points are the full-token model, which is the ceiling, and uniform or random token retention at the same keep ratio, which is the floor. Every retained-performance number is reported relative to the full-token run of the same model on the same questions.

The strongest existing method is CARVE, with a reported 98.1% full-token retention at a 20% keep ratio on its VQA suite. On AMOS-MM report generation it reports 6.2 points more quality retained than the strongest competitor, which it names as MedPruner or VisionZip. We will rerun CARVE ourselves on identical backbones (Qwen3-VL 4B/8B and Hulu-Med-7B), identical question splits and identical keep ratios, rather than comparing against its published numbers. Beating it means higher retained performance at matched keep ratio and matched selector cost. The gain must be concentrated on the multi-slice question subset described below, without loss on single-slice questions.

The key ablation is a marginal selector. It is identical in architecture, training data and compute, but is trained to predict single-region occlusion effect instead of pairwise interaction. It isolates whether the non-additive signal matters or whether "importance" alone does the work. We also include the offline oracle, which uses the true interaction scores. The oracle bounds what distillation can achieve and separates detector failure from selector failure.

A final baseline selects tokens by the language model's own attention scores from a full-token prefill. It gets the same keep ratio. We report its cost honestly, because it requires processing all tokens once.

Why not just…?

Why not just keep CARVE's local residuals and raise the keep ratio? Raising the ratio trades away the efficiency that motivates pruning. It also does not target the failure we hypothesize: a residual computed against adjacent slices is blind to a pair of distant slabs that matter only jointly. The z-axis probe below is built to expose this. If CARVE matches our selector on that probe at 20% keep, the hypothesis is wrong and we will say so.

Why not just rank tokens by single-region occlusion importance? This is the real threat. The random-forest study shows marginal effects dominate most importance landscapes, so a marginal selector may capture nearly everything. The matched marginal-selector ablation settles it. Our claim survives only if the interaction selector wins specifically on questions whose evidence is a conjunction, and if the controls confirm our scores are not relabeled marginal effects.

Why not just use the language model's attention to choose tokens? Attention requires the full-token prefill that pruning exists to avoid. Attention weight is also not a test of non-additivity. We include it as a baseline to measure how much of the interaction signal it already carries.

Why not just use a native 3D encoder and avoid slice tokens? That is the principled long-term fix. However, it changes the pretrained backbone, and the memory and token cost of full 3D attention is exactly the constraint these systems face. This proposal targets the frozen-backbone regime that CARVE addresses and does not claim to replace volumetric encoders.

Proposed Experiments

Evaluation uses AMOS-MM, 3D-RAD and M3D-VQA at keep ratios of 10%, 20% and 30%, with retained performance relative to full tokens as the primary metric. AMOS-MM report quality is measured with the same metrics CARVE uses.

Aggregate numbers can hide the effect, so we add a stratified probe. It is a craniocaudal extension of MIRP. Your other Left! built MIRP from 4,878 axial BTCV and AMOS slices, using TotalSegmentator masks for 117 structures. It found that models hovered near 50% on plain slices, and that GPT-4o fell from 75% to 50% under flipping. We use the same masks to pose "which structure lies more superior" questions whose two structures occupy slabs far apart. Answering requires combining two distant slices. Following that paper's finding that organ names trigger memorized anatomical priors, we also include an abstract-marker variant so that answers cannot come from textbook knowledge.

The decisive checks come in a fixed order. The detector must score near zero on the smoothed 2D negative control and must separate planted conjunctions from marginal-only volumes on the synthetic task. The oracle interaction selector must beat the marginal oracle on the z-axis probe. Only then does the comparison between distilled selector and CARVE carry meaning. The outcome that would confirm the proposal is a gap on the probe and on the multi-slice subset, with parity elsewhere. A null result at the oracle stage would be a useful finding in its own right: it would show that, for current slice-based models, volumetric context lost to pruning is essentially marginal and heuristic residuals are sufficient.