On Zero-Initialized Attention: Optimal Prompt and Gating Factor Estimation
Nghiem Tuong Diep, Huy Nguyen, Chau Nguyen, Minh Le, Duy Minh Ho Nguyen, Daniel Sonntag, Mathias Niepert, Nhat Ho
摘要
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-ofexpert models. We prove that both linear and nonlinear 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. Our implementation is publicly available on GitHub.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
- Compacter: Efficient Low-Rank Hypercomplex Adapter Layers 引用了 Language Models are Few-Shot Learners
- Measuring Massive Multitask Language Understanding 引用了 Language Models are Few-Shot Learners
- Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning 引用了 Compacter: Efficient Low-Rank Hypercomplex Adapter Layers
- Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context Learning 引用了 Language Models are Few-Shot Learners
引用它的顶会 Paper2
它引用的 Paper18
- Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah 等NeurIPS 2020 · 64,255 次引用
- Measuring Massive Multitask Language UnderstandingDan Hendrycks, Collin Burns, Steven Basart, Andy Zou 等ICLR 2021 · 7,905 次引用
- Few-Shot Parameter-Efficient Fine-Tuning is Better and Cheaper than In-Context LearningHaokun Liu, Derek Tam, Mohammed Muqeeth, Jay Mohta 等NeurIPS 2022 · 1,483 次引用
- Compacter: Efficient Low-Rank Hypercomplex Adapter LayersRabeeh Karimi Mahabadi, James Henderson, Sebastian RuderNeurIPS 2021 · 700 次引用
- Towards Understanding the Mixture-of-Experts Layer in Deep LearningZixiang Chen, Yihe Deng, Yue Wu, Quanquan Gu 等NeurIPS 2022 · 199 次引用
相关 Paper
- On the Role of Attention in Prompt-tuningSamet Oymak, Ankit Singh Rawat, Mahdi Soltanolkotabi, Christos ThrampoulidisICML 2023 · 67 次引用
- ZeroTuning: Unlocking the Initial Token's Power to Enhance Large Language Models Without TrainingFeijiang Han, Xiaodong Yu, Jianheng Tang, Delip Rao 等ICLR 2026 · 17 次引用
- LLaMA-Adapter: Efficient Fine-tuning of Large Language Models with Zero-initialized AttentionRenrui Zhang, Jiaming Han, Chris Liu, Aojun Zhou 等ICLR 2024 · 174 次引用
- Large (Vision) Language Models are Unsupervised In-Context LearnersArtyom Gadetsky, Andrei Atanov, Yulun Jiang, Zhitong Gao 等ICLR 2025
- P-Adapters: Robustly Extracting Factual Information from Language Models with Diverse PromptsBenjamin Newman, Prafulla Kumar Choubey, Nazneen RajaniICLR 2022 · 29 次引用
