已入深夜,您辛苦了!由于当前在线用户较少,发布求助请尽量完整地填写文献信息,科研通机器人24小时在线,伴您度过漫漫科研夜!祝你早点完成任务,早点休息,好梦!

Interpreting and Improving Large Language Models in Arithmetic Calculation

算术 计算机科学 数学
作者
Wei Zhang,Chaoqun Wan,Yonggang Zhang,Yiu‐ming Cheung,Xinmei Tian,Xu Shen,Jieping Ye
出处
期刊:Cornell University - arXiv [Cornell University]
被引量:1
标识
DOI:10.48550/arxiv.2409.01659
摘要

Large language models (LLMs) have demonstrated remarkable potential across numerous applications and have shown an emergent ability to tackle complex reasoning tasks, such as mathematical computations. However, even for the simplest arithmetic calculations, the intrinsic mechanisms behind LLMs remain mysterious, making it challenging to ensure reliability. In this work, we delve into uncovering a specific mechanism by which LLMs execute calculations. Through comprehensive experiments, we find that LLMs frequently involve a small fraction (< 5%) of attention heads, which play a pivotal role in focusing on operands and operators during calculation processes. Subsequently, the information from these operands is processed through multi-layer perceptrons (MLPs), progressively leading to the final solution. These pivotal heads/MLPs, though identified on a specific dataset, exhibit transferability across different datasets and even distinct tasks. This insight prompted us to investigate the potential benefits of selectively fine-tuning these essential heads/MLPs to boost the LLMs' computational performance. We empirically find that such precise tuning can yield notable enhancements on mathematical prowess, without compromising the performance on non-mathematical tasks. Our work serves as a preliminary exploration into the arithmetic calculation abilities inherent in LLMs, laying a solid foundation to reveal more intricate mathematical tasks.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
山间风完成签到,获得积分10
1秒前
sdrends完成签到,获得积分10
2秒前
due发布了新的文献求助10
3秒前
可爱的函函应助刘欣梅采纳,获得10
11秒前
机器猫有点帅完成签到 ,获得积分10
12秒前
12秒前
ddd发布了新的文献求助10
12秒前
12秒前
ashore完成签到,获得积分10
12秒前
Ronnie完成签到,获得积分10
13秒前
due完成签到,获得积分10
13秒前
16秒前
科研通AI6.4应助wang采纳,获得10
16秒前
16秒前
18秒前
袁伟成发布了新的文献求助10
18秒前
18秒前
水上汀州完成签到,获得积分10
19秒前
19秒前
Ronnie发布了新的文献求助10
20秒前
搜集达人应助joy采纳,获得10
20秒前
21秒前
幸运星完成签到 ,获得积分10
21秒前
希望天下0贩的0应助zxd采纳,获得10
21秒前
22秒前
在水一方应助斯文不尤采纳,获得30
22秒前
邹邹本邹完成签到,获得积分10
22秒前
zyy发布了新的文献求助10
23秒前
李过儿完成签到,获得积分10
23秒前
机器猫有点帅关注了科研通微信公众号
23秒前
24秒前
小王要努力完成签到,获得积分10
26秒前
时尚的青丝完成签到,获得积分20
26秒前
27秒前
27秒前
orixero应助科研通管家采纳,获得10
28秒前
共享精神应助科研通管家采纳,获得10
28秒前
情怀应助科研通管家采纳,获得10
28秒前
28秒前
Lucas应助科研通管家采纳,获得10
28秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
Essentials of Carbohydrate Chemistry and Biochemistry, 4th Edition 800
Navigating Normative Orders. Interdisciplinary Perspectives 800
Organizational Behavior 510
Management and the Arts 510
Matrix Methods in Data Mining and Pattern Recognition Second Edition 510
CLSI VET01S-2024 Performance Standards for Antimicrobial Disk and Dilution Susceptibility Tests for Bacteria Isolated From Animals (7th Ed) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 纳米技术 工程类 有机化学 化学工程 生物化学 计算机科学 内科学 物理 复合材料 催化作用 细胞生物学 无机化学 光电子学 物理化学 电极 基因
热门帖子
关注 科研通微信公众号,转发送积分 7753957
求助须知:如何正确求助?哪些是违规求助? 9300717
关于积分的说明 20258206
捐赠科研通 7336350
什么是DOI,文献DOI怎么找? 3310607
关于科研通互助平台的介绍 2461834
邀请新用户注册赠送积分活动 2323769