在网络规模文本上训练的大语言模型(Large Language Models,LLMs)具备可解决广泛任务的语言生成能力,尤其是当任务知识通过上下文示例被优化融入生成先验时效果更显著。然而,从噪声数据中学到的虚假特征会阻碍其泛化能力。监督微调虽能引入任务特异性,但存在数据效率低下的问题。已有研究表明:(1)LLMs中噪声神经回路与可泛化神经回路共存;(2)微调通常是增强或抑制现有能力,而非引入新能力。基于此,我们提出一种新型任务适配方法TaRot。TaRot使用可学习旋转矩阵干预神经回路,这些旋转矩阵通过贝叶斯优化(Bayesian Optimization),按标准少样本提示示例的顺序在标注样本上进行优化。在不同规模LLMs的多个分类和生成任务上的实验验证了TaRot的有效性,其零样本和少样本性能均得到提升,(跨模型和任务的)平均提升幅度分别为23.81%和11.15%。源代码可在https://github.com/joykirat18/TaRot获取。
英文摘要:
Large Language Models trained on web-scale text acquire language generation abilities that can solve a wide range of tasks, particularly when task knowledge is refined into the generative prior using in-context examples. However, spurious features learned from noisy data hinder their generalizability. Supervised finetuning can introduce task specificity, but introduce data inefficiency. Prior studies indicate that (i) noisy neural circuitries coexist with generalizable ones within LLMs, and (ii) finetuning typically enhances (or suppresses) existing abilities without introducing newer ones. Building upon these, we propose TaRot, a novel method for task adaptation. TaRot intervenes in the neural circuitries using learnable rotation matrices that are optimized using Bayesian Optimization, on labelled samples in the order of standard few-shot prompting examples. Experiments on multiple classification and generation tasks using LLMs of varying sizes reveal the efficacy of TaRot, improving upon both zero- as well as few-shot performance, with average improvements (across models and tasks) of 23.81% and 11.15%, respectively. The source code is available at https://github.com/joykirat18/TaRot
How Emotion Shapes the Behavior of LLMs and Agents: A Mechanistic Study
School of Computer Science and Engineering, Beihang University(北京航空航天大学计算机科学与工程学院);College of Computing and Data Science, Nanyang Technological University(南洋理工大学计算与数据科学学院)
Locate-then-edit for Multi-hop Factual Recall under Knowledge Editing
Peking University(北京大学);Provable Responsible AI and Data Analytics (PRADA) Lab(可验证负责任人工智能与数据分析(PRADA)实验室);King Abdullah University of Science and Technology(阿卜杜拉国王科技大学);South China University of Technology(华南理工大学)
SNR-Edit: Structure-Aware Noise Rectification for Inversion-Free Flow-Based Editing
State Key lab of CAD\&CG, Zhejiang University(CAD与CG国家重点实验室,浙江大学);UniTTEC Co. Ltd.(UniTTEC有限公司);Research center, Ningbo Meidong Container Terminal Co.,Ltd.(宁波梅东集装箱码头有限公司研究中心)
Behind Harmful Compliance: Behavioral and Mechanistic Divergence Across LLM Jailbreaks
Department of Computer Science(计算机科学系);Luddy School of Informatics, Computing, and Engineering(信息学、计算与工程学院);Indiana University Bloomington(印第安纳大学布卢明顿分校)
ACE: Attribution-Controlled Knowledge Editing for Multi-hop Factual Recall
HKUST(GZ) Deep Interdisciplinary Intelligence Lab(香港科技大学(广州)深 interdisciplinary 智能实验室);BUAA(北京航空航天大学);HKUST(GZ) Institute of Deep Perception Technology, JITRI Deep Interdisciplinary Intelligence Lab(香港科技大学(广州)深度感知技术研究所,JITRI 深 interdisciplinary 智能实验室)
Revealing the Deceptiveness of Knowledge Editing: A Mechanistic Analysis of Superficial Editing
School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);The Laboratory of Cognition and Decision Intelligence for Complex Systems, Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所认知与决策智能复杂系统实验室)
Weight Patching: Toward Source-Level Mechanistic Localization in LLMs
Key Laboratory of Ministry of Education for Brain Inspired Intelligent Perception and Cognition, University of Science and Technology of China(教育部脑科学与智能感知认知重点实验室,中国科学技术大学)
Output Vector Editing for Memorization Mitigation in Large Language Models
Center for Information and Language Processing, LMU Munich(慕尼黑大学语言与信息处理中心);Department of Computer Science, University of Copenhagen(哥本哈根大学计算机科学系);Munich Center for Machine Learning(慕尼黑机器学习中心);Pioneer Centre for AI(人工智能先锋中心)
Large Language Models Meet Biomedical Knowledge Graphs for Mechanistically Grounded Therapeutic Prioritization
National Library of Medicine (NLM), National Institutes of Health (NIH)(美国国立卫生研究院国家医学图书馆);National Cancer Institute (NCI), National Institutes of Health (NIH)(美国国立卫生研究院国家癌症研究所);Dartmouth Health(达特茅斯医疗系统);Johns Hopkins School of Medicine(约翰斯·霍普金斯大学医学院)
Mechanistically Interpreting Compression in Vision-Language Models
Indian Institute of Technology Jodhpur(印度理工学院焦特布尔分校);AIM Intelligence;National Institute of Technology Agartala(国立阿加尔塔拉理工学院);Fordham University(福特汉姆大学);University of Fukui(福井大学);Independent Researcher(独立研究员)
Agent MechSuits: Mechanistic Subspace Safety Steering for Multi-Turn CLI Agents
University of Georgia(佐治亚大学);University of South Florida(南佛罗里达大学);Rutgers University(罗格斯大学);University of Southern California(南加州大学);Johns Hopkins University(约翰霍普金斯大学)