arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2501.03152cs.LGcs.AI
收藏

基于互信息上界的 LoRA 缩放定律

The Scaling Law for LoRA Base on Mutual Information Upper Bound

College of Intelligence and Computing, Tianjin University(天津大学智能与计算学部)

Jing Zhang, Hui Gao, Peng Zhang, Shuzhen Sun, Chang Yang, Yuexian Hou

AI总结:

针对外部指标难以刻画 LoRA 新知识与预训练知识依赖的问题,本文提出基于互信息上界 MIUB 的内部指标,并在 Llama3-8B、Phi3-3B 上验证其更准确稳定。

摘要:

LoRA(低秩适配)是一种被广泛使用的模型微调方法。在微调过程中,模型性能、模型参数与数据复杂性之间的规律一直是该领域关注的核心问题。现有方法通常借助外部指标(如交叉熵或困惑度)来评估模型性能。在大模型的微调过程中,通常涉及两类知识:模型在预训练期间获得的、冻结的通用知识,以及 LoRA 模块从当前数据中学到的新知识。一般而言,LoRA 学到的知识对大模型的依赖越少,它捕捉到的新数据特定知识就越多,从而增强其对新任务的适应性。然而,外部指标并不容易捕捉这两类知识之间的依赖关系。因此,我们基于互信息上界(MIUB)理论设计了一种内部指标,用于研究大模型 LoRA 微调的缩放定律。在实验中,我们使用 Llama3-8B 和 Phi3-3B 模型,在基准数据集上验证了该方法。结果表明,与交叉熵和困惑度相比,所提出的 MIUB 指标能够更准确、更稳定地契合 LoRA 微调的缩放定律。

英文摘要:

LoRA (Low-Rank Adaptation) is a widely used model fine-tuning method. In fine-tuning, the law among model performance, model parameters, and data complexity has been a focal issue in the field. Existing methods often leverage external metrics (such as cross-entropy or perplexity) to evaluate model performance. In the fine-tuning process for large models, two types of knowledge are typically involved: the frozen, general knowledge acquired by the model during pre-training and the new knowledge learned through the LoRA module from the current data. Generally, the less LoRA's learned knowledge relies on the large model, the more it captures the specific knowledge of new data, thereby enhancing its adaptability to new tasks. However, external metrics do not readily capture the dependency relationship between these two types of knowledge. Therefore, we designed an internal metric based on the Mutual Information Upper Bound (MIUB) theory to investigate the scaling law of large-model LoRA fine-tuning. In our experiments, we validated this approach on benchmark datasets, using the Llama3-8B and Phi3-3B models. The results show that the proposed MIUB metric aligns more accurately and stably with the scaling law of LoRA fine-tuning compared to cross-entropy and perplexity.

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

↑