A common way to adapt a vision model to a new domain, such as synthetic driving scenes to real ones, is to train an unpaired image translator. This is a generator that learns to repaint source images in the target's style without ever seeing matched before-and-after pairs. A task model is then trained on the repainted, still-labeled source images. The weak point is choosing which translator to use. The options include different architectures, seeds, and training checkpoints, and the choice has to be made without any target labels. Today that choice is made by eye or with Fréchet Inception Distance (FID). FID only asks whether the repainted images look like the target overall. A translator can score well while turning 8s into 1s, or left-facing cars into right-facing ones. We propose a label-free, class-aware dataset distance that flags such failures and use it as the selection criterion. The distance compares each source class, after translation, against clusters found in the unlabeled target. It measures two things at once: how much appearance shift remains, and whether the classes still land cleanly in distinct places in the target.
The claim is testable and useful. Across a pool of translators trained on standard adaptation benchmarks, this score should rank translators by their true downstream target accuracy better than FID, better than feature-only transport distances, and better than asking a source-trained classifier whether it still recognises the translated images. The same score, applied to the untranslated source, also reports what fraction of the measured domain shift the translator removed. This is the quantity that CyCADA and FlowEO never report.
Why this gap is real
Dataset-distance research has built strong tools but assumes labels on both sides. Geometric Dataset Distances via Optimal Transport (OTDD) treats each class as a distribution of features. It compares classes by Wasserstein distance, which is the cost of moving one cloud of points onto another, and then solves a second transport problem between whole datasets. The authors report Pearson correlations between −0.59 and −0.85 with transfer performance. They also show that feature-only transport misses label mismatches. Lightspeed Geometric Dataset Distance via Sliced Optimal Transport (s-OTDD) makes this cheap: it projects to one dimension, runs in 53 seconds versus over 74,000 for exact OTDD, and keeps rank correlation around 0.93–0.99. Flowing Datasets with Wasserstein over Wasserstein Gradient Flows moves labeled datasets along these geometries. All three require target labels, so none can be applied directly to unsupervised adaptation. That limitation is the motivating gap.
On the translation side, CycleGAN-style cycle consistency, CUT's patch contrastive loss, and OT-CycleGAN's offline transport reference each constrain the generator differently. None of them includes a measurement of whether class structure survived. OT-CycleGAN shows that vanilla CycleGAN settles on arbitrary mappings, with a car-to-chair mismatch degree of 1.026. It detects this only through a handcrafted, annotated cost. CyCADA prevents label flipping with a source classifier's predictions. However, Quantifying and Improving Transferability in Domain Generalization shows that source-trained classifiers degrade sharply under shift, so that signal is fragile. The same paper constrains our design: matching marginal feature distributions does not guarantee low target error. Any score that only compares marginals is therefore suspect, and this is why the class-aware component is essential rather than decorative.
Core Claim
Let $S=\{(x_i,y_i)\}$ be labeled source data, $G$ a translator, and $\phi$ a frozen image encoder. We cluster the unlabeled target features $\phi(T)$ into $K$ clusters with masses $q_k$ and feature distributions $\nu_k$. Here $K$ is at least the number of classes. For each class $y$ with mass $p_y$, let $\mu_y$ be the distribution of $\phi(G(x))$ over source images of that class. The score is
$$ D(G) = \min_{\pi \in \Pi(p,q)} \sum_{y,k} \pi_{yk}\, SW_2(\mu_y,\nu_k), $$
where $SW_2$ is the sliced 2-Wasserstein distance between two point clouds and $\Pi(p,q)$ is the set of couplings whose row sums are $p$ and column sums are $q$. The optimal coupling $\pi^*$ also yields two diagnostics:
$$ H(k\mid y)=-\sum_{y,k}\pi^*_{yk}\log\frac{\pi^*_{yk}}{p_y}, \qquad H(y\mid k)=-\sum_{y,k}\pi^*_{yk}\log\frac{\pi^*_{yk}}{q_k}. $$
The first, $H(k\mid y)$, measures whether a class fragments across target clusters. The second, $H(y\mid k)$, measures whether several classes collapse into one cluster; this is the signature of label flipping. Setting $G$ to the identity gives the pre-translation shift, so $1-D(G)/D(\mathrm{id})$ is the fraction of shift removed.
The key difference from s-OTDD is structural. The target side is a set of unsupervised clusters, not labeled classes, and the outer transport is rectangular, so there is no assumed class correspondence. The prediction is that low $D$ together with low $H(y\mid k)$ indicates a translator whose outputs will train an accurate target model. Feature-only distances and FID should miss exactly the translators that fail on the entropy terms.
Research Program
We first build the score and study its sensitivity. The variables are the number of clusters $K$ (from one to four times the number of classes), the clustering method (k-means versus a Gaussian mixture), the number of slicing projections, and the encoder. The encoder question matters because dataset distances fail when the encoder cannot see the relevant shift. We compare an ImageNet-pretrained encoder with one adapted by self-supervised training on the union of source and target images. The adapted encoder uses no labels, so the method stays label-free. We use sliced rather than Bures (Gaussian) inner costs, because classes in PACS or VisDA are visibly multimodal and the Gaussian approximation is a known failure mode.
We then build translator pools with real variation in quality. For each domain pair we train CycleGAN, CUT, and CycleGAN with CyCADA's semantic-consistency loss. Each uses three seeds and saves checkpoints throughout training, giving roughly 60–100 translators per pair. We add deliberately damaged translators by training against class-skewed target subsets, the setting in which CyCADA observed 8→1 flipping. For every translator we train an identical task network on the translated source. We then record its true target accuracy, using target labels for evaluation only.
The benchmarks all come from the file. SVHN→MNIST is where CyCADA reports 67.1% source-only and 90.4% adapted. VisDA-C covers synthetic-to-real, where the VisDA challenge summary reports 28% for source-only AlexNet and 92.8% for the winner. Photo→Sketch and Photo→Cartoon on PACS test abstract style shift. Two DomainNet pairs involving Clipart test scale. GTA5→Cityscapes segmentation is a stretch goal. It needs a patch-level version of the score, in which class distributions are built from features pooled over labeled source regions.
Baselines
The naive reference points are picking the final checkpoint of the default architecture and picking uniformly at random from the pool. Both are run on the same pools, and random selection is averaged over draws. The score must reduce selection regret against both, where regret is the gap between the chosen translator's target accuracy and the best translator in the pool.
The strongest widely used competitor is FID between translated source and target. It is the de facto selection tool; CUT's reported gain is 77.2 to 45.5 FID over CycleGAN on Horse→Zebra. It is computed on the same images with Inception features. We also compute it with our encoder $\phi$, so that encoder differences cannot explain the result. No reported result was found on Lacuna for the correlation between FID and downstream adaptation accuracy, so that correlation will be measured here.
The second strong competitor is source-classifier agreement: the accuracy of a source-trained classifier on translated images, scored against the inherited labels. This is CyCADA's semantic consistency used as a measurement. It is label-free, directly targets label flipping, and is the alternative we consider most likely to match our score.
The third is a group of marginal shift measures: feature-only sliced Wasserstein distance between $\phi(G(S))$ and $\phi(T)$, and the proxy A-distance of Blitzer et al., which trains a linear classifier to tell the two sets apart. These isolate the contribution of class structure.
The fourth is OTDD with target pseudo-labels from the source classifier. It tests whether clusters beat noisy predicted labels as the target-side structure.
The fifth is oracle s-OTDD with true target labels, which serves as an upper bound.
All methods see the same images, the same compute budget, and no target labels. Hyperparameters such as $K$ and projection count are chosen once on SVHN→MNIST and then frozen for every other pair. This prevents per-benchmark tuning of our method alone.
Beating the baselines means two things. First, Spearman correlation with target accuracy must be higher than every label-free baseline on at least four of the five classification pairs, with bootstrap confidence intervals over the pool that exclude zero difference. Second, mean selection regret must be lower than both FID's and source-classifier agreement's.
The central ablation removes the class-aware structure by setting $K=1$ and treating the source as one class, which reduces $D$ to feature-only transport. A second ablation drops the entropy terms. Together they show whether the gain comes from the cluster coupling specifically.
Why not just…?
Why not just use FID? FID compares Gaussian summaries of the two image sets, so it cannot tell whether an individual image kept its class. OT-CycleGAN's scrambled car-to-chair mappings and CyCADA's 8→1 flips are both realistic marginals. The damaged translators in our pools are built so that FID stays low while accuracy drops. If FID still ranks translators as well as our score on the natural pools, we will report that the class-aware term earns its keep only under flipping.
Why not just ask the source classifier whether translated images keep their labels? This is the real threat. It is cheap, label-free, and aimed at the right failure. Its weakness is that it trusts a classifier known to degrade under shift (Quantifying and Improving Transferability in Domain Generalization reports drops above 30% under small classifier perturbations on PACS). It also rewards translators that under-translate, keeping images source-like enough for the classifier. We predict it will do well on SVHN→MNIST and poorly on large shifts like Photo→Sketch and VisDA-C. The head-to-head correlations settle this. If it matches us everywhere, the conclusion is that the simple tool suffices.
Why not just use a feature-only transport distance or the proxy A-distance? These measure how much shift remains, but not whether classes land correctly. The OTDD authors show that feature-only transport misses label mismatches, and the transferability paper shows that marginal matching does not bound target error. The $K=1$ ablation is exactly this baseline, so the comparison is built in.
Why not just add the distance as a training loss instead of a selector? A loss would be optimized directly, and a generator could satisfy it through artifacts that the encoder rewards. Before using the score for training, we need evidence that it tracks accuracy when it is not being optimized. If selection succeeds, a regularizer variant is the natural follow-up, and it would address the closed-loop gap noted for s-OTDD.
Decisive Checks
The first decisive experiment is controlled flipping on digits. We train translators toward MNIST subsets skewed toward a few classes. In this setting $H(y\mid k)$ should rise as target accuracy falls, while FID and feature-only distance stay flat. If $H(y\mid k)$ does not respond here, the mechanism is wrong.
The second is the cross-benchmark correlation and regret comparison described above, with hyperparameters frozen after SVHN→MNIST.
The third is the encoder test. If the score only works with the self-supervised adapted encoder, that confirms encoder blindness is the dominant obstacle. We will report it as the main practical constraint rather than hiding it.
A clear negative result is also informative. That would be a score that tracks the oracle labeled s-OTDD but not downstream accuracy. It would indicate that even label-aware dataset distance is the wrong target for choosing translators.
References
- CyCADA: Cycle-Consistent Adversarial Domain Adaptation
- FlowEO: Generative Unsupervised Domain Adaptation for Earth Observation
- Geometric Dataset Distances via Optimal Transport
- Lightspeed Geometric Dataset Distance via Sliced Optimal Transport
- Flowing Datasets with Wasserstein over Wasserstein Gradient Flows
- Generative Adversarial Networks: Recent Developments
- Contrastive Learning for Unpaired Image-to-Image Translation
- Guiding the One-to-One Mapping in CycleGAN via Optimal Transport
- Quantifying and Improving Transferability in Domain Generalization
- VisDA: The Visual Domain Adaptation Challenge
- Biographies, Bollywood, Boom-boxes and Blenders: Domain Adaptation for Sentiment Classification