On the Out-of-Distribution Generalization of Self-Supervised Learning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Qiang, Wenwen, Wang, Jingyao, Song, Zeen, Li, Jiangmeng, Zheng, Changwen
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866912387714514944
author Qiang, Wenwen
Wang, Jingyao
Song, Zeen
Li, Jiangmeng
Zheng, Changwen
author_facet Qiang, Wenwen
Wang, Jingyao
Song, Zeen
Li, Jiangmeng
Zheng, Changwen
contents In this paper, we focus on the out-of-distribution (OOD) generalization of self-supervised learning (SSL). By analyzing the mini-batch construction during the SSL training phase, we first give one plausible explanation for SSL having OOD generalization. Then, from the perspective of data generation and causal inference, we analyze and conclude that SSL learns spurious correlations during the training process, which leads to a reduction in OOD generalization. To address this issue, we propose a post-intervention distribution (PID) grounded in the Structural Causal Model. PID offers a scenario where the spurious variable and label variable is mutually independent. Besides, we demonstrate that if each mini-batch during SSL training satisfies PID, the resulting SSL model can achieve optimal worst-case OOD performance. This motivates us to develop a batch sampling strategy that enforces PID constraints through the learning of a latent variable model. Through theoretical analysis, we demonstrate the identifiability of the latent variable model and validate the effectiveness of the proposed sampling strategy. Experiments conducted on various downstream OOD tasks demonstrate the effectiveness of the proposed sampling strategy.
format Preprint
id arxiv_https___arxiv_org_abs_2505_16675
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle On the Out-of-Distribution Generalization of Self-Supervised Learning
Qiang, Wenwen
Wang, Jingyao
Song, Zeen
Li, Jiangmeng
Zheng, Changwen
Machine Learning
In this paper, we focus on the out-of-distribution (OOD) generalization of self-supervised learning (SSL). By analyzing the mini-batch construction during the SSL training phase, we first give one plausible explanation for SSL having OOD generalization. Then, from the perspective of data generation and causal inference, we analyze and conclude that SSL learns spurious correlations during the training process, which leads to a reduction in OOD generalization. To address this issue, we propose a post-intervention distribution (PID) grounded in the Structural Causal Model. PID offers a scenario where the spurious variable and label variable is mutually independent. Besides, we demonstrate that if each mini-batch during SSL training satisfies PID, the resulting SSL model can achieve optimal worst-case OOD performance. This motivates us to develop a batch sampling strategy that enforces PID constraints through the learning of a latent variable model. Through theoretical analysis, we demonstrate the identifiability of the latent variable model and validate the effectiveness of the proposed sampling strategy. Experiments conducted on various downstream OOD tasks demonstrate the effectiveness of the proposed sampling strategy.
title On the Out-of-Distribution Generalization of Self-Supervised Learning
topic Machine Learning
url https://arxiv.org/abs/2505.16675