One Network, Many Masks: Towards More Parameter-Efficient Transfer Learning

Guangtao Zeng, Peiyuan Zhang, Wei Lu

Introduction

Fine-tuning Large Language Models (LLMs) for specific downstream tasks has become a standard practice in NLP. However, as models grow to billions of parameters, saving a full copy of the weights for every new application is prohibitively expensive. Parameter-Efficient Transfer Learning (PETL) methods, such as Adapters, LoRA, and Prefix-tuning, were designed to mitigate this by training only a tiny fraction of additional parameters.

Despite their efficiency, standard PETL implementations still face a scaling bottleneck: they typically insert unique parameters into every layer of a transformer for every new task. As models deepen and task counts rise, the cumulative storage overhead remains significant. This paper introduces PROPETL, a framework that asks: Can we reuse the same small set of parameters across the entire model and across different tasks without losing the ability to specialize?

The PROPETL Framework

PROPETL (Prototype Parameter-Efficient Transfer Learning) achieves extreme efficiency by decoupling the weight values from the network structure. It relies on two main components:

  1. Shared Prototype Network: Instead of deploying unique adapters for each of the 12 or 24 layers in a transformer, PROPETL uses a single "prototype" module shared globally across all layers and tasks.
  2. Learnable Binary Masks: To enable layer-specific specialization, PROPETL learns a 1-bit binary mask for each layer. This mask prunes the shared prototype into a unique sub-network optimized for that specific layer's role.
The PROPETL architecture sharing a single prototype across multiple layers via layer-specific binary masks.

Training and Multi-Task Integration

During training, the authors utilize the "edge-popup" algorithm. They maintain latent floating-point scores for each connection but only activate the top-$k\%$ highest-scoring weights to generate the binary mask during the forward pass.

In multi-task scenarios, the model learns both a "layer mask" and a "task mask." These are combined using a logical OR operation to create a hybrid mask. This approach ensures that a parameter is active if it contains either relevant layer-specific or task-specific information, effectively capturing complex structural dependencies with minimal overhead.

Experimental Setup

The authors evaluated PROPETL across diverse benchmarks and architectures to demonstrate its versatility:

  • Benchmarks: GLUE (8 NLU tasks), XSum (summarization), and WMT16 (translation).
  • Backbone Models: RoBERTa-base, T5-base, and the massive T5-3B.
  • Metric: The study focuses on Bit-Level Storage (BLS), highlighting that while prototype weights are 32-bit, the masks are only 1-bit, leading to massive storage savings.

Key Results

PROPETL demonstrates that the topology of a sub-network is often as important as the weight values themselves. By strategically dispatching different parts of a single prototype, the model maintains high representational power while drastically reducing its footprint.

  • Storage Efficiency: On GLUE, PROPETL-Adapter achieved an average score of 86.60—outperforming fully fine-tuned RoBERTa-base (86.16)—while requiring only 0.11% of the storage of a full model. This represents a 90% reduction in storage compared to standard adapters.
  • Extreme Scaling: When applied to T5-3B, PROPETL maintained a high GLUE score of 89.02 using a mere 0.0016% bit-level storage per task.
  • Performance Gains: Interestingly, PROPETL often outperformed its "dense" PETL counterparts. For instance, it improved the average score of standard adapters by nearly a full point on GLUE, suggesting that the pruning process may act as a beneficial regularizer.
Performance vs. storage efficiency on the GLUE benchmark, comparing PROPETL to standard adapters and full fine-tuning.

Discussion and Limitations

While PROPETL offers significant storage advantages, it involves certain trade-offs. The training phase does not currently see memory savings, as the model must track floating-point scores to generate the discrete masks. Additionally, the complexity of learning these structures can lead to slower convergence compared to standard fine-tuning.

Despite these challenges, PROPETL is highly orthogonal; it can be applied to various PETL methods like LoRA or Prefix-tuning. Future work may explore applying this "one network, many masks" philosophy during the initial pre-training phase to create inherently more efficient foundation models from the start.

Summary updated

BibTeX
@inproceedings{zeng2023one,
  author = {Guangtao Zeng and Peiyuan Zhang and Wei Lu},
  title = {{One Network, Many Masks: Towards More Parameter-Efficient Transfer Learning}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2023},
  doi = {10.18653/v1/2023.acl-long.418},
}
Figure