Trading Parameters for Accuracy in MambaVision for Chest Radiograph Classification

Qaiser Farooq, Tehseen ZiaarXiv 2026 · arXiv

TL;DR

Researchers have developed Spatial-MambaVision, a more efficient version of the MambaVision hybrid architecture tailored for chest X-ray classification. By replacing the parameter-heavy fourth stage with lighter, single-scan state-space blocks, they reduced parameter counts by up to 35.7% and boosted throughput by ~19% with only a marginal (0.004) drop in AUC.

What Problem Does This Paper Address?

Automated chest radiograph (CXR) classification is a balancing act. Models must resolve tiny, localized features (like a small nodule) while simultaneously understanding global relationships (like the silhouette of the heart relative to the lungs).

While Convolutional Neural Networks (CNNs) excel at local texture and Vision Transformers (ViTs) capture global context, both have drawbacks: CNNs struggle with long-range dependencies, and ViTs suffer from quadratic computational costs. MambaVision emerged as a "best of both worlds" hybrid, using State Space Models (SSMs) and attention. However, MambaVision is structurally imbalanced; its fourth stage contains roughly 60% of the total parameters. The authors ask: Is this massive fourth stage actually necessary for medical imaging, or can we trade those parameters for better inference speed?

Methods

The authors introduce Spatial-MambaVision. The core strategy involves keeping the first three stages of MambaVision intact but replacing the entire fourth stage with a lighter alternative:

  1. SASSM (Structure-Aware State-Space Mixer): Instead of the standard hybrid mixer, they use a single-scan SSM adapted from Spatial-Mamba.
  2. SASF (Structure-Aware State-Space Fusion): To compensate for the simplicity of a single scan, they apply multi-scale dilated depthwise convolutions to the scan output. This helps the model "see" spatial relationships that a linear scan might miss.
  3. Knowledge Distillation (KD): To recover the slight accuracy loss from the parameter reduction, they used a larger, unreplaced MambaVision-Base model as a "teacher" to train the smaller "student" models.
  4. Weight Initialization: Since the widths of the new stages didn't always match the original ImageNet-pretrained weights, they used a ridge-regularized linear mapping to project weights into the new dimensions, ensuring a better starting point than random initialization.

Datasets

The models were evaluated across nine dataset-scale combinations:

  • ChestMNIST: A 224×224 version of the NIH ChestX-ray14 archive (112,120 radiographs).
  • NIH High-Resolution Subset: Evaluated at 512×512 to test scaling.
  • Indiana University Open-i: A smaller, independent cohort used to test generalization.

Key Insights and Ideas

  • The "Bloat" isn't where you think: In Stage 4, the feature map is small (7×7). Consequently, the "expensive" quadratic cost of attention is actually negligible. The real parameter bloat comes from the dense projections and MLPs required by the high channel width.
  • The Pareto Frontier: For "Tiny" and "Small" model scales, the parameter-for-speed trade-off is highly efficient. However, at the "Base" scale, the trade-off breaks down—you are better off simply using a standard "Small" model than trying to prune a "Base" model.
  • Spatial Fusion is a Force Multiplier: The results confirm that a single-scan Mamba block needs spatial fusion (the dilated convolutions) to remain competitive. Without it, accuracy drops significantly.
  • Distillation is a "Free" Lunch: Using Knowledge Distillation almost entirely closed the accuracy gap for the Tiny model, providing a faster model with nearly identical diagnostic performance.

Key Results

  • Efficiency Gains: At the Tiny scale, the replacement reduced parameters by 35.7% and increased GPU throughput by 19.3% (from 1,184 to 1,412 images/second on an NVIDIA L40S).
  • Memory Savings: Peak training memory dropped by 6.6%–11.7%, making these models easier to train on consumer-grade hardware.
  • Accuracy Trade-off: On ChestMNIST, the undistilled Tiny model saw a mean AUC drop of only 0.004. With Knowledge Distillation, the gap narrowed to 0.001–0.002, meeting statistical equivalence criteria.
  • High-Res Scaling: At 512×512 resolution, the throughput advantage actually widened to 21.8%–23.4%, proving the architecture is even more beneficial for high-resolution medical imaging.

Limitations and Future Work

  • Label Noise: The datasets rely on labels extracted via NLP from clinical reports, which inherently contains some noise.
  • Stage 3 Bottleneck: The study focused on Stage 4. Future work could investigate if the attention mechanisms in Stage 3 (which process 1,024 tokens) could be similarly optimized for even higher resolutions (e.g., 1024×1024).
  • Deployment: The authors noted that their CPU timings used unoptimized code; future work involves testing with compiled TensorRT deployment to see real-world edge device performance.
  • External Validation: While they tested on two cohorts, further validation on disjoint datasets like MIMIC-CXR is needed to ensure the "pruned" features generalize across different hospital systems.

Summary updated

Abstract

MambaVision, a hybrid state-space and attention backbone, places most of its parameters in its widest, fourth stage. We quantified what that stage contributes to multi-label chest radiograph classification. The fourth stage was replaced with lighter single-scan state-space blocks adapted from Spatial-Mamba, with multi-scale dilated depthwise convolutions applied to the scan output; the first three stages were retained. Tiny, Small, and Base models were evaluated across nine dataset-scale combinations drawn from two source cohorts: the National Institutes of Health ChestX-ray14 archive (full ChestMNIST and a high-resolution subset) and Indiana University Open-i. At the Tiny scale, replacement reduced parameter count by 35.7% and increased graphics processing unit throughput by 19.3%; the savings came from the stage's dense projections, not from removing quadratic attention. Without distillation, the mean area under the receiver operating characteristic curve on ChestMNIST was 0.004 lower than the baseline (95% bootstrap confidence interval, 0.002 to 0.006), and 0.003 to 0.006 lower across all nine combinations. Knowledge distillation from an unreplaced teacher narrowed the gap to the undistilled baseline to 0.001-0.002 and met the equivalence criterion on ChestMNIST, but distilling the baseline with the same recipe improved it by 0.001-0.003, so a gap of 0.002-0.005 persisted under symmetric training. At the Base scale, the unreplaced Small model was both smaller and more accurate. Fourth-stage replacement is a useful trade-off only for Tiny and Small models. These measurements let developers of chest radiograph screening tools weigh model size and speed against a quantified loss of diagnostic discrimination.
BibTeX
@misc{farooq2026trading,
  author = {Qaiser Farooq and Tehseen Zia},
  title = {{Trading Parameters for Accuracy in MambaVision for Chest Radiograph Classification}},
  year = {2026},
  eprint = {2611.20103},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.20103},
}
Figure