arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.09169cs.LG
收藏

少训练,快推理:通过结构稀疏性实现高效的模型微调与压缩

Train Less, Infer Faster: Efficient Model Finetuning and Compression via Structured Sparsity

Bar Ilan University(巴伊兰大学);Tel Aviv University(特拉维夫大学)

Jonathan Svirsky, Yehonathan Refael, Ofir Lindenbaum

AI总结:

通过结构稀疏性实现高效模型微调与压缩,减少计算和内存需求,提升推理速度。

摘要:

完全微调具有数十亿参数的基础语言模型(LMs)通常由于高昂的计算成本、内存需求以及过拟合的风险而不切实际。尽管低秩适配器等方法通过在冻结的LM上添加小型可训练模块来解决这些挑战,但它们也增加了内存使用,并且无法减少推理延迟。我们发现一种引人入胜的现象:稀疏化特定的模型行和列可以实现高效的任务适应,而无需进行权重调整。我们提出了一种通过稀疏化使用训练随机门的方案进行有效微调的方法,该方法需要极小的可训练参数,减少推理时间,并在不显著影响准确性的情况下移除20-40%的模型参数。实验证明,该方法在效率和性能上均优于最近的微调基线。此外,我们为该随机门过程的收敛性提供了理论保证,并展示了我们的方法相比LoRA具有更简单和更好的条件化的优化景观。我们的结果强调稀疏性作为LM中任务特定适应的有吸引力的机制。

英文摘要:

Fully finetuning foundation language models (LMs) with billions of parameters is often impractical due to high computational costs, memory requirements, and the risk of overfitting. Although methods like low-rank adapters help address these challenges by adding small trainable modules to the frozen LM, they also increase memory usage and do not reduce inference latency. We uncover an intriguing phenomenon: sparsifying specific model rows and columns enables efficient task adaptation without requiring weight tuning. We propose a scheme for effective finetuning via sparsification using training stochastic gates, which requires minimal trainable parameters, reduces inference time, and removes 20--40\% of model parameters without significant accuracy loss. Empirical results show it outperforms recent finetuning baselines in efficiency and performance. Additionally, we provide theoretical guarantees for the convergence of this stochastic gating process, and show that our method admits a simpler and better-conditioned optimization landscape compared to LoRA. Our results highlight sparsity as a compelling mechanism for task-specific adaptation in LMs.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