LoRA (Low-Rank Adaptation)

A parameter-efficient way to adapt a large model without retraining all of its weights.

Count the trainable weights in one small adapter

Imagine adapting a single 64-by-64 weight matrix. Ignore biases and scaling constants for this count.

Full update

Allowing every entry to change gives 64 × 64 = 4,096 trainable weights in this layer.

Rank-four update

Freeze the original matrix and learn two factors, 64 × 4 and 4 × 64. Together they have 256 + 256 = 512 trainable weights. Their product has the shape of the original matrix.

What the eightfold reduction covers

In this example the two factors require one eighth as many trainable weights for the layer. The original 4,096 weights are still part of the model. This ratio does not directly predict total training memory, on-device model size or inference speed.

What LoRA Means in Practice

LoRA is not magic. It is one design choice inside the larger space of transfer learning and fine-tuning. It often works well, but its value depends on task fit, evaluation quality, and deployment needs. Some tasks may still require fuller retraining or stronger data preparation.

Even so, LoRA is an important concept because it shows how modern AI engineering often progresses: not only through bigger models, but through smarter ways to adapt and operate them.

Follow the idea

Fine-tuning provides the broader context for adapting model behavior.

Model compression addresses the separate question of deployment size and cost.

Source · Hu and colleagues’ original LoRA paper

Return to LoRA (Low-Rank Adaptation) in the A–Z glossary