[论文解读] Gradient-based Editing of Memory Examples for Online Task-free Continual Learning
GMED 通过小梯度更新编辑存储的记忆样本,使回放在在线无任务边界的持续学习中更有效地减少遗忘;与基于记忆的回放方法结合时取得显著提升。
We explore task-free continual learning (CL), in which a model is trained to avoid catastrophic forgetting in the absence of explicit task boundaries or identities. Among many efforts on task-free CL, a notable family of approaches are memory-based that store and replay a subset of training examples. However, the utility of stored seen examples may diminish over time since CL models are continually updated. Here, we propose Gradient based Memory EDiting (GMED), a framework for editing stored examples in continuous input space via gradient updates, in order to create more "challenging" examples for replay. GMED-edited examples remain similar to their unedited forms, but can yield increased loss in the upcoming model updates, thereby making the future replays more effective in overcoming catastrophic forgetting. By construction, GMED can be seamlessly applied in conjunction with other memory-based CL algorithms to bring further improvement. Experiments validate the effectiveness of GMED, and our best method significantly outperforms baselines and previous state-of-the-art on five out of six datasets. Code can be found at https://github.com/INK-USC/GMED.
研究动机与目标
- 在在线无任务边界的持续学习中解决灾难性遗忘问题,且不需要显式的任务边界。
- 在维持分布内编辑样本的同时,利用基于记忆的回放。
- 引入一个模块化的编辑框架,可增强现有的基于记忆的持续学习方法。
- 在多个数据集和不同记忆大小上展示显著的经验提升。
提出的方法
- 提出梯度记忆编辑(GMED),通过梯度更新编辑存储的记忆样本。
- 对于一个记忆样本 (x_m, y_m),在一个流样本 (x_D, y_D) 上进行一步更新后,计算损失增加量 d。
- 用 x_m' = x_m + gamma^k * alpha * grad_x [d - beta * loss(x_m, y_m; theta_t)] 编辑记忆样本,其中 k 为回放次数,gamma 为衰减因子。
- 用编辑后的记忆对和流样本更新模型,将原始记忆条目替换为编辑后的条目。
- GMED 可以与 ER、带数据增强的 ER(ER_aug)、MIR 和 GEM 集成,针对每种集成调整具体的编辑策略。
- 表明GMED的编辑专注于增加未来干扰以提升回放效果。
实验结果
研究问题
- RQ1将 GMED 添加到像 ER、MIR、GEM 和 ER_aug 这样的基于记忆的持续学习方法时,性能提升有多大?
- RQ2GMED 的提升是由编辑目标本身引起的,还是仅仅由于简单的扰动或正则化?
- RQ3GMED 编辑在在线无任务设置中如何与不同记忆大小和数据集交互?
- RQ4在不增加内存开销的情况下,GMED 能否与数据增强和其他回放策略有效结合?
主要发现
- 在多个数据集上,与 ER 和 MIR 结合时,GMED 一直提高最终准确率。
- GMED+MIR 与 ER+GMED 在测试的六个数据集中的五个上达到最先进的结果。
- GMED 的增益大于来自随机扰动正则化的增益,并且可以与数据增强叠加。
- 在不同记忆大小下,将 GMED 与各种基线基于记忆的持续学习方法结合,取得统计显著的改进。
- GMED 保持模块化,可以在不需要额外生成器的情况下集成,维持基于记忆的优势。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。