Large Programs

Home / How LLMs Work

How LLMs Work

LoRA: Teaching a Big Model With a Few New Numbers

LoRA adapts a large model by training a tiny set of added numbers instead of all of them. What the 2021 paper reports, with exact figures from its abstract.

27 November 2026 · 2 min read

Suppose a huge textbook already knows a lot, and you want it to learn one new subject. You could rewrite the whole book, which is slow and costly. Or you could slip a few extra pages inside. LoRA works like the extra pages.

A big frozen model with two small adapters beside it, combined into a model with small new numbers.

The paper "LoRA: Low-Rank Adaptation of Large Language Models" was published in 2021. The name means low-rank adaptation. It is a popular way to do fine-tuning.

The problem

The abstract says that as models get bigger, full fine-tuning, which retrains all of the model's parameters, becomes less feasible. Taking GPT-3 with 175 billion parameters as an example, the authors say that keeping a separate fine-tuned copy for each job is "prohibitively expensive". See what are parameters in AI.

What LoRA does

According to the abstract, LoRA freezes the pre-trained weights and adds small trainable matrices to each layer of the Transformer, which greatly reduces the number of trainable parameters for each new task.

What the authors report

  • Compared with fine-tuning GPT-3 175B with the Adam method, LoRA can reduce the number of trainable parameters by 10,000 times and the GPU memory needed by 3 times.
  • On the models they tested (RoBERTa, DeBERTa, GPT-2 and GPT-3), LoRA performed on a par with or better than fine-tuning, with fewer trainable parameters and higher training speed.
  • Unlike adapters, it adds no extra delay when the model is used.
  • They released a software package and example models.

These figures are the authors' results on their chosen models. They are not a promise for every model or task.

Why it matters

Because LoRA needs far less memory, more people can adapt large models to their own needs. That is also why it is risky: anyone can change a model's behaviour. See open versus closed models.

A note on sources

Everything above comes from the abstract of the paper on arXiv (2106.09685), read on 27 November 2026. The textbook picture is this site's analogy.

Sources