大型语言模型(LLMs)可以在推理期间花费额外计算来生成中间思考,这有助于产生更好的最终响应。自 Chain-of-Thought(Wei et al., 2022)以来,已经提出了许多这样的 System 2 技术,例如 Rephrase and Respond(Deng et al., 2023a)、System 2 Attention(Weston and Sukhbaatar, 2023)和 Branch-Solve-Merge(Saha et al., 2023)。在这项工作中,我们研究了自监督方法,以将 System 2 技术产生的更高质量输出“编译”(蒸馏)回 LLM 生成中,而无需中间推理 token 序列,因为这种推理已被蒸馏到 System 1 中。我们表明,几种这样的技术可以被成功蒸馏,与原始 System 1 性能相比产生了更好的结果,并且与 System 2 相比具有更低的推理成本。我们假设,这种 System 2 蒸馏将是未来持续学习 AI 系统的重要特征,使它们能够将 System 2 能力集中在它们尚不能很好完成的推理任务上。
英文摘要:
Large language models (LLMs) can spend extra compute during inference to generate intermediate thoughts, which helps to produce better final responses. Since Chain-of-Thought (Wei et al., 2022), many such System 2 techniques have been proposed such as Rephrase and Respond (Deng et al., 2023a), System 2 Attention (Weston and Sukhbaatar, 2023) and Branch-Solve-Merge (Saha et al., 2023). In this work we investigate self-supervised methods to ``compile'' (distill) higher quality outputs from System 2 techniques back into LLM generations without intermediate reasoning token sequences, as this reasoning has been distilled into System 1. We show that several such techniques can be successfully distilled, resulting in improved results compared to the original System 1 performance, and with less inference cost than System 2. We posit that such System 2 distillation will be an important feature of future continually learning AI systems, enabling them to focus System 2 capabilities on the reasoning tasks that they cannot yet do well.
Distilling Mathematical Reasoning Capabilities into Small Language Models
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络空间安全学院);Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院)
Mind's Mirror: Distilling Self-Evaluation Capability and Comprehensive Thinking from Large Language Models
Zhejiang University(浙江大学);School of Public Health, Zhejiang University(浙江大学公共卫生学院);The Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Liangzhu Laboratory and Institute of Wenzhou, Zhejiang University(浙江大学良渚实验室与温州研究院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)
Unveiling the Key Factors for Distilling Chain-of-Thought Reasoning
Department of Computing, The Hong Kong Polytechnic University(香港理工大学计算机系);Ningbo Key Laboratory of Spatial Intelligence and Digital Derivative(宁波空间智能与数字衍生关键实验室);Institute of Digital Twin, EIT(数字孪生研究院);Saarland University(萨尔兰大学);Meituan Inc.(美团公司)
DRAG: Distilling RAG for SLMs from LLMs to Transfer Knowledge and Mitigate Hallucination via Evidence and Graph-based Distillation
VILA Lab(VILA实验室);Mohamed bin Zayed University of AI(莫扎伊德·本·泽德人工智能大学);McGill University(麦吉尔大学);National University of Science and Technology(国家科学与技术大学)
Distilling Desired Comments for Enhanced Code Review with Large Language Models
Software Institute Nanjing University(南京大学软件学院);Faculty of Science and Engineering Southern Cross University(南十字星大学科学与工程学院);Huawei Technologies Co., Ltd.(华为技术有限公司)
$\textit{SKIntern}$: Internalizing Symbolic Knowledge for Distilling Better CoT Capabilities into Small Language Models
Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院);National Science Library, Chinese Academy of Sciences(中国科学院国家科学图书馆)
Distilling Implicit Multimodal Knowledge into Large Language Models for Zero-Resource Dialogue Generation
School of Computer Science and Technology, Dalian University of Technology(大连理工大学计算机科学与技术学院);School of Computer Science and Information Engineering, Hefei University of Technology(合肥工业大学计算机与信息工程学院)
Distilling a Small Utility-Based Passage Selector to Enhance Retrieval-Augmented Generation
State Key Laboratory of AI Safety, Institute of Computing Technology, Chinese Academy of Sciences(人工智能安全国家重点实验室,计算技术研究所,中国科学院);University of Chinese Academy of Sciences(中国科学院大学);Baidu Inc(百度公司)
Distilling Large Language Models for Efficient Clinical Information Extraction
Poolesville High School(普尔斯维尔高中);University of California Santa Cruz(加州大学圣克鲁兹分校);Stanford University School of Medicine(斯坦福大学医学院);Clinical Excellence Research Center(临床卓越研究中心);Stanford Health Care(斯坦福医疗保健系统)
Repo-To-Skill: Distilling GitHub Repositories Into AI4AI Skills
Beijing Academy of Artificial Intelligence(北京人工智能研究院);University of Science and Technology of China(中国科学技术大学);Renmin University of China(中国人民大学);Hong Kong Polytechnic University(香港理工大学)