TL;DR
FedHDS (Federated Hierarchical Data Selection) is a novel framework that makes instruction tuning for Large Language Models (LLMs) significantly more efficient by selecting only a tiny, highly representative subset of data from edge devices. By eliminating data redundancy both within and across clients without compromising privacy, it achieves a 10.72% average improvement in task generalization while using less than 1.5% of the original data, speeding up training by up to 48x.
What Problem Does This Paper Address?
Instruction tuning—fine-tuning a pretrained LLM to follow human prompts—is essential for performance, but it requires massive, diverse datasets. As public data sources dry up, researchers are looking toward private data on edge devices (phones, laptops). Federated Learning (FL) is the standard approach for this, as it allows models to learn from decentralized data without ever seeing the raw information, thus preserving privacy.
However, current FL methods for LLMs face two major hurdles:
- Extreme Inefficiency: Edge devices often have limited GPU memory, forcing them into slow "CPU+GPU hybrid" training modes. Iterating through a client's entire local dataset can take weeks or months (see Figures 1 and 2).
- Overfitting: Local data on a single device is often repetitive and narrow. Training on all of it causes the model to overfit to specific local patterns, which actually hurts its ability to generalize to new, unseen tasks.
Existing data-efficiency solutions (like "coreset" selection) are designed for centralized servers and break the privacy rules of FL.
Methods
The authors introduce FedHDS, a hierarchical approach to selecting the most "useful" data samples before training begins. The process follows these key steps (illustrated in Figure 3):
- Intra-Client Data Selection: Each client extracts features from its local data. Instead of just using the final layer of the LLM, FedHDS fuses features from all Transformer layers and uses t-SNE to reduce them to a 2D space. The client then clusters these features (using HDBSCAN) to find representative "centroids" of its local data groups.
- Inter-Client Data Selection: Clients send these low-dimensional centroids to a central server. The server clusters all received centroids to identify global redundancy—if ten clients have nearly identical data groups, the server only picks the most representative ones.
- Coreset Training: The server notifies clients which of their data groups were selected. Clients then perform standard FL training (using LoRA) only on the tiny subset of data closest to those selected centroids.
- FedHDS-Turbo: To further boost speed, the authors propose using a small, fixed "proxy" model (like a 124M parameter GPT-2) for feature extraction instead of the massive target LLM.
Datasets
The framework was evaluated on two major benchmarks:
- Natural Instructions (NI): A massive collection of 738 training tasks and 119 test tasks, used to test generalization to completely new types of instructions.
- Dolly-15K: A dataset of 15,000 human-generated instructions, partitioned across 200 simulated clients to mimic real-world data distribution skew (non-IID).
Key Insights and Ideas
- "Less is More" for Generalization: The most striking finding is that training on <1.5% of the data actually yields better results than training on 100%. By pruning redundant data, FedHDS prevents the model from getting "stuck" on local biases, allowing it to learn broader, more useful instruction-following patterns.
- Multi-Layer Feature Fusion: Most prior work only looks at the final layer of a model to understand data. The authors show that different layers capture different levels of abstraction, and fusing them creates a much clearer "map" for distinguishing unique data samples (see Figure 4).
- Privacy-Preserving Redundancy Check: By only sharing 2D centroids rather than raw data or high-dimensional embeddings, FedHDS identifies global data overlaps while maintaining a high privacy bar. The authors even demonstrate that adding Gaussian noise to these centroids (Differential Privacy) maintains strong performance.
Key Results
- Accuracy Boost: FedHDS improved the Rouge-L score (a measure of text similarity) on unseen tasks by an average of 10.72% compared to the state-of-the-art full-data federated baseline (FedIT).
- Massive Speedup: Because the model trains on so few samples, the total training time dropped drastically. FedHDS-Turbo achieved a 48.8x speedup on the Natural Instructions dataset.
- Data Efficiency: The system achieved these gains while consuming less than 1.5% of the available data samples across all tested scenarios.
Limitations and Future Work
The authors acknowledge that FedHDS selects data based on how representative it is, but it doesn't explicitly check for quality. If a client has a unique but nonsensical or "noisy" data sample, FedHDS might still select it because it looks different from everything else.
Future Work: The researchers suggest integrating quality-filtering mechanisms (e.g., scoring samples for clarity or correctness) into the hierarchical selection process to ensure the small coreset is not just diverse, but also high-quality.
Summary updated