MORAIDICTIONNAIRE IA
Entraînement

Low-Rank Adaptation (LoRA) (LoRA)

Fine-tune a giant model by training a tiny set of parameters while freezing the rest.

Imagine adapting a massive language model to a new task without rewriting its billions of parameters: that is exactly what LoRA (Low-Rank Adaptation) enables. Instead of altering the original weights, you freeze the pre-trained model and graft small, lightweight, trainable matrices onto it — fine-tuning only a tiny fraction of the parameters.

The mathematical idea

The core intuition: the weight update during fine-tuning has a low intrinsic rank. It can therefore be approximated by the product of two small matrices. If $W_0$ is a frozen weight matrix, the adapted version is written:

$$W = W_0 + \Delta W = W_0 + B A$$

where $A \in \mathbb{R}^{r \times d}$ and $B \in \mathbb{R}^{d \times r}$, with a rank $r \ll d$. Only $A$ and $B$ are trained. For $d = 4096$ and $r = 8$, the number of learnable parameters drops dramatically.

Why it matters

Approach Trained parameters Memory cost
Full fine-tuning 100% High
LoRA often < 1% Low

This technique popularised the idea of affordable fine-tuning, and its variant QLoRA combines it with quantization to adapt very large models on a single consumer GPU.

LoRA turns adapting giant models from an industrial luxury into an operation within almost everyone's reach.

Explore the full AI dictionary →