ELI Ladder

What is LoRA in AI fine-tuning?

LoRA fine-tunes a big AI model by freezing its weights and training two small add-on matrices, so tuning needs far less memory and storage.

LoRA: keep W frozen, train a thin side path x W frozen, d × k A B A squeezes x to r numbers; B expands back trained (rank r, tiny) + h h = Wx + B·A·x · after training, B·A can be merged into W

Rung 1 Explain like I'm 6

Imagine a huge, finished jigsaw puzzle glued to a table. You want the picture to show a sunset instead of daytime. Pulling up all ten thousand pieces would take forever.

So you leave the puzzle alone and lay a thin, see-through sheet on top. You paint a little orange on the sheet. Now the picture looks like a sunset, and you can lift the sheet off any time to get the daytime picture back.

LoRA does this for an AI. The big AI stays exactly as it was. LoRA adds a small, thin layer of changes on top, which is much quicker and cheaper to make than changing the whole thing.

Rung 2 High-school level

Storing 100 tuned versions of GPT-3 (175B) 100 full copies 350 GB each ≈ 35 TB 1 base + 100 LoRAs 350 GB + 35 MB each ≈ 354 GB, about 1% of the bar above Bars to scale. LoRA at rank 4 on query and value matrices. Source: Hu et al., 2021
One base model plus many small adapters, instead of many full copies. Figures from the LoRA paper (2021).

LoRA stands for low-rank adaptation. It is a cheap way to do fine-tuning: training an existing AI model a little more on your own examples.

A large language model (LLM) is mostly giant grids of numbers called weights. Normal fine-tuning changes all of them, so you need a lot of memory, and every tuned version is a full copy of the model. LoRA instead freezes the original weights and trains a small set of extra numbers, called an adapter, that is added on top.

The adapter is tiny. In the original paper (2021), an adapter for the 175-billion-parameter GPT-3 was about 35 MB, while the model itself was 350 GB [1]. One base model can therefore carry many adapters, one per task or customer, swapped in as needed.

QLoRA goes further: it stores the frozen model in 4-bit numbers (see quantization) and trains a LoRA adapter on top, so big models can be tuned on one graphics card [2]. People also share LoRAs for image generators to add a style or a character.

Not to be confused with LoRa, a long-range, low-power radio used by sensors. Same letters, unrelated.

Check yourself: In LoRA, what happens to the original model's weights during training?

They are frozen, left unchanged; only the small adapter is trained.

Rung 3 Undergraduate level

Rank-8 LoRA on one 4,096 × 4,096 matrix W frozen 4,096 × 4,096 16,777,216 numbers + B 4,096 × 8 · A: 8 × 4,096 trained: 32,768 + 32,768 65,536 ≈ 0.4% of W B and A drawn thicker than scale (8 of 4,096 is a hairline). Training starts with B = 0.
Rank 8 on a 4,096 × 4,096 matrix: 65,536 trainable numbers instead of 16.8 million.

A layer computes h = Wx, where W is a d × k weight matrix. Fine-tuning learns a change ΔW. LoRA bets that ΔW does not need full freedom, so it writes it as a product of two thin matrices:

h = Wx + (α/r)·B·A·x

Here B is d × r, A is r × k, and the rank r is much smaller than d or k. W is frozen; only A and B get gradients. A starts as random Gaussian values and B as zeros, so B·A = 0 at step one and training begins from the original model [1]. The scale α/r keeps the update size steady when you change r [1].

Worked example. Take one 4,096 × 4,096 attention matrix and rank r = 8:

  • Full matrix: 4,096 × 4,096 = 16,777,216 weights.
  • LoRA: B has 4,096 × 8 and A has 8 × 4,096, so 2 × 32,768 = 65,536 weights, about 0.4%.

Now apply it to the query and value matrices in each of 32 layers of that width (a typical 7B-class shape): 32 × 2 × 65,536 ≈ 4.2 million trainable weights. In 16-bit numbers the whole adapter is about 8 MB.

After training you can merge: compute W′ = W + (α/r)·B·A once, and the model runs exactly as fast as before, with no extra layer at inference [1].

Check yourself: How many trainable numbers does a rank-4 LoRA add to one 1,000 × 1,000 matrix?

1,000 × 4 + 4 × 1,000 = 8,000, against 1,000,000 in the full matrix.

Rung 4 Graduate level

What it buys. On GPT-3 175B with Adam, the LoRA paper cut training memory from 1.2 TB to 350 GB, because frozen weights need no gradients or optimiser state; with r = 4 on the query and value matrices, checkpoints shrank from 350 GB to about 35 MB, and training ran about 25% faster [1]. Overall it reported 10,000 times fewer trainable parameters and 3 times less GPU memory than full fine-tuning [1].

