Introduction
In clinical diagnostics, radiologists typically examine multiple imaging views—such as frontal and lateral X-rays—to form a comprehensive assessment. Developing AI models that effectively integrate these multiple perspectives is crucial for accurate medical image classification. However, current approaches based on Convolutional Neural Networks (CNNs) often lack global context due to limited receptive fields, while Transformer-based models suffer from quadratic computational complexity, making them inefficient for high-resolution medical data. Furthermore, many existing models rely on "late fusion," which processes views independently and misses deep inter-view correlations.
To address these limitations, XFMamba introduces a pure Mamba-based (State Space Model) architecture. By leveraging the linear scaling of Mamba and a novel two-stage cross-fusion strategy, XFMamba efficiently captures long-range spatial dependencies and facilitates seamless information transfer between imaging views.
Methods: Two-Stage Cascade Fusion
The core of XFMamba is its architecture built entirely on Selective Structured State Space Models (SSMs). Unlike Transformers, Mamba provides global context with linear computational complexity, making it ideal for multi-input medical tasks.
The architecture employs a two-stage cascade fusion module to learn complex relationships between views:
- Shallow Fusion (Cross-View Swapping Mamba - CVSM): This stage interleaves feature patches from different views and utilizes a cross-channel attention mechanism. By reweighting features of one view based on the global context of another, the model begins integrating information early in the pipeline.
- Deep Fusion (Multi-View Combination Mamba - MVCM): This stage moves toward global integration by sharing the Mamba "system matrix" ($C_{fuse}$) across view branches. This mathematical constraint forces the hidden states of different views to inform one another, resulting in a holistic multi-view representation.
Key Results and Insights
XFMamba was evaluated on three benchmark datasets: MURA (musculoskeletal), CheXpert (chest X-rays), and CBIS-DDSM (mammography).
State-of-the-Art Performance
The model achieved superior results across all datasets. On CheXpert, the XFMamba-B variant reached an AUROC of 0.919, surpassing previous state-of-the-art models like CVT and MV-Swin-T. Even the "Tiny" variant (XFMamba-T) outperformed most competitors while maintaining significantly lower computational overhead (FLOPs) and a modest parameter count (~39M).
The Power of Deep Fusion
Ablation studies confirmed that the specific design of the fusion blocks is critical. Using both views improved performance by up to 2.17% over single-view baselines. Moreover, replacing the custom CVSM and MVCM blocks with simple concatenation or addition led to a nearly 1% drop in AUROC, validating the effectiveness of the shared state matrix approach.
Enhanced Interpretability
Qualitative analysis using Grad-CAM heatmaps demonstrated that XFMamba focuses more precisely on pathological regions compared to baseline models, which often highlight irrelevant background features. This improved localization suggests that the model learns more clinically relevant features through its cross-view fusion mechanism.
Conclusion
XFMamba demonstrates that State Space Models are a highly viable alternative to CNNs and Transformers for multi-view medical imaging. By combining global context with linear efficiency and deep cross-view fusion, it sets a new benchmark for accuracy and resource utilization. Future work will explore extending XFMamba to multi-modality tasks and investigating its performance on datasets with strict geometric registration between views to further refine feature alignment.
Summary updated