arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2606.05899cs.LGcond-mat.dis-nn
收藏

可解注意力模型中LoRA微调的高维理论

High-Dimensional Theory of LoRA Fine-Tuning in a Solvable Attention Model

Statistical Physics of Computation Laboratory, École Polytechnique Fédérale de Lausanne (EPFL)(计算物理学实验室,瑞士联邦理工学院(EPFL))

O. Duranthon, F. Boncoraglio, L. Zdeborová

AI总结:

本文通过高维统计理论分析低秩适应(LoRA)在注意力模型中的微调过程,揭示了预训练与微调之间的相互作用,并给出了测试误差和表示对齐的精确渐近刻画。

摘要:

我们发展了低秩适应(LoRA)在注意力模型中的高维统计理论,捕捉了预训练与微调之间的相互作用。我们引入了一个可解框架,其中单头注意力层首先在数据丰富的任务上进行预训练,随后通过秩一LoRA更新在有限数据上进行适应。在高维极限下,两个阶段都允许通过一组有限序参数进行尖锐的渐近刻画,从而为测试误差和表示对齐提供显式预测。我们的分析表明,预训练对LoRA的影响可以总结为一个有效噪声项,由此我们推导出最优预训练过程的处方。我们还展示了一个测试误差与表示质量不匹配的机制,并提出了我们的理论在主动微调中的应用。

英文摘要:

We develop a high-dimensional statistical theory of low-rank adaptation (LoRA) in attention models, capturing the interplay between pre-training and fine-tuning. We introduce a solvable framework in which a single-head attention layer is first pre-trained on a data-abundant task and subsequently adapted via a rank-one LoRA update on limited data. In the high-dimensional limit, both stages admit a sharp asymptotic characterization in terms of a finite set of order parameters, yielding explicit predictions for test errors and representation alignment. Our analysis shows that the impact of pre-training on LoRA is summarized by an effective noise term, from which we derive prescriptions for the optimal pre-training procedure. We also demonstrate a regime with a mismatch between the value of the test error and representation quality, and propose an application of our theory to active fine-tuning.

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

↑