Towards guarantees for parameter isolation in continual learning

Giulia Lanzillotta, Sidak Pal Singh, Benjamin F Grewe, Thomas Hofmann · Submission to ICLR 2024 · Rejected

TL;DR

While parameter isolation methods in continual learning have shown strong empirical success at preventing catastrophic forgetting, theoretical explanations for why they work have been sparse. This paper provides a unifying geometric perspective grounded in a quadratic loss approximation, showing that methods like Orthogonal Gradient Descent (OGD) and Gradient Projection Memory (GPM) implicitly project parameter updates into the null space of previous tasks' loss Hessians. Under local quadratic assumptions, the authors establish formal zero-forgetting guarantees and demonstrate how these geometric conditions behave across neural architectures.

What Problem Does This Paper Address?

When deep neural networks learn new tasks sequentially from a non-stationary data stream, they tend to overwrite previously acquired knowledge—a core challenge termed catastrophic forgetting. Continual learning methods tackle this via replay, parameter regularization, or parameter isolation (dynamically partitioning weights or restricting updates).

Despite widespread empirical success, rigorous theoretical guarantees explaining why and when parameter isolation methods prevent forgetting remain rare. Furthermore, existing analyses often treat regularization and parameter isolation as fundamentally distinct paradigms. This work asks: Can we establish provable guarantees against catastrophic forgetting for parameter isolation by studying the geometry of the loss landscape, and does this reveal a deeper connection to second-order regularization methods?

Methods

The authors build a unified framework centered on second-order Taylor approximations of task losses around their minima:

  • Null-Forgetting Constraint: Under two standard conditions—(1) convergence near a local minimum ($\|\nabla L_o(\theta_o)\| \approx 0, H_o^* \succeq 0$) and (2) task solutions remaining relatively close in parameter space ($\max_{i,j} \|\theta_i - \theta_j\| < \delta$)—average forgetting is zero if and only if the parameter update $\Delta_t$ lies in the null space of the sum of previous tasks' Hessians: $$\Delta_t^\top \left( \sum_{o=1}^{t-1} H_o^* \right) \Delta_t = 0$$
  • Unified Mapping of Isolation Methods:
  • Orthogonal Gradient Descent (OGD): Constrains updates to be orthogonal to previous per-sample output gradients. Because the Hessian near an optimum is dominated by its outer-product (Gauss-Newton) term, OGD analytically satisfies the null-forgetting condition.
  • Gradient Projection Memory (GPM): Projects weight updates orthogonally to layer activations. The authors prove that for ReLU networks, GPM satisfies a localized null-forgetting constraint along the entire optimization path—without requiring task solutions to be close—provided the Hessian is layer-wise block-diagonal.
  • Strict Isolation (PackNet, Progressive Networks): Parameter masking and architectural expansion enforce exact parameter orthogonality, trivializing the quadratic form to zero.
  • $\text{SGD}^\dagger$ (Hessian-Projected Baseline): An explicit algorithmic baseline that projects batch gradients away from the top-$k$ eigenvectors of past task Hessians (computed via iterative power iteration).

Datasets

The authors evaluate their theoretical predictions on three standard continual learning benchmarks:

  • Rotated MNIST: 5 tasks generated via fixed rotations ($-45^\circ$ to $+45^\circ$) on downscaled $14 \times 14$ images.
  • Split CIFAR-10: 5 sequential binary classification tasks.
  • Split CIFAR-100: 20 sequential 5-class classification tasks.

No new datasets were introduced.

Key Insights and Ideas

  • Parameter isolation and regularization are two sides of the same geometric coin: While regularization methods (e.g., EWC) penalize motion along high-curvature directions of the previous tasks' quadratic landscape via an additive loss penalty, parameter isolation explicitly restricts updates to the landscape's flat valleys (null space).
  • The limits of local curvature: Through a novel "perturbation analysis," the authors measure how quickly the Hessian's principal directions stop predicting steep loss increases as perturbation radius $r$ grows. Local quadratic approximations hold remarkably far out, but break down once learning rates are large enough to push solutions far across parameter space.
  • Empirical check on theoretical assumptions:
  • OGD’s outer-product Hessian assumption holds moderately well (spectral similarity $\approx 0.70$).
  • GPM's implicit assumption that the loss Hessian is block-diagonal is empirically violated in real networks (block-diagonality score is near zero/negative), indicating that GPM’s real-world success relies on further geometric nuances.

Key Results

  • Equivalence at Low Learning Rates: When small learning rates enforce parameter proximity ($\|\theta_t - \theta_o\| \approx 1.23$), $\text{SGD}^\dagger$, OGD, and GPM all drive the violation of the null-forgetting constraint down to near zero ($0.0001$ to $0.004$ vs. $0.27$ for standard SGD) and achieve almost zero forgetting.
  • Behavior Under Drift: At higher learning rates ($\|\theta_t - \theta_o\| \approx 8.19$), OGD and $\text{SGD}^\dagger$ degrade toward vanilla SGD levels of forgetting, whereas GPM retains low forgetting due to path-wise activation orthogonalization.
  • Cross-Architecture Verification: On Split CIFAR-100, projecting onto just the top 20 Hessian eigenvectors ($\text{SGD}^\dagger$-20) reduces average accuracy forgetting from $0.29 \to 0.16$ on ResNet-18 and from $0.25 \to 0.11$ on a Vision Transformer (ViT).

Limitations and Future Work

  • Computational Cost: Calculating exact Hessians scales as $\mathcal{O}(P^2)$ memory and $\mathcal{O}(P^3)$ eigendecomposition time. While power iteration computes top-$k$ eigenvectors for large models, this remains computationally heavy for practical deployment.
  • Assumption Violations in Practice: As confirmed by the paper's own diagnostic tests, the block-diagonal Hessian assumption required for GPM's path-wise guarantee does not strictly hold in practice.
  • Absence of Positive Transfer: The null-forgetting constraint assumes non-interference and treats forgetting as strictly non-negative, ignoring constructive interference (positive backward transfer) that could otherwise expand effective model capacity across long task streams.

Summary updated

BibTeX
@misc{lanzillotta2023towards,
  author = {Giulia Lanzillotta and Sidak Pal Singh and Benjamin F Grewe and Thomas Hofmann},
  title = {{Towards guarantees for parameter isolation in continual learning}},
  year = {2023},
  eprint = {2310.01165},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2310.01165},
}
Figure