Generalized Residual Closure: A Unified Theory of Continual Learning and Recursive Self-Improvement

DongXu LiarXiv 2026

TL;DR

Continual learning—teaching an AI new tricks without it forgetting old ones—usually relies on a patchwork of separate hacks like memory replay, weight regularization, and architectural expansion. This paper introduces Generalized Residual Closure (GRC), a unified mathematical theory that treats continual learning, inference, memory, control, and even recursive self-improvement as instances of a single process: closing the gap between what a system predicts will happen next and what the world actually returns.

What Problem Does This Paper Address?

When an AI system operates in the real world, it faces a continuous stream of observations, actions, and feedback. The classic stability–plasticity dilemma asks: how can a system remain plastic enough to learn new things, while staying stable enough not to overwrite what it already knows?

Historically, researchers have tackled this with separate mechanisms—replay buffers, gradient constraints, parameter isolation, or dynamic expansion—often assuming clear "task boundaries" that rarely exist in real life. The authors argue that continual learning becomes a single, clean mathematical problem if we stop treating models, memories, optimizers, and controllers as separate things, and instead view a learning system as a causal process that must keep its future-relevant relations usable while incorporating new interactions.

Methods

The core of the paper is Generalized Residual Closure (GRC), built around a recursive semi-closed system. "Semi-closed" means the system's internal state is tucked behind a standard interface, but its information boundary can reopen whenever a new, future-relevant distinction is needed.

Everything is governed by a registered continuation contract ($\Xi$), which specifies the allowed observations/actions, future queries, loss criteria, resource budgets, and protected old capabilities. From three operational axioms—universe and return closure (every internal construct must map back to the interface), causal inertia (updates must preserve valid future-operational identities), and local-priority entropy maximization (only create new distinctions when a future query can use them)—the authors derive a single update loop:

  1. Predict & Residualize: The system predicts a joint future (output, action effect, next state, feedback, and next update). When the world responds, the difference is captured as a typed generalized residual.
  2. Two-Mode Closure: The system routes this residual to one of two phases:
  3. Kernel-to-ring (Relation closure): If the current representation can handle it, the system updates an existing relation under protected constraints.
  4. Ring-to-kernel (Representation closure): If the current representation is saturated, the system expands—creating a new feature, expert, memory cell, or rank direction—and promotes it to a kernel once verified.
  5. GRC-Continual: An executable algorithm that wraps standard solvers (gradient descent, RL, diffusion, etc.) inside this residual-routing and authorization loop, without needing task identifiers.

Datasets

Not discussed in the paper. (Note: This is a theory paper; its results are stated as mathematical theorems and exact reductions rather than empirical benchmarks.)

Key Insights and Ideas

  • One residual to rule them all: Prediction error, temporal-difference/Bellman residuals, diffusion denoising error, and energy phase defects are all just different projections of the same contract-relative residual.
  • Exact relation–representation split: The authors prove that any residual decomposes orthogonally into a relation component (fixable within the current representation) and a representation component (requiring a new distinction).
  • Schur-complement plasticity kernel: By formulating protected old responsibilities as a linear constraint ($Ad = 0$), the authors derive a closed-form "safe plasticity kernel." It tells you every legal direction the system can update without breaking old skills—and gives an exact mathematical trigger for when to grow the architecture.
  • Existing methods are special cases: Popular techniques like SGD, Adam, EWC, GEM, LoRA, Neural Tangent Kernels, and predictive coding all emerge as restricted coordinate, scale, or memory sectors of the GRC kernel.
  • Recursive self-improvement: When GRC is applied to its own learning operator (closing the residual of its own routing and compression), it forms a monotone capability-growth chain, provided each compiled state returns to a "maximal regenerable learning core."

Key Results

The paper establishes seven main theoretical theorems, including:

  • Minimal Joint-Continuation Quotient: Proves there is a smallest state-space quotient that preserves all future-relevant behaviors, defining exactly what compressed memory must retain.
  • Stable–Plastic Compatibility: Proves the closed-form Schur-complement update is nonexpansive and uniquely optimal for protected learning.
  • Causal Transport & Recursive Growth: Proves that finite causal transport of closed relations yields compositional generalization, and that recursive self-modification yields strictly increasing capability infinitely often (with a geometric waiting-time bound) when capability witnesses are found with positive probability.
  • Algorithmic Complexity: For a local batch size $b$, latent width $d$, $k$ candidate kernels, and rank-$q$ updates, GRC-Continual runs in $O(bd + kqd)$ online time (or $O(bd + kd^2)$ with dense curvature) and $O(Md)$ memory for $M$ closure items.

Limitations and Future Work

The authors note that their results are currently established under a theory-only verification protocol, where formal instantiations must satisfy five model-agnostic proof obligations (such as kernel factorization and returning to the maximal regenerable core). Approximate, real-world implementations replace exact equalities with a contract discrepancy $d_\Xi$. Empirical benchmarking of GRC-Continual across specific backends is left outside the scope of this theoretical foundation.

Summary updated

BibTeX
@misc{li2026generalized,
  author = {DongXu Li},
  title = {{Generalized Residual Closure: A Unified Theory of Continual Learning and Recursive Self-Improvement}},
  year = {2026},
  eprint = {2612.04596},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2612.04596},
}
Figure