scimeatlas

Research map / Vision-language and multimodal / CLIP and zero-shot

LLaMA-Adapter: Efficient Fine-tuning of Large Language Models with Zero-initialized Attention

Renrui Zhang, Jiaming Han, Chris Liu, Aojun Zhou, Pan Lu, Yu Qiao, Hongsheng Li, Peng Gao

ICLR 2024Vision-language and multimodal › CLIP and zero-shotapproach: Parameter-efficient visual tuningopen problems in this approach

MMLab of CUHK & Shanghai AI Laboratory · The Chinese University of Hong Kong

Read the paperPlace an idea next to itCheck your own paper ↗

11measured effects
7improved
1no clear effect
2hurt
1mixed
In one sentence

Proposes LLaMA-Adapter, a lightweight parameter-efficient method that adapts frozen LLaMA 7B for instruction following using zero-initialized attention on 52K self-instruct demonstrations.

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Problem

Efficient instruction tuning of large language models like LLaMA without the cost of full fine-tuning.

Approach

Introduces learnable adaptation prompts in the top transformer layers of a frozen LLaMA, using zero-initialized attention with a gating factor so that the adapters do not disturb pretrained knowledge at initialization.

Key results

On benchmark leaderboards

Measured effects reported in the paper

What was changedWhereMeasuredEffect
initialize the attention gating factor at zero instead of randomly (ablation)LLaMA-Adapter · ScienceQA valaccuracy: 40.77 -> 83.85 (+43.08)Improved
insert adaption prompts into more layers (10 -> 20 -> 30) (ablation)LLaMA-Adapter · ScienceQA valaccuracy: 55.95 -> 73.36 -> 83.85Improved
insert adaption prompts into all 32 layers instead of last 30 (ablation)LLaMA-Adapter · ScienceQA valaccuracy: 83.85 -> 81.03Hurt
add a CLIP image encoder and 0.6M projection networkLLaMA-Adapter-T · ScienceQA testaverage accuracy: 78.31 -> 85.19 (+6.88)Improved
fine-tune only 1.2M adapter parameters instead of all 7B (Alpaca)LLaMA 7B · Training time on 8 A100 GPUstraining time: 3 hours -> 1 hourImproved
use LLaMA-Adapter instead of Alpaca-LoRA at ranks 2 to 16LLaMA 7B instruction tuning · Open LLM benchmarkaverage: 50.7-50.9 -> 52.2Improved
lower the LoRA rank of Alpaca-LoRA (16 to 2) (ablation)Alpaca-LoRA · Open LLM benchmarkaverage: 50.8 (rank 16) -> 50.9 (rank 2)No clear effect
apply zero-initialized attention to ViT instead of full fine-tuningViT/16 · VTAB-1k Naturalaccuracy: 75.88 -> 81.74Improved
apply zero-initialized attention to RoBERTa-large instead of full fine-tuningRoBERTa-large · SQuAD 2.0 devF1: 89.4 -> 87.2Hurt
add more VQAv2 instruction data to visual instruction tuningmulti-modal LLaMA-Adapter · MME, MMBench, LVLM-eHubzero-shot scoresImproved
use LLaMA-Adapter (7B, 1.2M tuned params) instead of Mini-GPT4 / LLaVAmulti-modal LLM · MME Perception vs Cognitionscore: Perception 973 vs 867 / 503; Cognition 249 vs 292 (Mini-GPT4)Mixed

Later papers that compared with this method

12 later accepted papers report LLaMA-Adapter as a baseline in their results tables; 11 of them report a better number on most of the results they share with it.

4 more not listed.

Earlier methods this paper compares with

Named baselines from earlier accepted papers in this paper's results tables: better than 0 of 1 on most shared results.

Matched by method name in results tables read by AI. Authors' own tables tend to favour the newer method, and a comparison can be missed when a method is renamed.

Open problems in parameter-efficient visual tuning

Do parameter-efficient tuning methods for CLIP-style models work beyond ViT-B/16 image classification, and at what extra cost?

All 5 open problems and what was already tried →

Experimental setup

Datasets: self-instruct 52K demonstrations

Builds on: LLaMA self-instruct Alpaca

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy