Abstract
This paper introduces Q3R (Quadratic Reweighted Rank Regularizer), a novel training strategy designed to induce low-rank structures in neural network weights during both pre-training and fine-tuning. While parameter-efficient fine-tuning (PEFT) methods like LoRA have become standard for model adaptation, they often underperform when applied to training from scratch. Q3R addresses this gap by leveraging a smoothed log-determinant surrogate for rank, optimized through a quadratic majorization framework. Combined with a specialized optimizer variant, AdamQ3R, the proposed method allows models such as Vision Transformers and Large Language Models to achieve significant parameter reduction (60-80%) with negligible loss in accuracy. Our results demonstrate that Q3R consistently outperforms existing low-rank training techniques in "from-scratch" scenarios and remains competitive in fine-tuning tasks.
1. Introduction
The demand for efficient neural networks has led to the development of various low-rank approximation techniques. However, a significant disparity exists between the success of low-rank adaptation (e.g., LoRA) and low-rank pre-training. Standard low-rank methods typically struggle to balance the primary task objective with structural constraints, often leading to performance degradation compared to dense counterparts. Existing solutions frequently rely on post-hoc pruning or complex overparameterization, which can be computationally expensive or numerically unstable.
The challenge lies in implementing a "soft" constraint that encourages low-rankness throughout the training process without prematurely restricting the model's capacity to learn complex features. Q3R addresses this by providing a principled optimization path that allows models to explore higher-rank spaces early in training before settling into a compressed structure.
2. Methodology
2.1 The Q3R Regularizer
Directly minimizing the rank of a matrix is a non-convex and discontinuous problem. Q3R utilizes an $\epsilon$-smoothed log-determinant surrogate to approximate the rank. To make this surrogate amenable to standard gradient-based optimization, the authors derive a quadratic "majorizer"—a function that upper-bounds the surrogate. This transforms the difficult non-convex problem into a sequence of simpler reweighted quadratic problems, following the principles of Iteratively Reweighted Least Squares (IRLS).
2.2 Reweighting and Periodicity
The regularizer employs a reweighting operator $\mathcal{R}$ that is updated periodically every $T$ iterations. This operator effectively suppresses smaller singular values over time, gradually squeezing the weight matrix into a lower-rank subspace. By updating the operator periodically (e.g., every 5 to 50 iterations) rather than every step, the computational overhead of the required partial SVD is significantly reduced, making Q3R nearly as efficient as standard dense training.
2.3 The AdamQ3R Optimizer
Standard adaptive optimizers like Adam can distort the loss landscape when rank regularization is introduced. Inspired by the success of AdamW in decoupling weight decay, the authors propose AdamQ3R. This variant decouples the Q3R gradient from the adaptive moment estimation, improving both generalization and training stability. Additionally, a dynamic smoothing parameter $\epsilon$ is updated based on a user-defined target rank $r_{target}$, allowing for precise control over the final compression level.
3. Experimental Results
3.1 Computer Vision Pre-training
Q3R was evaluated on Vision Transformers (ViT) across several benchmarks:
- ViT-Tiny (CIFAR-10): Q3R achieved a 60% parameter reduction with only a 1.3% absolute accuracy drop. At 80% reduction, the drop was 4%, consistently outperforming LoRA and LoRITa.
- ViT-Base (ImageNet-1k): The method maintained performance comparable to full-rank baselines while significantly reducing the effective rank of attention and MLP blocks.
3.2 Natural Language Processing Fine-tuning
The effectiveness of Q3R extends to large-scale language models:
- Llama 3.2 (1B and 3B): On the GLUE benchmark, Q3R matched or exceeded LoRA's performance. For instance, on the MRPC task, Q3R achieved an F1 score of 87.8%, surpassing LoRA's 87.3%.
- RoBERTa-Base: Similar competitive results were observed across the GLUE suite, confirming Q3R as a robust alternative for fine-tuning.
4. Discussion and Limitations
Q3R represents a significant step toward effective low-rank training, particularly for pre-training scenarios where previous methods failed. However, some limitations remain:
- Training Memory: While the final model is low-rank, the training process currently utilizes dense weight matrices. Consequently, Q3R reduces deployment size but does not yet reduce the memory footprint during the training phase.
- Hyperparameter Sensitivity: The method introduces new parameters such as the target rank $r_{target}$ and reweighting period $T$. While the paper provides robust guidelines, finding optimal settings for models exceeding 70B parameters remains an area for future exploration.
5. Conclusion
Q3R provides a principled and effective framework for inducing low-rank structures in neural networks. By combining majorization-minimization techniques with a decoupled optimizer, it bridges the gap between dense performance and low-rank efficiency, offering a powerful tool for the next generation of compressed AI models.
Summary updated