Papers › A Sentence Speaks a Thousand Images: Domain Generalization through Distilling CLIP...

A Sentence Speaks a Thousand Images: Domain Generalization through Distilling CLIP with Language Guidance

21 Sep 2023ICCV 2023 1arXiv:2309.12530archive 2025-07-28

Zeyi Huang, Andy Zhou, Zijian Lin, Mu Cai, Haohan Wang, Yong Jae Lee

Domain generalization studies the problem of training a model with samples from several domains (or distributions) and then testing the model with samples from a new, unseen domain. In this paper, we propose a novel approach for domain generalization that leverages recent advances in large vision-language models, specifically a CLIP teacher model, to train a smaller model that generalizes to unseen domains. The key technical contribution is a new type of regularization that requires the student's learned image representations to be close to the teacher's learned text representations obtained from encoding the corresponding text descriptions of images. We introduce two designs of the loss function, absolute and relative distance, which provide specific guidance on how the training process of the student model should be regularized. We evaluate our proposed method, dubbed RISE (Regularized Invariance with Semantic Embeddings), on various benchmark datasets and show that it outperforms several state-of-the-art domain generalization methods. To our knowledge, our work is the first to leverage knowledge distillation using a large vision-language model for domain generalization. By incorporating text-based information, RISE improves the generalization capability of machine learning models.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2309.12530")

Code

Syntology Ran 14 of 16 code samples harvested from 1 repository linked to this paper; 2 have no recorded run. Of those that ran: 14 ran with no contract checked.

By repository: official repository: 16 samples from 1 repository, 14 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

oodbag/rise officialmentioned in papermentioned on GitHubpytorch report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

16 samples harvested; 14 ran; 0 honoured the contract we drafted; 2 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

14ran
2unverified

Licence: 16 of the 16 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from OoDBag/RISE. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

adaptive_avgmax_pool2d OoDBag/RISE/timm/layers/adaptive_avgmax_pool.py official repository ran fingerprinted no licence file found · pointer only · 39934307038ef5a9 · report
adaptive_catavgmax_pool2d OoDBag/RISE/timm/layers/adaptive_avgmax_pool.py official repository ran fingerprinted no licence file found · pointer only · fa9e3a5ceeac7703 · report
adaptive_pool_feat_mult OoDBag/RISE/timm/layers/adaptive_avgmax_pool.py official repository ran fingerprinted no licence file found · pointer only · 13295c0de28cc1f1 · report
get_optim_and_scheduler OoDBag/RISE/optimizer/optimizer_helper.py official repository ran no licence file found · pointer only · 52231145e6cbb0b4 · report
get_top_k OoDBag/RISE/evaluate_results.py official repository ran no licence file found · pointer only · 0ff0426715fb49eb · report
hard_sigmoid_jit OoDBag/RISE/timm/layers/activations_jit.py official repository ran no licence file found · pointer only · 91c27523dde7eb4a · report
mish OoDBag/RISE/timm/layers/activations.py official repository ran fingerprinted no licence file found · pointer only · 801c85b8903bfff5 · report
mish_jit OoDBag/RISE/timm/layers/activations_jit.py official repository ran no licence file found · pointer only · 14eddd8cc4c65fe0 · report
sigmoid OoDBag/RISE/timm/layers/activations.py official repository ran fingerprinted no licence file found · pointer only · d83b6ecf3cdc1d6a · report
swish OoDBag/RISE/timm/layers/activations.py official repository ran fingerprinted no licence file found · pointer only · 717e4d22b6d103e6 · report
swish_jit OoDBag/RISE/timm/layers/activations_jit.py official repository ran no licence file found · pointer only · 8e341f8585b3fe94 · report
swish_jit_bwd OoDBag/RISE/timm/layers/activations_me.py official repository ran no licence file found · pointer only · ccf59d4aa2ccacdb · report
swish_jit_fwd OoDBag/RISE/timm/layers/activations_me.py official repository ran no licence file found · pointer only · 2d53e47b891cd927 · report
swish_me OoDBag/RISE/timm/layers/activations_me.py official repository ran no licence file found · pointer only · 51a2f9920a170144 · report
rel_logits_1d OoDBag/RISE/timm/layers/bottleneck_attn.py official repository unverified no licence file found · pointer only · f0b44651e598ca66 · report
write_to_dict OoDBag/RISE/evaluate_results.py official repository unverified no licence file found · pointer only · 25212e54355cd32c · report

Tasks

Domain GeneralizationKnowledge DistillationLanguage ModelingLanguage ModellingSentence

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Domain Generalization PACS RISE (ResNet-50) Average Accuracy 90.2 #21 of 133 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

CLIPKnowledge Distillation

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections