paper-with-me

Papers

Weights to Code: Extracting Interpretable Algorithms from the Discrete Transformer

2026-01-09 · Yifan Zhang, Wei Bi, Kechi Zhang, Dongming Jin, Jie Fu, Zhi Jin arxiv

Algorithm extraction aims to synthesize executable programs directly from models trained on algorithmic tasks, enabling de novo recovery of executable mechanisms from weights without relying on human-written target programs. However, applying this paradigm to Transformer is complicated by representation entanglement (e.g., superposition), where features encoded in overlapping directions substantially hinder the recovery of symbolic expressions. We propose the Discrete Transformer, an architecture explicitly designed to bridge the gap between continuous representations and discrete symbolic logic. By injecting discreteness through temperature-annealed sampling, our framework effectively leverages hypothesis testing and symbolic regression to extract human-readable programs. Empirically, the Discrete Transformer achieves performance comparable to the RNN-based MIPS baseline on shared discrete tasks, while broadening extraction to tasks with continuous-valued intermediate computations. Finally, we show that architectural inductive biases provide fine-grained control over synthesized programs, establishing the Discrete Transformer as a controllable testbed for algorithm extraction and Transformer interpretability.

📄 PDF Abstract BibTeX arXiv:2601.05770

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

$\partial\mathbb{B}$ nets: learning discrete functions by gradient descent

2023-05-12 · Ian Wright

$\partial\mathbb{B}$ nets are differentiable neural networks that learn discrete boolean-valued functions by gradient descent. $\partial\mathbb{B}$ nets have two semantically equivalent aspects: a differentiable soft-net…

Binarization

Generating Interpretable Networks using Hypernetworks

2023-12-05 · Isaac Liao, Ziming Liu, Max Tegmark

An essential goal in mechanistic interpretability to decode a network, i.e., to convert a neural network's raw weights to an interpretable algorithm. Given the difficulty of the decoding problem, progress has been made t…

Systematic Generalization

Deep Discrete Encoders: Identifiable Deep Generative Models for Rich Data with Discrete Latent Layers

2025-01-02 · SeungHyun Lee, Yuqi Gu

In the era of generative AI, deep generative models (DGMs) with latent representations have gained tremendous popularity. Despite their impressive empirical performance, the statistical properties of these models remain …

parameter estimationRepresentation Learning

Learning Transformer Programs

2023-06-01 · NeurIPS 2023 11 · Dan Friedman, Alexander Wettig, Danqi Chen

Recent research in mechanistic interpretability has attempted to reverse-engineer Transformer models by carefully inspecting network weights and activations. However, these approaches require considerable manual effort a…

In-Context LearningInterpretable Machine Learningnamed-entity-recognitionNamed Entity Recognition+2

Discovering quantum phenomena with Interpretable Machine Learning

2026-04-17 · Paulin de Schoulepnikoff, Hendrik Poulsen Nautrup, Hans J. Briegel, Gorka Muñoz-Gil arxiv

Interpretable machine learning techniques are becoming essential tools for extracting physical insights from complex quantum data. We build on recent advances in variational autoencoders to demonstrate that such models c…

Interpretable Machine Learning