通过机制可解释性发现 Dyck 路径上的 Zeta 映射算法
Discovering a Zeta Map Algorithm on Dyck Paths via Mechanistic Interpretability
AI总结:
本文通过训练一个小型编码器-解码器 Transformer 模型来学习 Dyck 路径上的 zeta 映射,并利用机制可解释性工具分析其计算过程,从而发现并证明了一种新的显式组合算法——脚手架映射。
摘要:
机器学习越来越多地用于数学发现,但在数学中,期望的输出通常不是预测本身,而是一个可以独立验证的显式构造。我们通过 Dyck 路径上的 zeta 映射(q,t-卡特兰数组合学中的一个经典双射)来研究这一设定。我们在该映射上训练了一个特意设计的小型单层单头编码器-解码器 Transformer,并使用机制可解释性工具(包括解码器交叉注意力分析、线性探测和因果干预)分析其学习到的计算过程。分析揭示了一种基于层级的机制:编码器表示使路径层级线性可访问,而解码器以结构化方式选择和遍历输入位置。将这些信号转化为组合学,得到了脚手架映射,这是一种针对 Dyck 路径的显式以峰为中心的遍历算法。我们证明该算法与 zeta 映射一致,只是标签的逆转约定有所不同。这提供了一个受控的 AI 辅助数学发现示例,其中机制可解释性将模型行为转化为精确、人类可验证的组合算法。
英文摘要:
Machine learning is increasingly used in mathematical discovery, but in mathematics the desired output is often not a prediction itself, but an explicit construction that can be checked independently. We study this setting through the zeta map on Dyck paths, a classical bijection in the combinatorics of the q,t-Catalan numbers. We train a deliberately small one-layer, one-head encoder-decoder transformer on this map and analyze its learned computation using mechanistic interpretability tools, including decoder cross-attention analysis, linear probing, and causal intervention. The analysis reveals a level-based mechanism: encoder representations make path levels linearly accessible, while the decoder selects and traverses input positions in a structured way. Translating these signals into combinatorics leads to the scaffolding map, an explicit peak-centered traversal algorithm for Dyck paths. We prove that this algorithm agrees with the zeta map, modulo a reversal convention in the labeling. This gives a controlled example of AI-assisted mathematical discovery in which mechanistic interpretability turns model behavior into a precise, human-verifiable combinatorial algorithm.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。