Saved in:
Bibliographic Details
Main Authors: van Rossem, Loek, Saxe, Andrew M.
Format: Preprint
Published: 2025
Subjects:
Online Access:https://arxiv.org/abs/2507.09897
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866918115958325248
author van Rossem, Loek
Saxe, Andrew M.
author_facet van Rossem, Loek
Saxe, Andrew M.
contents Even when massively overparameterized, deep neural networks show a remarkable ability to generalize. Research on this phenomenon has focused on generalization within distribution, via smooth interpolation. Yet in some settings neural networks also learn to extrapolate to data far beyond the bounds of the original training set, sometimes even allowing for infinite generalization, implying that an algorithm capable of solving the task has been learned. Here we undertake a case study of the learning dynamics of recurrent neural networks (RNNs) trained on the streaming parity task in order to develop an effective theory of algorithm development. The streaming parity task is a simple but nonlinear task defined on sequences up to arbitrary length. We show that, with sufficient finite training experience, RNNs exhibit a phase transition to perfect infinite generalization. Using an effective theory for the representational dynamics, we find an implicit representational merger effect which can be interpreted as the construction of a finite automaton that reproduces the task. Overall, our results disclose one mechanism by which neural networks can generalize infinitely from finite training experience.
format Preprint
id arxiv_https___arxiv_org_abs_2507_09897
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Algorithm Development in Neural Networks: Insights from the Streaming Parity Task
van Rossem, Loek
Saxe, Andrew M.
Machine Learning
Neurons and Cognition
Even when massively overparameterized, deep neural networks show a remarkable ability to generalize. Research on this phenomenon has focused on generalization within distribution, via smooth interpolation. Yet in some settings neural networks also learn to extrapolate to data far beyond the bounds of the original training set, sometimes even allowing for infinite generalization, implying that an algorithm capable of solving the task has been learned. Here we undertake a case study of the learning dynamics of recurrent neural networks (RNNs) trained on the streaming parity task in order to develop an effective theory of algorithm development. The streaming parity task is a simple but nonlinear task defined on sequences up to arbitrary length. We show that, with sufficient finite training experience, RNNs exhibit a phase transition to perfect infinite generalization. Using an effective theory for the representational dynamics, we find an implicit representational merger effect which can be interpreted as the construction of a finite automaton that reproduces the task. Overall, our results disclose one mechanism by which neural networks can generalize infinitely from finite training experience.
title Algorithm Development in Neural Networks: Insights from the Streaming Parity Task
topic Machine Learning
Neurons and Cognition
url https://arxiv.org/abs/2507.09897