Rethinking Federated Prompt Learning for Medical Images: From Textual Tuning to Visual Manifold Anchoring

Yipan Wei, Wenke Huang, Yapeng Li, He Li, Qixin Zhang, Mang Ye, Bo DuICML 2026

Introduction

Federated Learning (FL) enables collaborative AI training across hospitals without compromising sensitive patient data. Recently, Federated Prompt Learning (FPL) has emerged as a highly efficient approach to FL. Instead of updating massive vision-language models (like CLIP), FPL keeps the core model frozen and only tunes a small set of learnable "prompts."

However, while this "frozen" assumption works well for natural images, it breaks down in medical imaging. The visual encoders are often "blind" to subtle pathological nuances, assuming a ready-to-use feature space that simply does not exist for medical scans. To solve this, researchers introduce FedMAP (Federated Manifold-Anchored Prompting), a framework that uses an LLM-derived semantic codebook to "anchor" and restructure collapsed visual features, significantly improving accuracy and stability across heterogeneous medical institutions.

The Core Problem: Geometric Pathologies

The authors identify two primary "geometric pathologies" that occur when applying standard FPL to medical images:

  1. Intra-client Medical Manifold Collapse: Medical images, such as different types of skin lesions, are morphologically very similar. This similarity causes the frozen visual encoder to squash features into a narrow, low-dimensional subspace. As a result, it becomes nearly impossible for text-based classifiers to differentiate between subtle disease classes.
  2. Inter-client Medical Topological Misalignment: Different hospitals utilize different scanners, imaging protocols, and equipment. This institutional "noise" causes the relationships between classes (e.g., how visually similar a "Nevus" is to a "Melanoma") to shift inconsistently across different sites, preventing the global federated model from reaching a consensus.

The FedMAP Solution

Rather than just tuning text prompts, FedMAP actively reshapes the visual feature space. It uses language as a geometric blueprint to reorganize visual features through three main mechanisms:

  • LLM-Derived Semantic Codebook: The researchers use GPT-4o to expand simple class labels (like "Melanoma") into detailed, descriptive visual attributes (e.g., "irregular borders," "variable color"). These attributes are encoded into a fixed "codebook" that serves as a stable, global reference across all clients.
  • Manifold Semantic Anchoring (MSA): MSA forces the local visual features to align with the rich attributes in the codebook. By "anchoring" features to these diverse semantic directions, FedMAP effectively "stretches" the collapsed manifold, restoring the discriminative power of the visual features.
  • Topology Structural Alignment (TSA): This mechanism ensures that the "neighborhood structure" of classes is consistent across all hospitals. It calculates a text relation matrix from the codebook and forces the local visual features at each hospital to match this global linguistic blueprint.

Crucially, FedMAP is extremely efficient. It updates only 9.2K parameters (about 0.07 MB of data per communication round), requiring significantly less bandwidth than multimodal competitors.

Experimental Setup and Key Results

The model was rigorously evaluated on three distinct medical benchmarks: FedISIC (dermoscopy images across 6 domains), FedCamelyon17 (histopathology from 5 hospitals), and a challenging Private Fetal Ultrasound Dataset (13 classes across 3 hospitals).

Key findings include:

  • Superior Performance: FedMAP consistently outperformed state-of-the-art methods. On the FedISIC dataset, it achieved 73.29% accuracy, marking a +7.16% improvement over the strongest baseline.
  • Massive Gains in Hard Tasks: On the highly noisy private ultrasound dataset, the improvement was even more dramatic, jumping +18.85% in accuracy over previous methods.
  • Fixing Manifold Collapse: Using "Effective Rank" to quantify manifold collapse, the authors demonstrated that FedMAP actually increases the dimensionality of the feature space during training, whereas standard methods leave it stagnant or degraded.
  • Faster Convergence: Because the shared semantic codebook acts as a stable synchronization signal, FedMAP reaches higher accuracy much faster than text-only tuning methods, which struggle to find stability in heterogeneous environments.

Limitations and Future Directions

While FedMAP represents a significant leap forward, it has limitations. The framework's success depends heavily on the LLM's ability to provide accurate medical descriptions; hallucinations or overly generic descriptions could limit performance.

Currently, the codebook is static and generated before training. The authors suggest that "iterative codebook refinement"—where the model and the LLM collaborate to improve descriptions over time—could be a promising next step. Finally, while benchmark results are strong, real-world deployment will require rigorous subgroup evaluation and clinical expert oversight to account for potential biases in the automatically generated attributes.

Summary updated

BibTeX
@inproceedings{wei2026rethinking,
  author = {Yipan Wei and Wenke Huang and Yapeng Li and He Li and Qixin Zhang and Mang Ye and Bo Du},
  title = {{Rethinking Federated Prompt Learning for Medical Images: From Textual Tuning to Visual Manifold Anchoring}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=3LymHCdeRd},
}
Figure