English

Tighter Bounds on the Expressivity of Transformer Encoders

Machine Learning 2023-11-14 v3 Formal Languages and Automata Theory Logic in Computer Science

Abstract

Characterizing neural networks in terms of better-understood formal systems has the potential to yield new insights into the power and limitations of these networks. Doing so for transformers remains an active area of research. Bhattamishra and others have shown that transformer encoders are at least as expressive as a certain kind of counter machine, while Merrill and Sabharwal have shown that fixed-precision transformer encoders recognize only languages in uniform TC0TC^0. We connect and strengthen these results by identifying a variant of first-order logic with counting quantifiers that is simultaneously an upper bound for fixed-precision transformer encoders and a lower bound for transformer encoders. This brings us much closer than before to an exact characterization of the languages that transformer encoders recognize.

Keywords

Cite

@article{arxiv.2301.10743,
  title  = {Tighter Bounds on the Expressivity of Transformer Encoders},
  author = {David Chiang and Peter Cholak and Anand Pillay},
  journal= {arXiv preprint arXiv:2301.10743},
  year   = {2023}
}

Comments

Presented at ICML 2023. Typo corrections in Appendix B and Section 8.1