Nested Learning: The Illusion of Deep Learning Architectures

Ali Behrouz, Meisam Razaviyayn, Peilin Zhong, Vahab Mirrokni
12/31/2025
cs.LGcs.AI

No official code found. Best implementation: DewashishCodes/Nested-Learning (7 stars, last commit 2025-11-28). 2 more below.

Abstract

Despite the recent progresses, particularly in developing Language Models, there are fundamental challenges and unanswered questions about how such models can continually learn/memorize, self-improve, and find effective solutions. In this paper, we present a new learning paradigm, called Nested Learning (NL), that coherently represents a machine learning model with a set of nested, multi-level, and/or parallel optimization problems, each of which with its own context flow. Through the lenses of NL, existing deep learning methods learns from data through compressing their own context flow, and in-context learning naturally emerges in large models. NL suggests a philosophy to design more expressive learning algorithms with more levels, resulting in higher-order in-context learning and potentially unlocking effective continual learning capabilities. We advocate for NL by presenting three core contributions: (1) Expressive Optimizers: We show that known gradient-based optimizers, such as Adam, SGD with Momentum, etc., are in fact associative memory modules that aim to compress the gradients' information (by gradient descent). Building on this insight, we present other more expressive optimizers with deep memory and/or more powerful learning rules; (2) Self-Modifying Learning Module: Taking advantage of NL's insights on learning algorithms, we present a sequence model that learns how to modify itself by learning its own update algorithm; and (3) Continuum Memory System: We present a new formulation for memory system that generalizes the traditional viewpoint of long/short-term memory. Combining our self-modifying sequence model with the continuum memory system, we present a continual learning module, called Hope, showing promising results in language modeling, knowledge incorporation, and few-shot generalization tasks, continual learning, and long-context reasoning tasks.

View on arXivView PDF

Code Implementations(3)

MIT

๐—”๐˜๐˜๐—ฒ๐—ป๐˜๐—ถ๐—ผ๐—ป ๐—œ๐˜€ ๐—”๐—น๐—น ๐—ฌ๐—ผ๐˜‚ ๐—ก๐—ฒ๐—ฒ๐—ฑ (๐—ฉ๐Ÿฎ)

02Nov 27, 202510 months agoMIT

Google latest research paper "Nested Learning: The Illusion of Deep Learning Architectures" : Implemented in pytorch with handwritten notes. Do give a star if you find this valuable.

70Jupyter NotebookNov 28, 202510 months ago
deep-learninggooglenested-learningpytorch-implementationresearch+1 more

Nested Learning: The Illusion of Deep Learning Architectures

00Nov 27, 202510 months ago

Similar Papers

Cite this paper

@article{behrouz2025nested,
  title  = {Nested Learning: The Illusion of Deep Learning Architectures},
  author = {Ali Behrouz and Meisam Razaviyayn and Peilin Zhong and Vahab Mirrokni},
  year   = {2025},
  eprint = {2512.24695},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2512.24695v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2512.24695.svg)](https://codeofpaper.com/paper/2512.24695)

Discussion