NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

FMaMIL: Frequency-Driven Mamba Multi-Instance Learning for Weakly Supervised Lesion Segmentation in Medical Images

Hangbei Cheng, Xiaorong Dong, Xueyu Liu, Jianan Zhang, Xuetao Ma, Mingqiang Wei, Liansheng Wang, Junxin Chen, Yongfei WuarXiv 2025

Introduction

In digital pathology, Whole-Slide Images (WSIs) are massive, often containing billions of pixels. Accurately segmenting lesions within these images is critical for diagnosis, yet obtaining pixel-level "ground truth" masks from experts is prohibitively expensive and prone to subjective bias.

To address this, researchers utilize Weakly Supervised Segmentation (WSS), specifically Multi-Instance Learning (MIL), where a model learns from a single image-level label (e.g., "cancer" vs. "healthy"). However, existing MIL methods face two major hurdles: the quadratic computational complexity of Transformers on large WSIs and a limitation to the spatial domain, which often misses critical diagnostic textures clearer in the frequency domain.

Methodology

The authors introduce FMaMIL (Frequency-Driven Mamba MIL), a two-stage framework designed to capture both global context and fine-grained textures efficiently.

Comparison of MIL architectures: (a) standard MIL, (b) Transformer-based MIL, and (c) the proposed FMaMIL framework.

Stage 1: Feature Extraction & Classification

  • Bidirectional Spatial Scanning: To adapt the 1D Mamba sequence model for 2D images, the authors utilize a "Sentence Reordering" technique, scanning patches row-wise and column-wise to capture structural relationships.
  • Learnable Frequency-Domain Encoding: The model applies a Fast Fourier Transform (FFT) to patch features. Learnable weights then "filter" specific frequencies—acting as a smart texture detector—before converting the data back to the spatial domain via Inverse FFT (IFFT).
  • FMamba Block: This core module fuses bidirectional spatial features with frequency-domain features, providing a comprehensive representation of the tissue.

Stage 2: Segmentation Refinement

  • CAM-guided Refinement: The model generates Class Activation Maps (CAMs) to identify patches that triggered the classification.
  • Soft Supervision & Self-Correction: Recognizing that initial CAMs are noisy, the model employs a staged training strategy. It progressively refines these "pseudo-labels" by comparing them against its own high-confidence predictions, effectively self-correcting errors over time.

Datasets and Evaluation

The model was evaluated on two distinct histopathology datasets:

  1. Glomerular Lesions (Private): 281 kidney biopsy samples focused on identifying glomerular spikes.
  2. CAMELYON16 (Public): A benchmark dataset for detecting breast cancer metastases in lymph nodes, consisting of 400 WSIs.
Example of a Whole-Slide Image (WSI) with a lesion boundary separating normal tissue from metastasis.

Key Results and Insights

FMaMIL achieved state-of-the-art (SOTA) performance across both datasets, notably outperforming other Mamba and Transformer-based MIL frameworks:

  • Glomerular Dataset: Achieved a 0.887 mIoU and 0.934 Dice coefficient, significantly higher than traditional MIL methods like CLAM or TransMIL.
  • CAMELYON16: Reached a 0.869 mIoU and 0.957 Dice coefficient.

Efficiency and Robustness

By leveraging Mamba’s linear complexity, the model maintains a global receptive field without the massive memory overhead of standard Attention mechanisms. Furthermore, the transition from soft label supervision to a self-correction mechanism allows the model to ignore noise in initial CAMs, converging on more accurate lesion boundaries. Remarkably, FMaMIL's performance under weak supervision was competitive with standard fully supervised models like U-Net.

Limitations and Future Work

While FMaMIL is a significant step forward, challenges remain in achieving a truly holistic understanding of gigapixel images and handling lesions with extremely diffuse morphologies. Future research will explore knowledge distillation and domain adaptation to ensure the model's efficacy across different clinical environments and scanning hardware.

Summary updated

BibTeX
@misc{cheng2025fmamil,
  author = {Hangbei Cheng and Xiaorong Dong and Xueyu Liu and Jianan Zhang and Xuetao Ma and Mingqiang Wei and Liansheng Wang and Junxin Chen and Yongfei Wu},
  title = {{FMaMIL: Frequency-Driven Mamba Multi-Instance Learning for Weakly Supervised Lesion Segmentation in Medical Images}},
  year = {2025},
  eprint = {2506.07652},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.07652},
}
Figure