← News

ResearchSources: arXiv · 3 Dec 2026

Researchers train neural networks directly as formal language recognizers

An arXiv paper introduces a method for testing neural networks as string classifiers, aligning experiments with formal language theory, and releases the FLaRe benchmark.

In plain words

Formal language theory describes what kinds of patterns a machine can recognize, but neural networks are usually tested on loosely related tasks instead. The authors trained networks directly to classify whether strings belong to a language, and released their datasets as the FLaRe benchmark.

What was announced

The paper argues that prior empirical work often evaluates language models on proxy tasks, such as language modeling or sequence-to-sequence transduction, which only informally resemble the formal claims being tested. To close this gap, the authors trained and evaluated neural networks as binary classifiers of strings, using a general method applicable to many languages. They also extended an algorithm by Snaebjarnarson et al. (2026) for efficient length-controlled sampling of strings from regular languages.

Testing a simple RNN, an LSTM, and a causally masked transformer across languages spanning the Chomsky hierarchy, the authors report that the RNN and LSTM often outperform the transformer. Auxiliary objectives such as language modeling can help, but no single objective uniformly improves performance across all languages and architectures. The datasets are released as the FLaRe (Formal Language Recognition) benchmark, along with code.

What it does not show

  • The source is the paper's abstract, so experimental details, metrics, and full results are not available for verification.
  • Performance comparisons reflect the authors' reported findings and have not been independently confirmed.

Sources

Source-support review completed 4 Dec 2026. This story was drafted with AI assistance and checked against retained source passages. Automated checking is not independent verification.

Coverage: arXiv: abstract.

Updates and corrections

No corrections so far.

First published 4 Dec 2026

New to the subject? AI from the Ground Up starts from the beginning.