What makes a difference in the post-training of LLMs? We investigate the training patterns of different layers in large language models (LLMs) through the lens of the gradient. We are specifically interested in how fast vs. slow thinking affects the layer-wise gradients, given the recent popularity of training LLMs on reasoning paths such as chain-of-thoughts (CoT) and process rewards. In our study, fast thinking without CoT leads to larger gradients and larger differences of gradients across layers than slow thinking (Detailed CoT), indicating the learning stability brought by the latter. Additionally, we study whether the gradient patterns can reflect the correctness of responses when training different LLMs using slow vs. fast thinking paths. The results show that the gradients of slow thinking can distinguish correct and irrelevant reasoning paths. As a comparison, we conduct similar gradient analyses on non-reasoning knowledge learning tasks, on which, however, trivially increasing the response length does not lead to similar behaviors of slow thinking. Our study strengthens fundamental understandings of LLM training and sheds novel insights on its efficiency and stability, which pave the way towards building a generalizable System-2 agent. Our code, data, and gradient statistics can be found in: https://github.com/MingLiiii/Layer_Gradient.
Rethinking External Slow-Thinking: From Snowball Errors to Probability of Correct Reasoning
Gaoling School of Artificial Intelligence, Renmin University of China, Beijing, China(中国人民大学人工智能学院);Beijing Key Laboratory of Research on Large Models(北京大型模型研究关键实验室);Engineering Research Center of Next-Generation Intelligent Search(下一代智能搜索工程研究中心);College of Artificial Intelligence, Tianjin University of Science(天津科技大学人工智能学院)
Think More, Hallucinate Less: Mitigating Hallucinations via Dual Process of Fast and Slow Thinking
Gaoling School of Artificial Intelligence, Renmin University of China(中国人民大学高瓴人工智能学院);Department of Computer Science, National University of Singapore(新加坡国立大学计算机科学系)
Do Quantum AIs Dream in Paths? Path-Integral Slow Thinking through Grover Interference
Institute of Theoretical Physics, Chinese Academy of Sciences(中国科学院理论物理研究所);Shenzhen International Quantum Academy(深圳国际量子研究院);Hefei National Laboratory(合肥国家实验室)
Pratt School of Engineering(普拉特工程学院);Duke University(杜克大学);School of Computer Science(计算机科学学院);Northeast Electric Power University(东北电力大学);Department of Information and Communication Engineering(信息与通信工程系);Tongji University(同济大学);School of Computer Science and Technology(计算机科学与技术学院);School of International Education(国际教育学院);Beijing University of Chemical Technology(北京化工大学);East China Normal University(华东师范大学);Information Hub(信息枢纽);Hong Kong University of Science and Technology (Guangzhou)(香港科技大学(广州));Chinese Academy of Science(中国科学院)
SwiftSage: A Generative Agent with Fast and Slow Thinking for Complex Interactive Tasks
Allen Institute for Artificial Intelligence(艾伦人工智能研究所);University of Southern California(南加州大学);University of Washington(华盛顿大学);Tsinghua University(清华大学);Paradigm Inc.(第四范式公司);University of California, San Diego(加州大学圣地亚哥分校);MosaicML(MosaicML公司)
Double-Checker: Enhancing Reasoning of Slow-Thinking LLMs via Self-Critical Fine-Tuning
The Hong Kong University of Science and Technology(香港科学与技术大学);University of Electronic Science and Technology of China(电子科技大学);Dalian University of Technology(大连理工大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Zhejiang University(浙江大学);University of Oxford(牛津大学);NVIDIA(NVIDIA公司);University of Surrey(萨里大学)
Fast, Slow, and Tool-augmented Thinking for LLMs: A Review
School of Mechanical Engineering, Shanghai Jiao Tong University, Shanghai 200240, China(上海交通大学机械工程学院);School of Computer Science, Shanghai Jiao Tong University, Shanghai 200240, China(上海交通大学计算机科学学院);Huawei Technologies Co., Ltd., Beijing 100084, China(华为技术有限公司);Department of Systems Engineering and Engineering Management, The Chinese University of Hong Kong, Hong Kong 999077, China(香港中文大学系统工程与工程管理系);Department of Computer Science and Engineering, The Chinese University of Hong Kong, Hong Kong 999077, China(香港中文大学计算机科学与工程系);Huawei Hong Kong Research Center, Hong Kong 999077, China(华为香港研究中心)
Tree-of-Mixed-Thought: Combining Fast and Slow Thinking for Multi-hop Visual Reasoning
University of Science and Technology of China(中国科学技术大学);cmss.chinamobile.com(中移(苏州)软件技术有限公司);Lin Gang Laboratory(林冈实验室);ShanghaiTech University(上海科技大学)
Emergent Slow Thinking in LLMs as Inverse Tree Freezing
Hefei National Laboratory, University of Science and Technology of China(中国科学技术大学合肥微尺度物质科学国家实验室);Hefei National Laboratory for Physical Sciences at the Microscale and Department of Modern Physics, University of Science and Technology of China(中国科学技术大学合肥微尺度物质科学国家实验室和现代物理系);Institute of Theoretical Physics, Chinese Academy of Sciences(中国科学院理论物理研究所);School of Fundamental Physics and Mathematical Sciences, Hangzhou Institute for Advanced Study, UCAS(杭州高等研究院基础物理与数学科学学院);DP Technology(DP技术);Lanzhou Center for Theoretical Physics, Key Laboratory of Theoretical Physics of Gansu Province, Key Laboratory of Quantum Theory and Applications of MoE, Gansu Provincial Research Center for Basic Disciplines of Quantum Physics, Lanzhou University(兰州理论物理中心、甘肃省理论物理重点实验室、教育部量子理论与应用重点实验室、甘肃省量子物理基础学科省重点实验室、兰州大学);AI for Science Institute, Beijing(北京人工智能科学研究院)
AtomThink: Multimodal Slow Thinking with Atomic Step Reasoning
Shenzhen Campus of Sun Yat-sen University(中山大学深圳校区);ETH Zurich(苏黎世联邦理工学院);Hong Kong University of Science and Technology(香港科技大学);University of Hong Kong(香港大学);Noah’s Ark Lab(诺亚实验室);Yinwang Intelligent Technology Co., Ltd.(亿纬智能科技有限公司)
PRIME: Planning and Retrieval-Integrated Memory for Enhanced Reasoning
Center for Healthcare Organization and Implementation Research, VA Bedford Health Care(VA Bedford Health Care 医疗组织与实施研究中心);Manning College of Information and Computer Sciences, University of Massachusetts Amherst(马萨诸塞大学阿默斯特分校信息与计算机科学学院);Miner School of Computer and Information Sciences, University of Massachusetts Lowell(马萨诸塞大学洛厄尔分校 Miner 信息与计算机科学学院)
Step Back to Leap Forward: Self-Backtracking for Boosting Reasoning of Language Models
Nanjing University(南京大学);National Key Laboratory for Novel Software Technology(现代软件工程国家重点实验室);School of Artificial Intelligence, Nanjing University(南京大学人工智能学院);School of Intelligence Science and Technology, Nanjing University(南京大学智能科学与技术学院)
On the Thinking-Language Modeling Gap in Large Language Models
Hong Kong Baptist University(香港 Baptist 大学);MBZUAI Carnegie Mellon University(MBZUAI 美国卡内基梅隆大学);The University of Sydney(悉尼大学);The Chinese University of Hong Kong(香港中文大学)
MR-Ben: A Meta-Reasoning Benchmark for Evaluating System-2 Thinking in LLMs
Chinese University of Hong Kong(香港中文大学);University of Cambridge(剑桥大学);University of Edinburgh(爱丁堡大学);City University of Hong Kong(香港城市大学);Tsinghua University(清华大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);University of Hong Kong(香港大学);Nanyang Technological University(南洋理工大学);Massachusetts Institute of Technology(麻省理工学院)