TL;DR
Give a Segment Anything Model (SAM) a bounding box around a medical scan target, and it draws a crisp, accurate boundary; give it a single clicked point on that exact same target, and its prediction often collapses to near-zero accuracy. By performing "brain surgery" on the frozen model—swapping internal activations between box and point runs—the authors trace this failure to a single early bottleneck layer and just 50 latent features. Placing a tiny, 9,000-parameter adapter right at that causal entry point recovers nearly 90% of the missing performance using only point prompts, outperforming repair models up to 50× larger.
What Problem Does This Paper Address?
Promptable vision foundation models like SAM (and medical variants like MedSAM) let users segment objects by providing visual hints—like clicking a point or drawing a bounding box. In medical imaging, where anatomy is ambiguous and annotations are expensive, this interactive paradigm is a lifesaver.
However, these models suffer from a massive "prompt asymmetry." On the exact same image with the exact same frozen weights, a bounding box prompt yields great segmentation, while a single point prompt frequently fails completely. Previous work treated this as an engineering problem, adding heavier prompt encoders or heuristicallybolting adapters onto the mask decoder. Nobody had asked the underlying mechanistic question: where inside the frozen decoder do the successful box trajectory and failed point trajectory actually diverge, and why?
Methods
To diagnose the failure before trying to fix it, the authors borrow tools from LLM mechanistic interpretability and adapt them to vision decoders in three stages:
- Token-Aligned Activation Patching (New): Normally, activation patching swaps internal states from a "clean" run (box) into a "corrupted" run (point) to see which layer restores performance. You can't do this naively in SAM because a box prompt uses two corner tokens while a point prompt uses one—their shapes and semantics don't match. The authors restrict interventions to comparable architectural states, such as the dense $64 \times 64$ spatial image-stream grids, sweeping layer-by-layer in both forward (box$\rightarrow$point rescue) and reverse (point$\rightarrow$box corruption) directions.
- Sparse Autoencoder (SAE) Decomposition (Standard tool, novel application): Once they locate the exact bottleneck layer, they train an SAE on its activations to untangle the dense tensor into 4,096 interpretable feature directions, ranking them by how much they differ between box and point runs.
- Causal Bottleneck Adapter / CBA (New): Because patching requires having the box at test time, it is purely diagnostic. To build a deployable fix, the authors freeze SAM and insert a tiny two-layer residual MLP right at the discovered bottleneck. Trained via distillation to nudge point activations to look like box activations (plus a standard segmentation loss), CBA runs at test time using only the point prompt.
Datasets
The authors introduce no new datasets, instead assembling a massive evaluation pool of 101,186 medical image-target pairs across five existing benchmarks covering four modalities:
- FLARE22 (CT)
- CAMUS (Ultrasound)
- Kvasir-SEG (Endoscopy)
- MSD Hippocampus & MSD Prostate (MRI)
Crucially, trainable repair methods only see a tiny subset of 3,190 high-gap pairs during training, leaving 97,996 pairs held out for testing. They also evaluate on COCO as a natural-image control.
Key Insights and Ideas
- Failure happens at the very front door: Forward patching reveals a razor-sharp transition. Prompt-side layers recover 0% of the gap, whereas patching the first decoder image-to-token cross-attention update—the exact moment prompt info first writes into the image stream—recovers 98.5% of the performance gap.
- It's a highway, not an island: Reverse corruption (injecting point activations into a box run) at this entry layer and at downstream image-stream layers destroys box performance (95% drop). This proves the bottleneck is the entry ramp to a multi-layer routing highway: fix the signal at the entrance, and the frozen downstream layers happily carry it the rest of the way.
- Distributed across heads, sparse in features: No single attention head is responsible (the best single head out of eight only rescues 12.8%). Yet in the SAE basis, patching just the top 50 features out of 4,096 recovers 92.3% of the gap, while 50 random features recover less than 0.5%.
- Location beats scale: Placing an identical 8,976-parameter adapter just one layer deeper drops gap recovery by over 20 percentage points. Knowing where to intervene matters far more than throwing parameters at the network.
Key Results
- Closing the Gap on MedSAM: Across the 97,996 held-out medical pairs, point prompts alone score a miserable 0.042 Dice, while boxes score 0.875 Dice. Diagnostic whole-layer patching hits 0.858 Dice (98.5% per-pair rescue). At test time, using only points, CBA achieves 0.784 Dice, closing 89.1% of the gap.
- Beating Heavyweight Baselines: With fewer than 9K trainable parameters, CBA outperforms published SAM repair baselines including Stable-SAM (81.4% rescue at 80K params / 9× larger), HQ-SAM (80.4% rescue at 450K params / 50× larger), SAM-PT (75.9%), and DeSAM (72.5%).
- Zero-Shot Cross-Model Transfer: The same entry-layer routing bottleneck shows up across SAM ViT-B/L/H, SAM2, Medical-SAM2, SAM3, and on natural COCO images. Remarkably, taking the CBA trained only on MedSAM medical scans and plugging it directly into standard SAM ViT-B/L/H (without retraining) rescues 73%–88% of their medical point-prompt gaps, and rescues 90% of MedSAM's gap on COCO natural images.
Limitations and Future Work
- Remaining Gap & Boundary Precision: CBA closes 89.1% of the box-to-point gap, meaning a roughly 11% deficit to privileged bounding-box performance still remains—suggesting future adapters need explicit boundary refinement.
- Imperfect Zero-Shot Transfer: When the underlying feature geometry shifts significantly across model families, zero-shot adapter transfer weakens. For instance, transferring the MedSAM-trained CBA without retraining only closes 28% of the gap on Medical-SAM2 and 48% on SAM ViT-B on COCO. Furthermore, on models where point prompts already work nearly as well as boxes (like SAM2 and SAM3 on COCO, where the gap is $<0.05$ Dice), normalized rescue becomes noisy and an entry-layer fix loses leverage. Future designs will likely need to jointly model causal route placement alongside model-specific feature geometry.
Summary updated