Skip to main content
QUICK REVIEW

[论文解读] A Model or 603 Exemplars: Towards Memory-Efficient Class-Incremental Learning

Da-Wei Zhou, Qiwei Wang|arXiv (Cornell University)|May 26, 2022
Domain Adaptation and Few-Shot LearningComputer Science被引用 46
一句话总结

本文通过对记忆预算进行公平比较重新评估记忆高效的 CIL 方法,并提出 Memo,一种在共享通用块的同时为新任务添加专用块的记忆高效可扩展模型。在公平的记忆预算下,Memo 通常优于基线。

ABSTRACT

Real-world applications require the classification model to adapt to new classes without forgetting old ones. Correspondingly, Class-Incremental Learning (CIL) aims to train a model with limited memory size to meet this requirement. Typical CIL methods tend to save representative exemplars from former classes to resist forgetting, while recent works find that storing models from history can substantially boost the performance. However, the stored models are not counted into the memory budget, which implicitly results in unfair comparisons. We find that when counting the model size into the total budget and comparing methods with aligned memory size, saving models do not consistently work, especially for the case with limited memory budgets. As a result, we need to holistically evaluate different CIL methods at different memory scales and simultaneously consider accuracy and memory size for measurement. On the other hand, we dive deeply into the construction of the memory buffer for memory efficiency. By analyzing the effect of different layers in the network, we find that shallow and deep layers have different characteristics in CIL. Motivated by this, we propose a simple yet effective baseline, denoted as MEMO for Memory-efficient Expandable MOdel. MEMO extends specialized layers based on the shared generalized representations, efficiently extracting diverse representations with modest cost and maintaining representative exemplars. Extensive experiments on benchmark datasets validate MEMO's competitive performance. Code is available at: https://github.com/wangkiw/ICLR23-MEMO

研究动机与目标

  • 通过考虑样本(示例)与模型的内存成本来实现对 CIL 方法的公平评估(准确性与内存成本并重)。
  • 分析不同网络层对 CIL 的贡献,并识别是否所有层在持续学习中同样有用。
  • 提出 Memo,一种共享通用块并为新任务添加专用块的记忆高效基线,以在性能与内存之间取得平衡。
  • 在标准 CIL 基准(CIFAR100、ImageNet100)上演示 Memo 的记忆感知性能提升。

提出的方法

  • 提出在示例基础和模型基础 CIL 方法之间对齐内存预算,以实现公平比较。
  • 分析层级梯度、漂移和表示相似性,展示浅层更通用,深层在 CIL 中更具任务特异性。
  • 引入 Memo,其将嵌入分解为通用(共享)和专用(任务特异)块,仅对新任务训练专用块,同时复用通用块。
  • 推导使用带共享通用表示的专用块进行增量学习的损失公式(Eq. 3)。
  • 评估内存感知的性能指标,如 AUC(性能-内存曲线下面积)和 APM(按模型大小的准确率),以在不同内存预算下评估方法。

实验结果

研究问题

  • RQ1当内存预算变化时,应该如何公平地比较不同的 CIL 方法?
  • RQ2所有网络层都对 CIL 有同等贡献,还是可以通过共享通用层并添加专用层来提高内存效率?
  • RQ3在公平的内存预算下,像 Memo 这样的内存高效架构能否达到与示例基线和模型基线相当或更优的性能?
  • RQ4哪些内存感知的性能指标最能在预算范围内体现 CIL 的能力?

主要发现

  • 在公平的内存预算比较下,基于模型的方法在较大预算下能带来改进,但在预算较紧时并不始终优越。
  • Memo 在多种预算和数据集下在公平比较中常实现最先进或具有竞争力的结果。
  • 浅层(通用)层在跨任务时往往更稳定,而深层(专用)层变化较大并从增量扩展中获益。
  • 通过共享通用块并为每个任务添加专用块,可以在通过节省通用容量来换取额外示例来实现更高的内存效率。
  • 内存感知的度量(AUC、AUC-L、APM-S、APM-E)在 CIFAR100 与 ImageNet100 设置中展示了 Memo 的优势。

阅读本论文

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

在 Nubint 中阅读本论文

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