Initialization is Critical to Whether Transformers Fit Composite Functions by Reasoning or Memorizing

初始化 推论 复合数 记忆 变压器 计算机科学 人工智能 数学 算法 工程类 电气工程 程序设计语言 电压 数学教育
作者
Zhongwang Zhang,Pengxiao Lin,Zhiwei Wang,Yaoyu Zhang,Zhi‐Qin John Xu
出处
期刊:Cornell University - arXiv 被引量:1
标识
DOI:10.48550/arxiv.2405.05409
摘要

Transformers have shown impressive capabilities across various tasks, but their performance on compositional problems remains a topic of debate. In this work, we investigate the mechanisms of how transformers behave on unseen compositional tasks. We discover that the parameter initialization scale plays a critical role in determining whether the model learns inferential (reasoning-based) solutions, which capture the underlying compositional primitives, or symmetric (memory-based) solutions, which simply memorize mappings without understanding the compositional structure. By analyzing the information flow and vector representations within the model, we reveal the distinct mechanisms underlying these solution types. We further find that inferential (reasoning-based) solutions exhibit low complexity bias, which we hypothesize is a key factor enabling them to learn individual mappings for single anchors. We validate our conclusions on various real-world datasets. Our findings provide valuable insights into the role of initialization scale in tuning the reasoning and memorizing ability and we propose the initialization rate $γ$ to be a convenient tunable hyper-parameter in common deep learning frameworks, where $1/d_{\mathrm{in}}^γ$ is the standard deviation of parameters of the layer with $d_{\mathrm{in}}$ input neurons.

科研通智能强力驱动
Strongly Powered by AbleSci AI
更新
PDF的下载单位、IP信息已删除 (2025-6-4)

科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
刚刚
刚刚
1秒前
2秒前
小刘发布了新的文献求助10
2秒前
2秒前
DOZ完成签到,获得积分10
2秒前
yyy完成签到,获得积分20
3秒前
3秒前
4秒前
秋博发布了新的文献求助10
4秒前
文静萤发布了新的文献求助10
6秒前
大美女完成签到,获得积分10
7秒前
7秒前
8秒前
小小发布了新的文献求助10
8秒前
量子星尘发布了新的文献求助10
8秒前
喏晨发布了新的文献求助10
8秒前
8秒前
容与发布了新的文献求助10
10秒前
兜兜揣满糖完成签到 ,获得积分10
10秒前
10秒前
11秒前
阳光的寻琴完成签到,获得积分10
13秒前
13秒前
秋博完成签到,获得积分20
14秒前
14秒前
小邸完成签到,获得积分10
16秒前
总是很简单完成签到 ,获得积分10
17秒前
pj发布了新的文献求助30
17秒前
18秒前
atong发布了新的文献求助10
18秒前
冬冬不是完成签到,获得积分20
18秒前
hbhbj应助晨儿采纳,获得20
20秒前
20秒前
21秒前
平常澜完成签到 ,获得积分10
21秒前
22秒前
量子星尘发布了新的文献求助10
22秒前
23秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
The Social Work Ethics Casebook: Cases and Commentary (revised 2nd ed.).. Frederic G. Reamer 1070
Alloy Phase Diagrams 1000
Introduction to Early Childhood Education 1000
2025-2031年中国兽用抗生素行业发展深度调研与未来趋势报告 1000
List of 1,091 Public Pension Profiles by Region 871
Synthesis and properties of compounds of the type A (III) B2 (VI) X4 (VI), A (III) B4 (V) X7 (VI), and A3 (III) B4 (V) X9 (VI) 500
热门求助领域 (近24小时)
化学 材料科学 医学 生物 工程类 有机化学 生物化学 物理 纳米技术 计算机科学 内科学 化学工程 复合材料 物理化学 基因 遗传学 催化作用 冶金 量子力学 光电子学
热门帖子
关注 科研通微信公众号,转发送积分 5422137
求助须知:如何正确求助?哪些是违规求助? 4537021
关于积分的说明 14155837
捐赠科研通 4453620
什么是DOI,文献DOI怎么找? 2442999
邀请新用户注册赠送积分活动 1434403
关于科研通互助平台的介绍 1411439