Neural Networks and the Chomsky Hierarchy
Gr\'egoire Del\'etang, Anian Ruoss, Jordi Grau-Moya, Tim Genewein, Li, Kevin Wenliang, Elliot Catt, Chris Cundy, Marcus Hutter, Shane Legg, Joel, Veness, Pedro A. Ortega

TL;DR
This study empirically investigates neural network generalization limits using the Chomsky hierarchy, revealing that certain architectures can only generalize on specific classes of formal languages.
Contribution
It demonstrates how the Chomsky hierarchy can predict neural network generalization capabilities across various tasks, highlighting the importance of structured memory for complex language classes.
Findings
RNNs and Transformers fail on non-regular tasks
LSTMs succeed on regular and counter-language tasks
Structured memory networks generalize on context-free and context-sensitive tasks
Abstract
Reliable generalization lies at the heart of safe ML and AI. However, understanding when and how neural networks generalize remains one of the most important unsolved problems in the field. In this work, we conduct an extensive empirical study (20'910 models, 15 tasks) to investigate whether insights from the theory of computation can predict the limits of neural network generalization in practice. We demonstrate that grouping tasks according to the Chomsky hierarchy allows us to forecast whether certain architectures will be able to generalize to out-of-distribution inputs. This includes negative results where even extensive amounts of data and training time never lead to any non-trivial generalization, despite models having sufficient capacity to fit the training data perfectly. Our results show that, for our subset of tasks, RNNs and Transformers fail to generalize on non-regular…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
WE MUST ADD STRUCTURE TO DEEP LEARNING BECAUSE...· youtube
Can ChatGPT Handle Infinite Possibilities? - Walid Saba· youtube
#96 Prof. PEDRO DOMINGOS - There are no infinities, utility functions, neurosymbolic· youtube
#88 Dr. WALID SABA - Why machines will never rule the world [UNPLUGGED]· youtube
Taxonomy
TopicsFerroelectric and Negative Capacitance Devices · Topic Modeling · Natural Language Processing Techniques