Choices you make.

  • Rank. Surprisingly small ranks work. On GPT-3, rank 1 on the query and value matrices was already competitive on WikiSQL and MultiNLI [1]. Higher rank helps when the task needs to learn a lot of new material.
  • Which layers. The original paper adapted attention only. A 2025 study found MLP layers matter more: attention-only LoRA underperformed MLP-only LoRA at a similar parameter count [6].
  • Learning rate. The best LoRA learning rate was about 10 times the full fine-tuning rate [6].
  • Quantised base. QLoRA keeps the frozen model in 4-bit NormalFloat (NF4), adds double quantisation of the scale constants and paged optimisers, and fine-tuned a 65B model on one 48 GB GPU [2].

Serving. Merging gives zero overhead but fixes one adapter per copy. Keeping adapters separate lets one base model serve many. S-LoRA (2023) served thousands of adapters on one GPU, with up to 4 times the throughput of earlier libraries [3].

Trade-offs. On large code and maths datasets LoRA can fall well short of full fine-tuning, but it also forgets less of what the base model knew [5]. Treat LoRA as the default for behaviour, format and modest new skills, and check against full fine-tuning when the dataset is very large.

Rung 5 PhD level

The founding hypothesis is that adaptation has low intrinsic rank: the useful ΔW lives in a small subspace. The LoRA paper supported this by showing that the top directions learned at rank 8 and rank 64 overlap strongly, and that ΔW amplifies directions already present in W but not emphasised by it [1].

That hypothesis has limits. Biderman et al. (2024) measured full fine-tuning on code and maths and found its weight changes had rank 10 to 100 times higher than typical LoRA settings, which may explain why LoRA learned less there [5]. The same paper found LoRA kept more of the base model's skills outside the target domain, more than weight decay or dropout did [5]. So low rank acts as both a capacity limit and a regulariser.

Schulman et al. (2025) offered a capacity view: LoRA matches full fine-tuning until the dataset carries more information than the adapter can hold [6]. Reinforcement learning gives only a few bits of feedback per episode, which is why rank 1 sufficed there [6]. They also found LoRA tolerates large batch sizes less well, a penalty that did not depend on rank [6].

Variants attack different weaknesses. DoRA (2024) splits each weight into a magnitude and a direction, applies LoRA to the direction, and trains the magnitude directly, narrowing the gap to full fine-tuning at no inference cost [4]. QLoRA asks how much precision the frozen weights need [2].

Open problems:

  • Rank selection. No rule predicts the right rank for a task and dataset size.
  • Composition. Adding several adapters at once (style plus domain) can interfere; there is no guarantee that two good updates add up to a good model.
  • Theory of optimisation. Why the zero-initialised, asymmetric B·A product trains well, and how its learning rate should scale, is only partly understood.
  • Safety. Cheap adapters make it equally cheap to tune away a model's safety training.

Rung 6 State of the art: what experts work on now

Last checked 19 November 2026.

As of 2026-11-19.

LoRA is the default way to fine-tune open-weight models. The main open questions of 2021 to 2024 (is it as good as full fine-tuning? where should it go?) now have clearer, if partial, answers.

When it matches full fine-tuning. In September 2025 Thinking Machines Lab reported that LoRA matched full fine-tuning on small-to-medium instruction and reasoning datasets, fell behind on datasets larger than its capacity, worked best on MLP layers, needed about 10 times the learning rate, and matched full fine-tuning for reinforcement learning even at rank 1 [6]. They also estimated that a LoRA training pass costs slightly more than two-thirds of the compute of a full pass [6]. This fits the 2024 finding that LoRA learns less but forgets less [5].

LoRA as infrastructure. On 1 October 2025 the same lab launched Tinker, a fine-tuning API that uses LoRA so that many customers' training runs share one pool of compute; it supports models up to large mixture-of-experts ones such as Qwen3-235B-A22B [7]. That is the multi-adapter idea from S-LoRA [3], applied to training as well as serving.

Variants. DoRA (ICML 2024) [4] and QLoRA's 4-bit base [2] remain the common upgrades. Note that the studies above are mostly from labs reporting their own experiments, not independent benchmarks.

Sources

  1. Hu et al., LoRA: Low-Rank Adaptation of Large Language Models (2021)
  2. Dettmers et al., QLoRA: Efficient Finetuning of Quantized LLMs (2023)
  3. Sheng et al., S-LoRA: Serving Thousands of Concurrent LoRA Adapters (2023)
  4. Liu et al., DoRA: Weight-Decomposed Low-Rank Adaptation (ICML 2024) (2024)
  5. Biderman et al., LoRA Learns Less and Forgets Less (TMLR) (2024)
  6. Schulman et al. (Thinking Machines Lab), LoRA Without Regret (2025)
  7. Thinking Machines Lab, Announcing Tinker (2025)