最优奇异损伤:低存储场景下的高效LLM推理
Optimal Singular Damage: Efficient LLM Inference in Low Storage Regimes
AI总结:
本文提出了一种名为“最优奇异损伤”的方法,通过结合低秩近似和稀疏化来高效存储微调后的LLM参数更新,在相同内存预算下实现了更高的存储效率和精度。
摘要:
大型语言模型(LLMs)在各种应用中日益普及。然而,其庞大的规模使得存储和处理能力仅限于少数资源充足的利益相关者。因此,大多数应用依赖于针对特定任务微调的预训练LLM。然而,由于这些模型处理的任务范围广泛,即使是存储这些模型的微调版本仍然是一个重大挑战。最近的研究表明,微调这些模型主要影响一小部分参数,凸显了对微调模型进行更高效存储的需求。本文重点关注微调后预训练模型中参数更新的高效存储。为了应对这一挑战,我们利用了微调更新既是低秩又是稀疏的这一观察结果,这可用于提高存储效率。然而,仅使用低秩近似或稀疏化可能会丢弃增强模型表达能力的关键奇异分量。我们首先观察到,在给定相同内存预算的情况下,具有较大秩的稀疏化低秩近似优于具有较小秩的标准低秩近似。基于此,我们提出了我们的方法,即最优奇异损伤,通过利用奇异向量的交错重要性,选择性地对低秩近似更新进行稀疏化,确保保留最具影响力的分量。我们通过大量实验证明,与单独采用低秩近似或稀疏化相比,我们提出的方法在相同内存预算下实现了显著的存储效率和更高的精度。
英文摘要:
Large language models (LLMs) are increasingly prevalent across diverse applications. However, their enormous size limits storage and processing capabilities to a few well-resourced stakeholders. As a result, most applications rely on pre-trained LLMs, fine-tuned for specific tasks. However, even storing the fine-tuned versions of these models remains a significant challenge due to the wide range of tasks they address. Recently, studies show that fine-tuning these models primarily affects a small fraction of parameters, highlighting the need for more efficient storage of fine-tuned models. This paper focuses on efficient storage of parameter updates in pre-trained models after fine-tuning. To address this challenge, we leverage the observation that fine-tuning updates are both low-rank and sparse, which can be utilized for storage efficiency. However, using only low-rank approximation or sparsification may discard critical singular components that enhance model expressivity. We first observe that given the same memory budget, sparsified low-rank approximations with larger ranks outperform standard low-rank approximations with smaller ranks. Building on this, we propose our method, optimal singular damage, that selectively sparsifies low-rank approximated updates by leveraging the interleaved importance of singular vectors, ensuring that the most impactful components are retained. We demonstrate through extensive experiments that our proposed methods lead to significant storage efficiency and superior accuracy within the same memory budget compared to employing the low-rank approximation or sparsification individually.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。