Out-Of-Domain Unlabeled Data Improves Generalization

A. Saberi, Amir Najafi, Alireza Heidari, Mohammad Hosein Movasaghinia, Abolfazl Motahari +1 more
2/12/2026

No official code found. Best implementation: deepmancer/rss-training-iclr2024 (5 stars, Apache-2.0, last commit 2025-01-22).

Abstract

We propose a novel framework for incorporating unlabeled data into semi-supervised classification problems, where scenarios involving the minimization of either i) adversarially robust or ii) non-robust loss functions have been considered. Notably, we allow the unlabeled samples to deviate slightly (in total variation sense) from the in-domain distribution. The core idea behind our framework is to combine Distributionally Robust Optimization (DRO) with self-supervised training. As a result, we also leverage efficient polynomial-time algorithms for the training stage. From a theoretical standpoint, we apply our framework on the classification problem of a mixture of two Gaussians in $\mathbb{R}^d$, where in addition to the $m$ independent and labeled samples from the true distribution, a set of $n$ (usually with $n\gg m$) out of domain and unlabeled samples are given as well. Using only the labeled data, it is known that the generalization error can be bounded by $\propto\left(d/m\right)^{1/2}$. However, using our method on both isotropic and non-isotropic Gaussian mixture models, one can derive a new set of analytically explicit and non-asymptotic bounds which show substantial improvement on the generalization error compared to ERM. Our results underscore two significant insights: 1) out-of-domain samples, even when unlabeled, can be harnessed to narrow the generalization gap, provided that the true data distribution adheres to a form of the ``cluster assumption", and 2) the semi-supervised learning paradigm can be regarded as a special case of our framework when there are no distributional shifts. We validate our claims through experiments conducted on a variety of synthetic and real-world datasets.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

This is the official repository for the ICLR 2024 paper Out-Of-Domain Unlabeled Data Improves Generalization.

51TeX, PythonApr 6, 20241 years agoApache-2.0
adversarial-learningconference-paperdistribution-shiftdistributionally-robust-optimizationgeneralization-error+10 more

Similar Papers

Cite this paper

@article{saberi2026outofdomain,
  title  = {Out-Of-Domain Unlabeled Data Improves Generalization},
  author = {A. Saberi and Amir Najafi and Alireza Heidari and Mohammad Hosein Movasaghinia and Abolfazl Motahari and B. Khalaj},
  year   = {2026},
  eprint = {2310.00027},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.00027},
  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/2310.00027.svg)](https://codeofpaper.com/paper/2310.00027)

Discussion