Dissecting Chain-of-Thought: Compositionality through In-Context Filtering and Learning

组合性原则 计算机科学 人工智能 感知器 背景(考古学) 功能(生物学) 认知科学 变压器 机器学习 过程(计算) 人工神经网络 心理学 程序设计语言 工程类 生物 电气工程 进化生物学 电压 古生物学
作者
Yingcong Li,Kartik K. Sreenivasan,Angeliki Giannou,Dimitris Papailiopoulos,Samet Oymak
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:1
标识
DOI:10.48550/arxiv.2305.18869
摘要

Chain-of-thought (CoT) is a method that enables language models to handle complex reasoning tasks by decomposing them into simpler steps. Despite its success, the underlying mechanics of CoT are not yet fully understood. In an attempt to shed light on this, our study investigates the impact of CoT on the ability of transformers to in-context learn a simple to study, yet general family of compositional functions: multi-layer perceptrons (MLPs). In this setting, we find that the success of CoT can be attributed to breaking down in-context learning of a compositional function into two distinct phases: focusing on and filtering data related to each step of the composition and in-context learning the single-step composition function. Through both experimental and theoretical evidence, we demonstrate how CoT significantly reduces the sample complexity of in-context learning (ICL) and facilitates the learning of complex functions that non-CoT methods struggle with. Furthermore, we illustrate how transformers can transition from vanilla in-context learning to mastering a compositional function with CoT by simply incorporating additional layers that perform the necessary data-filtering for CoT via the attention mechanism. In addition to these test-time benefits, we show CoT helps accelerate pretraining by learning shortcuts to represent complex functions and filtering plays an important role in this process. These findings collectively provide insights into the mechanics of CoT, inviting further investigation of its role in complex reasoning tasks.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
youyou完成签到,获得积分20
刚刚
刚刚
璿_发布了新的文献求助10
1秒前
2秒前
充电宝应助万里海天采纳,获得10
2秒前
勇yi发布了新的文献求助10
2秒前
江浔卿完成签到,获得积分10
2秒前
李优秀发布了新的文献求助10
2秒前
2秒前
3秒前
迷路静丹发布了新的文献求助30
3秒前
小二郎应助CVEN采纳,获得10
4秒前
ccyy发布了新的文献求助10
4秒前
情怀应助甜甜的青梦采纳,获得10
4秒前
今后应助FXK采纳,获得10
4秒前
小乔完成签到 ,获得积分10
5秒前
5秒前
5秒前
5秒前
在下某林发布了新的文献求助10
5秒前
6秒前
科研通AI6.4应助heli采纳,获得10
7秒前
7秒前
orixero应助成就的初瑶采纳,获得10
7秒前
玩命的猕猴桃完成签到,获得积分10
7秒前
小蘑菇应助77采纳,获得10
7秒前
Cecilia完成签到,获得积分10
8秒前
8秒前
8秒前
上官若男应助林林l采纳,获得10
9秒前
9秒前
CipherSage应助明年采纳,获得10
9秒前
小易发布了新的文献求助10
9秒前
YoursSummer完成签到,获得积分10
9秒前
10秒前
demi完成签到,获得积分10
10秒前
路宽宽发布了新的文献求助10
10秒前
10秒前
10秒前
蓝胖子发布了新的文献求助10
10秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
日本現代怪異事典 副読本 700
Concise Introduction to Heritage Studies 650
悉尼大学博士学位论文,题目:Modelling and testing of one-sided stitched laminated composites. 作者:Kristopher P. Plain 650
Machine Learning for Asset Management and Pricing 600
Numerical analysis of the coupled atmosphere-ocean models (CAO II). II 600
Models for the coupled atmosphere and ocean 600
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7380682
求助须知:如何正确求助?哪些是违规求助? 8988264
关于积分的说明 19117863
捐赠科研通 7020312
什么是DOI,文献DOI怎么找? 3226857
关于科研通互助平台的介绍 2390061
邀请新用户注册赠送积分活动 2207781