FedSEM: Mitigating Cross-Client Evidence Drift in Federated Multiple Instance Learning

Zhiqiang Kou, Beidi Wang, Yuling Shi, Shengkun Zhu, Wei Tang, Xiaodong Gu, Jiankai Zuo, Di Jiang, Yu ZhangNeurIPS 2026

TL;DR

When hospitals collaborate to train AI on massive medical scans without sharing raw patient data, local models often get distracted by inconsistent or misleading visual clues—a problem the authors call cross-client critical evidence drift. FedSEM solves this by supplementing standard model-weight averaging with a compact, privacy-preserving "shared evidence memory" of key feature prototypes. It keeps distributed models focused on the right diagnostic needles in the haystack without blowing up communication costs or exposing raw images.

What Problem Does This Paper Address?

Imagine handing a pathologist a massive digital biopsy slide containing tens of thousands of tiny image patches, with only a single sticky note on the folder: "Cancer present." Nobody has circled the actual tumor cells. Teaching an AI under these conditions is called Multiple Instance Learning (MIL)—the slide is a "bag," the patches are "instances," and labels exist only at the bag level. To succeed, MIL models rely heavily on attention mechanisms to figure out which patches actually matter.

Because a single hospital rarely has enough diverse data, Federated Learning (FL) lets multiple institutions collaboratively train a shared model by exchanging model weights rather than private patient scans.

Here is the catch: when you combine MIL and FL, things get messy. Because different hospitals have different patient demographics and scanner quirks (data heterogeneity) and lack patch-level labels, each local model guesses what "important evidence" looks like based solely on its own quirky dataset. Hospital A’s attention mechanism might lock onto genuine tumor cells, while Hospital B’s latches onto a staining artifact. Simply averaging their neural network weights on a central server—the standard FL playbook—doesn't fix this disagreement over what counts as evidence. Yet, sharing the actual high-attention image patches to get everyone on the same page would violate privacy and choke network bandwidth.

Methods

Alongside standard parameter aggregation (FedAvg) and local model-drift constraints (FedProx), FedSEM introduces a lightweight evidence-level communication pathway built around compact prototypes.

Figure 1: Overall framework of FedSEM. On the client side, each client trains a local FedDSMIL model and selects high-attention patch embeddings as representative evidence, which are further compressed into local prototypes. On the server side, FedSEM performs global model aggregation and updates a shared evidence memory by merging, deduplicating, diversifying, and normalizing the uploaded prototypes. The shared memory is then sent back to clients to guide local attention learning and improve cross-client evidence consistency.

The pipeline unfolds in three main steps beyond standard training:

  1. Local Prototype Compression (New): On each client, the model identifies high-attention patches in positive bags (using a threshold with a top-$r$ fallback early in training). Instead of uploading raw patches or dense embeddings, the client clusters these embeddings (via DBSCAN) into a handful of attention-weighted cluster centers—prototypes—paired with average importance scores.
  2. Server-Side Memory Refinement (New): After a warm-up phase, the server pools incoming client prototypes with its previous memory and cleans house:
  3. Deduplication: Merges highly similar prototypes via cosine similarity and score-weighted averaging.
  4. Diversity Selection: Uses a $K$-center algorithm to pick $M$ prototypes that cover the evidence space, preventing common patterns from drowning out rare ones.
  5. Normalization: Applies a softmax to keep importance scores bounded.
  6. Memory-Guided Local Optimization (New + Standard): The server broadcasts this refined Shared Evidence Memory back to the clients. During local training, clients compare their patch embeddings against the shared prototypes to compute a "memory-induced evidence score," adding an alignment penalty to nudge local attention toward cross-client consensus:
The local loss function combining bag-level MIL loss, memory-guided evidence alignment, and proximal regularization.

Datasets

No new datasets were introduced, though standard MIL benchmarks were partitioned across clients using Dirichlet distributions ($\beta \in \{0.25, 0.5, 0.75\}$) to simulate varying levels of institutional data heterogeneity:

  • CAMELYON16 & PANDA: Computational pathology whole-slide image benchmarks for cancer detection/grading.
  • Pascal VOC 2012 & MNIST-Bags: Natural image and synthetic MIL benchmarks used to test whether the method generalizes beyond pathology.

