Large language models (LLMs) have exhibited striking in-context learning (ICL) ability to adapt to target tasks with a few input-output demonstrations. For better ICL, different methods are proposed to select representative demonstrations from existing training corpora. However, such settings are not aligned with real-world practices, as end-users usually query LMs without access to demonstration pools. In this work, we introduce Self-ICL -- a simple framework which bootstraps LMs' intrinsic capabilities to perform zero-shot ICL. Given a test input, Self-ICL first prompts the model to generate pseudo-inputs. Next, the model predicts pseudo-labels for the pseudo-inputs via zero-shot prompting. Finally, we perform ICL for the test input with the pseudo-input-label pairs as demonstrations. Evaluation on 23 BIG-Bench Hard tasks shows Self-ICL outperforms zero-shot baselines on both average accuracy and head-to-head comparison. Moreover, with zero-shot chain-of-thought, Self-ICL achieves results comparable to using real demonstrations. Additionally, we conduct a range of analyses to validate Self-ICL's effectiveness and provide insights for its behaviors under different settings.
ICL-D3IE: In-Context Learning with Diverse Demonstrations Updating for Document Information Extraction
University of Electronic Science and Technology of China(电子科技大学);Singapore Management University(新加坡管理大学);Beijing Forestry University(北京林业大学);Beijing Rongda Technology Co., Ltd.(北京融达科技有限公司)
Improving Input-label Mapping with Demonstration Replay for In-context Learning
Meituan(美团);Wangxuan Institute of Computer Technology, Peking University(北京大学王选计算机研究所);Meta AI;National Key Laboratory of General Artificial Intelligence(通用人工智能全国重点实验室);Beijing Institute for General Artificial Intelligence(北京通用人工智能研究院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
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(中国科学院神经科学研究所、脑认知与脑启发智能技术重点实验室、脑科学与智能技术卓越中心、中国科学院、上海,中国)
Unveiling In-Context Learning: A Coordinate System to Understand Its Working Mechanism
Southwest Jiaotong University(西南交通大学);University College London(伦敦大学学院);National University of Singapore(新加坡国立大学);Digital Twin Institute(数字孪生研究院);Eastern Institute of Technology(宁波工程学院)
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(上海人工智能实验室)
Revisiting Demonstration Selection Strategies in In-Context Learning
Beihang University(北京航空航天大学);The University of Sydney(悉尼大学);Harbin Institute of Technology, Shenzhen(哈尔滨工业大学(深圳));Nanyang Technological University(南洋理工大学);The Hong Kong Polytechnic University(香港理工大学)
Delta-KNN: Improving Demonstration Selection in In-Context Learning for Alzheimer's Disease Detection
Department of Computer Science(计算机科学系);Vancouver Stroke Program and Division of Neurology, Faculty of Medicine(温哥华卒中计划和神经病学系,医学院);The University of British Columbia(不列颠哥伦比亚大学)
Demonstration Augmentation for Zero-shot In-context Learning
School of Computer Science and Technology, Soochow University(苏州大学计算机科学与技术学院);Department of Computer Science and Technology, Tsinghua University(清华大学计算机科学与技术系)
Soft Head Selection for Injecting ICL-Derived Task Embeddings
Department of Intelligence and Information, Seoul National University(首尔大学智能与信息系);Daegu Gyeongbuk Institute of Science and Technology(大邱庆北科学技术院);Samsung Advanced Institute of Technology, Samsung Electronics Co., Ltd(三星电子三星综合技术院)
Failures Are the Stepping Stones to Success: Enhancing Few-Shot In-Context Learning by Leveraging Negative Samples
Chengdu Institute of Computer Applications, Chinese Academy of Sciences(中国科学院成都计算机应用研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Multidisciplinary Research for Advanced Materials (IMRAM), Tohoku University(东北大学多学科先进材料研究所)