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

通过凸重构和梯度缓存实现LLM的高效测试时微调

Efficient Test-Time Finetuning of LLMs via Convex Reconstruction and Gradient Caching

Department of Computer Science(计算机科学系)

Alaa Khamis, Alaa Maalouf

AI总结:

提出HullFT方法,利用凸重构和梯度缓存加速LLM的测试时微调,在保持质量的同时显著降低运行时间。

摘要:

测试时微调(TTFT)是一种快速发展的范式,它通过检索相关序列、在序列上更新模型然后评估提示来使语言模型适应每个提示。然而,TTFT只有在快速的情况下才实用:选择和微调都在每个查询时发生,使得每个步骤都成为直接瓶颈。现有方法以速度换取质量:快速检索通常是冗余的,而更强的多样性感知选择增加了过高的每查询成本。我们引入HullFT,一种几何方法来解决这两个瓶颈。给定一个查询,HullFT首先使用高效的免投影Frank-Wolfe优化将查询嵌入表示为少量训练序列的稀疏凸组合。这产生了一个固有相关且多样化的支持集。然后,我们通过几何整数化过程将分数凸权重转换为用于微调的精确整数多重集。由此产生的多重性自然地创建了重复示例,我们利用梯度重用在重复微调步骤中分摊前向-反向计算。我们的实验表明,HullFT在质量-效率权衡上优于当前最先进的TTFT方法,以显著更低的总运行时间实现了更低的每字节比特数。

英文摘要:

Test-time finetuning (TTFT) is a rapidly evolving paradigm that adapts a language model to each prompt by retrieving related sequences, updating the model on them, and then evaluating the prompt. However, TTFT is only practical if it is fast: selection and finetuning both happen per query, making each a direct bottleneck. Existing methods trade speed for quality: fast retrieval is often redundant, while stronger diversity-aware selection adds prohibitive per-query cost. We introduce HullFT, a geometric approach to TTFT that addresses both bottlenecks. Given a query, HullFT first represents the query embedding as a sparse convex combination of few training sequences, using efficient projection-free Frank-Wolfe optimization. This yields a support set that is inherently relevant and diverse. We then convert the fractional convex weights into an exact integer multiset for finetuning through a geometric integerization procedure. The resulting multiplicities naturally create repeated examples, which we exploit with Gradient Reuse to amortize forward-backward computation across repeated finetuning steps. Our experiments show that HullFT improves the quality-efficiency tradeoff over current state-of-the-art TTFT methods, achieving lower bits-per-byte at substantially lower total runtime.

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

↑