Introduction
Instruction tuning is the critical process that transforms base Large Language Models (LLMs) into helpful assistants capable of following human commands. As high-quality public datasets become increasingly scarce, developers are turning toward Federated Learning (FL) to leverage the vast amounts of private data residing on edge devices like smartphones and laptops. FL allows models to train locally on these devices, sharing only model updates to preserve user privacy.
However, standard federated instruction tuning faces two significant hurdles. First, edge devices typically possess limited compute and memory, making full-dataset training prohibitively slow. Second, local data is often highly redundant and skewed toward specific user habits (e.g., a user who only writes code), which can cause the model to overfit to local quirks and fail to generalize to broader tasks.
The FedHDS Framework
To address these challenges, this research introduces FedHDS (Federated Hierarchical Data Selection). Instead of training on all available local data, FedHDS identifies a tiny, highly representative subset (less than 1.5%) of the total data across all clients. This approach not only accelerates training but also improves the model's ability to generalize by filtering out redundant information.
Hierarchical Selection Process
The FedHDS methodology consists of three primary stages:
- Intra-Client Selection (Local): Unlike standard methods that only use the LLM's final layer for feature extraction, FedHDS fuses features from all Transformer layers to capture a richer representation of the data. It then employs HDBSCAN clustering to group similar local samples and calculates a 2D "centroid" for each group.
- Inter-Client Selection (Global): Clients transmit only these low-dimensional centroids to a central server. The server clusters these global centroids to identify overlapping data types across the entire network, notifying clients which specific clusters are unique and valuable for training.
- FedHDS-Turbo: To minimize the computational overhead of feature extraction on edge devices, the authors propose a "Turbo" variant that uses a small proxy model (e.g., GPT-2 124M) to perform the initial data evaluation, significantly reducing pre-training latency.
Performance and Efficiency
Evaluations on the Natural Instructions (NI) and Dolly-15K datasets demonstrate that FedHDS consistently outperforms standard federated tuning baselines. By selecting only the most informative samples, FedHDS achieved an average 10.72% improvement in Rouge-L scores on unseen tasks compared to training on the full dataset.
The efficiency gains are equally dramatic. FedHDS-Turbo achieved up to a 48.8x speedup in total training time. In one experiment with a 1.3B parameter model on the NI dataset, training time was slashed from over eight days to just four hours. Furthermore, the communication overhead for sharing 2D centroids is negligible, typically requiring less than 100 bytes per round.
Conclusion and Future Work
FedHDS proves that in the context of federated instruction tuning, "less is more." By intelligently selecting a fraction of the available data, the framework overcomes the hardware limitations of edge devices while simultaneously mitigating the risks of local overfitting.
A noted limitation of the current approach is "quality blindness," as the selection is based on representativeness rather than the inherent quality or correctness of the text. Future research aims to integrate quality-based filtering to ensure that the selected data subsets are both diverse and high-quality.
Summary updated