Assortment of Attention Heads: Accelerating Federated PEFT with Head Pruning and Strategic Client Selection

Yeshwanth Venkatesha, Souvik Kundu, Priyadarshini Panda

Abstract: Parameter Efficient Fine-Tuning (PEFT) has become the de facto approach in adapting Large Language Models (LLMs) for downstream tasks in Natural Language Processing. However, its adoption in privacy-preserving distributed learning frameworks, such as Federated Learning (FL), remains relatively limited. This is mainly due to challenges specific to FL, such as resource-constrained devices and diverse data distributions among clients. In this paper, we propose an efficient method to perform PEFT within the FL framework for Multi-Head Attention (MHA) based language models. We address the challenges through head pruning, a novel head-specific weighted aggregation mechanism, and a client selection strategy. Head pruning minimizes training complexity within the clients, guided by the importance score computed based on the confidence of the attention head. Weighted aggregation of heads ensures the global model captures crucial updates from diverse clients, complementing our client selection strategy. We show results on the MultiNLI benchmark along with 20 Newsgroups, XL-Sum, and E2E NLG datasets. We use the MultiNLI dataset and T5-small model with LoRA as our PEFT method, attaining sparsity levels of up to 90%, resulting in a communication advantage of up to 1.8x and a reduction in training OPs of 3.9x while maintaining the accuracy drop under 2%.

Introduction

Fine-tuning Large Language Models (LLMs) is computationally expensive. While Parameter-Efficient Fine-Tuning (PEFT) methods like LoRA reduce the number of trainable parameters, deploying them in a Federated Learning (FL) environment—where models are trained across many decentralized edge devices—remains a massive challenge.

Edge devices, such as smartphones and voice assistants, are often severely resource-constrained in terms of battery, processing power, and bandwidth. Furthermore, data in FL is typically "non-IID," meaning every user has a different data distribution (e.g., formal vs. casual language). Standard FL algorithms like FedAvg treat all model updates equally and fail to account for the fact that certain parts of a transformer model—specifically specific attention heads—might be redundant or highly specialized to specific local data.

Methodology

The proposed framework optimizes Federated PEFT through a three-pronged strategy designed to mitigate client-side, network, and server-side challenges:

  1. Head Pruning: Instead of training all attention heads, each client calculates an "importance score" for its heads based on their maximum attention scores (a proxy for "confidence"). Heads below a certain threshold are pruned, significantly reducing local computation and the volume of data transmitted.
  2. Weighted Aggregation: On the server side, the global model is updated using a novel head-specific weighted aggregation mechanism. Updates are weighted by the importance scores sent by clients, ensuring the global model prioritizes the most "knowledgeable" heads for specific data patterns.
  3. Strategic Client Selection: Rather than picking clients at random, the server selects those with the highest "loss disparity"—the difference between the global model's loss ($L_g$) and the client's local loss ($L_c$). This prioritizes clients with the most novel information to contribute, accelerating convergence.
Overview of the proposed Federated PEFT framework featuring head pruning, weighted aggregation, and strategic client selection.

Experimental Evaluation

The researchers evaluated their method across a diverse set of NLP tasks including classification (MultiNLI, 20 Newsgroups), summarization (XL-Sum), and generation (E2E NLG). They tested these using various backbone architectures, including T5-small/base, BART-base, DistilBERT, RoBERTa, and GPT-2 Small, primarily using LoRA as the underlying PEFT method.

Performance comparison of the proposed method against baselines on the MultiNLI dataset.

As shown in the results, the method achieved significant efficiency gains. On the MultiNLI dataset, it reached 90% head sparsity, leading to a 1.8x communication advantage (1.86MB vs 3.38MB) and a 3.9x reduction in training OPs (8.47G vs 33.07G). Despite this massive pruning, the accuracy drop was maintained under 2% compared to a dense baseline. Furthermore, the strategic client selection allowed the model to reach target accuracy thresholds significantly faster than random pruning baselines (e.g., 11 rounds vs. 17 rounds).

Discussion and Conclusion

The importance scores of attention heads act as a "fingerprint" of a client's local data distribution, allowing for a more nuanced aggregation than standard averaging. The results confirm that transformer models are highly over-parameterized for specific downstream tasks, as up to 90% of heads could be pruned with minimal performance loss. While pruning reduces the cost per client, strategic client selection ensures that the right clients are being trained, helping the model "catch up" on difficult or diverse data points that random selection might miss.

Future work could explore combining head pruning with other techniques like token pruning or weight quantization, and extending the evaluation to other modalities like Vision Transformers (ViTs).

Summary updated

BibTeX
@article{venkatesha2025assortment,
  author = {Yeshwanth Venkatesha and Souvik Kundu and Priyadarshini Panda},
  title = {{Assortment of Attention Heads: Accelerating Federated PEFT with Head Pruning and Strategic Client Selection}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=WFpicZbAHe},
}
Figure