LoRA (Low-Rank Adaptation)

Also known as: Low-Rank Adaptation

Category: Generative AI / LLM

A parameter-efficient fine-tuning method that adds small trainable low-rank matrices to frozen model weights, enabling adaptation with minimal additional parameters.

Full Explanation

LoRA (Low-Rank Adaptation) is a breakthrough parameter-efficient fine-tuning technique that dramatically reduces the memory and compute requirements for adapting large language models. Instead of updating all model parameters, LoRA freezes the original weights and injects trainable low-rank decomposition matrices into each transformer layer. These low-rank matrices capture task-specific adaptations with a tiny fraction of the original parameter count (often less than 1%). During inference, the LoRA weights can be merged with the original weights with zero additional latency. LoRA enables fine-tuning billion-parameter models on consumer GPUs and allows multiple task-specific adaptations to share a single base model. Key hyperparameters include the rank (r) and the target modules. LoRA has become the most popular fine-tuning method for open-source LLMs and has spawned variants like QLoRA, LoRA+, and DoRA.

Related Terms

More in Generative AI / LLM

Explore More