高效大型語言模型推論之低秩壓縮方法
Low-Rank Compression for Efficient Large Language Model Inference
摘要
大型語言模型在眾多自然語言處理任務上展現出卓越的效能,然而其龐大的參數規模與高昂的推論成本,使得高效率部署成為一項重要挑戰。低秩壓縮因能在保留結構化矩陣運算形式的同時,有效降低記憶體使用量與計算成本,且仍能與現代硬體架構良好相容,因此成為一種極具吸引力的解決方案。
本論文從兩個互補的面向提升大型語言模型推論中的低秩壓縮方法。首先,本論文探討在固定壓縮預算下提升秩利用效率的結構化設計方法。具體而言,本研究提出層內共享低秩投影與區塊省略兩種設計,以在維持實務推論效率的前提下,保留更多有效秩數。上述方法共同改善了低秩壓縮模型在壓縮率與模型品質之間的權衡關係。
其次,本論文進一步提出自適應壓縮策略,包括基於費雪資訊的分層秩配置方法,以及漸進式低秩解碼策略。前者根據不同投影矩陣的重要性分配保留秩數,後者則在自回歸生成過程中,隨著解碼進行逐步降低啟用的秩預算,以更貼合解碼階段的動態特性。
實驗結果顯示,所提出的方法在零樣本任務上相較於先前的低秩基準方法提升了 7%,並在摘要生成基準測試中取得了17% 的 ROUGE-L 提升。這些結果說明,有效的大型語言模型低秩壓縮需要同時考量近似精度、元件感知的分配策略、解碼感知的自適應機制,以及結構效率。
本論文從兩個互補的面向提升大型語言模型推論中的低秩壓縮方法。首先,本論文探討在固定壓縮預算下提升秩利用效率的結構化設計方法。具體而言,本研究提出層內共享低秩投影與區塊省略兩種設計,以在維持實務推論效率的前提下,保留更多有效秩數。上述方法共同改善了低秩壓縮模型在壓縮率與模型品質之間的權衡關係。
其次,本論文進一步提出自適應壓縮策略,包括基於費雪資訊的分層秩配置方法,以及漸進式低秩解碼策略。前者根據不同投影矩陣的重要性分配保留秩數,後者則在自回歸生成過程中,隨著解碼進行逐步降低啟用的秩預算,以更貼合解碼階段的動態特性。
實驗結果顯示,所提出的方法在零樣本任務上相較於先前的低秩基準方法提升了 7%,並在摘要生成基準測試中取得了17% 的 ROUGE-L 提升。這些結果說明,有效的大型語言模型低秩壓縮需要同時考量近似精度、元件感知的分配策略、解碼感知的自適應機制,以及結構效率。
Large language models (LLMs) have achieved remarkable performance across many natural language processing tasks, but their large parameter size and high inference cost make efficient deployment challenging. Low-rank compression is an attractive solution because it reduces memory usage and computational cost while preserving structured matrix operations that remain compatible with modern hardware.
This dissertation improves low-rank compression for LLM inference from two complementary perspectives. First, it studies structural designs for improving rank utilization under a fixed compression budget. In particular, it investigates intra-layer shared low-rank projection and block skipping to preserve more effective ranks while maintaining practical efficiency. These designs improve the compression-quality trade-off of low-rank compressed models.
Second, this dissertation proposes adaptive compression strategies, including a Fisher-based layer-wise rank allocation method and a progressive low-rank decoding strategy. The former allocates retained ranks according to the importance of different projections, while the latter gradually reduces the active rank budget during autoregressive generation to better match the dynamic characteristics of decoding.
Experimental results show that the proposed methods outperform prior low-rank baselines by 7% on zero-shot tasks and achieve a 17% ROUGE-L improvement on summarization benchmarks. These results demonstrate the importance of jointly considering approximation accuracy, component-aware allocation, decoding-aware adaptation, and structural efficiency for effective low-rank compression.
This dissertation improves low-rank compression for LLM inference from two complementary perspectives. First, it studies structural designs for improving rank utilization under a fixed compression budget. In particular, it investigates intra-layer shared low-rank projection and block skipping to preserve more effective ranks while maintaining practical efficiency. These designs improve the compression-quality trade-off of low-rank compressed models.
Second, this dissertation proposes adaptive compression strategies, including a Fisher-based layer-wise rank allocation method and a progressive low-rank decoding strategy. The former allocates retained ranks according to the importance of different projections, while the latter gradually reduces the active rank budget during autoregressive generation to better match the dynamic characteristics of decoding.
Experimental results show that the proposed methods outperform prior low-rank baselines by 7% on zero-shot tasks and achieve a 17% ROUGE-L improvement on summarization benchmarks. These results demonstrate the importance of jointly considering approximation accuracy, component-aware allocation, decoding-aware adaptation, and structural efficiency for effective low-rank compression.