arXiv cs.CL· Valeria Ruscio, Keiran Thompson·· 2 天前AI 评分31
研究揭示Transformer训练中的读写不对称几何结构
The Geometry of Learning: Read-Write Asymmetry Across Training
AI 导读
研究分析了预训练与对齐阶段如何更新同一Transformer权重,发现对齐阶段对query和key矩阵的更新集中在输入主 subspace,而对输出矩阵的更新相对预测子空间接近随机。该特征在预训练后期及不同目标函数下均出现,说明其属于训练阶段属性而非目标函数属性。读梯度继承激活谱,写梯度继承上游梯度几何,优化器会衰减这种集中度。
正文 · 原文
Abstract:Pretraining and alignment update the same transformer weights, and we ask in which directions each stage changes them. The residual stream gives every matrix a shared coordinate system, in which a weight change can be compared with the principal subspace of the activations the matrix reads and with the prediction subspace of the unembedding. In this frame, alignment updates to the query and key matrices are enriched in the principal input subspace, while its updates to the output matrices are close to random relative to the prediction subspace, and the same signature appears in late pretraining and under every objective we apply to one checkpoint, so it is a property of the training stage rather than of the objective. The gradient of a linear map is a sum of outer products $\delta_t a_t^\top$, and the residual stream enters this product through the activation $a_t$ for matrices that read from it and through the upstream gradient $\delta_t$ for matrices that write into it. Read gradients therefore inherit the spectrum of the activations, which is the same under every objective, while write gradients inherit the geometry of the upstream gradients, which point into the prediction subspace only early in pretraining, when the output matrices acquire their prediction geometry. The raw read gradient follows the activation spectrum, the optimiser attenuates the concentration it inherits, and cancellation between tokens sets the scale of the update but not its direction. A write direction derived from the unembedding still changes predictions after alignment, and adaptation restricted to any single group of matrices remains effective, so the signature describes where training places its updates, not which matrices can carry them.
| Subjects: | Machine Learning (cs.LG); Artificial Intelligence (cs.AI); Computation and Language (cs.CL) |
| Cite as: | arXiv:2605.16600 [cs.LG] |
| (or arXiv:2605.16600v2 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2605.16600 arXiv-issued DOI via DataCite |
Submission history
From: Valeria Ruscio [view email]
[v1]
Fri, 15 May 2026 20:00:59 UTC (1,085 KB)
[v2]
Tue, 27 Oct 2026 13:00:48 UTC (1,269 KB)
来源:arXiv cs.CL · arxiv.org