SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2308.01698 · 2023

Balanced Destruction-Reconstruction Dynamics for Memory-replay Class Incremental Learning

arXiv · PDF · Open in the Atlas

Code that ran

We lifted 6 functions out of this paper's own repositories and ran 6 of them in a sandbox. "Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results.

RepositoryRoleRan
zyuh/bdr-main canonical 6 of 6
FunctionStatusWhere it lives
compute_confusion_matrix Ran zyuh/bdr-main/utils.py
pointer only (licence: NONE) · get_code("9b12f69ea3486b68")
conv3x3 Ran zyuh/bdr-main/networks/resnet18.py
pointer only (licence: NONE) · get_code("fac5364e2f53c6db")
off_diagonal Ran zyuh/bdr-main/approach/aux_loss.py
pointer only (licence: NONE) · get_code("3e30d88eaef01190")
resnet18 Ran zyuh/bdr-main/networks/resnet18.py
pointer only (licence: NONE) · get_code("6dec04c069f04577")
resnet18_cifar Ran zyuh/bdr-main/networks/resnet18_cifar.py
pointer only (licence: NONE) · get_code("3246f1a3750d33b3")
resnet32 Ran zyuh/bdr-main/networks/resnet32.py
pointer only (licence: NONE) · get_code("207dfc366b9bb7c9")

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Class incremental learning (CIL) aims to incrementally update a trained model with the new classes of samples (plasticity) while retaining previously learned ability (stability). To address the most challenging issue in this goal, i.e., catastrophic forgetting, the mainstream paradigm is memory-replay CIL, which consolidates old knowledge by replaying a small number of old classes of samples saved in the memory. Despite effectiveness, the inherent destruction-reconstruction dynamics in memory-replay CIL are an intrinsic limitation: if the old knowledge is severely destructed, it will be quite hard to reconstruct the lossless counterpart. Our theoretical analysis shows that the destruction of old knowledge can be effectively alleviated by balancing the contribution of samples from the current phase and those saved in the memory. Motivated by this theoretical finding, we propose a novel Balanced Destruction-Reconstruction module (BDR) for memory-replay CIL, which can achieve better knowledge reconstruction by reducing the degree of maximal destruction of old knowledge. Specifically, to achieve a better balance between old knowledge and new classes, the proposed BDR module takes into account two factors: the variance in training status across different classes and the quantity imbalance of samples from the current phase and memory. By dynamically manipulating the gradient during training based on these factors, BDR can effectively alleviate knowledge destruction and improve knowledge reconstruction. Extensive experiments on a range of CIL benchmarks have shown that as a lightweight plug-and-play module, BDR can significantly improve the performance of existing state-of-the-art methods with good generalization.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2308.01698")
get_code_for_paper("2308.01698")
have("2308.01698")

Connect an agent — have() is free.