Free Lunch for Domain Adversarial Training: Environment Label Smoothing

Yifan Zhang, Xue Wang, Jian Liang, Zhang Zhang, Liangsheng Wang +2 more
2/12/2026

No official code found. Best implementation: yfzhang114/Environment-Label-Smoothing (60 stars, PyTorch, last commit 2023-02-04).

Abstract

A fundamental challenge for machine learning models is how to generalize learned models for out-of-distribution (OOD) data. Among various approaches, exploiting invariant features by Domain Adversarial Training (DAT) received widespread attention. Despite its success, we observe training instability from DAT, mostly due to over-confident domain discriminator and environment label noise. To address this issue, we proposed Environment Label Smoothing (ELS), which encourages the discriminator to output soft probability, which thus reduces the confidence of the discriminator and alleviates the impact of noisy environment labels. We demonstrate, both experimentally and theoretically, that ELS can improve training stability, local convergence, and robustness to noisy environment labels. By incorporating ELS with DAT methods, we are able to yield state-of-art results on a wide range of domain generalization/adaptation tasks, particularly when the environment labels are highly noisy.

View on arXivView PDF

Code Implementations(1)

PyTorch

This is an official PyTorch implementation of the ICLR 2023 paper 《Free Lunch for Domain Adversarial Training: Environment Label Smoothing》.

603TeX, ShellSep 28, 20223 years ago
adversarial-attacksdeep-learningdomain-adaptationmachine-learningpytorch

Similar Papers

Cite this paper

@article{zhang2026free,
  title  = {Free Lunch for Domain Adversarial Training: Environment Label Smoothing},
  author = {Yifan Zhang and Xue Wang and Jian Liang and Zhang Zhang and Liangsheng Wang and Rong Jin and Tien-Ping Tan},
  year   = {2026},
  eprint = {2302.00194},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2302.00194},
  journal = {ICLR 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2302.00194.svg)](https://codeofpaper.com/paper/2302.00194)

Discussion