Parameter-Efficient Fine-Tuning without Introducing New Latency

Baohao Liao, Yan Meng, Christof Monz

Introduction

Fine-tuning large pre-trained language models (PLMs) for downstream tasks has become a standard paradigm in Natural Language Processing. However, as models grow, the storage and communication overhead of full fine-tuning (FFT) becomes prohibitive. Parameter-Efficient Fine-Tuning (PEFT) methods like Adapters or LoRA address this by updating only a small fraction of parameters. Yet, these methods often introduce two significant drawbacks: increased inference latency due to additional layers and the need for task-specific masks or structures that complicate deployment in decentralized settings like Federated Learning.

This paper introduces two novel PEFT strategies, PaFi (Pruning-and-Finetuning) and HiWi (Hides the Weights), designed to achieve state-of-the-art performance with zero additional inference latency and minimal storage requirements.

Methodology

PaFi: Task-Agnostic Sparse Fine-Tuning

PaFi is a sparse fine-tuning method that identifies a subset of existing parameters to update. Unlike previous sparse methods that rely on complex, data-dependent gradient calculations (e.g., FISH Mask), PaFi utilizes a "Bottom-k" magnitude approach.

The core hypothesis is that parameters with the largest absolute magnitudes represent essential, generic language features learned during pre-training. In contrast, parameters with the smallest magnitudes are less critical to the base model's foundational knowledge and are thus more flexible for adaptation. By selecting the $k$ smallest weights to form a mask, PaFi creates a task-agnostic and data-less selection process. This mask can be generated once for a base model and reused across all downstream tasks, significantly simplifying the fine-tuning pipeline.

HiWi: Infused Weight Adaptation

HiWi is an "infused" fine-tuning method that draws inspiration from LoRA but modifies where the adaptation occurs. Instead of applying adapters to the hidden representations (activations), HiWi applies them directly to the pre-trained weights or biases.

During training, the adapter learns a delta ($\Delta W$). Once training is complete, this delta is mathematically merged into the original parameters ($W_{new} = W + \Delta W$). Because the adapter is merged, it is effectively "hidden" during inference, resulting in a standard model architecture with no additional layers or latency. When applied specifically to biases, HiWi achieves extreme storage efficiency, requiring as little as 0.03% of the storage of a full model while maintaining high performance.

Experimental Results

The authors evaluated PaFi and HiWi across the GLUE benchmark, a custom "VariousGLUE" suite (covering classification, ranking, and regression), and the WMT 2016 English-to-Romanian translation task.

Performance and Efficiency

PaFi demonstrated remarkable efficacy, achieving an average score of 89.3 on GLUE—matching the performance of Full Fine-Tuning while updating only 0.5% of the parameters. In the WMT En-Ro translation task, PaFi (38.3 BLEU) actually outperformed FFT (37.3 BLEU), suggesting that sparse updates can act as a beneficial regularizer to prevent overfitting in complex sequence-to-sequence generation.

HiWi proved to be exceptionally storage-efficient. With a rank of $r=16$, HiWi achieved a score of 88.2 on VariousGLUE, outperforming both LoRA and standard Adapters. Most notably, it required only 0.03% of the storage capacity needed for a full model update, making it an ideal candidate for resource-constrained environments.

Latency Comparison

A critical advantage of both proposed methods is the elimination of inference overhead. While standard Pfeiffer Adapters can increase inference time by over 13% in complex generation tasks, PaFi and HiWi introduce 0ms of additional latency compared to the base model.

Conclusion and Future Work

PaFi and HiWi represent a significant step forward in making PEFT more practical for real-world deployment. By leveraging weight magnitude for task-agnostic masking and weight-merging for zero-latency adaptation, these methods resolve the traditional trade-offs between efficiency and speed.

Future research will focus on reducing the training-time computational requirements for sparse fine-tuning—as PaFi currently requires full gradient calculations—and exploring the application of these methods to broader domains, such as multi-modal models and large-scale summarization tasks.

Summary updated

BibTeX
@inproceedings{liao2023parameter,
  author = {Baohao Liao and Yan Meng and Christof Monz},
  title = {{Parameter-Efficient Fine-Tuning without Introducing New Latency}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.233},
}
Figure