Towards Identifying Dominant Low-Rank Subspaces in Zeroth-Order Fine-Tuning
Jinjie Fang, Chengxun Jin, Yi Chang, Bin Gu
NeurIPS page · OpenReview · Open on the map
Category: Efficient LLM Inference & Training › Zeroth-Order Fine-Tuning · Type: new method · Keywords: zeroth-order optimization, low-rank subspaces, gradient estimation, LLM fine-tuning, memory efficiency
Areas: Optimization & Algorithms › Optimization Dynamics › Zeroth-Order Optimization
Summary
AHZO is an efficient low-rank zeroth-order fine-tuning algorithm that dynamically identifies dominant gradient subspaces via average historical gradients, achieving performance competitive with first-order fine-tuning while using less memory.
Explained to a 5-year-old
Big computer brain models need a lot of memory to learn new things. A new way tries to use less memory by looking at old mistakes. It finds the most important directions where the model should change. Then it only changes the model in those important places. This helps the model learn quickly while using less memory.
Explained to a 5-year-old, longer
Big computer brain models are like very smart robots that can talk and write. When we want them to do something new, we usually need to change a lot of their parts. Changing a lot uses a lot of memory, like having a big backpack. Some scientists wanted a lighter backpack, so they invented a new way to change the model. This new way looks at the mistakes the model made before. It picks out the biggest mistakes, which show where the model should improve. Then it only changes the model in those important places. This makes the changes smaller and uses less memory. The model still learns to do new things well. It works almost as well as the old, heavy way of changing everything. This helps people who don't have a lot of computer memory to still use big models. So now more people can use smart computer brains without needing huge computers.
For a technical reader
The paper addresses the high memory cost of fine-tuning large language models with first-order methods by using zeroth-order optimization, which avoids explicit gradients. Existing zeroth-order approaches assume random low-rank subspaces, leading to noisy updates and slow convergence. AHZO computes an average historical zeroth-order gradient over training steps, extracts its dominant directions via singular value decomposition, and uses these directions for efficient updates. Theoretical analysis shows that this subspace selection dramatically reduces gradient estimation variance, yielding better convergence guarantees. Experiments across several LLM architectures demonstrate that AHZO matches first-order fine-tuning performance while using far less memory.
Problem
Adapting large language models to downstream tasks using first-order backpropagation requires large memory. Zeroth-order optimization offers a memory-efficient alternative but suffers from high variance due to the curse of dimensionality, especially when gradient information lies in low-rank subspaces that are not captured by random subspace approximations.
Method
The approach computes an average historical zeroth-order gradient over an optimization period, applies singular value decomposition to this matrix, and extracts the leading singular vectors to form a low-rank subspace that aligns with the true gradient directions. This subspace is then used for efficient zeroth-order updates, reducing gradient estimation variance.
Results
The approach shows consistent improvements over existing zeroth-order baselines and reaches performance comparable to first-order fine-tuning across multiple LLM tasks.
Contributions
A method to dynamically identify dominant low-rank gradient subspaces using historical gradients, theoretical proof of reduced variance, and empirical validation across diverse LLMs.
Practical relevance
Enables memory-efficient fine-tuning of large language models on modest hardware, making advanced model adaptation more accessible.
Research questions this paper is counted under
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