Skip to main content
QUICK REVIEW

[Paper Review] AdapterNet - learning input transformation for domain adaptation

Alon Hazan, Yoel Shoshan|arXiv (Cornell University)|May 29, 2018
Domain Adaptation and Few-Shot LearningComputer Science11 references4 citations
TL;DR

AdapterNet proposes a lightweight, trainable adapter network that transforms input data from a new distribution to match the original pre-trained model's distribution, enabling domain adaptation without fine-tuning or access to original training data. It achieves near-perfect adaptation on a modified ImageNet benchmark, outperforming fine-tuning and preserving model integrity via identity initialization and detachable architecture.

ABSTRACT

Deep neural networks have demonstrated impressive performance in various machine learning tasks. However, they are notoriously sensitive to changes in data distribution. Often, even a slight change in the distribution can lead to drastic performance reduction. Artificially augmenting the data may help to some extent, but in most cases, fails to achieve model invariance to the data distribution. Some examples where this sub-class of domain adaptation can be valuable are various imaging modalities such as thermal imaging, X-ray, ultrasound, and MRI, where changes in acquisition parameters or acquisition device manufacturer will result in a different representation of the same input. Our work shows that standard fine-tuning fails to adapt the model in certain important cases. We propose a novel method of adapting to a new data source, and demonstrate near perfect adaptation on a customized ImageNet benchmark. Moreover, our method does not require any samples from the original data set, it is completely explainable and can be tailored to the task.

Motivation & Objective

  • To address domain shift in deep learning where model performance degrades under distributional changes, especially in imaging modalities like MRI or X-ray.
  • To develop a method that adapts pre-trained models to new data distributions without requiring original training data or retraining the main network.
  • To create a modular, explainable, and task-tailorable adaptation mechanism that can be detached and reused independently.
  • To overcome limitations of fine-tuning, such as overfitting and poor generalization when adapting to new data sources with minimal samples.

Proposed method

  • A shallow convolutional neural network (AdapterNet) is inserted before the pre-trained model to learn input transformation from the new distribution to the original one.
  • The adapter is trained with supervised labels from the new data distribution while keeping the original model weights frozen.
  • Identity initialization is used: the adapter starts as a no-op (F(x) = x) by setting intra-channel weights to 1 and inter-channel weights to 0, ensuring stable training.
  • Input data is normalized to [0,1] and processed through 1x1 convolutions to allow channel-wise mixing while maintaining spatial structure.
  • The adapter is trained using the same loss function as the original model, making it a differentiable component of the full system.
  • After training, the adapter can be detached and used standalone to transform inputs before inference.

Experimental results

Research questions

  • RQ1Can a lightweight, learnable adapter network effectively bridge the distribution gap between source and target domains without access to original training data?
  • RQ2How does AdapterNet compare to fine-tuning in terms of performance and generalization when adapting to distribution shifts?
  • RQ3Can identity initialization of the adapter ensure stable and effective training for input transformation?
  • RQ4Is the adapter modular and explainable, allowing visual inspection and reuse across different tasks?
  • RQ5Can the adapter recover from lossy transformations (e.g., color rotation, power function) that degrade model performance?

Key findings

  • AdapterNet achieved a top-1 accuracy of 0.631 on the color-rotated ImageNet test set, representing only a 3.6% drop from the original 0.6546, compared to a 34.6% drop with naive inference.
  • For the power function transformation, AdapterNet achieved 0.6188 top-1 accuracy (5.5% drop), significantly outperforming fine-tuning on the last three layers, which dropped to 0.4322 (34% drop).
  • Fine-tuning on the last three layers led to rapid overfitting and failed to adapt, indicating limitations in fine-tuning for complex distribution shifts.
  • The output images after the adapter appeared visually realistic and often had higher contrast than originals, suggesting potential for image enhancement.
  • The adapter successfully restored performance after lossy transformations, indicating robustness to information loss in pixel ranges.
  • The adapter can be detached and used independently, enabling reuse and inspection of transformed inputs for explainability.

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.