pith. sign in

arxiv: 2502.15801 · v1 · pith:TXJXKWPDnew · submitted 2025-02-19 · 💻 cs.LG · cs.AI· cs.CL

An explainable transformer circuit for compositional generalization

classification 💻 cs.LG cs.AIcs.CL
keywords compositionalcircuitmodeltransformerunderstandingabilitiesablationsactivation
0
0 comments X
read the original abstract

Compositional generalization-the systematic combination of known components into novel structures-remains a core challenge in cognitive science and machine learning. Although transformer-based large language models can exhibit strong performance on certain compositional tasks, the underlying mechanisms driving these abilities remain opaque, calling into question their interpretability. In this work, we identify and mechanistically interpret the circuit responsible for compositional induction in a compact transformer. Using causal ablations, we validate the circuit and formalize its operation using a program-like description. We further demonstrate that this mechanistic understanding enables precise activation edits to steer the model's behavior predictably. Our findings advance the understanding of complex behaviors in transformers and highlight such insights can provide a direct pathway for model control.

This paper has not been read by Pith yet.

discussion (0)

Sign in with ORCID, Apple, or X to comment. Anyone can read and Pith papers without signing in.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score.

  1. Critical Windows of Complexity Control: When Transformers Decide to Reason or Memorize

    cs.LG 2026-05 unverdicted novelty 6.0

    Transformers show a sharp, task-specific critical window for weight decay application that determines reasoning versus memorization, with middle placement optimal and boundaries as narrow as 100 steps.