TL;DR
MedPruner is a training-free, model-agnostic hierarchical token pruning framework designed to drastically reduce the computational burden of processing 3D medical images in Vision-Language Models (VLMs). By combining slice-level filtering with adaptive token-level compression, MedPruner can discard up to 95% of visual tokens while maintaining or even exceeding the model's original diagnostic performance.
What Problem Does This Paper Address?
Vision-Language Models (VLMs) have shown immense promise in medical imaging, but moving from 2D X-rays to 3D volumetric data (like CT or MRI scans) introduces a massive computational bottleneck.
Current architectures typically handle 3D volumes by slicing them into a sequence of 2D images and directly concatenating the resulting visual tokens. This naive approach causes a "token explosion" that quickly overwhelms a Large Language Model's (LLM) context window. Furthermore, it introduces two major inefficiencies:
- Anatomical Redundancy: Consecutive 2D slices in a 3D scan are highly similar, meaning the model processes the same structural information repeatedly.
- Information Heterogeneity: Important pathological features (like a tumor boundary) might be concentrated in just a few slices, while the rest contain uniform, uninformative background tissue. Existing pruning methods use a fixed, static pruning ratio, which either risks discarding critical clinical details or wastes tokens on background noise.
Methods
MedPruner addresses these challenges using a training-free, two-stage hierarchical mechanism that operates at both the slice and token levels.
- Inter-slice Anchor-based Filtering (IAF): Instead of uniform downsampling, IAF dynamically tracks content evolution across the 3D volume. It establishes an initial "anchor slice" and computes the pixel-wise mean $L_1$ distance for subsequent slices. If the variation exceeds a predefined sensitivity threshold ($\gamma$), the slice is preserved as a new anchor; otherwise, it is filtered out as redundant.
- Dynamic Information Nucleus Selection (DINS): Within each preserved slice, MedPruner extracts attention scores directly from the self-attention layers of the vision encoder. Inspired by nucleus sampling in text generation, it sorts the tokens by importance and dynamically selects the minimal set of top-ranked "primary tokens" whose cumulative attention mass reaches a threshold ($\tau$).
To preserve global structural context without inflating the sequence length, the remaining unselected tokens are clustered using a bipartite matching operation and appended to the primary tokens before being fed into the LLM backbone.
Datasets
The authors evaluated MedPruner on three major 3D medical benchmarks:
- M3D: A comprehensive 3D Medical Visual Question Answering (VQA) dataset focusing on detailed anatomical and pathological attributes across various imaging planes and contrast phases.
- 3D-RAD: A 3D radiology CT scan VQA dataset featuring complex reasoning tasks such as anomaly detection and multi-stage temporal diagnosis.
- AMOS-MM: A multi-modal abdominal organ benchmark (CT and MRI) used primarily to evaluate the models on 3D medical report generation.
Key Insights and Ideas
- Massive Visual Redundancy: The most striking takeaway is that medical VLMs suffer from extreme token bloat. MedPruner demonstrates that a vast majority of visual tokens generated by standard vision backbones are completely unnecessary for downstream clinical reasoning.
- Pruning as a Denoiser: Counterintuitively, aggressively pruning tokens can actually improve VLM performance. By filtering out hundreds of repetitive slices and background noise, MedPruner prevents the LLM from experiencing information overload, leading to higher accuracy and better language generation metrics (such as BLEU and Rouge scores).
- Model-Specific Attention Skew: The optimal token retention rate varies drastically depending on the underlying vision backbone. For instance, MedGemma-1.5's attention weights are highly concentrated on a very small subset of tokens, allowing MedPruner to automatically compress its visual input down to less than 5% without performance degradation.
Key Results
The framework was validated across three diverse VLMs: Hulu-Med-7B, MedGemma-1.5-4B, and Qwen3-VL-8B.
- Extreme Compression: On the AMOS-MM dataset using MedGemma-1.5, MedPruner achieved an incredibly low token retention rate (R-Rate) of 2.46% while delivering 100.65% of the original uncompressed model's average performance.
- Performance Gains: On the M3D dataset with Hulu-Med-7B, MedPruner reduced the token retention rate to ~52% while outperforming the uncompressed baseline across closed-set accuracy and open-ended text generation metrics (achieving the highest BLEU-4 score of 12.580).
- Inference Speedup: MedPruner consistently delivered the fastest inference speeds across all tested architectures, making it highly practical for real-world clinical deployment.
Limitations and Future Work
Explicit limitations and specific directions for future work are not discussed in the paper. However, the authors emphasize that MedPruner's ability to dynamically scale token retention based on intrinsic attention distributions provides a crucial stepping stone toward integrating resource-intensive 3D VLMs into real-time clinical workflows.
Summary updated