Lune

ICLR2025Top-tier venue

Adaptive Transformer Programs: Bridging the Gap Between Performance and Interpretability in Transformers

Quoc-Vinh Lai-Dang, Taemin Kang, Seungah Son

Abstract

Balancing high performance with interpretability in increasingly powerful Transformer-based models remains a challenge. While mechanistic interpretability aims to specify neural network computations in explicit, pseudocode-like formats, existing methods often involve laborious manual analysis or struggle to fully elucidate learned internal algorithms. Recent efforts to build intrinsically interpretable models have introduced considerable expressivity and optimization challenges. This work introduces Adaptive Transformer Programs, an enhanced framework building upon RASP language and Transformer Programs to create more robust and interpretable models. The proposed method increases expressivity by redesigning two primary attention modules to improve categorical and numerical reasoning capabilities. To overcome optimization hurdles, we introduce a novel reparameterization scheme that enhances the exploration-exploitation tradeoff during training. We validate our approach through extensive experiments on diverse tasks, including in-context learning, algorithmic problems (e.g., sorting and Dyck languages), and NLP benchmarks such as named entity recognition and text classification. Results demonstrate that Adaptive Transformer Programs substantially narrow the performance gap between black-box Transformers and interpretable models, enhancing transparency. This work advances the development of high-performing, transparent AI systems for critical applications, addressing crucial ethical concerns in AI development.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

2 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Discovering Interpretable Algorithms by Decompiling Transformers to RASP cites Thinking Like Transformers
  • Discovering Interpretable Algorithms by Decompiling Transformers to RASP cites Learning Transformer Programs
  • Discovering Interpretable Algorithms by Decompiling Transformers to RASP cites Weights to Code: Extracting Interpretable Algorithms from the Discrete Transformer
  • Learning Transformer Programs cites Thinking Like Transformers
  • Learning Transformer Programs cites Looped Transformers as Programmable Computers
  • Learning Transformer Programs cites Language Models are Few-Shot Learners
  • Looped Transformers as Programmable Computers cites Thinking Like Transformers
  • Looped Transformers as Programmable Computers cites Language Models are Few-Shot Learners
  • Weights to Code: Extracting Interpretable Algorithms from the Discrete Transformer cites Thinking Like Transformers
  • Weights to Code: Extracting Interpretable Algorithms from the Discrete Transformer cites Learning Transformer Programs
  • Weights to Code: Extracting Interpretable Algorithms from the Discrete Transformer cites Tracr: Compiled Transformers as a Laboratory for Interpretability
  • Tracr: Compiled Transformers as a Laboratory for Interpretability cites Thinking Like Transformers
  • Tracr: Compiled Transformers as a Laboratory for Interpretability cites Learning Transformer Programs
  • Tracr: Compiled Transformers as a Laboratory for Interpretability cites Looped Transformers as Programmable Computers
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers2

  1. Discovering Interpretable Algorithms by Decompiling Transformers to RASPXinting Huang, Aleksandra Bakalova, Satwik Bhattamishra, William Merrill et al.ICML 2026 · 3 citations
  2. Weights to Code: Extracting Interpretable Algorithms from the Discrete TransformerYifan Zhang, Wei Bi, Kechi Zhang, Dongming Jin et al.ICML 2026 · 2 citations

Builds on8

  1. Language Models are Few-Shot LearnersTom B. Brown, Benjamin Mann, Nick Ryder, Melanie Subbiah et al.NeurIPS 2020 · 64,255 citations
  2. Thinking Like TransformersGail Weiss, Yoav Goldberg, Eran YahavICML 2021 · 183 citations
  3. Looped Transformers as Programmable ComputersAngeliki Giannou, Shashank Rajput, Jy-yong Sohn, Kangwook Lee et al.ICML 2023 · 175 citations
  4. Tracr: Compiled Transformers as a Laboratory for InterpretabilityDavid Lindner, János Kramár, Sebastian Farquhar, Matthew Rahtz et al.NeurIPS 2023 · 113 citations
  5. Learning Transformer ProgramsDan Friedman, Alexander Wettig, Danqi ChenNeurIPS 2023 · 59 citations

Related papers

  1. What Algorithms can Transformers Learn? A Study in Length GeneralizationHattie Zhou, Arwen Bradley, Etai Littwin, Noam Razin et al.ICLR 2024 · 189 citations
  2. Tracr-Injection: Distilling Algorithms into Pre-trained Language ModelsTomás Vergara Browne, Alvaro SotoACL Findings 2025
  3. Discovering and Steering Interpretable Concepts in Large Generative Music ModelsNikhil Singh, Manuel Cherep, Pattie MaesICLR 2026 · 17 citations
  4. Looped Transformers for Length GeneralizationYing Fan, Yilun Du, Kannan Ramchandran, Kangwook LeeICLR 2025
  5. Efficient Automated Circuit Discovery in Transformers using Contextual DecompositionAliyah R. Hsu, Georgia Zhou, Yeshwanth Cherapanamjeri, Yaxuan Huang et al.ICLR 2025
Dusk over the sea between two cliffs drawn in fine vertical lines