Introduces RASP, a language for expressing sequence computations in terms of transformer operations.
How it works
- Construction
- RASP programs combine selection, aggregation and elementwise operations to describe algorithms such as sorting and histograms.
- Preparation and training
- The paper trains transformers to reproduce the programs. Tracr later provides a compiler that constructs transformer weights directly.
- Execution
- RASP executes the specified sequence transformation; the trained transformers are evaluated against that behavior.
Cite this work
@inproceedings{thinking-like-transformers,
title = {{Thinking Like Transformers}},
author = {Weiss, Gail and Goldberg, Yoav and Yahav, Eran},
year = {2021},
booktitle = {Proceedings of the 38th International Conference on Machine Learning},
volume = {139},
pages = {11080--11090},
series = {Proceedings of Machine Learning Research},
publisher = {PMLR},
url = {https://proceedings.mlr.press/v139/weiss21a.html}
}