# Style Normalization and Restitution for Domain Generalization and Adaptation

도메인 일반화 및 적응을 위한 스타일 정규화와 복원

Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · arXiv · 2021년 1월 3일

- **연구 문제** 도메인 간 스타일 차이로 생기는 일반화 저하를 줄이면서 작업 관련 판별 정보를 보존하는 특징 표현을 학습하는 문제를 다룹니다.
- **연구 방법** 입력 특징에 Instance Normalization을 적용해 스타일 차이를 줄이고, 잔차에서 채널 어텐션으로 작업 관련 특징을 복원하며, 복원 전후 엔트로피를 비교하는 이중 복원 손실로 분리를 유도합니다.
- **주요 결과** PACS와 Office-Home의 도메인 일반화 분류에서 AGG 기준선보다 각각 2.3%, 1.4% 높았고, Digit-Five의 도메인 적응에서는 M3SDA 대비 7.99% 높았습니다.

## 도메인 차이와 일반화 문제

학습된 모델은 학습 데이터와 같은 분포의 테스트 데이터에서는 높은 성능을 보이지만, 조명, 색 대비, 화질, 촬영 스타일이 다른 새로운 환경에서는 성능이 크게 떨어집니다. 이 논문은 이런 도메인 간 스타일 차이를 줄이면서도 작업 수행에 필요한 판별 정보를 잃지 않는 특징 표현을 학습하는 문제를 다룹니다. 도메인 일반화(DG)는 대상 도메인 데이터 없이 학습 도메인만으로 일반화하는 과제이고, 비지도 도메인 적응(UDA)은 레이블이 없는 대상 도메인 데이터를 활용하는 과제입니다.

![Figure 1: Due to the differences in environments (such as light- ing/camera/place/weather), the captured images present style discrepancy, such as the illumina…](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-e27857acf2a18ea032ed6f26db2d0b27.png?thumb=512)

**Fig. 1** : Due to the differences in environments (such as light- ing/camera/place/weather), the captured images present style discrepancy, such as the illumination, color contrast/saturation, quality, imaging style. These result in domain gaps between the training and testing data.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 1쪽에서 그림 영역을 추출했습니다.

## SNR 모듈의 스타일 정규화와 복원

SNR 모듈은 입력 특징 F에 Instance Normalization을 적용해 스타일 정규화 특징을 얻습니다. 이 과정에서 원본과 정규화 특징의 차이인 잔차 R = F - F̃이 생기며, 이 잔차에는 IN으로 제거된 판별 정보가 남아 있습니다. 저자들은 이 잔차를 채널 어텐션으로 작업 관련 성분 R+와 작업 무관 성분 R-로 나누고, R+를 정규화 특징에 더해 출력 특징 F̃+를 만듭니다. 채널 어텐션 벡터 a에 대해 R+는 a\_k를, R-는 1 - a\_k를 곱해 얻으며, 두 항은 같은 어텐션 벡터에서 상보적으로 만들어집니다.

