Multi-Domain Learning with Modulation Adapters

Ekaterina Iakovleva, Karteek Alahari, Jakob VerbeekarXiv 2023 · DOI

Introduction

Multi-Domain Learning (MDL) aims to adapt a single pre-trained neural network to perform effectively across diverse visual domains, such as natural images, sketches, and medical scans. While full fine-tuning of a model for each task is a common approach, it is parameter-inefficient, requiring a complete copy of the model for every new domain. Existing parameter-efficient transfer learning (PETL) methods, like adapters, attempt to mitigate this by freezing the base network and adding small task-specific modules. However, these often rely on binary masking or additive parallel layers that fail to fully leverage the pre-trained filter weights.

Modulation Adapters (MAD)

This paper introduces Modulation Adapters (MAD), a novel approach that employs multiplicative modulation to adapt convolutional layers. Unlike additive adapters that bypass original filters, MAD scales the existing weights of convolutional filters directly.

Comparison of adapter architectures: (a) Residual Adapters, (b) Parallel Adapters, and (c) the proposed Modulation Adapters.

For a convolutional layer with $N$ input and $M$ output channels, MAD learns an $M \times N$ matrix of scaling factors $\alpha$. Each scalar scales a specific input-output channel filter. To enhance efficiency, this matrix is decomposed into two low-rank matrices (sizes $M \times I$ and $I \times N$), where $I$ is a bottleneck dimension that allows for a controlled trade-off between accuracy and parameter count.

Experimental Evaluation

The effectiveness of MAD was evaluated on two major benchmarks:

  1. Visual Decathlon: Ten diverse datasets including ImageNet, CIFAR-100, and specialized domains like Omniglot.
  2. ImageNet-to-Sketch: Six domains ranging from natural images to abstract sketches and cartoons.

Key Results and Insights

MAD achieves state-of-the-art performance on the Visual Decathlon benchmark, reaching a total score of 3828, significantly surpassing previous methods like CovNorm and Parallel Adapters.

Performance comparison on the Visual Decathlon benchmark, showing Total Score vs. Number of Parameters for MAD and other baseline methods.

Key insights from the study include:

  • Multiplicative Advantage: Scaling entire filters is more effective than adding parallel 1x1 convolutions or only scaling the central pixel of a 3x3 filter.
  • Efficiency through Factorization: The factored version ($I=36$) maintains high accuracy while reducing the task-specific parameter budget by over 60%.
  • Implicit Sparsity: Visualizations reveal that MAD naturally performs feature selection by zeroing out irrelevant input channels for specific domains.

Conclusion

Modulation Adapters provide a robust and efficient solution for multi-domain adaptation by directly modulating pre-trained features. While highly effective for convolutional architectures, future research will explore the application of MAD to Transformer-based models, which present different structural challenges.

Summary updated

BibTeX
@misc{iakovleva2023multi,
  author = {Ekaterina Iakovleva and Karteek Alahari and Jakob Verbeek},
  title = {{Multi-Domain Learning with Modulation Adapters}},
  year = {2023},
  eprint = {2307.08528},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2307.08528},
}
Figure