Skip to main content
QUICK REVIEW

[Paper Review] On Quadratic Penalties in Elastic Weight Consolidation

Ferenc Huszár|arXiv (Cornell University)|Dec 11, 2017
Gaussian Processes and Bayesian InferenceComputer Science5 references33 citations
TL;DR

This paper critiques the standard Elastic Weight Consolidation (EWC) algorithm, showing that its use of multiple quadratic penalties anchored at parameters from all previous tasks leads to double-counting of earlier task data and introduces systematic bias toward earlier tasks. It proposes a single-penalty variant anchored only at the most recently learned parameters, which is theoretically more consistent with Laplace approximation and reduces storage cost while maintaining performance.

ABSTRACT

Elastic weight consolidation (EWC, Kirkpatrick et al, 2017) is a novel algorithm designed to safeguard against catastrophic forgetting in neural networks. EWC can be seen as an approximation to Laplace propagation (Eskin et al, 2004), and this view is consistent with the motivation given by Kirkpatrick et al (2017). In this note, I present an extended derivation that covers the case when there are more than two tasks. I show that the quadratic penalties in EWC are inconsistent with this derivation and might lead to double-counting data from earlier tasks.

Motivation & Objective

  • To investigate the theoretical consistency of Elastic Weight Consolidation (EWC) with Bayesian inference in continual learning.
  • To identify flaws in EWC's use of multiple quadratic penalties anchored at parameters from all previous tasks.
  • To demonstrate that such multiple penalties lead to double-counting of earlier task data and introduce systematic bias toward earlier tasks.
  • To propose a single-penalty EWC variant anchored only at the most recently learned parameters, which is theoretically more consistent with recursive Laplace approximation.
  • To enable efficient, constant-storage continual learning by maintaining only the latest penalty, while supporting dataset revisit via a multi-penalty extension.

Proposed method

  • Derives the Bayesian posterior for sequential learning using Bayes' rule, showing that the posterior after task T depends on the posterior after tasks A to S.
  • Applies second-order Taylor approximation (Laplace method) to the log-posterior, approximating the prior over parameters as a quadratic form centered at the optimal parameters of the previous task.
  • Shows that the standard EWC penalty is equivalent to a diagonal Laplace approximation in the two-task case, but becomes inconsistent beyond two tasks due to multiple penalty centers.
  • Proposes a single-penalty EWC variant where only the most recent task's parameters anchor the regularization, derived from recursive application of Laplace approximation.
  • Introduces a multi-penalty variant with debiased penalty centers using recursive computation, allowing dataset revisit and improved approximation of task-specific loss surfaces.
  • Derives a recursive formula for updating penalty centers to avoid double-counting, enabling efficient storage and dynamic re-optimization.

Experimental results

Research questions

  • RQ1Is the standard EWC algorithm theoretically consistent with Bayesian inference when applied to more than two tasks?
  • RQ2Does the use of multiple quadratic penalties anchored at all previous task optima lead to double-counting of earlier task data?
  • RQ3Can a single-penalty EWC variant be derived that maintains theoretical consistency with Laplace approximation and reduces bias toward earlier tasks?
  • RQ4What is the storage cost of maintaining multiple penalties, and can it be reduced without sacrificing performance?
  • RQ5Can the algorithm be extended to allow revisiting old datasets while maintaining accurate task-specific regularization?

Key findings

  • The standard EWC algorithm, which applies multiple quadratic penalties anchored at parameters from all previous tasks, leads to double-counting of data from earlier tasks and introduces systematic bias favoring earlier tasks.
  • In the two-task case, EWC is equivalent to a diagonal Laplace approximation with a learnable task importance hyperparameter, but this equivalence breaks down beyond two tasks.
  • A single-penalty EWC variant, anchored only at the most recently learned parameters, is theoretically more consistent with recursive Laplace approximation and avoids double-counting.
  • The storage cost of the single-penalty variant is constant with respect to the number of tasks, as only the latest parameter set and a single moving sum of Fisher information are required.
  • A multi-penalty variant with recursively computed, debiased penalty centers enables dataset revisit and approximates task-specific loss surfaces more accurately.
  • The recursive formula for updating penalty centers allows efficient re-estimation of task-specific penalties without storing all previous Fisher information matrices.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.