EoRA: 无需微调的压缩LLM补偿方法
EoRA: Fine-tuning-free Compensation for Compressed LLM with Eigenspace Low-Rank Approximation
AI总结:
EoRA提出一种无需微调的压缩LLM补偿方法,通过低秩矩阵增强模型性能,实现准确率与计算开销的灵活平衡,优于现有方法,显著提升压缩模型的准确率。
摘要:
尽管后训练压缩技术有效降低了大语言模型(LLM)的内存占用、延迟和功耗,但通常会导致明显的准确性下降,并受限于硬件和内核限制,限制了支持的压缩格式,最终减少了在广泛部署场景中的灵活性。在本工作中,我们提出了EoRA——一种新的无需微调的方法,通过低秩矩阵增强压缩LLM,允许用户快速提升任务特定性能,并在压缩格式的限制之外灵活平衡准确率和计算开销。EoRA在恢复压缩LLM的准确性方面始终优于先前的无微调低秩方法,实现了显著的准确率提升(例如,在ARC-Challenge上提升10.84%,在MathQA上提升6.74%,在GSM8K上提升11.45% for LLaMA3-8B压缩到3位)。我们还引入了一个优化的CUDA内核,通过量化EoRA加速推理,提升1.4倍,并减少内存开销。总体而言,EoRA为在不同用户需求下提高压缩模型的准确性提供了可行的解决方案,使LLM的部署更加高效和灵活。代码可在https://github.com/NVlabs/EoRA获取。
英文摘要:
While post-training compression techniques effectively reduce the memory footprint, latency, and power consumption of Large Language Models (LLMs), they often result in noticeable accuracy degradation and remain limited by hardware and kernel constraints that restrict supported compression formats - ultimately reducing flexibility across a wide range of deployment scenarios. In this work, we propose EoRA - a novel $\textbf{fine-tuning-free}$ method that augments compressed LLMs with low-rank matrices, allowing users to rapidly enhance task-specific performance and freely balance the trade-off between accuracy and computational overhead beyond the constraints of compression formats. EoRA consistently outperforms prior fine-tuning-free low rank methods in recovering the accuracy of compressed LLMs, achieving notable accuracy improvements (e.g., $\mathbf{10.84\%}$ on ARC-Challenge, $\mathbf{6.74\%}$ on MathQA, and $\mathbf{11.45\%}$ on GSM8K for LLaMA3-8B compressed to 3-bit). We also introduce an optimized CUDA kernel, accelerating inference by up to 1.4x and reducing memory overhead through quantizing EoRA. Overall, EoRA offers a prompt solution for improving the accuracy of compressed models under varying user requirements, enabling more efficient and flexible deployment of LLMs. Code is available at https://github.com/NVlabs/EoRA.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。