In-Context Learning (ICL) is an important paradigm for adapting Large Language Models (LLMs) to downstream tasks through a few demonstrations. Despite the great success of ICL, the limitation of the demonstration number may lead to demonstration bias, i.e. the input-label mapping induced by LLMs misunderstands the task's essence. Inspired by human experience, we attempt to mitigate such bias through the perspective of the inter-demonstration relationship. Specifically, we construct Comparable Demonstrations (CDs) by minimally editing the texts to flip the corresponding labels, in order to highlight the task's essence and eliminate potential spurious correlations through the inter-demonstration comparison. Through a series of experiments on CDs, we find that (1) demonstration bias does exist in LLMs, and CDs can significantly reduce such bias; (2) CDs exhibit good performance in ICL, especially in out-of-distribution scenarios. In summary, this study explores the ICL mechanisms from a novel perspective, providing a deeper insight into the demonstration selection strategy for ICL.
How to Leverage Demonstration Data in Alignment for Large Language Model? A Self-Imitation Learning Perspective
Artificial Intelligence Research Laboratory, Pennsylvania State University(宾夕法尼亚州立大学人工智能研究实验室);Tencent AI Lab(腾讯AI实验室);University of Chinese Academy of Sciences(中国科学院大学);Tsinghua University(清华大学)
Countering Reward Over-optimization in LLM with Demonstration-Guided Reinforcement Learning
INRIA(法国国家信息与自动化研究所);Cohere(Cohere公司);DeepMind(DeepMind公司);EHESS(法国高等社会科学研究院);ENS-PSL(巴黎高等师范学院-巴黎文理研究大学);CNRS(法国国家科学研究中心);Meta AI Research(Meta人工智能研究院)
Beyond Demonstrations: Dynamic Vector Construction from Latent Representations
National Key Laboratory for Multimedia Information Processing, Peking University(国家多媒体信息处理重点实验室,北京大学);MOE Key Laboratory of Computational Linguistics, Peking University(教育部计算语言学重点实验室,北京大学);School of Software and Microelectronics, Peking University(软件与微电子学院,北京大学);School of Computer Science, Peking University(计算机科学学院,北京大学)
Brewing Knowledge in Context: Distillation Perspectives on In-Context Learning
University of Chinese Academy of Sciences(中国科学院大学);University of South Florida(佛罗里达州立大学);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Key Laboratory of System Software (Chinese Academy of Sciences)(中国科学院系统软件重点实验室);State Key Laboratory of Computer Science (Institute of Software, Chinese Academy of Sciences)(中国科学院软件研究所计算机科学国家重点实验室)
Adversarial Demonstration Attacks on Large Language Models
University of Wisconsin-Madison(威斯康星大学麦迪逊分校);Arizona State University(亚利桑那州立大学);Tokyo Metropolitan University(东京都立大学);University of Southern California(南加州大学);University of Michigan - Ann Arbor(密歇根大学安娜堡分校);University of California, Davis(加州大学戴维斯分校)
Label Words as Local Task Vectors in In-Context Learning
Institute of Neuroscience, Key Laboratory of Brain Cognition and Brain-inspired Intelligence Technology, Center for Excellence in Brain Science and Intelligence Technology, Chinese Academy of Sciences, Shanghai, China(中国科学院神经科学研究所、脑认知与脑启发智能技术重点实验室、脑科学与智能技术卓越中心、中国科学院、上海,中国)
Iterative Forward Tuning Boosts In-Context Learning in Language Models
Shenzhen Institute of Advanced Technology, Chinese Academy of Sciences(中国科学院深圳先进技术研究院);University of Chinese Academy of Sciences(中国科学院大学);Alibaba Group(阿里巴巴集团);MIT CSAIL(麻省理工学院计算机科学与人工智能实验室);Shanghai AI Laboratory(上海人工智能实验室)
Tree of Agents: Improving Long-Context Capabilities of Large Language Models through Multi-Perspective Reasoning
School of Computer and Information Science, Southwest University(西南大学计算机与信息科学学院);School of Information Technology, Murdoch University(默多克大学信息科技学院);School of Computing Technologies, RMIT University(皇家墨尔本理工大学计算技术学院);University of Technology Sydney(悉尼技术大学)
针对大语言模型长上下文处理中的中间信息丢失等问题,提出多智能体推理框架Tree of Agents,通过分块处理、树状协作推理及缓存剪枝策略,在低开销下提升长上下文任务性能,小模型驱动版本即可媲美大型商业模型。
Supporting software engineering tasks with agentic AI: Demonstration on document retrieval and test scenario generation
Gratex International(格拉特克斯国际);Department of Applied Informatics Faculty of Mathematics, Physics and Informatics Comenius University(应用信息学院数学、物理和信息学院康门ius大学)