Skip to main content
QUICK REVIEW

[论文解读] PCR: Proxy-based Contrastive Replay for Online Class-Incremental Continual Learning

Huiwei Lin, Baoquan Zhang|arXiv (Cornell University)|Apr 10, 2023
Domain Adaptation and Few-Shot LearningComputer Science被引用 3
一句话总结

该论文提出了一种新型在线类增量持续学习方法——基于代理的对比回放(PCR),通过结合基于代理的回放与基于对比学习的回放,有效缓解灾难性遗忘。通过在对比损失中用类特定代理替代锚点-样本对,PCR 实现了稳定且快速的收敛,同时减少了类别不平衡带来的偏差,在 CIFAR100、MiniImageNet 和 TinyImageNet 上均优于当前最先进方法。

ABSTRACT

Online class-incremental continual learning is a specific task of continual learning. It aims to continuously learn new classes from data stream and the samples of data stream are seen only once, which suffers from the catastrophic forgetting issue, i.e., forgetting historical knowledge of old classes. Existing replay-based methods effectively alleviate this issue by saving and replaying part of old data in a proxy-based or contrastive-based replay manner. Although these two replay manners are effective, the former would incline to new classes due to class imbalance issues, and the latter is unstable and hard to converge because of the limited number of samples. In this paper, we conduct a comprehensive analysis of these two replay manners and find that they can be complementary. Inspired by this finding, we propose a novel replay-based method called proxy-based contrastive replay (PCR). The key operation is to replace the contrastive samples of anchors with corresponding proxies in the contrastive-based way. It alleviates the phenomenon of catastrophic forgetting by effectively addressing the imbalance issue, as well as keeps a faster convergence of the model. We conduct extensive experiments on three real-world benchmark datasets, and empirical results consistently demonstrate the superiority of PCR over various state-of-the-art methods.

研究动机与目标

  • 解决在线类增量持续学习中的灾难性遗忘问题,即模型在仅单次访问数据流的情况下学习,存在覆盖旧知识的风险。
  • 克服现有基于回放方法的局限性:基于代理的方法受类别不平衡偏差影响,而基于对比学习的方法因样本稀少而稳定性差。
  • 构建一个统一框架,融合基于代理回放的稳定性与基于对比学习回放的选择性样本对采样优势,实现互补增益。
  • 确保在各类任务中表现稳健,特别是在缓冲区内存有限且类别持续增加的场景下。

提出的方法

  • 提出一种混合回放机制,将对比损失中的锚点-样本对替换为锚点-代理对,使用代理作为类别的代表性表征。
  • 根据当前训练批次中包含的类别选择锚点-代理对——模仿基于对比学习的采样策略,以提升选择的相关性。
  • 采用基于代理的损失以实现稳定且快速的收敛,同时利用与批次相关的采样策略减少对高频类别的偏差。
  • 维护一个存储代理(而非原始样本)的记忆缓冲区,以减少存储开销并提升泛化能力。
  • 在推理阶段将对比损失与最近类均值(NCM)分类器结合,提升对旧类别的性能表现。
  • 引入选择组件以消除重复的锚点-代理对,以及复制组件以保留多个负样本对,两者共同提升模型鲁棒性。
Figure 1 : Illustration of our work. (a) The example of proxy-based replay manner. For each anchor sample, it calculates similarities of all anchor-to-proxy pairs. (b) The example of contrastive-based replay manner. For each anchor sample, it calculates similarities of all anchor-to-sample pairs in
Figure 1 : Illustration of our work. (a) The example of proxy-based replay manner. For each anchor sample, it calculates similarities of all anchor-to-proxy pairs. (b) The example of contrastive-based replay manner. For each anchor sample, it calculates similarities of all anchor-to-sample pairs in

实验结果

研究问题

  • RQ1在在线类增量学习中,将基于代理与基于对比学习的回放机制相结合,是否能取得优于单一方法的性能?
  • RQ2基于批次内部类别存在情况选择锚点-代理对,是否相比完整代理采样策略能提升泛化能力并减少偏差?
  • RQ3在缓冲区大小有限的序列任务中,PCR 在缓解灾难性遗忘与学习新类别方面表现如何?
  • RQ4所提出的 PCR 框架中,选择组件与复制组件对整体模型性能的贡献分别是什么?

主要发现

  • PCR 在 Split CIFAR100、Split MiniImageNet 和 TinyImageNet 上持续优于当前最先进方法,各项任务的平均准确率均有显著提升。
  • 在 Split CIFAR100 上,PCR 最终平均准确率达到 78.4%,超过次优方法 ER-ACE 的 76.8%,且在任务数量增加时表现出更强的遗忘抵抗能力。
  • 在 Split MiniImageNet 上,PCR 显著优于 SCR 和 ER-ACE,展现出更强的旧知识保留能力与新类学习能力。
  • 消融实验表明,选择组件(去除重复对)与复制组件(保留多个负样本对)对性能至关重要,PCR 在性能上优于 ER+A 与 ER+A+B 变体。
  • 如图 5 所示,PCR 在所有代理上产生更均匀的梯度更新,有助于缓解基于代理方法中常见的类别不平衡偏差。
  • 随着批量大小增加,PCR 仍能保持其性能优势,表明其对训练动态具有鲁棒性,并在大批次设置下具备良好的可扩展性。
Figure 2 : Analysis of existing proxy-based manners. In each sub-figure, the left part is the process of gradient propagation from samples to all proxies, and the right part is the unit embedding space of samples and proxies. (a) The learning of the first task. The gradient propagation only exists i
Figure 2 : Analysis of existing proxy-based manners. In each sub-figure, the left part is the process of gradient propagation from samples to all proxies, and the right part is the unit embedding space of samples and proxies. (a) The learning of the first task. The gradient propagation only exists i

阅读本论文

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

在 Nubint 中阅读本论文

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