atlas

Research map / Large language models / Instruction and fine-tuning

QA-LoRA: Quantization-Aware Low-Rank Adaptation of Large Language Models

ICLR 2024 · Large language models › Instruction and fine-tuning · approach: Low-rank adaptation variants · 21 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

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.

Proposes QA-LoRA, which uses group-wise pooling of inputs before LoRA adapters so that LLM weights can be quantized (INT4/3/2) during fine-tuning and the merged adapter keeps the model in low-bit form without post-training quantization loss.

Problem

Fine-tuning LLMs with LoRA is memory-heavy, and naively combining PEFT with quantization either loses accuracy after post-training quantization or breaks the quantized form after merging adapters back into the weights.

Approach

Use group-wise quantization of pre-trained weights (scaling/zero factors per group of input rows) and pool the input features within each group before the LoRA matrices, so the low-rank adapter can be merged into the zero-point matrix while keeping the weights INT-quantized, balancing the degrees of freedom of quantization and adaptation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use QA-LoRA instead of QLoRA with GPTQ for INT4LLaMA-7B fine-tuned on Alpaca · MMLU 5-shotaccuracy (Avg.): 36.0 -> 39.4Helped
Use QA-LoRA instead of QLoRA with GPTQ for INT2LLaMA-7B fine-tuned on Alpaca · MMLU 0-shotaccuracy (Avg.): 23.2 -> 26.5Helped
Use QA-LoRA instead of QLoRA with GPTQLLaMA-7B · Commonsense QA 0-shotaccuracy (Avg.): 59.8 -> 61.8Helped
Use QA-LoRA instead of QLoRALLaMA-7B Alpaca fine-tuning · fine-tuningtime (h): 40.0 -> 21.5Helped
Use FLAN v2 rather than Alpaca for fine-tuningQA-LoRA on LLaMA2-7B, INT4 · MMLU 0-shotaccuracy (Avg.): 43.9 -> 50.5Helped
Use group size 32 rather than group size 128 (ablation)QA-LoRA on LLaMA-7B, INT4 · MMLU 0-shotaccuracy (Avg.): 38.0 -> 39.4Helped
Use group size 32 rather than group size 128 (ablation)QA-LoRA on LLaMA-7B, INT2 · MMLU 0-shotaccuracy (Avg.): 25.0 -> 26.5Helped
Use group size 32 rather than group size 128 (ablation)QA-LoRA on LLaMA-7B, INT2 · MMLU 5-shotaccuracy (Avg.): 26.7 -> 27.5Helped
Fine-tune LLaMA2-7B with Alpaca rather than its original FP16 modelQA-LoRA, INT4 · MMLU 0-shotaccuracy (Avg.): 40.7 -> 43.9Helped
Fine-tune with QA-LoRA on the smaller Self-instruct, Longform, or Chip2 dataset rather than larger Alpaca/FLAN v2 datasetsLLaMA-7B · MMLU 5-shotaccuracyHurt

Surprising findings

Limitations

Experimental setup

Datasets: Alpaca FLAN v2 Self-instruct Longform Chip2

Benchmarks: MMLU HellaSwag PIQA WinoGrande ARC-e ARC-c BoolQ OpenBookQA

Metrics: accuracy (0-shot) accuracy (5-shot) training time (h) number of learnable parameters

Baselines: QLoRA QLoRA w/ GPTQ PEQA LLaMA base models

Builds on: LoRA QLoRA GPTQ PEQA

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