paper-with-me

홈 › Papers

Understanding Robust Generalization in Learning Regular Languages

2022-02-20 · Soham Dan, Osbert Bastani, Dan Roth

A key feature of human intelligence is the ability to generalize beyond the training distribution, for instance, parsing longer sentences than seen in the past. Currently, deep neural networks struggle to generalize robustly to such shifts in the data distribution. We study robust generalization in the context of using recurrent neural networks (RNNs) to learn regular languages. We hypothesize that standard end-to-end modeling strategies cannot generalize well to systematic distribution shifts and propose a compositional strategy to address this. We compare an end-to-end strategy that maps strings to labels with a compositional strategy that predicts the structure of the deterministic finite-state automaton (DFA) that accepts the regular language. We theoretically prove that the compositional strategy generalizes significantly better than the end-to-end strategy. In our experiments, we implement the compositional strategy via an auxiliary task where the goal is to predict the intermediate states visited by the DFA when parsing a string. Our empirical results support our hypothesis, showing that auxiliary tasks can enable robust generalization. Interestingly, the end-to-end RNN generalizes significantly better than the theoretical lower bound, suggesting that it is able to achieve at least some degree of robust generalization.

📄 PDF Abstract BibTeX arXiv:2202.09717

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

DFA 설명 없음

Similar Papers 제목 키워드 기반

Algebraic Decomposition Theory for Transformer Length Generalization

2026-08-13 · Andy Yang, Blerta Veseli, Corentin Barloy, Michaël Cadilhac 외 arxiv

Transformer-based language models are known to sometimes generalize to sequences longer than seen during training, but we lack a precise characterization of which tasks admit length generalization. It is not even known w…

Length Generalization with Log-Depth Recurrent Units

2026-05-25 · Charles Pert, Dalal Alrajeh, Alessandra Russo arxiv

Length generalization remains a persistent challenge for neural networks: recurrent models tend to suffer from positional biases, while transformers are constrained by fixed computational depth. Regular languages provide…

RNN Generalization to Omega-Regular Languages

2025-09-02 · Charles Pert, Dalal Alrajeh, Alessandra Russo arxiv

Büchi automata (BAs) recognize $ω$-regular languages defined by formal specifications like linear temporal logic (LTL) and are commonly used in the verification of reactive systems. However, BAs face scalability challeng…

On the Ability and Limitations of Transformers to Recognize Formal Languages

2020-09-23 · EMNLP 2020 11 · Satwik Bhattamishra, Kabir Ahuja, Navin Goyal

Transformers have supplanted recurrent models in a large number of NLP tasks. However, the differences in their abilities to model different syntactic properties remain largely unknown. Past works suggest that LSTMs gene…

Cross-lingual Spoken Language Understanding with Regularized Representation Alignment

2020-09-30 · EMNLP 2020 11 · Zihan Liu, Genta Indra Winata, Peng Xu, Zhaojiang Lin 외

Despite the promising results of current cross-lingual models for spoken language understanding systems, they still suffer from imperfect cross-lingual representation alignments between the source and target languages, w…

SentenceSpoken Language Understanding