Backward Chaining Circuits in a Transformer Trained on a Symbolic Reasoning Task
Abstract
Transformers demonstrate impressive performance on a range of reasoning benchmarks. To evaluate the degree to which these abilities are a result of actual reasoning, existing work has focused on developing sophisticated benchmarks for behavioral studies. However, these studies do not provide insights into the internal mechanisms driving the observed capabilities. To improve our understanding of the internal mechanisms of transformers, we present a comprehensive mechanistic analysis of a transformer trained on a synthetic reasoning task. We identify a set of interpretable mechanisms the model uses to solve the task, and validate our findings using correlational and causal evidence. Our results suggest that it implements a depth-bounded recurrent mechanisms that operates in parallel and stores intermediate results in selected token positions. We anticipate that the motifs we identified in our synthetic setting can provide valuable insights into the broader operating principles of transformers and thus provide a basis for understanding more complex models.
Cite
Text
Brinkmann et al. "Backward Chaining Circuits in a Transformer Trained on a Symbolic Reasoning Task." ICLR 2024 Workshops: ME-FoMo, 2024.Markdown
[Brinkmann et al. "Backward Chaining Circuits in a Transformer Trained on a Symbolic Reasoning Task." ICLR 2024 Workshops: ME-FoMo, 2024.](https://mlanthology.org/iclrw/2024/brinkmann2024iclrw-backward/)BibTeX
@inproceedings{brinkmann2024iclrw-backward,
title = {{Backward Chaining Circuits in a Transformer Trained on a Symbolic Reasoning Task}},
author = {Brinkmann, Jannik and Sheshadri, Abhay and Levoso, Victor and Swoboda, Paul and Bartelt, Christian},
booktitle = {ICLR 2024 Workshops: ME-FoMo},
year = {2024},
url = {https://mlanthology.org/iclrw/2024/brinkmann2024iclrw-backward/}
}