草图以适应:用于高效大语言模型适应的可调节草图
Sketch to Adapt: Fine-Tunable Sketches for Efficient LLM Adaptation
AI总结:
SketchTune通过压缩和适应一体化的方法,实现更高效的大语言模型适应,优于现有PEFT方法。
摘要:
适应预训练的大语言模型(LLMs)至关重要但具有挑战性,因为它们的规模庞大。参数高效微调(PEFT)技术通常使用加性适配器应用于冻结的模型权重。为了进一步减少内存使用,模型权重通常通过量化进行压缩。然而,现有的PEFT方法往往导致模型质量不理想,因为它们依赖于限制性的假设,例如对适配器的低秩约束以限制可训练参数的数量。我们发现,草图,一种流行的数据显示压缩技术,可以作为一种高效的LLM适应策略,同时避免低秩假设。我们引入了SketchTune,一种压缩适应策略,将LLM权重压缩成紧凑的可调节草图,将压缩和适应整合到统一的框架中。这种整合消除了现有PEFT技术中复杂的双路径计算的需要,使训练和推理更快且更内存高效。SketchTune由对矩阵类的数学洞察支持,这些矩阵类更适合使用草图而不是低秩方法进行近似。我们对Llama和Mistral模型的广泛评估表明,SketchTune在多样任务上优于领先的PEFT方法,同时使用显著更小的基础模型和可比的可训练参数。作为亮点,SketchTune在常识和数学基准上使用比LoRA、DoRA和S2FT小2.6-3.5倍的基础模型,并在GSM8K上以7.3倍更少的可训练参数超过了LoftQ的准确性。我们的代码可在https://github.com/LeanModels/SketchTune上获得。
英文摘要:
Adapting pre-trained large language models (LLMs) is crucial but challenging due to their enormous size. Parameter-efficient fine-tuning (PEFT) techniques typically employ additive adapters applied to frozen model weights. To further reduce memory usage, model weights are often compressed through quantization. However, existing PEFT methods often yield suboptimal model quality because they rely on restrictive assumptions, such as low-rank constraints on adapters to limit the number of trainable parameters. We find that sketching, a popular data compression technique, can serve as an efficient LLM adaptation strategy while avoiding the low-rank assumption. We introduce SketchTune, a compressive adaptation strategy that compresses LLM weights into compact fine-tunable sketches, integrating compression and adaptation into a unified framework. This integration eliminates the need for complex two-path computation in existing PEFT techniques, enabling faster and more memory-efficient training and inference. SketchTune is supported by mathematical insights into matrix classes that are better approximated using sketching rather than low-rank methods. Our extensive evaluations with Llama and Mistral models demonstrate that SketchTune outperforms leading PEFT methods across diverse tasks while using substantially smaller base models and comparable trainable parameters. As a highlight, SketchTune outperforms LoRA, DoRA, and S2FT on commonsense and math benchmarks using 2.6-3.5$\times$ smaller base models and exceeds LoftQ in accuracy by 14.48% on GSM8K with 7.3$\times$ fewer trainable parameters. Our code is available at https://github.com/LeanModels/SketchTune.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。