Benchmarking transformers on formal language classes
A new study evaluates transformers, simple RNNs, and LSTMs on formal languages drawn randomly from a hierarchy of classes. The authors sampled 30 languages per class—$mathscr{R}$-trivial, star‑free, regular, and context‑free—and tested the models on the resulting benchmark, called SoL (Sets of Languages).
Key points
- Study tests transformers, RNNs, LSTMs on 30 languages per class
- Transformers recognize some $mathscr{R}$-trivial and star‑free languages but none non‑star‑free regular
- All models approximate context‑free languages but cannot recognize them perfectly
The results show that transformers can recognize some $mathscr{R}$-trivial and star‑free languages but fail to recognize any non‑star‑free regular languages. All three model families learn to approximate context‑free languages well, yet none can recognize them perfectly. The authors have released the code publicly.
The paper highlights a gap between theoretical work that uses simplified architectures and empirical studies that use realistic models. By sampling languages from full‑support distributions, the authors aim to provide a more comprehensive assessment of neural network capabilities.
The study is a contribution to the research literature on formal language theory and neural network expressiveness, offering a benchmark that can be used by future work to compare models on a broader set of languages.
The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
More in Research
All →- Anthropic mathematician Levent Alpöge and Claude prove Riemann hypothesis · 4 src
- Google DeepMind releases CellGemma, an open model for cell drug response · 4 src
- Beyond Theorem-Proving: How Hard Are Mathematical Conjectures for AI? · 1 src
- Guo: Teacher Replay Detects Prompt Use in Distilled Models · 1 src
- SLED assesses LLMs as judges and answerers for legal QAs · 1 src
Comments
via GitHub Discussions