LoRA Concept › Key Parameters

Michael BrenndoerferNovember 30, 20252 min read
Language AI HandbookAll chapters
Part 35 of 67Parameter-Efficient Fine-tuning
Chapter 255LoRA Concept › Key Parameters
Reading section 9 of 13 · Key Parameters · 2 minSection 9 of 13 · 2 min

Book contents

Section 9 of 13 · 2 min read

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 rr: 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 r=8r = 8 or r=16r = 16.

  • Alpha α\alpha: The scaling factor for the adapter output. The actual scaling applied to ΔW\Delta W is α/r\alpha / r, which means that if you set α=r\alpha = r, the effective scaling is 1.0. A common heuristic is to set α=r\alpha = r (giving unit scaling) or α=2r\alpha = 2r (giving scaling of 2.0). The intuition for this parameterization is that it decouples the rank from the effective learning rate: changing rr while keeping α\alpha fixed would change the effective scale of the update, which might require retuning the learning rate. By using the ratio α/r\alpha / r, you can change rr 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.