Pith. sign in

REVIEW 1 cited by

Simulating Weighted Automata over Sequences and Trees with Transformers

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2403.09728 v1 pith:EIDLY4N3 submitted 2024-03-12 cs.CL cs.AIcs.CC

classification cs.CLcs.AIcs.CC
keywords automatamodelstransformersweightedfinitesimulatedfasreasoning
verification ladder T0 review T1 audit T2 compute T3 formal
0 comments
read the original abstract

Transformers are ubiquitous models in the natural language processing (NLP) community and have shown impressive empirical successes in the past few years. However, little is understood about how they reason and the limits of their computational capabilities. These models do not process data sequentially, and yet outperform sequential neural models such as RNNs. Recent work has shown that these models can compactly simulate the sequential reasoning abilities of deterministic finite automata (DFAs). This leads to the following question: can transformers simulate the reasoning of more complex finite state machines? In this work, we show that transformers can simulate weighted finite automata (WFAs), a class of models which subsumes DFAs, as well as weighted tree automata (WTA), a generalization of weighted automata to tree structured inputs. We prove these claims formally and provide upper bounds on the sizes of the transformer models needed as a function of the number of states the target automata. Empirically, we perform synthetic experiments showing that transformers are able to learn these compact solutions via standard gradient-based training.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 1 Pith paper

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. From Expressivity to Sample Complexity: Narrow Teachers for Transformers via C-RASP

    cs.LG 2026-07 conditional novelty 6.0 of 10

    Embedding a narrow C-RASP teacher into a wider quantized Transformer yields sample complexity O((L d log Q)/ε) under posterior sampling of zero-training-error models.

Pith tools