Part 3 of 15 in LLM fine-tuning techniques
Adapter tuning fine-tunes a pretrained Transformer by inserting small new "adapter" layers inside every block and training only those, while the original weights stay frozen. Researchers at Google Research and Jagiellonian University introduced it for NLP in February 2019 and reported that on the GLUE benchmark, BERT with adapters came within 0.4% of full fine-tuning while adding only 3.6% parameters per task (Houlsby et al., 2019).
What is adapter tuning?
Adapter tuning is a transfer-learning method in which "the parameters of the original network are frozen and therefore may be shared by many tasks", and each task gets its own small set of new layers. The 2019 paper calls the result "compact and extensible": new tasks can be added "without revisiting previous ones" (Houlsby et al., 2019, abstract and Sec. 2).
It was one of the first parameter-efficient fine-tuning (PEFT) methods for Transformers and is the baseline that later methods, including LoRA and BitFit, compare against. The idea came from computer vision, where convolutional adapters had been added to ResNet and VGG models (Houlsby et al., Sec. 4).
How does adapter tuning work?
Each adapter is a bottleneck: it projects a d-dimensional hidden state down to a small dimension m, applies a nonlinearity, projects back up to d, and adds the result to its own input through a skip connection. Houlsby et al. insert two adapters per Transformer layer, one after the attention sub-layer and one after the feed-forward sub-layer (paper, Sec. 2.1, Figure 2).

