Federated Learning (FL) typically assumes clients possess substantial local datasets. However, in many real-world applications, users may only have a handful of examples for specific tasks. This paper introduces F2L (Federated Few-shot Learning), a framework designed to address the challenges of extreme data scarcity and non-IID distributions through a decoupled model architecture and bidirectional knowledge transfer.
The Challenge of Few-shot Federated Learning
Standard FL aims to train a global model by aggregating updates from numerous clients. In "few-shot" scenarios—where clients may have as few as 1 or 5 labeled examples—this approach encounters two primary obstacles:
- Global Data Variance (Non-IID): Diverse data distributions across clients mean that simple model averaging often "washes out" the specialized meta-knowledge (the ability to adapt quickly to new tasks) developed by individual clients.
- Local Data Insufficiency: Individual clients lack the data variety necessary to build robust models for novel, unseen classes.
F2L bridges the gap between centralized few-shot learning and standard federated learning, enabling collaborative learning even under these constrained conditions.
The F2L Framework
The authors propose three core strategies to enable effective federated few-shot learning:
1. Decoupled Meta-Learning
Instead of a single shared model, F2L maintains two distinct models per client: a Client-model ($\psi$) and a Server-model ($\phi$). The Client-model remains local to preserve task-specific meta-knowledge, while only the Server-model is uploaded for global aggregation. This decoupling prevents the averaging process from disrupting the local adaptation process.
2. Local-to-Global Knowledge Transfer
To ensure the global model benefits from local expertise without compromising privacy, F2L employs Mutual Information (MI) Maximization. This process encourages the Server-model’s representations to align with the Client-model’s specialized features, effectively transferring knowledge from the local "expert" to the global "generalist."
3. Global-to-Local Knowledge Distillation
To assist data-poor clients, F2L implements Partial Knowledge Distillation. Clients distill knowledge from the aggregated Server-model, focusing specifically on the classes relevant to their current local task. An Adaptive Temperature Parameter is used to filter out noise from irrelevant global classes.
Experimental Evaluation
The framework was evaluated on four benchmarks across text and image domains:
- Text: 20 Newsgroup and Huffpost.
- Images: FC100 and miniImageNet.
Experiments were conducted in both IID and Non-IID settings to simulate realistic data heterogeneity.
Key Results
F2L consistently outperformed established baselines such as FL-MAML, FL-Proto, and FedFSL.
- Accuracy: On the Huffpost dataset (Non-IID, 5-way 1-shot), F2L achieved 41.64% accuracy, a significant improvement over the next best baseline (37.86%).
- Scalability: F2L demonstrated superior robustness as the number of clients increased. While other methods degraded rapidly as per-client data became scarcer, F2L effectively leveraged global knowledge to maintain performance.
- Ablation Studies: Removing any component (Decoupling, MI Transfer, or Distillation) resulted in performance drops, validating the necessity of the integrated approach.
Discussion and Insights
The success of F2L highlights that in few-shot settings, aggregation is a double-edged sword. While it provides collective intelligence, it can also act as noise that destroys delicate local meta-knowledge. Decoupling the models allows the system to enjoy the benefits of both local specialization and global generalization.
Furthermore, the Client-model is designed to be computationally efficient, processing representations rather than raw data, making it suitable for resource-constrained mobile devices.
Conclusion and Future Work
F2L provides a robust solution for federated learning in data-starved environments. Future research directions include optimizing communication overhead, auditing the privacy implications of MI maximization, and testing the framework against real-world domain shifts.
Summary updated