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.
最长约 10秒,即可获得该文献文件

科研通智能强力驱动
Strongly Powered by AbleSci AI
科研通是完全免费的文献互助平台,具备全网最快的应助速度,最高的求助完成率。 对每一个文献求助,科研通都将尽心尽力,给求助人一个满意的交代。
实时播报
陈西发布了新的文献求助10
刚刚
逆风起笔发布了新的文献求助10
1秒前
浮游应助默默的含蕾采纳,获得10
1秒前
SZY完成签到 ,获得积分10
1秒前
1秒前
sincy发布了新的文献求助10
1秒前
天天快乐应助懵懂的随阴采纳,获得30
1秒前
小马甲应助一隅采纳,获得10
1秒前
2秒前
111发布了新的文献求助10
3秒前
3秒前
3秒前
lize5493发布了新的文献求助10
3秒前
wanci应助Lmj采纳,获得10
4秒前
852应助阿正嗖啪采纳,获得30
4秒前
bulabulabu完成签到,获得积分10
5秒前
5秒前
逆风起笔完成签到,获得积分10
6秒前
量子星尘发布了新的文献求助10
6秒前
6秒前
小羊完成签到,获得积分20
6秒前
Rando发布了新的文献求助10
6秒前
量子星尘发布了新的文献求助10
7秒前
7秒前
顺顺利利毕业关注了科研通微信公众号
7秒前
8秒前
pkujeff发布了新的文献求助10
8秒前
9秒前
9秒前
青山完成签到,获得积分20
9秒前
10秒前
彤光赫显完成签到,获得积分10
10秒前
10秒前
rico应助刘小龙采纳,获得10
10秒前
xini发布了新的文献求助10
10秒前
airvi完成签到,获得积分10
10秒前
英俊的铭应助奋斗VS采纳,获得30
10秒前
10秒前
赘婿应助RICK采纳,获得10
11秒前
仿生躯壳发布了新的文献求助30
11秒前
高分求助中
(应助此贴封号)【重要!!请各用户(尤其是新用户)详细阅读】【科研通的精品贴汇总】 10000
2025-2031全球及中国金刚石触媒粉行业研究及十五五规划分析报告 9000
Encyclopedia of the Human Brain Second Edition 8000
The Cambridge History of China: Volume 4, Sui and T'ang China, 589–906 AD, Part Two 1000
The Composition and Relative Chronology of Dynasties 16 and 17 in Egypt 1000
Russian Foreign Policy: Change and Continuity 800
Real World Research, 5th Edition 800
热门求助领域 (近24小时)
化学 材料科学 生物 医学 工程类 计算机科学 有机化学 物理 生物化学 纳米技术 复合材料 内科学 化学工程 人工智能 催化作用 遗传学 数学 基因 量子力学 物理化学
热门帖子
关注 科研通微信公众号,转发送积分 5690302
求助须知:如何正确求助?哪些是违规求助? 5077670
关于积分的说明 15201358
捐赠科研通 4848118
什么是DOI,文献DOI怎么找? 2599973
邀请新用户注册赠送积分活动 1551877
关于科研通互助平台的介绍 1510510