paper-with-me

홈 › Papers

Training Neural Networks as Recognizers of Formal Languages

2024-11-11 · Alexandra Butoi, Ghazal Khalighinejad, Anej Svete, Josef Valvoda, Ryan Cotterell, Brian DuSell

Characterizing the computational power of neural network architectures in terms of formal language theory remains a crucial line of research, as it describes lower and upper bounds on the reasoning capabilities of modern AI. However, when empirically testing these bounds, existing work often leaves a discrepancy between experiments and the formal claims they are meant to support. The problem is that formal language theory pertains specifically to recognizers: machines that receive a string as input and classify whether it belongs to a language. On the other hand, it is common to instead use proxy tasks that are similar in only an informal sense, such as language modeling or sequence-to-sequence transduction. We correct this mismatch by training and evaluating neural networks directly as binary classifiers of strings, using a general method that can be applied to a wide variety of languages. As part of this, we extend an algorithm recently proposed by Sn{\ae}bjarnarson et al. (2024) to do length-controlled sampling of strings from regular languages, with much better asymptotic time complexity than previous methods. We provide results on a variety of languages across the Chomsky hierarchy for three neural architectures: a simple RNN, an LSTM, and a causally-masked transformer. We find that the RNN and LSTM often outperform the transformer, and that auxiliary training objectives such as language modeling can help, although no single objective uniformly improves performance across languages and architectures. Our contributions will facilitate theoretically sound empirical testing of language recognition claims in future work. We have released our datasets as a benchmark called FLaRe (Formal Language Recognition), along with our code.

📄 PDF Abstract BibTeX arXiv:2411.07107

Code (2)

rycolab/flare 공식 구현
rycolab/neural-network-recognizers 공식 구현

Tasks

Language ModelingLanguage Modelling

Methods 이 논문이 사용한 방법론

Sigmoid Activation 설명 없음
Tanh Activation 설명 없음
LSTM An LSTM is a type of recurrent neural network that addresses the vanishing gradient problem in vanilla…

Similar Papers 제목 키워드 기반

A Little Annotation does a Lot of Good: A Study in Bootstrapping Low-resource Named Entity Recognizers

2019-08-23 · IJCNLP 2019 11 · Aditi Chaudhary, Jiateng Xie, Zaid Sheikh, Graham Neubig 외

Most state-of-the-art models for named entity recognition (NER) rely on the availability of large amounts of labeled data, making them challenging to extend to new, lower-resourced languages. However, there are now sever…

Active LearningCross-Lingual Transfernamed-entity-recognitionNamed Entity Recognition+3

Recurrent Neural Networks as Weighted Language Recognizers

2017-11-15 · NAACL 2018 6 · Yining Chen, Sorcha Gilroy, Andreas Maletti, Jonathan May 외

We investigate the computational complexity of various problems for simple recurrent neural networks (RNNs) as formal models for recognizing weighted languages. We focus on the single-layer, ReLU-activation, rational-wei…

MRN: Multiplexed Routing Network for Incremental Multilingual Text Recognition

2023-05-24 · ICCV 2023 1 · Tianlun Zheng, Zhineng Chen, Bingchen Huang, Wei zhang 외

Multilingual text recognition (MLTR) systems typically focus on a fixed set of languages, which makes it difficult to handle newly added languages or adapt to ever-changing data distribution. In this paper, we propose th…

Continual LearningIncremental LearningOptical Character Recognition (OCR)Scene Text Recognition

Towards Language-Universal End-to-End Speech Recognition

2017-11-06 · Suyoun Kim, Michael L. Seltzer

Building speech recognizers in multiple languages typically involves replicating a monolingual training recipe for each language, or utilizing a multi-task learning approach where models for different languages have sepa…

Multi-Task Learningspeech-recognitionSpeech Recognition

Towards Unsupervised Speech Recognition at the Syllable-Level

2025-10-04 · Liming Wang, Junrui Ni, Kai-Wei Chang, Saurabhchand Bhati 외 arxiv

Training speech recognizers with unpaired speech and text -- known as unsupervised speech recognition (UASR) -- is a crucial step toward extending ASR to low-resource languages in the long-tail distribution and enabling …

Speech Recognition