Parameter-efficient Weight Ensembling Facilitates Task-level Knowledge Transfer

Xingtai Lv, Ning Ding, Yujia Qin, Zhiyuan Liu, Maosong Sun

Introduction

The rapid advancement of Pre-trained Language Models (PTMs) has revolutionized natural language processing, yet the computational cost of fine-tuning these massive models for every new task remains a significant barrier. Parameter-efficient tuning (PET) methods, such as Adapters, LoRA, and Prefix-tuning, have emerged as a solution by updating only a small fraction of parameters. While these "lightweight objects" are highly portable and easy to share, the research community has lacked a systematic way to leverage the knowledge stored within existing modules to accelerate learning on new, low-resource tasks.

This paper addresses the challenge of task-level knowledge transfer. The core objective is to automatically identify and combine the most relevant existing modules from a library to provide a superior initialization for a new task, moving beyond simple random initialization or manual selection.

The Parameter-efficient Weight Ensembling Framework

The authors propose a "soft selection" ensembling framework designed to create an optimized starting point ($O_{new}$) for new tasks. Rather than selecting a single best-matching module, the framework computes a weighted average of all existing modules ($O_i$) in the library:

$$O_{new} = \sum_{i=1}^{n} \text{Softmax}(S_i / \tau) \cdot O_i$$

Overview of the Parameter-efficient Weight Ensembling framework, illustrating how existing task modules are combined based on similarity indicators to initialize a new task.

The effectiveness of this approach hinges on the similarity indicator ($S_i$), which determines the relative weight of each module. The researchers investigated five distinct data-driven and weight-based indicators:

  1. Loss: Measures the zero-shot CrossEntropy loss of an existing module on the new task's data.
  2. KL-divergence: Compares output probability distributions between an existing module and a "pilot" module briefly trained on the target task.
  3. EL2N: Calculates the Euclidean distance between predicted probabilities and ground-truth labels.
  4. Cosine of Logits and Labels: Uses cosine similarity between the model's predictions and the actual labels.
  5. GraNd (Gradient Norm): A weight-based metric calculating the norm of gradients to estimate the adaptation required.

Experimental Evaluation

The framework was rigorously tested across a diverse suite of 51 downstream tasks, all converted into a unified text-to-text format. This included 32 Question Answering (QA) tasks from the CrossFit Gym benchmark and 19 other diverse tasks covering sentiment analysis, natural language inference (NLI), fact-checking, and summarization. The experiments utilized T5-base and T5-large as backbone models to evaluate scalability.

Key Results and Insights

The proposed ensembling methods consistently outperformed standard baselines, including training from scratch, simple averaging of all checkpoints, and manual task selection. Across the 51 tasks, the authors achieved a 5%–8% performance improvement over standard baselines.

Performance comparison of various ensembling methods against baselines for T5-base and T5-large models.

Data-Driven Indicators vs. Weight-Based Metrics

A primary finding was that indicators relying on data relationships (like Cosine of Logits and Labels) significantly outperformed weight-based indicators like GraNd. This suggests that task-relevant features are more effectively captured through input-output relationships than through raw parameter gradients. The "Cosine of Logits and Labels" method emerged as the most robust performer, yielding average improvements of 5.5% for Adapters and 4.5% for LoRA on QA tasks.

The Power of Soft Selection

Simple averaging of previous checkpoints often fails because it introduces noise from irrelevant tasks. The Softmax-based weighting mechanism acts like an attention mechanism, effectively filtering out "noise" and focusing on the most relevant "expert" modules. This selective transfer is crucial for maintaining high performance across diverse task sets.

Model Scalability and Efficiency

The benefits of weight ensembling were more pronounced when using T5-large compared to T5-base, indicating that larger models possess a higher capacity to integrate and benefit from transferred knowledge. Furthermore, the process is highly efficient; generating a new initialization takes approximately 15 minutes on a single NVIDIA A100 GPU, making it a practical "plug-and-play" addition to standard training pipelines.

Conclusion and Future Directions

This work demonstrates that parameter-efficient weight ensembling is a robust and efficient strategy for cross-task knowledge transfer. While data-driven indicators are highly effective, the authors noted that extracting useful information directly from weights (the GraNd method) remains challenging, suggesting that weight-space knowledge may be too "covert" for simple linear combinations.

Future research could extend this framework to multi-modal tasks or non-generative architectures. Additionally, exploring finer-grained module ensembling—such as at the level of individual attention heads—might unlock even more precise pathways for knowledge transfer in large-scale pre-trained models.

Summary updated

BibTeX
@inproceedings{lv2023parameter,
  author = {Xingtai Lv and Ning Ding and Yujia Qin and Zhiyuan Liu and Maosong Sun},
  title = {{Parameter-efficient Weight Ensembling Facilitates Task-level Knowledge Transfer}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-short.24},
}
Figure