LoRA Concept › Key Parameters
Language AI HandbookAll chapters LoRA Concept › Key ParametersOne section · Sections in this chapter9 / 13 ↓
Reading tools Definitions & inline links
Choose your expertise level to adjust how many terms are explained. Beginners see more tooltips, experts see fewer to maintain reading flow. Hover over underlined terms for instant definitions.
Article links
Make inline references clickable
LoRA introduces a small set of hyperparameters that do not exist in full fine-tuning. Understanding what each one controls is needed for using LoRA effectively.
The two core parameters are:
-
Rank : The dimensionality of the low-rank adapters. This is the primary lever controlling the expressiveness-efficiency tradeoff. Lower ranks (4-8) are often sufficient for classification or simple instruction following tasks, where the model only needs to learn to format responses differently. Higher ranks (16-64) may be needed for complex generation tasks like code synthesis or mathematical reasoning, where the model needs to learn new compositional patterns. Common default values in practice are or .
-
Alpha : The scaling factor for the adapter output. The actual scaling applied to is , which means that if you set , the effective scaling is 1.0. A common heuristic is to set (giving unit scaling) or (giving scaling of 2.0). The intuition for this parameterization is that it decouples the rank from the effective learning rate: changing while keeping fixed would change the effective scale of the update, which might require retuning the learning rate. By using the ratio , you can change without changing the effective update magnitude, simplifying hyperparameter search.
In addition to these core parameters, you also specify which weight matrices to apply LoRA to, which we discussed in the previous section. Most implementations default to adapting the query and value projections, and many practitioners find this to be a good starting point for most tasks.