Elastic Weight Consolidation Done Right for Continual Learning

Xuan Liu, Xiaobin Chang
3/19/2026
cs.LGcs.AIcs.CV

No official code found. Best implementation: scarlet0703/EWC-DR (7 stars, Apache-2.0, last commit 2026-05-11).

Abstract

Weight regularization methods in continual learning (CL) alleviate catastrophic forgetting by assessing and penalizing changes to important model weights. Elastic Weight Consolidation (EWC) is a foundational and widely used approach within this framework that estimates weight importance based on gradients. However, it has consistently shown suboptimal performance. In this paper, we conduct a systematic analysis of importance estimation in EWC from a gradient-based perspective. For the first time, we find that EWC's reliance on the Fisher Information Matrix (FIM) results in gradient vanishing and inaccurate importance estimation in certain scenarios. Our analysis also reveals that Memory Aware Synapses (MAS), a variant of EWC, imposes unnecessary constraints on parameters irrelevant to prior tasks, termed the redundant protection. Consequently, both EWC and its variants exhibit fundamental misalignments in estimating weight importance, leading to inferior performance. To tackle these issues, we propose the Logits Reversal (LR) operation, a simple yet effective modification that rectifies EWC's importance estimation. Specifically, reversing the logit values during the calculation of FIM can effectively prevent both gradient vanishing and redundant protection. Extensive experiments across various CL tasks and datasets show that the proposed method significantly outperforms existing EWC and its variants. Therefore, we refer to it as EWC Done Right (EWC-DR).

View on arXivView PDF

Code Implementations(1)

scarlet0703/EWC-DRCommunity25%
Apache-2.0

Official PyTorch implementation of our CVPR 2026 paper, "Elastic Weight Consolidation Done Right for Continual Learning."

70PythonMar 12, 20265 months agoApache-2.0

Similar Papers

Cite this paper

@article{liu2026elastic,
  title  = {Elastic Weight Consolidation Done Right for Continual Learning},
  author = {Xuan Liu and Xiaobin Chang},
  year   = {2026},
  eprint = {2603.18596},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2603.18596v1}
}

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/2603.18596.svg)](https://codeofpaper.com/paper/2603.18596)

Discussion