Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers

Fuente: arXiv
Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Yang, Andy, Chiang, David
Format: Preprint
Veröffentlicht: 2024
Schlagworte:
Online-Zugang:
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866915041385644032
author Yang, Andy
Chiang, David
author_facet Yang, Andy
Chiang, David
contents 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 $\textsf{K}_\text{t}$[#] alongside the RASP variant $\textsf{C-RASP}$. 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 $\textsf{K}_\text{t}$[#] formulas can be compiled into these transformers.
format Preprint
id arxiv_https___arxiv_org_abs_2404_04393
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers
Yang, Andy
Chiang, David
Logic in Computer Science
Computation and Language
Formal Languages and Automata Theory
Machine Learning
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 $\textsf{K}_\text{t}$[#] alongside the RASP variant $\textsf{C-RASP}$. 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 $\textsf{K}_\text{t}$[#] formulas can be compiled into these transformers.
title Counting Like Transformers: Compiling Temporal Counting Logic Into Softmax Transformers
topic Logic in Computer Science
Computation and Language
Formal Languages and Automata Theory
Machine Learning
url https://arxiv.org/abs/2404.04393