Test-Time Style Shifting: Handling Arbitrary Styles in Domain Generalization

Jun-Gyu Park, Dong-Jun Han, Soyeong Kim, J. Moon
2/12/2026

No confident code implementation found for this paper. 1 possible match can be shown below.

Abstract

In domain generalization (DG), the target domain is unknown when the model is being trained, and the trained model should successfully work on an arbitrary (and possibly unseen) target domain during inference. This is a difficult problem, and despite active studies in recent years, it remains a great challenge. In this paper, we take a simple yet effective approach to tackle this issue. We propose test-time style shifting, which shifts the style of the test sample (that has a large style gap with the source domains) to the nearest source domain that the model is already familiar with, before making the prediction. This strategy enables the model to handle any target domains with arbitrary style statistics, without additional model update at test-time. Additionally, we propose style balancing, which provides a great platform for maximizing the advantage of test-time style shifting by handling the DG-specific imbalance issues. The proposed ideas are easy to implement and successfully work in conjunction with various other DG schemes. Experimental results on different datasets show the effectiveness of our methods.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 1 weaker match is hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{park2026testtime,
  title  = {Test-Time Style Shifting: Handling Arbitrary Styles in Domain Generalization},
  author = {Jun-Gyu Park and Dong-Jun Han and Soyeong Kim and J. Moon},
  year   = {2026},
  eprint = {2306.04911},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/pdf/2306.04911},
  journal = {ICML 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/2306.04911.svg)](https://codeofpaper.com/paper/2306.04911)

Discussion