Skip to main content
QUICK REVIEW

[论文解读] Gradient Projection Memory for Continual Learning

Gobinda Saha, Garg, Isha|arXiv (Cornell University)|Mar 17, 2021
Domain Adaptation and Few-Shot LearningComputer Science参考文献 33被引用 27
一句话总结

一种固定容量的神经网络方法,通过在正交于所学核心梯度空间的梯度方向上学习新任务来保持对先前任务的知识,核心梯度空间以梯度投影记忆(GPM)存储。

ABSTRACT

The ability to learn continually without forgetting the past tasks is a desired attribute for artificial learning systems. Existing approaches to enable such learning in artificial neural networks usually rely on network growth, importance based weight update or replay of old data from the memory. In contrast, we propose a novel approach where a neural network learns new tasks by taking gradient steps in the orthogonal direction to the gradient subspaces deemed important for the past tasks. We find the bases of these subspaces by analyzing network representations (activations) after learning each task with Singular Value Decomposition (SVD) in a single shot manner and store them in the memory as Gradient Projection Memory (GPM). With qualitative and quantitative analyses, we show that such orthogonal gradient descent induces minimum to no interference with the past tasks, thereby mitigates forgetting. We evaluate our algorithm on diverse image classification datasets with short and long sequences of tasks and report better or on-par performance compared to the state-of-the-art approaches.

研究动机与目标

  • 在持续学习中解决灾难性遗忘问题,且不存储过去数据或扩展网络。
  • 利用表示与奇异值分解(SVD)从过去任务中识别核心梯度子空间。
  • 将紧凑的梯度基存储到 GPM,并约束未来的梯度更新与过去子空间正交。
  • 展示在多样数据集和体系结构上的内存效率和可扩展性。

提出的方法

  • 在完成第一个任务后,对该任务的随机样本通过激活值进行奇异值分解(SVD)以为每一层构建核心梯度空间(CGS),并将 CGS 基存储在 GPM 中。
  • 对于后续任务,将新任务的梯度投影到 CGS 上并减去这些分量,以便更新在正交于过去核心的剩余梯度空间(RGS)中进行。
  • 在保持 CGS 紧凑的同时,用新的正交 CGS 基更新 GPM,并从新任务表示中移除共同方向。
  • 以与 CGS 正交的梯度步长学习任务,从而最小化对先前学习任务的干扰。
  • 使用固定网络容量;在连续学习过程中,每层的 CGS 会增长但被体系结构所界定的上限所约束。
  • 在数据集(PMNIST、CIFAR-100、miniImageNet、5-Datasets)上使用单头和多头设置进行评估。

实验结果

研究问题

  • RQ1在固定容量的网络中,是否可以将新任务的梯度更新约束为与过去任务的梯度正交,从而防止遗忘?
  • RQ2如何高效地从过去任务中识别并存储关键的梯度子空间(CGS),而不存储原始数据或过去的梯度?
  • RQ3GPM 是否能够在不同架构和长任务序列下实现可扩展的持续学习,同时保护数据隐私?

主要发现

  • GPM 在单头设置下在 PMNIST 上达到最佳平均准确率(93.91% ±0.16),并显示最小的遗忘(BWT −0.03)。
  • 在分割的 CIFAR-100 上,GPM 超越基于内存的基线,并在内存减少45%时实现零遗忘(BWT = 0.0)。
  • 在分割的 miniImageNet(ResNet18)上,GPM 达到 60.41% 的准确率,BWT 为 0.0,并在避免遗忘的同时优于若干基线。
  • 在 5-Datasets 的评估中,GPM 达到 91.22% ±0.20% 的准确率,BWT 约为 −0.01,达到与强基线相近的性能同时显著减少内存占用。
  • 与需要数据重放或梯度存储的方法相比,GPM 使用预计算的梯度基来实现更快的每轮训练和更低的内存使用(例如,在 PMNIST 中约为 GPM_Max 的 69%)。
  • GPM 证明了对更深的网络和更长的任务序列的可扩展性,具有竞争力甚至优于基线的性能,同时降低了内存占用。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。