AdaPreLoRA: Adafactor Preconditioned Low-Rank Adaptation
Ziyun Liu, Fengmiao Bian, Jian-Feng CAI
NeurIPS page · Open on the map
Category: Interpretability & Model Adaptation › Low-Rank Adaptation Methods · Type: new method · Keywords: Low-Rank Adaptation, preconditioning, Adafactor, gradient statistics, memory efficiency
Areas: Optimization & Algorithms › Optimization Dynamics › Low-Rank Adaptation
Summary
AdaPreLoRA introduces an Adafactor preconditioned LoRA optimizer that efficiently maps preconditioned weight updates to factor-space updates while maintaining low memory usage.
Explained to a 5-year-old
When we want to change a big computer program, we usually add a small piece of information. This piece is split into two tiny parts. The computer tries to update these parts using a special rule, but sometimes the rule doesn't work well. The new idea makes the rule work better by balancing the two parts and using less memory. This helps small teams train big models without needing a lot of computer power.
Explained to a 5-year-old, longer
We have a huge computer program that we sometimes want to adjust for a new task. To do this, we add a tiny piece of information that is made of two small parts. The computer uses a rule to update these parts, but the rule can be tricky because the parts are linked in a complicated way. The new method improves the rule by making sure the two parts stay balanced and by using less memory. This makes it possible to train big models on a regular computer instead of needing a super powerful one. It also helps the model learn faster and more accurately. The idea works for many kinds of models, like those that understand language and those that create pictures. By using a special kind of math called a preconditioner, the method finds the best update quickly. This means developers can personalize models without a huge cost in time or money.
For a technical reader
AdaPreLoRA is a new optimizer for Low-Rank Adaptation that uses the Adafactor preconditioner to improve gradient updates. It solves for the optimal low-rank factors in closed form, reducing memory to O((m+n)r). The method balances the contributions of the two factors under the preconditioner, yielding updates closest to the full-space direction. It has been evaluated on GPT-2, Mistral-7B, Qwen2-7B and diffusion models, matching or beating existing LoRA optimizers. The result is a memory-efficient fine-tuning solution for large models on modest hardware.
Problem
Adapting large models with LoRA using preconditioned optimizers is challenging because the factor-space preconditioner is singular, preventing a unique inversion of the chain rule to map preconditioned weight updates back to factor updates.
Method
The approach adopts the Adafactor diagonal Kronecker preconditioner on the full weight matrix and selects the factor-space update that minimizes an imbalance between the two low-rank factors under this preconditioner, yielding a closed-form solution with O((m+n)r) memory.
Results
The approach matches or exceeds existing LoRA optimizers in performance while maintaining low GPU memory usage.
Contributions
It provides a gradient-statistics-aware preconditioner for LoRA that yields a closed-form factor-space update, filling a gap in efficient, memory-conscious LoRA optimization.
Practical relevance
It enables efficient, memory-friendly fine-tuning of large language and diffusion models on modest hardware.
This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction