mlsanityData to 7 Oct 2026

Discovering a Zeta Map Algorithm on Dyck Paths via Mechanistic Interpretability

arXiv 2605.30482 ↗First posted 28 May 2026cs.LGcited by 1

Not on the map. Why?

Abstract (arXiv)

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.

Key facts. Cited by 1 paper in the map (data through 7 Oct 2026). Builds on 15 of its 28 references that are in the map. First posted on arXiv 28 May 2026.

Builds on

15 of 28 references.

References · 15

  1. 2017Attention Is All You Needcited by 59,932
  2. 2016Understanding intermediate layers using linear classifier probescited by 1,279
  3. 2019Attention is not Explanationcited by 916
  4. 2025AlphaEvolve: A coding agent for scientific and algorithmic discoverycited by 763
  5. 2023Towards Automated Circuit Discovery for Mechanistic Interpretabilitycited by 700
  6. 2019Attention is not not Explanationcited by 629
  7. 2023The Clock and the Pizza: Two Stories in Mechanistic Explanation of Neural Networkscited by 153
  8. 2023A Toy Model of Universality: Reverse Engineering How Networks Learn Group Operationscited by 141
  9. 2024A Multimodal Automated Interpretability Agentcited by 62
  10. 2024LatentQA: Teaching LLMs to Decode Activations Into Natural Languagecited by 49
  11. 2021Constructions in combinatorics via neural networkscited by 46
  12. 2020Learning to Unknotcited by 40
3 more
  1. 2023Transformers are uninterpretable with myopic methods: a case study with bounded Dyck grammarscited by 30
  2. 2024Can Transformers Do Enumerative Geometry?cited by 8
  3. 2026Flow-based Extremal Mathematical Structure Discoverycited by 3

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2026: 1.

1 paper.