Prompt Tuning 是一种用于预训练大型语言模型(PLMs)的流行参数高效微调方法。基于 RoBERTa 的实验表明,Prompt Tuning 会激活 transformer 前馈网络中的特定神经元,这些神经元对给定任务具有高度的预测性和选择性。在本文中,我们使用 RoBERTa 和 T5 研究了 Prompt Tuning 与这些“技能神经元”相关的鲁棒性。我们表明,针对特定任务调整的 prompt 可以迁移到同类型的任务中,但对对抗性数据的鲁棒性不强。虽然为 RoBERTa 调整的 prompt 在对抗性数据上的表现低于随机水平,但为 T5 调整的 prompt 略具鲁棒性,在三种情况中有两种保持了高于随机水平的表现。同时,我们重现了技能神经元存在于 RoBERTa 中的发现,并进一步表明技能神经元也存在于 T5 中。有趣的是,在非对抗性数据上确定的 T5 技能神经元也是对抗性数据上最具预测性的神经元之一,而 RoBERTa 则不然。我们得出结论,较高的对抗鲁棒性可能与模型在对抗性数据上持续激活相关技能神经元的能力有关。
英文摘要:
Prompt Tuning is a popular parameter-efficient finetuning method for pre-trained large language models (PLMs). Based on experiments with RoBERTa, it has been suggested that Prompt Tuning activates specific neurons in the transformer's feed-forward networks, that are highly predictive and selective for the given task. In this paper, we study the robustness of Prompt Tuning in relation to these "skill neurons", using RoBERTa and T5. We show that prompts tuned for a specific task are transferable to tasks of the same type but are not very robust to adversarial data. While prompts tuned for RoBERTa yield below-chance performance on adversarial data, prompts tuned for T5 are slightly more robust and retain above-chance performance in two out of three cases. At the same time, we replicate the finding that skill neurons exist in RoBERTa and further show that skill neurons also exist in T5. Interestingly, the skill neurons of T5 determined on non-adversarial data are also among the most predictive neurons on the adversarial data, which is not the case for RoBERTa. We conclude that higher adversarial robustness may be related to a model's ability to consistently activate the relevant skill neurons on adversarial data.
Can Dialects Be Steered Like Languages? Sparse Neurons and Distributed Directions in Arabic LLMs
Mohamed bin Zayed University of Artificial Intelligence(穆罕默德·本·扎耶德人工智能大学);Qatar Computing Research Institute, Hamad Bin Khalifa University(哈马德·本·哈利法大学卡塔尔计算研究所);Tohoku University(东北大学);RIKEN(理化学研究所)
Skills-Coach: A Self-Evolving Skill Optimizer via Training-Free GRPO
University of Chinese Academy of Sciences(中国科学院大学);East China Normal University(华东师范大学);Zhongguancun Academy(中关村学院);Southeast University(东南大学);Hainan University(海南大学);Tsinghua University(清华大学)
Edit Less, Achieve More: Dynamic Sparse Neuron Masking for Lifelong Knowledge Editing in LLMs
Key Lab of Intell. Info. Process., Inst. of Comput. Tech., CAS(智能信息处理重点实验室,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);Agriculture Information Institute, CAAS(农业信息研究所,中国农业科学院)
Use Me Wisely: AI-Driven Assessment for LLM Prompting Skills Development
Università degli Studi di Milano Bicocca(米兰比可卡大学);University of Regensburg(雷根斯堡大学);Universitat Pompeu Fabra(庞培法布拉大学);Politecnico di Milano(米兰理工大学);National Research Council of Italy (CNR)(意大利国家研究委员会)
Dissecting Role Cognition in Medical LLMs via Neuronal Ablation
School of Information, Renmin University of China(中国人民大学信息学院);Center of Machine Learning Research, Peking University(北京大学机器学习研究中心);School of Artificial Intelligence, Shanghai Jiaotong University(上海交通大学人工智能学院);Health Informatics Committee of the China Society for Scientific and Technical Information, Renmin University of China(中国科学技术信息学会健康信息技术委员会,中国人民大学);Institute for Advanced Algorithms Research (IAAR), Shanghai, China(先进算法研究所(IAAR),上海,中国);Memtensor Research Center, Shanghai, China(Memtensor研究中心,上海,中国)
Teaching Algorithmic Reasoning via In-context Learning
Mila(米拉研究所);Université de Montreal(蒙特利尔大学);Google Research(谷歌研究院)
大语言模型(LLM)通过扩展模型和数据大小,显示出越来越多的上下文学习能力。尽管取得了这些进展,LLM仍然无法解决算法推理问题。虽然为最终答案提供了一个基本原理,导致了多步推理问题的进一步改进,但Anil et al. 2022表明,即使是简单的算法推理任务,如奇偶校验,也远未解决。在这项工作中,我们确定并研究了成功教授算法推理的四个关键阶段:(1)将算法制定为技能,(2)同时教授多种技能(技能积累),(3)教授如何组合技能(技能组合)和(4)教授如何使用技能作为工具。我们表明,它是可以教算法推理LLMs通过上下文学习,我们称之为算法提示。我们评估我们的方法在各种算术和定量推理任务,并表现出显着的提升性能比现有的提示技术。特别是,对于长奇偶校验、加法、乘法和减法,与最佳可用基线相比,我们分别实现了约10倍、9倍、5倍和2倍的误差减少。
Effects of a Prompt Engineering Intervention on Undergraduate Students' AI Self-Efficacy, AI Knowledge and Prompt Engineering Ability: A Mixed Methods Study
Precious Blood Secondary School(宝血女子中学);The University of Hong Kong(香港大学)
How Model Size, Temperature, and Prompt Style Affect LLM-Human Assessment Score Alignment
Harvard Graduate School of Education(哈佛教育研究生院);Munster University(穆恩斯特大学);Institute of Anatomy and Neurobiology, University of Münster(解剖与神经生物学研究所,穆恩斯特大学)
Bi-directional Bias Attribution: Debiasing Large Language Models without Modifying Prompts
School of Informatics, Xiamen University, China(厦门大学信息学院);vivo AI Lab, China(vivo AI实验室);Key Laboratory of Digital Protection and Intelligent Processing of Intangible Cultural Heritage of Fujian and Taiwan (Xiamen University), Ministry of Culture and Tourism, China(福建省和台湾非物质文化遗产数字化保护与智能处理重点实验室(厦门大学),文化部,中国)
Few-Shot Bot: Prompt-Based Learning for Dialogue Systems
The Hong Kong University of Science and Technology(香港科技大学)
学习仅使用几个例子进行对话是对话式AI的一大挑战。目前最好的会话模式,要么是很好的闲聊(例如,BlenderBot)或面向目标的系统(例如,MinTL)是在大型会话数据集上微调的语言模型(LM)。训练这些模型是昂贵的,无论是在计算资源和时间方面,而且很难让它们与新的会话技能保持同步。一个简单但尚未探索的解决方案是基于梯度的少样本学习(Brown et al. 2020),它不需要基于梯度的微调,而是使用LM上下文中的一些示例作为学习的唯一来源。在本文中,我们探讨了基于会话的少样本学习在对话任务。我们基准LM的不同大小的九个响应生成任务,其中包括四个知识为基础的任务,面向任务的生成任务,三个开放聊天任务,并控制文体生成,和五个会话解析任务,其中包括对话状态跟踪,图形路径生成,人物信息抽取,文档检索,和互联网查询生成。目前最大的LM(GPT-J-6B)使用基于样本的少样本学习,因此不需要训练,达到了与完全训练的最先进模型竞争的性能。此外,我们提出了一种新的基于文本的Few-Shot分类器,也不需要任何微调,以选择最合适的提示给定的对话历史。最后,通过结合基于机器人的Few-Shot学习和技能训练的能力,我们创建了一个名为Few-Shot Bot(FSB)的端到端聊天机器人,它自动选择最合适的会话技能,查询不同的知识库或互联网,并使用检索到的知识生成类似人类的响应,所有这些都只使用每个技…