vix.ing · top · new · best · stats

Neural Networks and the Chomsky Hierarchy

2022/07/05 by Grégoire Delétang, Anian Ruoss, Delétang, Grégoire +20 · 2 voices · 55 citations
Computer Science · Engineering · Mathematics · #Algorithm #Artificial intelligence #Artificial neural network #Computation #Computer science #Context (archaeology) #Deep neural networks #Ferroelectric and Negative Capacitance Devices #Field (mathematics) #Generalization #Hierarchy #Machine learning #Mathematics #Models of neural computation #Natural Language Processing Techniques #Theoretical computer science #Topic Modeling #Transformer #cs.AI #cs.CL #cs.FL #cs.LG

paper · pdf · doi:10.48550/arxiv.2207.02098

published in arXiv (Cornell University) (Cornell University)

openalex publication_date 2022/07/05 · openalex created_date 2025/10/10 · openalex updated_date 2026/08/04

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 tasks, LSTMs can solve regular and counter-language tasks, and only networks augmented with structured memory (such as a stack or memory tape) can successfully generalize on context-free and context-sensitive tasks.

Cited by

Discussions

Related