语言模型具备执行上下文学习(ICL)的能力,使其能够基于上下文灵活调整行为。这与权重内学习(IWL)形成对比,后者是在对数据进行迭代观察后,将记忆信息编码在模型参数中。理想的模型应该能够灵活运用这两种能力。尽管语言模型表面上具备上下文学习能力,但已知它们在面对未见或极少见的词元时会遇到困难(Land & Bartolo, 2024)。因此,我们研究了$\ extbf{结构性上下文学习}$,我们将其定义为模型对任意新颖词元执行上下文学习的能力——之所以这样称呼,是因为模型必须基于例如句子结构或任务结构进行泛化,而不是基于词元嵌入中编码的内容。我们使用玩具模型、掩码语言模型和自回归语言模型,在合成和自然任务上研究了结构性上下文算法。我们发现,结构性ICL在语言模型预训练早期出现后便迅速消失。虽然已有研究表明ICL在训练过程中会减弱(Singh et al., 2023),但我们发现先前的工作并未考虑结构性ICL。基于Chen et al. (2024)的主动遗忘方法,我们引入了预训练和微调方法,可以调节对结构性ICL和IWL的偏好。重要的是,这使我们能够引发一种$\ extit{双重过程策略}$,其中上下文和权重内的解决方案在单一模型中共存。
英文摘要:
Language models have the ability to perform in-context learning (ICL), allowing them to flexibly adapt their behavior based on context. This contrasts with in-weights learning (IWL), where memorized information is encoded in model parameters after iterated observations of data. An ideal model should be able to flexibly deploy both of these abilities. Despite their apparent ability to learn in-context, language models are known to struggle when faced with unseen or rarely seen tokens (Land & Bartolo, 2024). Hence, we study $\textbf{structural in-context learning}$, which we define as the ability of a model to execute in-context learning on arbitrary novel tokens -- so called because the model must generalize on the basis of e.g. sentence structure or task structure, rather than content encoded in token embeddings. We study structural in-context algorithms on both synthetic and naturalistic tasks using toy models, masked language models, and autoregressive language models. We find that structural ICL appears before quickly disappearing early in LM pretraining. While it has been shown that ICL can diminish during training (Singh et al., 2023), we find that prior work does not account for structural ICL. Building on Chen et al. (2024) 's active forgetting method, we introduce pretraining and finetuning methods that can modulate the preference for structural ICL and IWL. Importantly, this allows us to induce a $\textit{dual process strategy}$ where in-context and in-weights solutions coexist within a single model.
Beyond Forgetting: Representation Misdirection Elicits Controllable Side Behaviors and Capabilities
Japan Advanced Institute of Science and Technology(日本先进科学研究所);Quantum AI and Cyber Security Institute(量子人工智能与网络安全研究所);FPT Corporation(FPT公司);Monash University(墨尔本大学);RIKEN(理化学研究所)
AWARe: Mitigating Catastrophic Forgetting via Activation-Weighted Adaptive REtention
School of Software Technology, Zhejiang University(浙江大学软件学院);College of Intelligent Robotics and Advanced Manufacturing, Fudan University(复旦大学智能机器人与先进制造学院);School of Artificial Intelligence, Sun Yat-Sen University(中山大学人工智能学院);Graduate School of Information Science, Hokkaido University(北海道大学信息科学研究院)
Analyzing and Reducing Catastrophic Forgetting in Parameter Efficient Tuning
College of Information Sciences and Technology, Pennsylvania State University(宾夕法尼亚州立大学信息科学与技术学院);School of Computer Science and Technology, Singapore Management University(新加坡管理大学计算机科学与技术学院);School of Computer Science, Hefei Univeristy of Technology(合肥工业大学计算机学院)
Countering Catastrophic Forgetting of Large Language Models for Better Instruction Following via Weight-Space Model Merging
University of Florida(佛罗里达大学);Department of Health Outcomes and Biomedical Informatics, College of Medicine, University of Florida(佛罗里达大学医学院健康结果与生物医学信息学系);Department of Engineering Education, Herbert Wertheim College of Engineering, University of Florida(佛罗里达大学赫伯特·韦特海姆工程学院工程教育系);Preston A. Wells, Jr. Center for Brain Tumor Therapy, Lillian S. Wells Department of Neurosurgery, University of Florida(佛罗里达大学莉莉安·S·威尔斯神经外科系普雷斯顿·A·威尔斯脑肿瘤治疗中心)
Measuring Catastrophic Forgetting in Cross-Lingual Transfer Paradigms: Exploring Tuning Strategies
Jožef Stefan Institute(约热夫· Stefan 研究所);Jožef Stefan International Postgraduate School(约热夫· Stefan 国际研究生学院);Faculty of Computer and Information Science, University of Ljubljana(卢布尔雅那大学计算机与信息科学学院)
本研究比较大语言模型在跨语言零样本与全样本设置下的 adapter/全参数微调及 IT、CLV 迁移策略,发现 IT 更利于目标语言,CLV 更能保留英语知识。
Dynamic Context-oriented Decomposition for Task-aware Low-rank Adaptation with Less Forgetting and Faster Convergence
King Abdullah University of Science and Technology, Saudi Arabia(卡布尔大学);University of California, Merced, USA(加州大学梅尔德分校);University of Oxford, U.K.(牛津大学)
A Comparative Empirical Study of Catastrophic Forgetting Mitigation in Sequential Task Adaptation for Continual Natural Language Processing Systems
Zaven P. and Sonia Akian College of Science and Engineering(泽文·皮和索尼亚·阿基安科学与工程学院);American University of Armenia(亚美尼亚美国大学);Yerevan(亚美尼亚共和国首都耶莱范);Armenia(亚美尼亚)