arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2602.15997cs.LGcs.AIcs.CL
收藏

Transformer中能力获取的几何解剖

The Geometric Anatomy of Capability Acquisition in Transformers

San Jose, CA, USA(美国加利福尼亚州圣何塞);Yahoo(雅虎);Nuance(纽昂斯);BBN(BBN科技)

Jayadev Billa

AI总结:

研究揭示了Transformer模型在训练过程中能力获取的几何变化与行为变化的关系,发现任务难度和模型规模影响几何变化与行为表现的先后顺序,且仅在困难任务中存在明显的先决阶段。

摘要:

神经网络在训练过程中获得能力,但其内部变化在能力获取前的机制尚不明确。特别是几何变化与行为变化之间的关系,以及任务难度和模型规模对这一关系的影响尚不清楚。我们跟踪了六个Transformer规模(405K-151M参数)、八个算法任务(144任务×级别×模型组合)和三个Pythia语言模型(160M-2.8B)的几何度量和线性探测。在所有设置中,表示首先坍缩到低维状态,然后恢复,只有在之后行为性能才提高。线性探测显示,模型的隐藏状态在模型能够执行任务之前已包含任务相关的信息。坍缩地板是任务特定的,坍缩通过网络自上而下传播,且在测试的几何度量中,只有rankme在困难任务中可靠地在能力获取前出现。是否能检测到这种先决阶段取决于任务难度相对于模型容量的比例。对于困难任务,存在明显的差距:几何变化先发生,行为随后发生。对于简单任务,模型学习速度如此之快,两者同时发生,没有可检测的先决阶段。在Pythia-2.8B上,一个对模型真正困难的逻辑推理任务显示了约49000次训练步骤的先决差距,而简单基准则没有。这表明在小代理模型中观察到的几何模式在更大规模时,当任务难度相对于模型容量保持困难时可以持续存在。

英文摘要:

Neural networks gain capabilities during training, but the internal changes that precede capability acquisition are not well understood. In particular, the relationship between geometric change and behavioral change, and the effect of task difficulty and model scale on that relationship, is unclear. We track geometric measures and linear probes across six transformer sizes (405K--151M parameters), eight algorithmic tasks (144 task$\times$level$\times$model combinations), and three Pythia language models (160M--2.8B). Across all settings, representations first collapse to a low-dimensional state, then recover, and only then does behavioral performance improve. Linear probes show that the model's hidden states already contain task-relevant information before the model can act on it. The collapse floor is task-specific, the collapse propagates top-down through the network, and of the geometric measures tested, only \rankme reliably precedes capability acquisition for hard tasks. Whether this precursor is detectable depends on task difficulty relative to model capacity. For hard tasks, there is a clear gap: geometry changes first, behavior follows. For easy tasks, the model learns so quickly that both happen simultaneously and no precursor is detectable. On Pythia-2.8B, a logical deduction task that is genuinely hard for the model shows a precursor gap of ${\sim}$49K training steps, while easy benchmarks show none. This suggests that geometric patterns observed in small proxy models can persist at larger scale when the task remains difficult relative to model capacity.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