Manuscript Offprint

arXiv:2610.09907

FedSSMCoOp: SSM Encoders for light-weight Federated Prompt Learning for Few-shot Classification

Ankita Das, Ambarish Parthasarathy, Sumohana S. Channappayya, C. Krishna Mohan

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Ankita Das

Department of Computer Science and Engineering

Indian Institute of Technology Hyderabad

cs23resch01003@iith.ac.in

Ambarish Parthasarathy

Department of Artificial Intelligence

Indian Institute of Technology Hyderabad

ai23resch01001@iith.ac.in

Sumohana S. Channappayya

Department of Electrical Engineering

Indian Institute of Technology Hyderabad

sumohana@ee.iith.ac.in

C. Krishna Mohan

Department of Computer Science and Engineering

Indian Institute of Technology Hyderabad

ckm@cse.iith.ac.in

Abstract

Vision-Language Models (VLMs) have shown strong performance across a wide range of downstream vision tasks, thanks to the complementary information contained in the respective domains. Despite the performance gains, most of these approaches rely on aligning these domains using the cosine similarity metric, which fails to capture token-level structure and cross-modal interactions prior to the classification stage. This is especially critical in biomedical applications under federated constraints, where data sharing is restricted, labeled data is scarce at each site, and it differs widely across institutions, leading to substantial statistical heterogeneity. To overcome this issue, we propose FedSSMCoOp, a federated few-shot image classification framework that enables multimodal learning while preserving data privacy. With the help of the SSM-based Vision Mamba and Cross Mamba blocks, and by optimizing only the soft-prompt and communication-prompt updates in the federated setting, the framework prioritizes both computation and performance. Importantly, this eliminates the need to use an external Large Language Model (LLM) for feature alignment. The framework is further trained and evaluated on various biomedical image datasets, and its performance is assessed. The proposed framework delivers stable performance relative to the baselines and is, on average, 1.96 times lighter. The corresponding script will be made available soon.

1 Introduction

The VLMs are a performance-oriented framework where information is processed using one or more complementary modalities. One of the most commonly used modalities is vision and text, where either of them can aid the other. The features from each of the modalities are either combined in a common space or processed by a dedicated encoder Tan & Bansal (2019). Commonly used encoders are attention-based transformers that prioritize performance. The Contrastive Language Image Pretraining (CLIP) is one such VLM that uses this approach in the vision and text domain, respectively Radford et al. (2021). The features from both modalities are aligned by means of a contrastive learning approach inspired by InfoNCE Oord et al. (2018). This is the foundational template for most of the present-day VLMs. On the other hand, the Bootstrapped Language Image Pretraining (BLIP), the second variant of the prior CLIP model, is designed for both retrieval and generative applications Li et al. (2022). Further, the BLIP introduces a filtering mechanism called CaptFilt that filters out noisy captions, thereby making it more robust to perturbations. The SigLIP Zhai et al. (2023) is another variant of the CLIP model in which the contrastive approach is replaced with a sigmoid objective, which is simple but has proven quite effective in terms of performance and stability. Biomedical imaging is an important application domain for VLMs because the data is typically distributed across multiple healthcare institutions and cannot be directly shared due to privacy constraints. In addition, biomedical images can differ substantially across institutions due to variations in imaging devices, acquisition protocols, and patient populations. These characteristics make biomedical imaging a challenging and highly heterogeneous setting for VLM adaptation, particularly when only a small number of labeled samples are available.

Despite the advancements, the transformer-based VLMs are computationally inefficient due to the presence of an attention mechanism. The State Space Modeling (SSMs) of Mamba Gu & Dao (2023) was effective in reducing the computation complexity from quadratic in attention to almost linear. This helped to curb the computational complexity while simultaneously maintaining performance, and is widely used in most of the applications in Biomedical and Satellite Imaging, respectively. The Vision Mamba Zhu et al. (2024) is an extension of this approach in the vision domain, using a bidirectional state-space approach for an effective scanning mechanism. The VMamba Liu et al. (2024), on the other hand, used an unidirectional stage-wise approach, mimicking an SSM-based mixer model.

However, every advancement comes at a cost. The Mamba variants, despite being lightweight, weren't as effective as attention-based models. This is because the attention mechanism was effective at extracting fine-grained features, whereas Mamba focuses more on the global perspective of features Parthasarathy & Channappayya (2026). These factors are also crucial in the federated environments, where the performance and the latency between the client and the server must be jointly optimized. Given that the data across participating clients are typically non-independent and identically distributed (non-IID), each client's data is drawn from a different underlying distribution, which further increases the difficulty of achieving stable convergence. These characteristics create a unique trade-off in federated biomedical VLMs: the model should be computationally efficient enough to communicate across clients, while still being capable of capturing both global and fine-grained features from heterogeneous medical images. Therefore, the choice of the visual encoder and the strategy for adapting it are particularly important in this setting. The computational efficiency of SSM-based models is particularly attractive here, where both local computation and communication between clients and the server are important. Therefore, we propose FedSSMCoOp, a federated framework that integrates Vision Mamba with the Cross-Mamba Interaction block Liu et al. (2026); Zhu et al. (2024), balancing performance and computational complexity. The integrated design is further stitched into a Federated Learning (FL) setup that communicates only with the soft prompt deltas. This reduces the per-round communication cost between the client and the server. We demonstrate gains and on-par performance across several datasets while significantly reducing computational cost. Further, this approach is trained and validated across biomedical imaging datasets and compared over the baselines under the non-IID data distributions.

References (37)