Compiles RASP programs into transformer weights with known computational structure.
How it works
- Construction
- A symbolic compiler translates each RASP operation into network components and assembles their weights.
- Preparation and training
- Compilation constructs the weights without model training. A separate experiment trains a projection to compress the compiled model.
- Execution
- The compiled transformer executes the specified sequence computation.
Cite this work
@inproceedings{NEURIPS2023_771155ab,
author = {Lindner, David and Kramár, János and Farquhar, Sebastian and Rahtz, Matthew and McGrath, Thomas and Mikulik, Vladimir},
booktitle = {Advances in Neural Information Processing Systems},
doi = {10.52202/075280-1649},
editor = {A. Oh and T. Naumann and A. Globerson and K. Saenko and M. Hardt and S. Levine},
pages = {37876--37899},
publisher = {Curran Associates, Inc.},
title = {Tracr: Compiled Transformers as a Laboratory for Interpretability},
url = {https://arxiv.org/abs/2301.05062},
volume = {36},
year = {2023}
}