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

LoRA 与 Dropout 在统一框架下的结合

LoRA Meets Dropout under a Unified Framework

The University of Hong Kong(香港大学);The Chinese University of Hong Kong(香港中文大学)

Sheng Wang, Liheng Chen, Jiyue Jiang, Boyang Xue, Lingpeng Kong, Chuan Wu

AI总结:

本研究针对LoRA微调中的过拟合问题,统一分析多种dropout方法,提出新方法HiddenKey,实验证明其在多模型多任务上性能优越,是参数高效微调LLMs的首选方案。

摘要:

凭借卓越的能力,大型语言模型(LLMs)已成为众多自然语言处理应用中不可或缺的要素,而参数高效微调,尤其是LoRA,作为一种轻量级的模型定制方法已广受欢迎。与此同时,最初为全参数更新微调设计的各种dropout方法,通过缓解与过多参数冗余相关的过拟合问题。因此,LoRA可训练参数极少与先前dropout方法的有效性之间可能产生矛盾,而这一矛盾在很大程度上被忽视了。为填补这一空白,我们首先确认参数高效的LoRA也容易过拟合。随后,我们重新审视了Transformer特定的dropout方法,并从数学和实证角度确立了它们的等价性与区别。基于这一比较分析,我们引入了一个统一框架进行综合研究,该框架根据丢弃位置、结构模式和补偿措施来实例化这些方法。通过这一框架,我们揭示了在可训练参数有限的情况下,这些方法的新偏好和性能比较。该框架还使我们能够将最有利的方面融合成一种新颖的dropout方法,名为HiddenKey。大量实验验证了HiddenKey在多种模型和任务上的显著优越性和充分性,凸显了其作为高性能、参数高效微调LLMs的首选方法。

英文摘要:

With the remarkable capabilities, large language models (LLMs) have emerged as essential elements in numerous NLP applications, while parameter-efficient finetuning, especially LoRA, has gained popularity as a lightweight approach for model customization. Meanwhile, various dropout methods, initially designed for full finetuning with all the parameters updated, alleviates overfitting associated with excessive parameter redundancy. Hence, a possible contradiction arises from negligible trainable parameters of LoRA and the effectiveness of previous dropout methods, which has been largely overlooked. To fill this gap, we first confirm that parameter-efficient LoRA is also overfitting-prone. We then revisit transformer-specific dropout methods, and establish their equivalence and distinctions mathematically and empirically. Building upon this comparative analysis, we introduce a unified framework for a comprehensive investigation, which instantiates these methods based on dropping position, structural pattern and compensation measure. Through this framework, we reveal the new preferences and performance comparisons of them when involved with limited trainable parameters. This framework also allows us to amalgamate the most favorable aspects into a novel dropout method named HiddenKey. Extensive experiments verify the remarkable superiority and sufficiency of HiddenKey across multiple models and tasks, which highlights it as the preferred approach for high-performance and parameter-efficient finetuning of LLMs.

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

↑