Abstract
Fine-tuning large-scale language models for specific downstream tasks is computationally demanding. Parameter-Efficient Fine-Tuning (PEFT) methods like Adapters and LoRA mitigate this, but multi-task learning (MTL) often suffers from task interference. We introduce HyperLoader, a framework that utilizes a hypernetwork to dynamically generate weights for both Adapters and LoRA modules within a Transformer backbone. By conditioning these weights on task, layer, and position embeddings, HyperLoader achieves state-of-the-art performance in sequence labeling. Our results demonstrate that HyperLoader is particularly effective in data-scarce environments, outperforming existing baselines while utilizing only 2.95% of trainable parameters.
Introduction
The proliferation of massive pre-trained language models has necessitated efficient adaptation strategies. While PEFT methods like Adapters and Low-Rank Adaptation (LoRA) allow for task-specific tuning with minimal parameter updates, deploying them in a multi-task setting remains challenging. Standard MTL approaches often encounter "task interference," where the learning objectives of different tasks conflict, potentially degrading performance on low-resource datasets. HyperLoader addresses this by using a hypernetwork to manage task-specific specialization and cross-task knowledge sharing.
Methodology
HyperLoader integrates two prominent PEFT techniques—Adapters and LoRA—into a unified architecture controlled by a hypernetwork.
The Hypernetwork Architecture
Instead of maintaining static weights for each task, HyperLoader employs a centralized hypernetwork to generate weights for the PEFT modules on the fly. This generation process is conditioned on three primary inputs:
- Task Embedding: A unique vector representing the specific dataset.
- Layer Embedding: Information regarding the module's depth within the Transformer stack.
- Position Embedding: The specific location within a layer (e.g., post-attention vs. post-feed-forward).
Backbone and Input Format
The framework utilizes the T5 (Text-to-Text Transfer Transformer) as the backbone model. To adapt T5 for sequence labeling tasks such as Named Entity Recognition (NER) and slot-filling, the authors employ the SentT’ format. This format converts sequence labeling into a text-to-text generation task using sentinel tokens to demarcate entities and their corresponding labels.
Experimental Setup
HyperLoader was evaluated across seven diverse sequence labeling datasets, covering domains from flight bookings to restaurant amenities:
- Slot-filling: ATIS, SNIPS, mTOP, and mTOD.
- NER: MIT Movie, MIT MovieTrivia, and MIT Restaurant.
Results and Discussion
HyperLoader demonstrates superior performance across multiple metrics and data regimes.
Performance and Efficiency
The model achieved a state-of-the-art average micro-F1 score of 0.8811 across all datasets. Notably, it maintains this lead while remaining highly parameter-efficient, requiring only 2.95% of the total model parameters to be trainable.
Robustness in Low-Resource Settings
One of the most significant findings is HyperLoader's robustness when training data is scarce. In scenarios with only 10% of the training data, HyperLoader achieved an average F1 of 0.8331, significantly outperforming competitive baselines like UniPELT and LoRA-tuned T5.
Complementary PEFT Modules
The results suggest that LoRA and Adapters are complementary: LoRA effectively adapts the self-attention mechanism, while Adapters specialize the feed-forward blocks. The hypernetwork acts as a "knowledge traffic controller," allowing the model to share general linguistic patterns while isolating task-specific nuances.
Conclusion
HyperLoader provides a scalable and efficient solution for multi-task sequence labeling. By leveraging a hypernetwork to generate weights for hybrid PEFT modules, it effectively mitigates task interference and excels in low-resource conditions. Future work will explore curriculum learning strategies and incremental task addition to further enhance the framework's flexibility and convergence speed.
Summary updated