![Figure 4: (a) Activation maps of different features within an SNR module (SNR 3). They show that SNR can disentangle out the task-relevant (classification-rel…](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-25e33a8209019835fc7e307bc5823b07.png?thumb=512)

**Fig. 4** : (a) Activation maps of different features within an SNR module (SNR 3). They show that SNR can disentangle out the task-relevant (classification-relevant) object features well (i.e., 𝑅 + ). (b) Activation maps of ours (bottom) and the baseline Baseline (AGG) (top) w.r.t images of varied styles. The maps of SNR are more consistent for images of different styles.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

![TABLE VIII: Study on the disentanglement designs in SNR](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-2c6dac75d362ed90067439f985e11dcb.png?thumb=512)

**원문 그림** TABLE VIII: Study on the disentanglement designs in SNR

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 9쪽에서 그림 영역을 추출했습니다.

## 이중 복원 손실과 엔트로피 비교

분리를 촉진하기 위해 논문은 이중 복원 손실을 설계합니다. 분류 과제에서는 공간 평균 풀링한 특징 벡터를 FC 층과 softmax에 통과시켜 엔트로피 H를 계산하며, L+ = Softplus(H(φ(f+)) - H(φ(f))), L- = Softplus(H(φ(f)) - H(φ(f-)))로 정의됩니다. Softplus는 손실 값이 음수가 되는 것을 피하기 위해 쓰인 단조 증가 함수입니다. 즉 작업 관련 특징을 더한 뒤에는 엔트로피가 줄어들어야 하고, 작업 무관 특징을 더한 뒤에는 엔트로피가 늘어나야 한다는 조건을 학습 목적에 넣습니다. 세그멘테이션에서는 픽셀별 엔트로피의 평균을, 검출에서는 각 정답 박스 영역의 특징 벡터에서 얻은 엔트로피 평균을 사용합니다.

## 도메인 일반화 분류 결과

PACS와 Office-Home에서 ResNet18을 백본으로 사용해 AGG 기준선과 SNR을 비교했습니다. 이 설정은 leave-one-domain-out 프로토콜을 따릅니다. 평균 정확도 기준으로 SNR은 PACS에서 AGG보다 2.3%, Office-Home에서 1.4% 높았습니다. 같은 실험에서 IN을 모든 BN 층에 적용한 AGG-All-IN과 부분적으로 적용한 IBN 계열, BIN 계열 정규화도 비교되었으며, 이들은 기준선보다 소폭 향상되었지만 SNR보다 낮았습니다. 이 결과는 ResNet18 백본과 해당 두 데이터셋의 설정에서 얻은 것입니다.

![TABLE I: Performance (in accuracy %) comparisons with the SOTA domain generalization approaches for image classiﬁcation.](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-5386aaf8375f873bff3ef3e0a7dba5ca.png?thumb=512)

**원문 그림** TABLE I: Performance (in accuracy %) comparisons with the SOTA domain generalization approaches for image classiﬁcation.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

## 도메인 적응과 세그멘테이션·검출 결과

도메인 적응 분류에서 M3SDA를 기준선으로 두고 SNR을 추가한 SNR-M3SDA는 Digit-Five 평균 정확도가 M3SDA보다 7.99% 높았습니다. 세그멘테이션에서는 GTA5에서 Cityscapes로의 DG 실험에서 DRN-D-105 백본 기준 SNR이 Baseline보다 mIoU가 6.32% 높았습니다. 검출 실험에서는 Cityscapes에서 Foggy Cityscapes로의 설정에서 Faster R-CNN 기준 mAP가 상승했습니다. 이 수치들은 각각 서로 다른 백본, 데이터셋, 과제 조건에서 얻은 것이므로 하나의 공통 조건으로 일반화하지 않습니다.

![TABLE II: Ablation study and performance comparisons (%) with the SOTA UDA approaches for image classiﬁcation.](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-344e4c5515ddb241a7bec05dd948c4fd.png?thumb=512)

**원문 그림** TABLE II: Ablation study and performance comparisons (%) with the SOTA UDA approaches for image classiﬁcation.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 7쪽에서 그림 영역을 추출했습니다.

![TABLE IX: Domain generalization performance (%) for semantic segmentation when we train on GTA5 and test on Cityscapes.](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-0fd65bfd2116637cb6b64a0695fb76d2.png?thumb=512)

**원문 그림** TABLE IX: Domain generalization performance (%) for semantic segmentation when we train on GTA5 and test on Cityscapes.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

![Figure 6: Qualitative results on domain generable segmentation (ﬁrst row) and domain adaptive segmentation (second row) from GTA5 to Cityscapes. For DG (ﬁrst r…](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-1f5659a461b28be42784e2e4c52a31b4.png?thumb=512)

**Fig. 6** : Qualitative results on domain generable segmentation (ﬁrst row) and domain adaptive segmentation (second row) from GTA5 to Cityscapes. For DG (ﬁrst row),Baseline denotes the baseline scheme trained with source domain dataset while testing on the target domain directly. SNR denotes our scheme which adds SNR modules to Baseline. For UDA (second row), we compare the baseline scheme Baseline (MCD) \[13\] to the scheme SNR+MCD which is powered by our SNR.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 10쪽에서 그림 영역을 추출했습니다.

![TABLE XIII: Performance (in mAP accuracy %) of object detection on the Foggy Cityscapes validation set, models are trained on the Cityscapes training set.](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-c52237f76aedb625b0ff0e86f78f9ab9.png?thumb=512)

**원문 그림** TABLE XIII: Performance (in mAP accuracy %) of object detection on the Foggy Cityscapes validation set, models are trained on the Cityscapes training set.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 12쪽에서 그림 영역을 추출했습니다.

## 절제 실험과 비용

절제 실험에서 dual restitution loss를 제거한 SNR w/o L\_SNR은 PACS에서 기준선 대비 개선이 줄었고, 전체 SNR은 PACS에서 1.0%, Office-Home에서 0.8% 높았습니다. 비교 방식으로 엔트로피 비교 없이 최소화·최대화만 쓴 변형도 낮게 나타났습니다. 계산 비용 측면에서 ResNet-50에 SNR을 넣으면 모델 크기는 2.2%, 계산량은 5.1% 증가했습니다. 이 증가는 ResNet-50 백본에서 측정된 값입니다.

![TABLE V: Ablation study on the dual restitution loss L𝑆𝑁 𝑅 for domain generalizable classification. Backbone is ResNet18.](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77/figures/figure-79ad223d6f6a8ea7049adb25c9e3e1c2.png?thumb=512)

**원문 그림** TABLE V: Ablation study on the dual restitution loss L𝑆𝑁 𝑅 for domain generalizable classification. Backbone is ResNet18.

[원문](https://arxiv.org/abs/2101.00588v3) · [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/) · Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen · Style Normalization and Restitution for Domain Generalization and Adaptation · 원문 그림 인용 · 원본 PDF 8쪽에서 그림 영역을 추출했습니다.

## 적용 범위와 한계

이 결과들은 제시된 백본과 데이터셋, 평가 프로토콜에서 얻은 것입니다. 특히 DG와 UDA의 비교는 같은 기준선과 같은 조건에서 이루어졌지만, 서로 다른 과제와 백본의 수치를 하나의 성능 차이로 묶을 수는 없습니다. 논문은 SNR이 명시적 소스-타깃 정렬을 대체한다고 보고하지 않으며, UDA에서는 M3SDA 같은 정렬 기법과 함께 사용될 때 효과가 확인되었습니다.

## 논문 정보

- **저자**: Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen
- **학회·저널**: arXiv · 프리프린트
- **최초 공개일**: 2021년 1월 3일
- **등록일**: 2026년 11월 5일
- **수정일**: 2022년 3월 11일
- **버전**: v3
- **arXiv**: 2101.00588
- **분류**: cs.CV
- **원문 이용 조건**: [CC0 1.0](https://creativecommons.org/publicdomain/zero/1.0/)
- **제공 범위**: 논문 정보, 해설, 허용된 원문 그림

[논문 원문 ↗](https://arxiv.org/abs/2101.00588v3) · [원문 PDF ↗](https://arxiv.org/pdf/2101.00588v3)

AI 해설은 논문 원문과 별개의 설명이며 오류가 있을 수 있습니다. 원문과 그림은 각 출처의 이용 조건과 따로 표시된 권리를 따릅니다.

## 초록

For many practical computer vision applications, the learned models usually have high performance on the datasets used for training but suffer from significant performance degradation when deployed in new environments, where there are usually style differences between the training images and the testing images. An effective domain generalizable model is expected to be able to learn feature representations that are both generalizable and discriminative. In this paper, we design a novel Style Normalization and Restitution module (SNR) to simultaneously ensure both high generalization and discrimination capability of the networks. In the SNR module, particularly, we filter out the style variations (e.g, illumination, color contrast) by performing Instance Normalization (IN) to obtain style normalized features, where the discrepancy among different samples and domains is reduced. However, such a process is task-ignorant and inevitably removes some task-relevant discriminative information, which could hurt the performance. To remedy this, we propose to distill task-relevant discriminative features from the residual (i.e, the difference between the original feature and the style normalized feature) and add them back to the network to ensure high discrimination. Moreover, for better disentanglement, we enforce a dual causality loss constraint in the restitution step to encourage the better separation of task-relevant and task-irrelevant features. We validate the effectiveness of our SNR on different computer vision tasks, including classification, semantic segmentation, and object detection. Experiments demonstrate that our SNR module is capable of improving the performance of networks for domain generalization (DG) and unsupervised domain adaptation (UDA) on many tasks. Code are available at https://github.com/microsoft/SNR.

## 원문 인용

Xin Jin, Cuiling Lan, Wenjun Zeng, Zhibo Chen (2021). Style Normalization and Restitution for Domain Generalization and Adaptation. arXiv:2101.00588v3. https://arxiv.org/abs/2101.00588v3

**BibTeX**

```
@misc{jin2021style,
  title = {{Style Normalization and Restitution for Domain Generalization and Adaptation}},
  author = {Xin Jin and Cuiling Lan and Wenjun Zeng and Zhibo Chen},
  year = {2021},
  eprint = {2101.00588},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2101.00588v3}
}
```

## 이 논문의 용어

- [mIoU](https://refivu.com/terms/901dcc5384c2-miou)
- [Cityscapes](https://refivu.com/terms/1067bb006500-cityscapes)
- [Maximum Mean Discrepancy](https://refivu.com/terms/2b1ea1367bf7-maximum-mean-discrepancy)
- [Instance Normalization](https://refivu.com/terms/a80f303a09b9-instance-normalization)
- [unsupervised domain adaptation](https://refivu.com/terms/d063363072e6-unsupervised-domain-adaptation)
- [domain generalization](https://refivu.com/terms/aaca136d945b-domain-generalization)
- [channel attention](https://refivu.com/terms/653ad7339ce9-channel-attention)
- [PACS](https://refivu.com/terms/5d7b4a980900-pacs)
- [SYNTHIA](https://refivu.com/terms/a10cbd630fcc-synthia)
- [DomainNet](https://refivu.com/terms/762dca3b1524-domainnet)
- [GTA5](https://refivu.com/terms/a3a16fd3da40-gta5)
- [Office-Home](https://refivu.com/terms/8c439d2dd6fd-office-home)
- [Foggy Cityscapes](https://refivu.com/terms/c908f031feae-foggy-cityscapes)
- [M3SDA](https://refivu.com/terms/4389ae817a9b-m3sda)

## 다른 논문 해설

- [Domain Generalization with Relaxed Instance Frequency-wise Normalization for Multi-device Acoustic Scene Classification](https://refivu.com/papers/3d18e7f5-4168-4e00-90ec-90c25c6e05d3-domain-generalization-with-relaxed-instance-frequency-wise.md)
- [Stability and Generalization of Stochastic Optimization with Nonconvex and Nonsmooth Problems](https://refivu.com/papers/ae00d188-1aa4-4b98-a7c4-f6ae2e1ac2c7-stability-and-generalization-of-stochastic-optimization-with.md)
- [Fractal Structure and Generalization Properties of Stochastic Optimization Algorithms](https://refivu.com/papers/41699eb4-d469-4274-bd77-f1c99a5702f5-fractal-structure-and-generalization-properties-of.md)
- [When Is Tracking Affordable? A Movement-Budget Feasibility Threshold for Dynamic Regret](https://refivu.com/papers/454d3d1a-f4f3-4546-b847-ab3b928d0eff-when-is-tracking-affordable-a-movement-budget-feasibility.md)
- [Hinted Scaling Laws](https://refivu.com/papers/b98fdaf7-9c61-4bcc-a76e-766a349931d3-hinted-scaling-laws.md)
- [Meta-memorization and memorization scaling laws in transformers](https://refivu.com/papers/9e72c03f-c7e5-43f7-a508-147c7812adc2-meta-memorization-and-memorization-scaling-laws-in.md)
- [Benchmarking Estimators for Natural Experiments: A Novel Dataset and a Doubly Robust Algorithm](https://refivu.com/papers/a3863cc5-4ab6-40e3-8bea-7e6d32ad93b3-benchmarking-estimators-for-natural-experiments-a-novel.md)
- [Benchmarking Abstractive Summarisation: A Dataset of Human-authored Summaries of Norwegian News Articles](https://refivu.com/papers/e5c390d0-3172-43f8-986b-c94b403632c2-benchmarking-abstractive-summarisation-a-dataset-of-human.md)
- [MIRAGE: A Metric-Intensive Benchmark for Retrieval-Augmented Generation Evaluation](https://refivu.com/papers/c55abcd2-d481-42f1-8d27-29ed92271f5c-mirage-a-metric-intensive-benchmark-for-retrieval-augmented.md)
- [EpiCastBench: Datasets and Benchmarks for Multivariate Epidemic Forecasting](https://refivu.com/papers/c4a099c0-606d-4a46-8a47-e87c919ed07f-epicastbench-datasets-and-benchmarks-for-multivariate.md)
- [REGEN: A Dataset and Benchmarks with Natural Language Critiques and Narratives](https://refivu.com/papers/438fb0a1-5eb9-4a87-a434-a2345eb84bf9-regen-a-dataset-and-benchmarks-with-natural-language.md)

---

AI 해설에는 오류가 있을 수 있습니다. [Refivu](https://refivu.com/papers/7f83bf3a-95c4-41dd-a786-3c3a4f100d77-style-normalization-and-restitution-for-domain)
