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:
- 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).
- 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.
- 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.
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.
Datasets
The authors evaluated their method on two main fronts:
- 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).
- 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.
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.
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