arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2502.03029cs.LG
收藏

论零初始化注意力:最优提示与门控因子估计

On Zero-Initialized Attention: Optimal Prompt and Gating Factor Estimation

University of Science, VNU-HCM, Ho Chi Minh City, Vietnam(越南胡志明市VNU-HCM大学);Viet Nam National University, Ho Chi Minh City, Vietnam(越南国家大学);German Research Center for Artificial Intelligence (DFKI)(德国人工智能研究中心);Qualcomm AI Research, an initiative of Qualcomm Technologies, Inc.(高通人工智能研究);The University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Stuttgart(斯图加特大学);Max Planck Research School for Intelligent Systems (IMPRS-IS)(马克斯·普朗克智能系统研究学校);Oldenburg University(奥尔登堡大学)

Nghiem T. Diep, Huy Nguyen, Chau Nguyen, Minh Le, Duy M. H. Nguyen, Daniel Sonntag, Mathias Niepert, Nhat Ho

AI总结:

本文从理论上建立零初始化注意力与混合专家模型的联系,证明线性和非线性提示及门控函数可最优估计,并在开放LLM基准上验证非线性提示更优,且两种提示均优于普通注意力。

摘要:

LLaMA-Adapter 最近作为一种高效的 LLaMA 模型微调技术出现,利用零初始化注意力来稳定训练并提升性能。然而,尽管其经验成功,零初始化注意力的理论基础在很大程度上仍未得到探索。在本文中,我们提供了严格的理论分析,建立了零初始化注意力与混合专家模型之间的联系。我们证明了线性和非线性提示以及门控函数都可以被最优估计,其中非线性提示为未来应用提供了更大的灵活性。在实验上,我们在开放 LLM 基准上验证了我们的发现,表明非线性提示优于线性提示。值得注意的是,即使在有限训练数据下,两种提示类型都持续优于普通注意力,凸显了零初始化注意力的鲁棒性和适应性。

英文摘要:

The LLaMA-Adapter has recently emerged as an efficient fine-tuning technique for LLaMA models, leveraging zero-initialized attention to stabilize training and enhance performance. However, despite its empirical success, the theoretical foundations of zero-initialized attention remain largely unexplored. In this paper, we provide a rigorous theoretical analysis, establishing a connection between zero-initialized attention and mixture-of-expert models. We prove that both linear and non-linear prompts, along with gating functions, can be optimally estimated, with non-linear prompts offering greater flexibility for future applications. Empirically, we validate our findings on the open LLM benchmarks, demonstrating that non-linear prompts outperform linear ones. Notably, even with limited training data, both prompt types consistently surpass vanilla attention, highlighting the robustness and adaptability of zero-initialized attention.

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

↑