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

在任意文本条件下学习:一种超网络驱动的元门控大语言模型

Learn-To-Learn on Arbitrary Textual Conditioning: A Hypernetwork-Driven Meta-Gated LLM

University of Science and Technology of China(中国科学技术大学)

Luo Ji, Qi Qin, Ningyuan Xi, Teng Chen, Qingqing Gu, Hongyan Li

AI总结:

提出一种超网络驱动的元门控机制,通过动态调整SwiGLU块中的β参数,使LLM适应不同文本条件,优于微调和元学习基线。

摘要:

传统的大语言模型可能面临语料异质性和细微条件变化的问题。虽然微调可能导致灾难性遗忘,但元学习在LLM上的应用也因其复杂性和可扩展性而受到限制。在本文中,我们激活了SwiGLU块中的元信号$β$,形成了一种自适应调整FFN非线性的元门控机制。我们使用超网络动态生成基于文本条件的$β$,为LLM提供元可控性。通过在任务、领域、角色和风格等不同条件类型上的测试,我们的方法优于微调和元学习基线,并且能够合理泛化到未见过的任务、条件类型或指令。我们的代码可在https://github.com/AaronJi/MeGan找到。

英文摘要:

Conventional LLMs may suffer from corpus heterogeneity and subtle condition changes. While finetuning can create the catastrophe forgetting issue, application of meta-learning on LLMs is also limited due to its complexity and scalability. In this paper, we activate the meta-signal of $β$ within the SwiGLU blocks, resulting in a meta-gating mechanism that adaptively adjusts the nonlinearity of FFN. A hypernetwork is employed which dynamically produces $β$ on textual conditions, providing meta-controllability on LLMs. By testing on different condition types such as task, domain, persona, and style, our method outperforms finetuning and meta-learning baselines, and can generalize reasonably on unseen tasks, condition types, or instructions. Our code can be found in https://github.com/AaronJi/MeGan.

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

↑