Abstract
As pre-trained language models (PLMs) grow in size, full fine-tuning becomes computationally prohibitive. Parameter-efficient language model tuning (PELT) methods offer a solution by training a small subset of parameters. However, different PELT methods exhibit varying performance across different tasks. We introduce UniPELT, a framework that integrates Adapters, Prefix-tuning, and LoRA into a single architecture. By employing a learned gating mechanism to dynamically activate submodules, UniPELT achieves state-of-the-art performance in low-resource settings, outperforming individual methods while maintaining high parameter efficiency.
Introduction
The current paradigm of "full fine-tuning" for every downstream task is increasingly unsustainable as models reach hundreds of billions of parameters. While PELT methods like Adapters or LoRA mitigate this by training only a small "sidecar" of parameters, they suffer from a "no free lunch" problem: no single method is optimal for all tasks. Selecting the right method typically requires exhaustive manual experimentation. UniPELT addresses this by unifying multiple PELT strategies into a single, adaptive framework.
The UniPELT Framework
UniPELT incorporates three representative PELT submodules into each Transformer layer:
- Adapters: Small bottleneck layers inserted after the feedforward network.
- Prefix-tuning: Trainable vectors prepended to the multi-head attention inputs.
- LoRA (Low-Rank Adaptation): Trainable low-rank matrices added to Query and Value projections.
The core of UniPELT is its Gating Mechanism ($G$). For each submodule, a small linear layer produces a scaling factor between 0 and 1 based on the current input. This allows the model to dynamically weight the contribution of each method per sample and per layer.
Experimental Setup
We evaluated UniPELT on the GLUE benchmark, covering eight diverse tasks including sentiment analysis (SST-2), linguistic acceptability (CoLA), and natural language inference (MNLI, QNLI, RTE). To test robustness, we focused on low-resource settings with $K \in \{100, 500, 1000\}$ training samples, where PELT methods typically show high variance.
Results and Analysis
UniPELT consistently outperforms individual PELT methods and full fine-tuning across most tasks and data regimes.
Key Insights
- Synergy and Robustness: UniPELT often exceeds the performance of the best individual method for a given task. This suggests that the submodules capture complementary information. Furthermore, the gating mechanism provides stability; if one submodule (like Prefix-tuning) fails to converge in a low-data setting, the gate can bypass it.
- Efficiency: UniPELT (APL version) utilizes only ~1.26% of the trainable parameters of the original model. Despite the added complexity, it trains 30–50% faster than full fine-tuning.
- Granular Control: Gates are learned per layer, allowing the model to specialize different layers for different functions (e.g., early layers for feature extraction via Prefix-tuning and later layers for reasoning via Adapters).
Discussion
While UniPELT offers significant gains in accuracy and training efficiency, it introduces a slight inference overhead of 4–11%. While negligible for many applications, this may be a consideration for high-throughput production environments. Future work includes scaling UniPELT to models with over 100 billion parameters and exploring its utility in multi-task learning environments.
Summary updated