AI & Machine Learning

LoRA (low-rank adaptation)

Also known as: LoRA, low-rank adaptation, LoRA adapter, LoRA fine-tuning

LoRA, short for low-rank adaptation, is a technique for customizing an AI model by training a small set of extra weights instead of changing the whole model.

The add-on, often called an adapter, can be a tiny fraction of the model's size and can be swapped in or out. While LoRA has made fine-tuning affordable for small teams and hobbyists, it can't add much new knowledge, and a poorly trained adapter can make a model worse.

LoRA (low-rank adaptation), explained at three levels

At home

Think of an AI model as a huge, finished textbook. Rewriting the whole book for every class would be expensive, so instead you add a thin stack of sticky notes that adjust certain answers. LoRA is that stack of notes. The original model stays untouched, and the small add-on, often just megabytes, changes its style or behaviour and can be shared or swapped out.

At work

LoRA, short for low-rank adaptation, is a cheap way to customize an AI model. Instead of retraining billions of parameters, it trains a small add-on called an adapter. Businesses use it to teach a model their tone, document format, or a narrow task at a fraction of the hardware cost, and can keep separate adapters for different teams on one base model.

Real-world examples

At home

Sophie trained a small LoRA on her own watercolour paintings. The image generator could then produce new pictures in her style for her family holiday cards.

At work

Carlos is an AI engineer at an Ottawa software firm. He used LoRA to fine-tune an open model to write support replies in the company's format, training it in an afternoon on one rented GPU.

How it compares

featureLoRA (low-rank adaptation)Full fine-tuning
What's trainedSmall add-on weightsAll model weights
Hardware neededModestLarge
Storage per versionMegabytesFull model copy
QualityClose to full on many tasksHighest ceiling

LoRA gets most of the benefit of fine-tuning at a fraction of the cost.

For analysts

Before fine-tuning, I'd confirm the problem isn't better solved by prompting or retrieval. If fine-tuning is right, LoRA is usually the sensible first step.

History & origin

Fine-tuning large models originally meant updating every parameter, which required expensive hardware and stored a full copy for each custom version. Edward Hu and colleagues at Microsoft published LoRA in 2021, showing that small 'low-rank' updates could match full fine-tuning on many tasks. The technique spread quickly to image models, where hobbyists shared LoRA files to teach Stable Diffusion new styles or characters. In May 2023, Tim Dettmers and colleagues at the University of Washington introduced QLoRA, combining LoRA with quantization so large models could be fine-tuned on a single GPU. Cloud AI platforms now offer LoRA-based fine-tuning as a standard service. In my view, LoRA did more to democratize AI customization than any other single paper.