ScaLearn: Simple and Highly Parameter-Efficient Task Transfer by Learning to Scale

Markus Frohmann, Carolin Holtermann, Shahed Masoudian, Anne Lauscher, Navid Rekabsaz

Abstract

ScaLearn is a two-stage multi-task learning (MTL) framework designed for highly parameter-efficient knowledge transfer. By replacing complex attention mechanisms with simple learnable scaling coefficients for pre-trained adapters, ScaLearn achieves state-of-the-art performance across diverse benchmarks including GLUE, SuperGLUE, and HumSet. Notably, ScaLearn variants can outperform established methods like AdapterFusion while utilizing as few as 8 parameters per target task, demonstrating exceptional effectiveness in data-scarce, few-shot scenarios.

Introduction

Multi-task learning (MTL) aims to improve model generalization by sharing knowledge across related tasks. However, traditional joint MTL often suffers from "task interference," where simultaneous training on multiple objectives leads to performance degradation. Two-stage MTL approaches, such as AdapterFusion, mitigate this by first training task-specific adapters and then learning a fusion layer to combine them for a target task. While effective, these fusion layers are often parameter-heavy—AdapterFusion, for instance, introduces millions of parameters through its attention mechanism. This overhead contradicts the goals of modular, reusable, and "Green" AI.

ScaLearn addresses this by introducing a minimalist scaling mechanism that significantly reduces the parameter overhead of task transfer while maintaining or exceeding the performance of more complex architectures.

Methodology

The core innovation of ScaLearn is the realization that complex attention is not necessary for effective knowledge transfer; simple linear scaling of source adapter outputs suffices. The process involves:

  1. Source Modules: Utilizing frozen, pre-trained adapters from various source tasks.
  2. Scaling Mechanism: For a given target task, ScaLearn learns scaling coefficients ($\omega$) applied to the output of each source adapter. These scaled outputs are then summed.
  3. Unconstrained Optimization: Unlike attention-based methods that use Softmax to constrain weights to sum to one, ScaLearn allows scaling weights to vary freely. This enables the model to amplify useful knowledge or dampen irrelevant information without artificial constraints.

The authors propose four variants to balance performance and efficiency:

  • ScaLearn: Learns a scaling vector for every adapter in every layer.
  • ScaLearnUniform: Learns a single scalar per adapter per layer.
  • ScaLearn++: Shares a scaling vector for each adapter across all layers.
  • ScaLearnUniform++: Shares a single scalar for each adapter across all layers, requiring only $|S| \times |T|$ parameters (where $S$ is the number of source tasks and $T$ is the number of target tasks).

Experimental Results

The researchers evaluated ScaLearn across GLUE, SuperGLUE, and HumSet (multilingual humanitarian response) benchmarks using RoBERTa and XLM-R backbones.

Performance vs. parameter efficiency on GLUE and SuperGLUE. ScaLearn variants (stars) achieve higher metrics with significantly fewer updated parameters compared to joint MTL and STL baselines.

As shown in Figure 1, ScaLearn variants occupy the top-left quadrant of the performance-efficiency trade-off, indicating superior accuracy with minimal parameter updates. In a setup with 8 tasks, ScaLearn adds only ~0.5M parameters (0.47%) compared to AdapterFusion’s ~170M (136.4%).

Few-Shot Transfer

ScaLearn demonstrates a significant advantage in data-scarce environments.

Few-shot performance comparison on GLUE, SuperGLUE, and HumSet. ScaLearn consistently maintains a performance lead over AdapterFusion and standard Adapters as the number of training samples decreases.

As illustrated in Figure 2, ScaLearn consistently outperforms AdapterFusion and standard adapters across all benchmarks in few-shot settings. On GLUE with only 32 training samples, ScaLearn achieved an average score of ~63.4, while AdapterFusion trailed at ~59.9 and standard adapters at ~51.9. This suggests that the simple scaling mechanism is less prone to overfitting in low-data regimes compared to complex attention layers.

Discussion and Conclusion

ScaLearn presents a compelling argument for simplicity in model design. Key insights include:

  • Scaling is Sufficient: Linear scaling is more effective than complex attention for task transfer, avoiding the "destructive" interference of joint training.
  • Freedom from Softmax: Allowing weights to vary freely provides the model with more flexibility to navigate the knowledge space of source adapters.
  • Extreme Efficiency: The ability to perform competitively with as few as 8 parameters per target task (in the Uniform++ variant) marks a significant advancement in Parameter-Efficient Fine-Tuning (PEFT).

While current results focus on encoder-only models, future work will explore the applicability of ScaLearn to decoder-only (GPT-style) architectures and other PEFT modules like LoRA or (IA)³. Overall, ScaLearn proves that a "less is more" approach to parameters can lead to more robust and efficient transfer learning.

Summary updated

BibTeX
@inproceedings{frohmann2024scalearn,
  author = {Markus Frohmann and Carolin Holtermann and Shahed Masoudian and Anne Lauscher and Navid Rekabsaz},
  title = {{ScaLearn: Simple and Highly Parameter-Efficient Task Transfer by Learning to Scale}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.699},
}
Figure