DigestAI news desk

Cut through the AI noise.

Research

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).

1 source primary source

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.

Read the original at arXiv cs.CL · by Brian DuSell, Alexandra Butoi, Selim Jerad, Nicola Lorenzon, Taiga Someya, Anej Svete, Ryan Cotterell primary sourceOpen source ↗
Pass it on WhatsApp Telegram Email

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.

Comments

via GitHub Discussions

More in Research

All →

Related stories