Lightweight Unsupervised Domain Adaptation by Convolutional Filter Reconstruction

Rahaf Aljundi, Tinne Tuytelaars

Abstract

Deep learning models often suffer from performance degradation when moved from source to target domains due to domain shift. Contrary to the common belief that early layers are domain-invariant, we show that domain shift begins at the very first layer. We propose a lightweight method to identify domain-sensitive filters and reconstruct their outputs using stable filters without retraining. Our approach is "plug-and-play," requires minimal data, and runs efficiently on standard CPUs.

Introduction

Domain shift, caused by variations in lighting or backgrounds, is a major hurdle for deploying CNNs in real-world scenarios. Traditional Unsupervised Domain Adaptation (UDA) methods are often too resource-intensive for edge devices. This paper introduces Convolutional Filter Reconstruction, a surgical approach targeting the first layer to mitigate domain shift effects early in the network pipeline.

Methodology

The proposed method involves three key steps:

  1. Identifying 'Bad' Filters: Using KL-divergence to measure changes in filter response distributions between domains.
  2. Reconstruction via Lasso: Reconstructing the output of sensitive filters using a linear combination of stable ones, optimized via Lasso regression with a KL-divergence penalty.
  3. On-the-Fly Adaptation: Replacing sensitive filter outputs with reconstructed versions during inference, requiring no backpropagation.

Experiments and Results

The method was tested on benchmarks like the Office dataset and synthetic-to-real traffic signs.

Feature Alignment

Visualizing the feature space using t-SNE (Figure 3) demonstrates that the proposed reconstruction significantly improves the alignment between source and target domains, facilitating better classification performance.

t-SNE visualization of domain alignment across different stages of adaptation.

Efficiency and Performance

The method achieved a 5% accuracy boost on dark traffic sign recognition. It is highly efficient, completing adaptation in minutes on a CPU and requiring as few as one to ten unlabeled target samples to be effective.

Analysis of Filter Responses

The necessity of early-layer adaptation is underscored by how domain shifts manifest in filter responses. Figure 5 shows the distribution of responses in deeper layers, illustrating how uncorrected shifts at the input stage can propagate through the network.

Histograms of filter responses for conv4 and conv5 layers across different domain pairs (A-W and A-AG).

Conclusion

By treating domain adaptation as a signal reconstruction problem at the first layer, we achieve significant performance gains with minimal computational overhead. This approach is particularly suited for dynamic environments and edge computing where full network retraining is not feasible.

Summary updated

BibTeX
@inproceedings{aljundi2016lightweight,
  author = {Rahaf Aljundi and Tinne Tuytelaars},
  title = {{Lightweight Unsupervised Domain Adaptation by Convolutional Filter Reconstruction}},
  booktitle = {Workshops @ ECCV},
  year = {2016},
  url = {https://openreview.net/forum?id=SJb5Ecb_bB},
}
Figure