Abstract
Federated Learning (FL) traditionally relies on a broadcast mechanism where a central server sends the entire global model to a subset of participating devices. As machine learning models scale toward billions of parameters, this approach becomes impractical for memory-constrained edge devices. We introduce Federated Select (FedSelect), a communication primitive that enables clients to download only the specific "slices" of a global model relevant to their local data or task. Our evaluation shows that FedSelect can reduce communication costs by over 10x while maintaining high accuracy, facilitating the training of large-scale models on resource-limited hardware.
Introduction
The standard paradigm in Federated Learning, exemplified by FedAvg, assumes a "one-size-fits-all" model distribution. In each training round, the server broadcasts the full model state to selected clients. However, modern architectures like Large Language Models (LLMs) often exceed the physical RAM and bandwidth capacities of smartphones and IoT devices. Furthermore, much of a large model's capacity may be redundant for a specific client; for instance, a user typing exclusively in English does not require the embedding weights for other languages in a multilingual model. FedSelect addresses these challenges by moving from global broadcasting to targeted model slicing, preserving privacy while drastically reducing resource requirements.
The Federated Select Primitive
FedSelect generalizes the communication step in FL. Instead of receiving the full model $x$, each client $n$ utilizes a set of "select keys" $z_n$ to request a specific sub-model.
Selection and Aggregation
The process is defined by two primary functions:
- Selection Function $\psi(x, z_n)$: This function extracts specific slices from the global model (e.g., rows of an embedding matrix or specific convolutional filters) based on the keys $z_n$.
- Deselection Function $\phi$: During the update phase, the server maps the sparse client updates back into the high-dimensional global model space before performing weighted averaging.
Key Selection Strategies
Clients can determine their keys using two main strategies:
- Structured Selection: Keys are derived from local data features, such as specific vocabulary tokens present in a user's text history.
- Random Selection: Keys are chosen randomly, effectively implementing a form of Federated Dropout that allows training subsets of the model to reduce memory footprint.
For complex architectures like Transformers, a "mixed" strategy often yields the best results, using structured selection for input/output embeddings and random selection for internal dense layers.
Experimental Evaluation
We evaluated FedSelect across diverse datasets and architectures to assess its efficiency and performance.
Datasets and Tasks
- Stack Overflow: Used for tag prediction (logistic regression) and next-word prediction (Transformer) to simulate heterogeneous text data.
- EMNIST: Used for image classification with CNNs and dense neural networks (2NN).
Key Results
- Communication Efficiency: On the Stack Overflow tag prediction task, FedSelect achieved a 10x reduction in the size of the model transmitted to clients with negligible impact on test recall.
- Model Scaling: For next-word prediction, the mixed selection strategy allowed for significant model size reductions while maintaining accuracy levels comparable to the full, un-sliced model.
- Architecture Sensitivity: While FedSelect performed exceptionally well on CNNs by selecting filters, it showed higher sensitivity on simple dense networks (2NN). Significant pruning in these dense layers led to sharper accuracy drops, indicating that some architectures are naturally more "slice-friendly."
Discussion and Future Work
FedSelect demonstrates that sparsity can be leveraged as a powerful tool for scaling FL. By increasing the total server model size while keeping the client-side request size ($m$) constant, researchers can improve global accuracy without increasing the computational burden on edge devices.
However, several challenges remain:
- Privacy: Structured key selection could potentially leak information about a client's local data distribution. Mitigations like Private Information Retrieval (PIR) or Secure Enclaves are possible but introduce additional overhead.
- Secure Aggregation: Standard secure aggregation protocols typically require the server to be oblivious to which indices are updated. Integrating FedSelect with these protocols is a non-trivial task that requires further research.
- Scalability of Pre-generation: While pre-computing slices for a CDN can improve anonymity, it becomes computationally expensive as the key space grows into the millions.
In conclusion, Federated Select provides a flexible and efficient framework for training large-scale models in decentralized environments, paving the way for more capable on-device AI.
Summary updated