SparseAdapter: An Easy Approach for Improving the
Parameter-Efficiency of Adapters
Shwai He1, 4∗ Liang Ding1† Daize Dong4 Miao Zhang2 Dacheng Tao1, 3
1
JD Explore Academy
2
Aalborg University 3 The university of Sydney
4
University of Electronic Science and Technology of China
[Link]@[Link], dingliang1@[Link], dzdong2019@[Link],
miaoz@[Link], [Link]@[Link]
Abstract
LS + R X O V E \
Adapter Tuning, which freezes the pretrained ) X O O Fine-tuning
$ Y H U D J H 6 F R U H
language models (PLMs) and only fine-tunes
LS / R 5A
arXiv:2210.04284v5 [[Link]] 10 Nov 2022
a few extra modules, has become an appeal-
S + R X O V E \
ing efficient alternative to the full model fine-
tuning. Although computationally efficient, LS - Pfeiff H U
S / R 5 $ + R X O V E \
the recent adapters often increase parame- / R 5 $
S 3 I H L I I Hr
ters (e.g. bottleneck dimension) for match- 3 I H L I I H U
ing the performance of full model fine-tuning,
which we argue goes against their original
) L Q H W X Q H G 3 D U D P H W H U V
intention. In this work, we re-examine the
parameter-efficiency of adapters through the Figure 1: Performance of different parameter-efficient
lens of network pruning (we name such plug- tuning methods on tasks from GLUE benchmark with
in concept as SparseAdapter) and find that RoBERTa-base encoder. We report the performance of
SparseAdapter can achieve comparable or bet- Houlsby Adapters, Pfeiffer Adapters, LoRA as well as
ter performance than standard adapters when that used in our plug-in method SparseAdapter, where
the sparse ratio reaches up to 80%. Based we denoted the normal sparse (in Table 1 and 4) as “S-”
on our findings, we introduce an easy but ef- and Large-Sparse (in Table 3) as “LS-” in prefix.
fective setting “Large-Sparse” to improve the
model capacity of adapters under the same
parameter budget. Experiments on five com-
petitive adapters upon three advanced PLMs PLMs (Brown et al., 2020), full fine-tuning has
show that with proper sparse method (e.g. become prohibitively expensive, limiting the appli-
SNIP) and ratio (e.g. 40%) SparseAdapter can cability of PLMs to a broader range of tasks. Hence,
consistently outperform their corresponding various parameter-efficient fine-tuning approaches
counterpart. Encouragingly, with the Large- are explored (Houlsby et al., 2019; Hu et al., 2021;
Sparse setting, we can obtain further appeal- Zhong et al., 2022), among which Adapter Tuning,
ing gains, even outperforming the full fine-
that only tunes the extra light-weighted modules
tuning by a large margin. Our code will be re-
leased at: [Link] and keeps the original PLM frozen, has attached
SparseAdapter. great attention.
Despite the progress, existing adapters match the
1 Introduction performance of full fine-tuning by increasing the
The “pretrain-finetune” paradigm has become the bottleneck dimension (Houlsby et al., 2019; Wang
de facto standard for the community of natural et al., 2022). This increases the overall parame-
language processing (NLP) (Devlin et al., 2019; ters and FLOPs, violating the original intention
Liu et al., 2019). Given a pretrained language of adapters. In this work, we turn to investigate
model (PLM), the conventional fine-tuning man- the parameter-efficiency property (the nature of
ner is tuning the entire parameters, i.e., full fine- adapters) to answer the following questions: 1
tuning, for each downstream task (Devlin et al., Whether the current adapters can be further effi-
2019). Considering the ever-increasing size of cient? 2 How can we increase the representation
∗
capacity of adapters within the original parameter
Work was done when Shwai was interning at JD Explore
Academy.
budget?
†
Corresponding author To this end, we examine the parameter-efficiency
of adapters through the lens of network prun- which requires more computation cost, violating
ing (Mozer and Smolensky, 1989; Janowsky, 1989), the original intention of adapters.
which reduces the model size of neural networks by To check whether augmenting adapters by in-
pruning redundant parameters and training the rest creasing the parameters is an optimal choice, we
ones, therefore, improving the network efficiency. decide to revisit the nature of adapters, i.e., parame-
We call such pruned adapters SparseAdapter. ter efficiency, by pruning the redundant parameters.
Specifically, we systematically investigate five rep- As shown in Figure 2, randomly pruned adapters
resentative pruning methods in §2.2 to check at can achieve comparable or even better performance
what sparse ratio can the adapters maintain the than standard adapters, which indicates the exis-
effectiveness. Note that to maintain the efficient tence of redundant parameters. The comparable
nature of adapters, we prune all adapters at ini- performance could even be held under 80% spar-
tialization such that there are no extra computa- sity. Such preliminary study urges us to investigate
tional costs. We find that 1 SparseAdapter the research questions 1 and 2 . We decide to
can achieve comparable (or even better) perfor- approach them by systematically investigating the
mance than standard adapters when the sparse ratio effects of different pruning methods.
reaches up to 80%. Such encouraging performance
Figure 2: The comparison between randomly pruned
could hold even using the random pruning method
adapters and standard adapters on datasets from GLUE.
(See Figure 2) on GLUE benchmark (Wang et al.,
2018). Based on these insights, we introduce a &