Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models

Arco van Breda, Erman Acar
2/3/2026
cs.LGcs.AI

No confident code implementation found for this paper.

Abstract

Following their success across many domains, transformers have also proven effective for symbolic regression (SR); however, the internal mechanisms underlying their generation of mathematical operators remain largely unexplored. Although mechanistic interpretability has successfully identified circuits in language and vision models, it has not yet been applied to SR. In this article, we introduce PATCHES, an evolutionary circuit discovery algorithm that identifies compact and correct circuits for SR. Using PATCHES, we isolate 28 circuits, providing the first circuit-level characterisation of an SR transformer. We validate these findings through a robust causal evaluation framework based on key notions such as faithfulness, completeness, and minimality. Our analysis shows that mean patching with performance-based evaluation most reliably isolates functionally correct circuits. In contrast, we demonstrate that direct logit attribution and probing classifiers primarily capture correlational features rather than causal ones, limiting their utility for circuit discovery. Overall, these results establish SR as a high-potential application domain for mechanistic interpretability and propose a principled methodology for circuit discovery.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{breda2026explaining,
  title  = {Explaining the Explainer: Understanding the Inner Workings of Transformer-based Symbolic Regression Models},
  author = {Arco van Breda and Erman Acar},
  year   = {2026},
  eprint = {2602.03506},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2602.03506v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2602.03506.svg)](https://codeofpaper.com/paper/2602.03506)

Discussion