arXiv cs.CL· Giyeong Oh, Sunghee Ahn, Youngjae Yu·· 13 小时前AI 评分26
Transformer MLP 中的读写耦合机制
Reader--Writer Coupling in Transformer MLPs
AI 导读
研究将 Transformer 的 MLP 层视为键值记忆,通过其更新 Jacobian 与转置的一致性定义每个通道的读写配对坐标。按该坐标排序,每个被测量的模块都存在一小群强耦合通道,且核心几乎全部为“对立”配对——writer 指向与 reader 响应方向相反。
正文 · 原文
Abstract:A transformer MLP gives each hidden channel two roles: a reader that decides when the channel responds, and a writer that decides what it adds back to the residual stream. Read as a key--value memory, the layer can be measured one factor set at a time: the pairing of readers to writers is carried only by their shared index, invisible to any quantity computed from one factor set alone. Yet training couples the two factors through their joint update, so we ask what reading them together shows. The block supplies the joint instrument: the MLP writes back into the very stream it reads, so the exact Jacobian of its update is square, and its agreement with its own transpose resolves into reader--writer terms whose inner products give each channel, read as a couple, a signed pairing coordinate. Ranked by this coordinate, each block we measure has a small core of strongly coupled channels; where initialization gives either sign equally, the core is nearly all opposed: each writer points against the direction its reader responds to. This opposed core recurs from the smallest models trained from scratch to released checkpoints; its sign is in place within a few percent of training and holds while the coupling grows. Read as couples, most channels return their contribution against the reader that fired it, and the readers of later blocks take it up; few show in the logits. Training holds the couples in place: flipping the opposed writers moves the output toward common tokens, and a writer permuted onto another reader regrows to fit that reader while the reader stays.
| Subjects: | Machine Learning (cs.LG); Computation and Language (cs.CL) |
| Cite as: | arXiv:2610.29340 [cs.LG] |
| (or arXiv:2610.29340v1 [cs.LG] for this version) | |
| https://doi.org/10.48550/arXiv.2610.29340 arXiv-issued DOI via DataCite (pending registration) |
Submission history
From: Sunghee Ahn [view email]
[v1]
Wed, 21 Oct 2026 07:35:23 UTC (2,666 KB)
来源:arXiv cs.CL · arxiv.org