Step by step, following Section 2.1:
- Freeze the pretrained model. No original weight is updated.
- Insert adapters. Each one sits "directly to the output of the sub-layer, after the projection back to the input size, but before adding the skip connection back"; its output then goes into the layer normalization.
- Initialize near identity. Because of the internal skip connection, near-zero projection weights make the adapter an approximate identity function, so the network starts out unchanged. The paper drew weights from a zero-mean Gaussian with standard deviation 10⁻², and found performance degrades when the initialization is too large (Sec. 3.6).
- Train per task: the adapters, new layer-normalization parameters, and the final classification layer (Figure 2 caption).
- Pick the bottleneck size m to trade quality for size. The paper says "in practice, we use around 0.5 - 8% of the parameters of the original model."
Worked example: adapter parameters for BERT-large
The paper gives the parameter count per adapter, including biases, as 2md + d + m (Sec. 2.1). For BERT-large, with hidden size d = 1024 and 24 layers (Sec. 3.2), and an adapter size of m = 64:
| Step | Calculation | Result |
|---|---|---|
| One adapter | 2 × 64 × 1024 + 1024 + 64 | 132,160 |
| Adapters per layer | 2 (after attention, after feed-forward) | 264,320 |
| Whole model | 264,320 × 24 layers | 6,343,680 |
| Share of BERT-large's 330M | 6.34M ÷ 330M | about 1.9% |
This is our arithmetic. It lines up with the paper's Table 1, which lists 2.1% added parameters per task when the adapter size is fixed at 64; the remainder includes the per-task layer-norm parameters and classifier.
When was adapter tuning introduced, and by whom?
Adapter tuning for NLP was introduced in "Parameter-Efficient Transfer Learning for NLP" by Neil Houlsby, Andrei Giurgiu, Stanislaw Jastrzebski, Bruna Morrone, Quentin de Laroussilhe, Andrea Gesmundo, Mona Attariyan and Sylvain Gelly (Google Research; Jastrzebski is listed with Jagiellonian University). It was posted to arXiv on February 2, 2019 and published at ICML 2019, PMLR volume 97 (arXiv 1902.00751).
The paper credits earlier vision work on residual adapters by Rebuffi et al. (2017, 2018), and notes concurrent work by Stickland and Murray (2019) on "Projected Attention Layers" for BERT (Sec. 4).
What results did the adapter paper report?
On GLUE with BERT-large, adapters reached a mean score of 80.0 against 80.4 for full fine-tuning. Solving all GLUE tasks needed 1.3 times BERT's parameters in total with adapters, versus 9 times with full fine-tuning, because each fine-tuned task needs a full copy (Houlsby et al., Sec. 3.2, Table 1).
| Setting | Full fine-tuning | Adapters | Source |
|---|---|---|---|
| GLUE mean score (BERT-large) | 80.4 | 80.0 (79.6 with size fixed at 64) | Table 1 |
| Total params for all GLUE tasks | 9× BERT | 1.3× BERT | Sec. 3.2 |
| 17 extra classification tasks (BERT-base) | baseline | 0.4% behind | Sec. 3.3, Table 2 |
| New params per task on those 17 tasks | 100% | 1.14% | Sec. 3.3 |
| Total params for all 17 tasks | 17× BERT | 1.19× BERT | Sec. 3.3 |
| SQuAD v1.1 F1 | 90.7 | 90.4 (size 64, 2% params) | Sec. 3.5 |
Other findings:
- Tiny adapters still work on SQuAD: size 2, about 0.1% of parameters, reached 89.9 F1 (Sec. 3.5).
- Layer-norm-only tuning is not enough: training only layer normalization (40k parameters on BERT-base) lowered performance by about 3.5% on CoLA and 4% on MNLI (Sec. 3.4).
- Higher layers matter more: removing the adapters from layers 0 to 4 on MNLI "barely affects performance" (Sec. 3.6).
- Variants did not help: adding normalization inside the adapter, more layers per adapter, other activations, attention-only placement, or parallel adapters all performed similarly, so the authors "recommend the original adapter architecture" (Sec. 3.6).
How is adapter tuning different from LoRA, QLoRA and BitFit?
Adapters add new sequential layers to the network, so they add computation at inference time; LoRA adds a parallel low-rank update that can be merged into the existing weights. The LoRA paper measured that adapters raised GPT-2 medium inference latency by 20.7% (AdapterL) to 30.3% (AdapterH) at batch size 1 and sequence length 128, while merged LoRA added none (Hu et al., 2021, Table 1).
| Adapter Tuning (2019) | LoRA (2021) | QLoRA (2023) | BitFit (2021) | |
|---|---|---|---|---|
| What is trained | New bottleneck layers + layer norms | Low-rank A, B beside existing weights | LoRA on a 4-bit base | Existing bias terms |
| Adds layers to the model | Yes, sequential | No, parallel and mergeable | No | No |
| Params per task in its paper | 3.6% on GLUE (BERT-large) | 4.7M of 175B on GPT-3 | LoRA r = 64 on all linear layers | 0.08% (BERT-large) |
On the LoRA paper's GLUE comparison with RoBERTa-large, under the same restricted setup, LoRA with 0.8M parameters averaged 88.6, against 87.8 for Houlsby-style adapters with 6.0M and 86.4 with 0.8M (Hu et al., Table 2). The BitFit paper reports a GLUE test average of 81.1 for adapters (3.6% of parameters) and 80.9 for BitFit (0.08%) on BERT-large (Ben Zaken et al., Table 1).
Which libraries support adapter tuning?
The AdapterHub adapters library implements Houlsby adapters as DoubleSeqBnConfig, which places adapter layers "after both the multi-head attention and feed-forward block in each Transformer layer" (AdapterHub methods). Hugging Face PEFT's methods overview lists low-rank, orthogonal and other adapter types but no Houlsby-style bottleneck adapter (PEFT methods overview, checked Dec. 4, 2026).
- AdapterHub
adapters(pip install adapters):BnConfig(general bottleneck),DoubleSeqBnConfig(Houlsby et al., 2019),SeqBnConfig(Pfeiffer et al., 2020, feed-forward only),ParBnConfig(parallel, He et al., 2021).DoubleSeqBnConfigdefaults toreduction_factor=16andnon_linearity="swish"(config reference). - Hugging Face PEFT covers related methods such as LoRA, IA3 and OFT (methods overview).
How do you use adapter tuning in code?
This uses the AdapterHub adapters library, following its quickstart, training guide and config reference, checked Dec. 4, 2026. The training guide says train_adapter() "disables training of all weights outside the task adapter."
from adapters import AutoAdapterModel, DoubleSeqBnConfig
model = AutoAdapterModel.from_pretrained("bert-base-uncased")
# Houlsby et al. (2019): adapters after attention AND after the feed-forward block.
# reduction_factor=16 means bottleneck m = hidden size / 16 (768 / 16 = 48 for BERT-base).
config = DoubleSeqBnConfig(reduction_factor=16)
model.add_adapter("sst2", config=config)
model.add_classification_head("sst2", num_labels=2)
model.train_adapter("sst2") # freeze everything outside the "sst2" adapter
model.set_active_adapters("sst2")
# ... train with adapters.AdapterTrainer (a drop-in for transformers.Trainer) ...
model.save_adapter("./sst2-adapter", "sst2")
AdapterHub's training guide recommends "a default adapter learning rate of 1e-4", higher than for full fine-tuning, because adapter weights start from random initialization (training guide).
Common pitfalls
- Initializing too large. Houlsby et al. found adapters robust for initial standard deviations below 10⁻², and that "when the initialization is too large, performance degrades, more substantially on CoLA" (Sec. 3.6).
- Using full fine-tuning learning rates. AdapterHub recommends 1e-4 as a default adapter learning rate (training guide); the paper swept 3e-5 to 3e-3 (Sec. 3.2).
- Ignoring inference latency. Adapters add sequential layers; the LoRA paper measured up to 30.3% higher latency at batch size 1 on GPT-2 medium (Table 1).
- Training only layer norms to save more. The paper found that alone "performs poorly", about 3.5% lower on CoLA and 4% on MNLI (Sec. 3.4).
- Results vary by seed. The authors re-ran GLUE five times "due to training instability" and picked the best on validation (Sec. 3.2).
FAQ
What is an adapter in machine learning?
A small trainable module inserted into a frozen pretrained network. In Houlsby et al.'s design it is a bottleneck: project down from d to m dimensions, apply a nonlinearity, project back up, and add a skip connection (Sec. 2.1).
How many parameters do adapters add?
The paper uses "around 0.5 - 8% of the parameters of the original model" (Sec. 2.1): 3.6% per task on GLUE (abstract) and 1.14% on 17 further classification tasks (Sec. 3.3). Each adapter has 2md + d + m parameters.
Are adapters as good as full fine-tuning?
In the 2019 paper they came close: 80.0 versus 80.4 mean GLUE score (Table 1), 0.4% behind on 17 more tasks (Sec. 3.3), and 90.4 versus 90.7 F1 on SQuAD (Sec. 3.5).
Do adapters slow down inference?
Yes, somewhat. They add layers that run in sequence. The LoRA paper measured 20.7% to 30.3% extra latency on GPT-2 medium at batch size 1 and sequence length 128, with smaller overheads at larger batch sizes (Table 1).
What is the difference between Houlsby and Pfeiffer adapters?
Placement. AdapterHub describes Houlsby adapters (DoubleSeqBnConfig) as placed after both attention and feed-forward blocks, and Pfeiffer adapters (SeqBnConfig) as placed only after the feed-forward block (AdapterHub methods).
Does Hugging Face PEFT support bottleneck adapters?
The PEFT methods overview we checked lists low-rank adapters (LoRA, LoHa, LoKr, AdaLoRA), orthogonal methods (OFT, BOFT), MiSS and IA3, but not a Houlsby-style bottleneck adapter (PEFT). AdapterHub's adapters library does.
Which layers benefit most from adapters?
The higher ones, in the paper's analysis: removing adapters from layers 0 to 4 on MNLI barely changed performance (Sec. 3.6). The authors relate this to lower layers extracting features shared across tasks.
Related techniques
- LoRA: a mergeable low-rank update instead of new layers
- QLoRA: LoRA on a 4-bit quantized base model
- BitFit: train only the bias terms
- All 15 LLM fine-tuning techniques
Sources
- Houlsby, N., Giurgiu, A., Jastrzebski, S., Morrone, B., de Laroussilhe, Q., Gesmundo, A., Attariyan, M., Gelly, S. "Parameter-Efficient Transfer Learning for NLP." arXiv, Feb. 2, 2019 (v2 June 13, 2019); ICML 2019, PMLR 97. arXiv 1902.00751. Read Dec. 4, 2026.
- AdapterHub docs: Methods, Quickstart, Training, Adapter configuration, Installation. Checked Dec. 4, 2026.
- Hugging Face PEFT docs, v0.22.0: Methods overview. Checked Dec. 4, 2026.
- Hu, E. J., et al. "LoRA: Low-Rank Adaptation of Large Language Models." arXiv, June 17, 2021. arXiv 2106.09685. Read Dec. 4, 2026.
- Ben Zaken, E., Ravfogel, S., Goldberg, Y. "BitFit: Simple Parameter-efficient Fine-tuning for Transformer-based Masked Language-models." arXiv, June 18, 2021; ACL 2022. arXiv 2106.10199. Read Dec. 4, 2026.
Series: ← Prev: QLoRA · All 15 techniques · Next: BitFit →
- #llm-fine-tuning
- #adapter-tuning
- #peft
- #adapters
- #adapterhub



