Incremental Learning Through Deep Adaptation

Amir Rosenfeld, John K. TsotsosarXiv 2017

TL;DR

Deep Adaptation Networks (DAN) allow a pre-trained neural network to learn new tasks by representing new convolutional filters as linear combinations of existing ones. This approach precisely preserves performance on original tasks, requires only a fraction of the parameters (typically ~13%) compared to full fine-tuning, and avoids the "catastrophic forgetting" common in incremental learning.

What Problem Does This Paper Address?

Deep learning models are typically specialists: you train one for image classification, another for segmentation, and a third for a specific domain like medical imaging. When you try to teach an existing model a new task, you usually face three bad options:

  1. Fine-tuning: You update all weights for the new task, but this usually destroys the model's ability to perform the original task (a phenomenon known as catastrophic forgetting).
  2. Feature Extraction: You freeze the model and only train a new "head." This preserves the old task but often results in significantly lower accuracy on the new one because the internal features aren't adapted.
  3. Duplication: You train a completely new model for every task, which is computationally expensive and doesn't scale as the number of tasks grows.

The authors aim to enable Multiple-Domain Learning (MDL): teaching a single network to handle multiple related domains incrementally, without needing the original training data, while keeping the parameter overhead low.

Methods

The core innovation is the Deep Adaptation Network (DAN). Instead of learning entirely new filters for a new task, DAN adds small "controller modules" to each convolutional layer of a frozen base network.

Overview of the DAN architecture showing controller modules and a switching variable $\alpha$.

For a convolutional layer with original filters $F_l$, the controller module learns a weight matrix $W_l$. The adapted filters for the new task, $F_l^a$, are created by a linear combination of the original filters: $$F_l^a = W_l \otimes F_l$$ Essentially, the original filters act as a basis set, and the controller learns how to recombine them to suit the new domain.

A switching variable $\alpha$ allows the network to toggle between the original filters and the adapted ones. This means a single network can store multiple tasks simultaneously. The authors also propose a "Dataset Decider" sub-network that can automatically detect the domain of an input image and set $\alpha$ accordingly, creating a unified multi-task model.

Detailed view of a single controller module.

Datasets

The authors evaluated their method on two main fronts:

  1. Initial Exploration: Eight diverse datasets including Caltech-256, CIFAR-10, Daimler Pedestrians (DPed), GTSR (traffic signs), Omniglot (characters), Plankton, Human Sketch, and SVHN (street view house numbers).
  2. Visual Decathlon Challenge: A rigorous benchmark requiring a single model to perform well across 10 different datasets: ImageNet, Aircraft, Cifar-100, DPed, Dynamic Textures, GTSR, Flowers, Omniglot, SVHN, and UCF-101 (action recognition).

Key Insights and Ideas

  • Filters as a Basis: The most powerful idea is that a well-trained network (like one trained on ImageNet) already contains a rich set of visual primitives. You don't need to learn new primitives for a new task; you just need to learn how to re-weight and combine the ones you already have.
  • Regularization through Constraint: By constraining new filters to be linear combinations of old ones, the authors effectively regularize the learning process. This often leads to faster convergence and sometimes even better final accuracy than unconstrained fine-tuning.
  • Transferability is Asymmetric: The authors found that some domains are better "bases" than others. For example, a network trained on natural images (Caltech-256) is a good base for other natural images but poor for sketches. Interestingly, a network trained on sketches or characters (Omniglot) often serves as a surprisingly good base for a wide variety of tasks.
Fig. 3: Transferability of various datasets to each other (ft-last) fine tuning only the last layer (full) fine-tuning all layers (ft-full-bn-off) fine tuning all layers while disallowing batch-normalization layers’ weights to be updated. Overall, networks tend to be more easily transferable to problems from related domains (e.g., natural / drawing). Zoom in to see numbers. It is recommended to view this figure in color on-line.

Key Results

  • Parameter Efficiency: DAN requires only about 13% of the original parameters per new task. When combined with quantization (using 8-bit weights), this cost drops to a mere 3% with negligible loss in accuracy.
  • Performance: On the Visual Decathlon Challenge, DAN achieved a higher "decathlon score" (2851) than standard fine-tuning (2500) and outperformed other state-of-the-art methods like Residual Adapters, despite DAN learning tasks independently rather than jointly.
  • Convergence: DAN typically reaches high accuracy in fewer training cycles than vanilla fine-tuning.

Limitations and Future Work

The primary limitation is expressivity. Because the new filters are linear combinations of the old ones, the network is limited by the "span" of the original filters. If the base network was trained only on grayscale images, it might never be able to adapt to a task that requires discriminating between fine color nuances, as that information is fundamentally missing from the basis set.

Fig. 4: Demonstration of different possible limits of possible method on a toy example. Transferring from a network where the first layer contains features from an orthogonal sub-space to that required for a task can result in chance accuracy. Please see text for details.

The authors suggest that residual connections help mitigate this by allowing information to bypass problematic layers. Future work could involve finding ways to strike a better balance between reusing old features and selectively learning entirely new ones when the basis set is insufficient.

Summary updated

BibTeX
@misc{rosenfeld2017incremental,
  author = {Amir Rosenfeld and John K. Tsotsos},
  title = {{Incremental Learning Through Deep Adaptation}},
  year = {2017},
  eprint = {1705.04228},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1705.04228},
}
Figure