University of Toronto
Exploring Patterns of Algorithmic Generalization in Deep Learning
Abstract
dc:description.abstractHandling problem instances of arbitrary sizes and difficulties poses no challenge for traditional algorithms of the types one learns in introduction to computer science courses and implements in programming languages like C. Algorithms like graph traversal or sorting can handle any size or complexity given sufficient time and compute resources. However, deep learning systems have traditionally struggled with such flexibility. The typical neural network, such as a shallow MLP with a soft-thresholding non-linearity, processes fixed-sized inputs and outputs, consuming a constant amount of compute per input. Can deep learning systems ever exhibit algorithmic generalization? We investigate how deep learning systems can demonstrate algorithmic generalization, enabling them to handle problem instances of arbitrary size and complexity. We explore three patterns to achieve this goal: * Depth-wise recurrence: Inspired by the necessity of adaptive computation for algorithmic generalization, we examine Deep Equilibrium Models (DEQs), a class of neural network architectures that have the ability to handle arbitrarily long forward passes. These models frame the forward pass as a root-finding procedure of a recurrent cell. Our findings indicate that DEQs can improve generalization from easy to hard algorithmic tasks, provided they learn path-independent mappings. * Token-wise recurrence: We investigate token-wise recurrence, where sequence models generate output token-by-token in a left-to-right manner, to achieve length-generalization. Through extensive studies, we test whether large language models can learn algorithmic tasks like determining parity and executing Python programs from short training instances, and generalize to longer ones. Our results show that while transformer-based models struggle with generalizing to longer problem instances, leveraging in-context learning yields nontrivial length generalization. * Propose-verify decomposition: Many algorithmic tasks are easier to verify than to solve. If one could construct a deep learning system with a verification module that learns how to check the correctness of answers, and a search/proof module that proposes candidate solutions, this system could run indefinitely until an acceptable solution is found. We describe a two player differentiable game (the Prover-Verifier Game) whose equilibria provably correspond to proof-verification protocols. We demonstrate the feasibility of finding such equilibria through gradient-based learning on neural networks in toy tasks. Additionally, we discuss the potential of this framework for ensuring the safety of AI systems with outputs beyond human comprehension.
Degree
thesis:*- Department dc:contributor.department
- Computer Science
- Year dc:date.issued
- 2025
Author and committee
dc:creator, dc:contributor.*- Author dc:creator
-
- Anil, Cem
- Advisors dc:contributor.advisor
-
- Grosse, Roger
- Hinton, Geoffrey
Subjects
dc:subject × 6Identifiers
dc:identifier.*- Handle dc:identifier.uri
- https://hdl.handle.net/1807/144722