TL;DR
Why do neural networks inevitably struggle when learning new tasks sequentially, even when using memory replay or regularization? This paper frames the stability-plasticity dilemma through Continual Learning Effective Model Capacity (CLEMC), using dynamical systems and optimal control theory to prove that effective capacity degrades over time whenever task distributions continually shift—regardless of architecture, optimization method, or scale.
What Problem Does This Paper Address?
In continual learning (CL), neural networks face the notorious stability-plasticity dilemma: adapting to new tasks without catastrophically forgetting previously acquired knowledge. While prior empirical studies report issues like plasticity loss and "stability gaps," theoretical treatments have largely relied on restrictive assumptions—such as two-task setups, linear models, or Neural Tangent Kernel (NTK) regimes.
Crucially, existing theories rarely capture the holistic interplay between model architecture, gradient-based optimization, and shifting task data distributions across long sequences. This paper bridges that gap by investigating how a model’s effective capacity—its dynamic ability to represent incoming tasks measured through forgetting cost—evolves across arbitrary task sequences.
Methods
Rather than proposing a new heuristic CL algorithm, the authors introduce a theoretical framework grounded in Lyapunov analysis and dynamic programming / optimal control:
- Continual Learning Effective Model Capacity (CLEMC): Measures effective capacity ($\epsilon_k^{(*)}$) as the cumulative worst-case forgetting loss across an sequence of tasks $[1, K]$. Unlike parameter-count definitions of capacity, CLEMC explicitly depends on the data distribution, model parameters, and the optimization trajectory.
- First-Difference Dynamics: By taking a Taylor-series approximation of the dynamic-programming value function, the authors derive lower bounds on how capacity changes ($\epsilon_k^{(*)} - \epsilon_{k+1}^{(*)}$) between tasks.
- Divergence Theorems: The authors prove that if subsequent tasks differ by even an infinitesimal constant ($\|dT(k)\| \ge c > 0$), the cumulative capacity change inevitably diverges over task horizon $K$ and gradient update steps $I$ under standard gradient-based optimization, with or without experience replay (ER) or regularization penalties.
Datasets
The authors validate their theoretical predictions across four distinct architectures and data regimes:
- Synthetic Sine Waves (FNN): 20 sequential regression tasks with controlled distribution shifts $\|dT(k)\| \in \{10^{-1}, 10^{-2}, 10^{-3}, 10^{-4}\}$ via amplitude and frequency adjustments.
- Omniglot (CNN): 10-class character recognition evaluated under class-incremental learning using cross-entropy loss.
- Synthetic Graph Classification (GNN): 10 graph tasks sampled using PyTorch Geometric, introducing explicit distribution shifts across both node features and edge connectivity.
- RedPajama 1T Tokens (Transformer LLMs): Continual pre-training across four distinct domains (
wiki$\rightarrow$git$\rightarrow$arxiv$\rightarrow$books) using LLaMA-2 decoder architectures scaled at 8M and 134M parameters, evaluated against the C4-en validation benchmark.
Key Insights and Ideas
- Capacity is Non-Stationary: Model capacity is not an immutable static property determined solely by parameter counts or layer depth. In continual learning, capacity drifts as a dynamic function of weight trajectories and task distribution changes.
- The Inevitability of Representation Degradation: If each arriving task differs from previous ones by a non-zero margin, the cumulative error bound diverges. No standard gradient descent regime—even with replay buffers or regularizers—can fully prevent capacity degradation over an unbounded task horizon.
- Hidden Instability Behind Apparent Stability: On vision tasks like Omniglot, loss curves may appear stable; however, the magnitude of weight updates ($\partial_w V^{(*)}$) required to suppress forgetting steadily compounds with each new task, signaling latent capacity exhaustion.
- Scale Cushions, but Does Not Cure: Moving from an 8M to a 134M parameter language model substantially lowers effective capacity loss and stabilizes parameter deviations, confirming that overparameterization provides resilience—yet the underlying upward trajectory of forgetting persists.
Key Results
- FNN on Sine Waves: As predicted by Theorem 3, capacity degradation scaled directly with task shift $\|dT(k)\|$. While $L_2$ regularization softened the slope of divergence, large shifts ($\|dT(k)\| = 10^{-1}$) still caused rapid capacity blowup.
- CNN on Omniglot: Successive classes exhibited widening stability gaps; maintaining accuracy at step 4,000 demanded substantially higher weight adjustments than at step 2,000.
- GNN on Graph Data: Structural spikes in edge/node distributions (e.g., around training step 4,000) triggered immediate, proportional surges in gradient norms and capacity error $\|d\epsilon_k^*\|$.
- LLMs on RedPajama: In 8M and 134M continual pre-training runs (~50B tokens per task), validation loss on C4-en rose upon task switches. Replay (mixing 20% rehearsal data) reduced parameter drift (observed via $64 \times 64$ MLP weight difference heatmaps), but joint pre-training consistently maintained superior effective capacity over both continual variants.
Limitations and Future Work
- Diagnostic Rather Than Algorithmic: The paper provides a mathematical diagnosis of capacity failure modes rather than introducing a concrete mitigation method or new optimizer.
- Smoothness Assumptions: The proofs require twice differentiability and Lipschitz continuity of the loss function, which hold well in standard deep learning regimes but may not capture non-smooth or discrete training modifications.
- LLM Scale Limits: Although evaluating a 134M model is substantial for theoretical CL papers, current production LLMs span 7B to 70B+ parameters; testing whether massive scale can asymptotically damp capacity drift remains an open empirical frontier.
Summary updated