Skip to main content
QUICK REVIEW

[Paper 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 Science46 citations
TL;DR

This paper re-evaluates memory-efficient CIL methods by fair memory-budget comparisons and proposes Memo, a memory-efficient expandable model that shares generalized blocks while adding specialized blocks for new tasks. Memo often outperforms baselines under fair memory budgets.

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

Motivation & Objective

  • Motivate fair evaluation of CIL methods by accounting for both accuracy and memory cost (exemplars vs. models).
  • Analyze how different network layers contribute to CIL and identify whether all layers are equally useful for continual learning.
  • Propose Memo, a memory-efficient baseline that shares generalized blocks and adds specialized blocks for new tasks to balance performance and memory.
  • Demonstrate memory-aware performance gains of Memo across standard CIL benchmarks (CIFAR100, ImageNet100).

Proposed method

  • Proposes aligning memory budgets across exemplar-based and model-based CIL methods to enable fair comparisons.
  • Analyzes layer-wise gradient, shift, and representation similarity to show shallow layers are more general and deep layers are more task-specific in CIL.
  • Introduces Memo, which decomposes embeddings into generalized (shared) and specialized (task-specific) blocks and trains only specialized blocks for new tasks while reusing generalized blocks.
  • Derives a loss formulation that uses specialized blocks with shared generalized representations for incremental learning (Eq. 3).
  • Evaluates memory-aware performance measures such as AUC (area under the performance-memory curve) and APM (accuracy per model size) to assess methods across memory budgets.

Experimental results

Research questions

  • RQ1How should different CIL methods be fairly compared when memory budgets vary?
  • RQ2Do all network layers contribute equally to CIL, or can sharing generalized layers while adding specialized ones improve memory efficiency?
  • RQ3Can a memory-efficient architecture like Memo achieve competitive or superior performance under fair memory budgets compared to exemplar- and model-based baselines?
  • RQ4What memory-aware performance metrics best capture CIL capabilities across budgets?

Key findings

  • Fair memory-budget comparisons show model-based methods enable improvement at large budgets but are not consistently superior when budgets are tight.
  • Memo often achieves state-of-the-art or competitive results across multiple budgets and datasets under fair comparisons.
  • Shallow (generalized) layers tend to be stable across tasks, while deep (specialized) layers change more and benefit from incremental extension.
  • Sharing generalized blocks and adding specialized blocks per task can yield better memory efficiency by trading saved generalized capacity for additional exemplars.
  • Memory-aware metrics (AUC, AUC-L, APM-S, APM-E) demonstrate Memo’s advantages across CIFAR100 and ImageNet100 settings.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.