Key Insights and Ideas

  • Weight averaging doesn't align attention: Ablation studies show that constraining parameter drift (like FedProx) yields only modest gains because models with similar weights can still attend to wildly different instances. Explicitly aligning evidence is what unlocks major jumps in accuracy.
  • Less is more on the server: Broadcasting raw uploaded prototypes without server-side filtering actually hurts performance in most settings while costing 2x–3x more bandwidth. Deduplicating and enforcing diversity via $K$-center selection turns noisy local hunches into crisp, reliable anchors.
  • Theoretical stability: Non-convex convergence analysis (Theorem 1) proves that introducing a dynamic shared memory doesn't derail federated optimization—it maintains the standard $\mathcal{O}(1/\sqrt{T})$ convergence rate, adding only a bounded memory-drift term that vanishes as the memory stabilizes.

Key Results

FedSEM achieves the best or tied-best client-side bag-level accuracy in 10 out of 12 heterogeneous settings (and ranks second in the remaining two).

Table 1: Client-side bag-level ACC(%) on four federated MIL benchmarks under different hetero- geneity levels. The best results are highlighted in bold, and the second-best results are underlined.
  • Pathology gains: Under moderate heterogeneity ($\beta = 0.5$) on CAMELYON16, FedSEM hits 77.78% accuracy, jumping +9.26% over both FedAvg and FedProx (68.52%).
  • General MIL tasks: On Pascal VOC 2012 ($\beta = 0.5$), it reaches 71.14% (vs. 65.25% for FedAvg), and hits 94.00% on MNIST-Bags.
  • Efficiency win-win: Server-side refinement drastically cuts prototype communication overhead while boosting accuracy. On MNIST-Bags ($\beta = 0.5$), refinement drops the communication cost metric from 24.54 to 13.46 while lifting accuracy from 80.00% to 94.00%. Across all ablations, adding memory alignment lifts average accuracy from 74.60% (with proximal regularization alone) to 77.03%.

Limitations and Future Work

While there is no standalone limitations section, the authors note several practical trade-offs in their sensitivity and ablation analyses:

  • Extreme fragmentation: Scaling up to too many clients shrinks the local dataset per institution, making initial local evidence discovery noticeably harder.
  • Filtering trade-offs: In 3 of the 12 ablation settings (e.g., PANDA and Pascal VOC at $\beta = 0.25$), aggressive server-side prototype compression traded away ~1.8% accuracy in exchange for massive bandwidth savings.
  • Hyperparameter sweet spots: Upload budgets (Top-$K$) and alignment weights ($\lambda$) require moderate tuning—uploading too many instances injects noise into prototypes, while over-weighting alignment overly restricts local adaptation.

Future work is not explicitly discussed in the main text.

Summary updated

Abstract

Federated Multiple Instance Learning (MIFL) has emerged as a promising paradigm for privacy-preserving weakly supervised learning, particularly in medical image analysis where instance-level annotations are expensive or unavailable. Existing federated MIL methods mainly rely on parameter aggregation to learn a global model across clients. However, in MIL, the key challenge is not only client-level data heterogeneity, but also the ambiguity of instance-level evidence. Since supervision is only provided at the bag level, each client must independently infer discriminative instances through local attention mechanisms. Under heterogeneous data distributions, different clients may focus on inconsistent or even misleading instances, resulting in cross-client critical evidence drift. To address this problem, we propose FedSEM, a Federated Shared Evidence Memory framework that introduces an evidence-level communication pathway in addition to standard model aggregation. Specifically, each client identifies high-confidence evidence instances using local attention scores and compresses them into compact prototypes with importance scores. The server then refines these prototypes through redundancy removal, diversity selection, and score normalization to construct a shared evidence memory. Importantly, FedSEM does not require transmitting raw patches or dense instance embeddings; it only exchanges a small number of evidence prototypes and periodically broadcasts the refined memory, thereby introducing limited additional communication overhead compared with standard federated training. The shared memory serves as cross-client evidence anchors to guide local attention learning and instance-level representation optimization. By explicitly aligning critical evidence patterns across clients, FedSEM mitigates evidence drift while maintaining communication efficiency and privacy preservation. Extensive experiments under heterogeneous federated settings demonstrate that FedSEM consistently improves MIL performance and generalization over existing federated learning baselines.
BibTeX
@inproceedings{kou2026fedsem,
  author = {Zhiqiang Kou and Beidi Wang and Yuling Shi and Shengkun Zhu and Wei Tang and Xiaodong Gu and Jiankai Zuo and Di Jiang and Yu Zhang},
  title = {{FedSEM: Mitigating Cross-Client Evidence Drift in Federated Multiple Instance Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=XhoxhpfjPV},
}
Figure