SfMamba: Efficient Source-Free Domain Adaptation via Selective Scan Modeling
Xi Chen, Hongxun Yao, Sicheng Zhao, Jiankun Zhu, Jing Jiang, Kui Jiang
TL;DR
SfMamba tackles source-free domain adaptation by enhancing a Visual Mamba backbone with Channel-wise Visual State-Space blocks and a Semantic-Consistent Shuffle strategy. The method enables long-range, channel-wise dependency learning while mitigating error accumulation through background patch perturbations and consistency regularization, all under a unified loss with pseudo-label refinements. Empirical results across Office-Home, VisDA-C, Office, and DomainNet-126 show state-of-the-art performance with favorable parameter and computation budgets, demonstrating both robustness to domain shifts and practical efficiency. The approach yields notable improvements over prior SFDA methods and offers a principled direction for leveraging state-space models in domain transfer tasks.
Abstract
Source-free domain adaptation (SFDA) tackles the critical challenge of adapting source-pretrained models to unlabeled target domains without access to source data, overcoming data privacy and storage limitations in real-world applications. However, existing SFDA approaches struggle with the trade-off between perception field and computational efficiency in domain-invariant feature learning. Recently, Mamba has offered a promising solution through its selective scan mechanism, which enables long-range dependency modeling with linear complexity. However, the Visual Mamba (i.e., VMamba) remains limited in capturing channel-wise frequency characteristics critical for domain alignment and maintaining spatial robustness under significant domain shifts. To address these, we propose a framework called SfMamba to fully explore the stable dependency in source-free model transfer. SfMamba introduces Channel-wise Visual State-Space block that enables channel-sequence scanning for domain-invariant feature extraction. In addition, SfMamba involves a Semantic-Consistent Shuffle strategy that disrupts background patch sequences in 2D selective scan while preserving prediction consistency to mitigate error accumulation. Comprehensive evaluations across multiple benchmarks show that SfMamba achieves consistently stronger performance than existing methods while maintaining favorable parameter efficiency, offering a practical solution for SFDA. Our code is available at https://github.com/chenxi52/SfMamba.
