Understanding Robust Generalization in Learning Regular Languages
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 20 of its 37 references that are in the map. First posted on arXiv 20 Feb 2022.
Builds on
20 of 37 references.
References · 20
- 2017On Calibration of Modern Neural Networkscited by 4,960
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,375
- 2019Bridging Theory and Algorithm for Domain Adaptationcited by 332
- 2019Compositionality decomposed: how do neural networks generalise?cited by 265
- 2020COGS: A Compositional Generalization Challenge Based on Semantic Interpretationcited by 263
- 2020A survey on domain adaptation theory: learning bounds and theoretical guaranteescited by 109
- 2020A Benchmark for Systematic Generalization in Grounded Language Understandingcited by 108
- 2019Compositional generalization through meta sequence-to-sequence learningcited by 99
- 2020Compositional Generalization in Semantic Parsing: Pre-training vs. Specialized Architecturescited by 95
- 2017Extracting Automata from Recurrent Neural Networks Using Queries and Counterexamplescited by 66
- 2018Rearranging the Familiar: Testing Compositional Generalization in Recurrent Networkscited by 51
- 2017Recurrent Neural Networks as Weighted Language Recognizerscited by 30
8 more
- 2019CNNs found to jump around more skillfully than RNNs: Compositional generalization in seq2seq convolutional networkscited by 22
- 2018On Evaluating the Generalization of LSTM Models in Formal Languagescited by 17
- 2020A Survey of Neural Networks and Formal Languagescited by 17
- 2020*-CFQ: Analyzing the Scalability of Machine Learning on a Compositional Taskcited by 16
- 2018Connecting Weighted Automata and Recurrent Neural Networks through Spectral Learningcited by 15
- 2019Representing Formal Languages: A Comparison Between Finite Automata and Recurrent Neural Networkscited by 9
- 2019Approximating probabilistic models as weighted finite automatacited by 6
- 2018PAC Learning Guarantees Under Covariate Shiftcited by 3
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 0; 2025: 1.
3 papers.