While standard adapter tuning maintains efficiency by freezing pre-trained language models, scaling adapter capacity traditionally incurs an undesirable parameter footprint. SparseAdapter proves that dense adapters suffer from significant intra-module parameter redundancy. By integrating dynamic and magnitude-based pruning directly into the adapter bottleneck, SparseAdapter achieves competitive or superior performance with 50% to 80% pruned adapter weights (only 0.1%–0.5% total model parameters).
Reimagining parameter-efficient tuning through structured parameter sensitivity and sparsity.
Systematically reveals that standard dense adapter weights contain heavy redundancy and can be pruned substantially without performance degradation.
Natively accommodates Magnitude, SNIP, GraSP, SynFlow, and Random pruning schemes under unified training loops.
Scales bottleneck dimension $m$ (e.g. 128) under high sparsity (75%), providing higher expressive power under identical parameter budgets.
SparseAdapter-L surpasses full fine-tuning on the GLUE benchmark (86.58 vs 86.35) while tuning only 0.36% of the model parameters.
Configure your backbone model, adapter architecture, bottleneck, and sparsity ratio to evaluate exact parameters and estimated GLUE score.
Comprehensive evaluation across 8 NLU tasks using RoBERTa-base (125M backbone).
Note how SparseAdapter-L ($m=128$, 75% sparsity) establishes a new Pareto-optimal frontier, surpassing full fine-tuning with only 0.36% parameters.
| Method | Params | MNLI | QQP | QNLI | SST-2 | CoLA | MRPC | Avg |
|---|---|---|---|---|---|---|---|---|
| Full Fine-Tuning | 100% | 87.6 | 91.9 | 92.8 | 94.8 | 63.6 | 90.2 | 86.35 |
| Houlsby (Dense $m=64$) | 0.71% | 87.2 | 91.5 | 92.6 | 94.2 | 62.4 | 89.5 | 85.50 |
| Pfeiffer (Dense $m=64$) | 0.36% | 87.0 | 91.4 | 92.4 | 94.0 | 61.8 | 89.0 | 85.06 |
| SparseAdapter (Mag 50%) | 0.36% | 87.4 | 91.7 | 92.7 | 94.5 | 63.1 | 90.0 | 85.96 |
| SparseAdapter (SNIP 50%) | 0.36% | 87.5 | 91.8 | 92.7 | 94.6 | 63.3 | 90.1 | 86.08 |
| SparseAdapter-L (75% Sparse) | 0.36% | 87.8 | 91.9 | 93.0 | 94.9 | 63.8 | 90.7 | 86.58 |
Integrating connection sensitivity and dynamic weight pruning within adapter bottleneck layers.
Figure 1: Overview of SparseAdapter. Pre-trained transformer parameters remain completely frozen. The inserted adapter bottleneck layers undergo gradient/magnitude-based pruning, removing redundant connections while expanding representational capacity under constrained parameter budgets.
Adapter modules project the hidden state down to bottleneck dimension $m$, apply non-linearity $\sigma$, and project back to dimension $d$:
A binary mask $\mathbf{M}$ is computed using connection sensitivity scores $S(w)$ evaluated on task batches:
Increasing bottleneck width ($m \to 2m$) while applying higher sparsity ($s=75\%$) yields equal parameter size with richer subspace expressivity:
Run SparseAdapter across tasks with straightforward shell scripts and commands.
# Run SparseAdapter on GLUE MRPC with SNIP pruner and 50% sparsity
python examples/pytorch/text-classification/run_glue_sparse.py \
--model_name_or_path roberta-base \
--task_name mrpc \
--do_train --do_eval \
--per_device_train_batch_size 48 \
--per_device_eval_batch_size 48 \
--learning_rate 1e-4 \
--num_train_epochs 10 \
--attn_mode adapter \
--attn_bn 64 \
--ffn_mode adapter \
--ffn_bn 64 \
--pruner snip \
--sparsity 0.5 \
--output_dir ./checkpoints/roberta-base/mrpc/snip_0.5
@inproceedings{he2022sparseadapter,
title = {SparseAdapter: An Easy Approach for Improving the Parameter-Efficiency of Adapters},
author = {He, Shwai and Ding, Liang and Dong, Daize and Zhang, Miao and Tao, Dacheng},
booktitle = {Findings of the Association for Computational Linguistics: EMNLP 2022},
month = dec,
year = {2022},
address = {Abu Dhabi, United Arab Emirates},
publisher = {Association for Computational Linguistics},
pages = {2184--2190},
url = {https://aclanthology.org/2022.findings-emnlp.160/},
doi = {10.18653/v1/2022.findings-emnlp.160}
}