TECHNOLOGY

LoRA-FA: a frozen factor changes backward memory and optimizer requirements

In this article
THE QUICK TAKE

LoRA-FA is an optimization path with a fixed projection and a method-specific gradient treatment; freezing a tensor alone does not reproduce the whole algorithm.

LoRA-FA freezes the down-projection factor of a low-rank adaptation and trains the up-projection. The method also uses a particular gradient treatment to approximate the desired weight update. Its memory argument concerns information needed for backward computation, which is a different resource from the size of the final adapter file.

Locate the fixed projection

An input passes through the fixed lower-dimensional projection before the trained factor contributes to the layer output. Gradients need not update the frozen factor. This changes which intermediate information must be retained for that parameter path. It does not remove base-model execution, gradients through other trained layers or all activations required elsewhere in the network.

Use the complete optimizer path

PEFT supplies create_lorafa_optimizer, and the current research describes gradient corrections rather than merely turning off a parameter’s training flag. Inspect the optimizer selected by the actual trainer. If another optimizer is constructed later, the intended correction can be absent even though only the expected factor appears trainable. Preserve the optimizer configuration and state when resuming the experiment.

Measure the resource that changed

Separate stored adapter parameters, optimizer state, saved activations and peak working memory. Increasing rank can still change trainable tensors and arithmetic even when a particular activation-storage term is avoided. For an illustrative long-document adaptation, compare identical batches and sequence lengths before changing accumulation or checkpointing. Otherwise a memory reduction cannot be attributed to the fixed-factor path alone.

Retain frozen adapter dependencies

A frozen projection is not the same thing as a pretrained base weight. Its actual values still define the learned update. A custom exporter saving only tensors with gradients can omit essential adapter state. Reload the complete artifact in a fresh evaluation process and compare fixed-input outputs. Keep the base revision, tokenizer and scaling with both factors even when only one factor was optimized.

Evaluate learning and serving separately

The paper reports language-task comparisons and system-efficiency experiments for its setups. A new task needs held-out quality checks under a declared training budget. The serving process consumes the trained effective adapter, while the specialized optimizer governs how it was obtained. Validate any supported export at its intended numerical precision instead of treating a backward-memory improvement as an automatic token-generation speedup.

Primary references

PEFT LoRA-FA optimizer guide.

LoRA-FA current research.

PEFT LoRA-FA optimizer implementation.

Related explanations: training memory accounting; gradient recording boundaries.

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles