Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers
Logic in Computer Science
2024-12-03 v2 Computation and Language
Formal Languages and Automata Theory
Machine Learning
Abstract
Deriving formal bounds on the expressivity of transformers, as well as studying transformers that are constructed to implement known algorithms, are both effective methods for better understanding the computational power of transformers. Towards both ends, we introduce the temporal counting logic [#] alongside the RASP variant . We show they are equivalent to each other, and that together they are the best-known lower bound on the formal expressivity of future-masked soft attention transformers with unbounded input size. We prove this by showing all [#] formulas can be compiled into these transformers.
Keywords
Cite
@article{arxiv.2404.04393,
title = {Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers},
author = {Andy Yang and David Chiang},
journal= {arXiv preprint arXiv:2404.04393},
year = {2024}
}