Abstract
Model compression via Singular Value Decomposition (SVD) is a standard technique for deploying large neural networks on resource-constrained devices. However, traditional SVD methods are reactive, applying decomposition to fully trained models that may reside in high-rank regions of the parameter space. This often leads to catastrophic accuracy loss requiring extensive fine-tuning. We present Low-Rank Prehab, a proactive pre-compression stage that conditions neural networks to be more amenable to SVD. By steering model weights toward low-rank regions of the solution manifold while maintaining task performance, Prehab significantly reduces the immediate accuracy drop and improves final performance across Vision Transformers and Large Language Models.
Introduction
The deployment of massive architectures like Large Language Models (LLMs) on edge devices necessitates effective model compression. SVD is a popular choice, decomposing weight matrices into low-rank factors. Current approaches typically follow a "surgery and rehab" pipeline: a converged model is decomposed (surgery) and then fine-tuned (rehab) to recover performance. The fundamental issue is that standard training objectives do not incentivize low-rank structures. Consequently, a model might reach peak accuracy at a point where SVD causes irreparable damage.
Low-Rank Prehab shifts the focus from improving the surgery to preparing the "patient"—the model—for compression. By navigating the manifold of optimal solutions, Prehab finds a version of the model that performs just as well but sits much closer to a low-rank configuration.
Methodology
Low-Rank Prehab is a lightweight fine-tuning stage inserted between initial training and compression. It employs three core strategies:
- Geometric Steering: Instead of a direct projection, Prehab moves weights along the manifold of optimal solutions ($M_{\mathcal{L}}$). This minimizes the geometric deviation during the eventual SVD step.
- Fisher-Aligned Regularization: To ensure compatibility with state-of-the-art compressors like SVD-LLM, regularization is applied to Fisher-whitened matrices, accounting for the specific geometry of the compression process.
- Rank Surrogates: Since rank is non-differentiable, Prehab uses smooth proxies such as the $\ell_1$-norm of singular values (to promote spectral sparsity) and Stable Rank (a scale-invariant ratio of Frobenius to spectral norms).
The final objective combines standard task loss with a rank-regularization term ($\lambda$), allowing for a controlled trade-off between baseline accuracy and compressibility.
Experimental Results
The effectiveness of Prehab was evaluated across Vision (ViT-B/16 on ImageNet-1K), Language Understanding (BERT-Base on GLUE), and LLMs (Llama-7B on WikiText-2/C4).
Key findings include:
- High Compression Gains: At 60% compression, Prehab-SVD achieved 48.12% accuracy on ViT-B, a nearly 20% absolute improvement over the SVD-LLM baseline (28.38%).
- LLM Perplexity: For Llama-7B at 60% compression, Prehab reduced WikiText-2 perplexity from 66.62 to 46.75.
- Stability and BERT Performance: Prehab consistently outperformed other SVD variants on the GLUE benchmark, maintaining significantly higher scores on challenging tasks like CoLA and RTE.
- Efficiency: Prehab is computationally inexpensive, requiring only ~7.5 minutes for ViT-B and ~10 minutes for Llama-7B on a single GPU.
- Synergy with LoRA: Prehab provides a superior starting point for post-SVD fine-tuning, allowing methods like LoRA to converge faster and reach higher final accuracy.
Conclusion
Low-Rank Prehab demonstrates that proactive conditioning is a powerful paradigm for model compression. By aligning models with the geometric requirements of SVD before truncation, it achieves superior performance and stability. Future work includes exploring heterogeneous rank assignments across layers and extending the "Prehab" philosophy to other compression techniques like quantization and pruning.
Summary updated