A network trained only on rendered images, such as game-engine frames or CAD renderings, loses most of its accuracy on real photographs. On the VisDA benchmark, an AlexNet that reaches 99% on synthetic images drops to 28% on real COCO images (VisDA). Most fixes do one of two things. They push real features toward synthetic features in one shared coordinate system, or they perturb synthetic pixels until the network stops relying on rendering quirks. This proposal tests a third option. Keep the encoder fixed. Describe every image only by how similar it is to a small set of reference images, called anchors, drawn from the image's own domain. Synthetic images are measured against synthetic anchors and real images against real anchors, with the two anchor sets placed in semantic correspondence. A classifier trained on these similarity profiles from synthetic data is then applied unchanged to real profiles.
The idea comes from work on relative representations: replacing a feature vector with its cosine similarities to anchors makes it unchanged by any rotation or uniform rescaling of the feature space (Relative representations). That property has only been used to connect different models trained on the same clean data. Our hypothesis applies it to one model seeing two data sources. Inside a single encoder, the synthetic-to-real shift may act mostly as a domain-wide geometric distortion, a shift plus stretch plus rotation of the whole cloud of features, while the relations among samples inside each domain survive. If that is true, own-domain anchors cancel much of the gap without adversarial alignment and without large amounts of unlabeled real data. If it is false, a cheap diagnostic will show this before any method is built.
Core Claim
Our claim is conditional and testable. For a frozen or synthetic-trained encoder, the matrix of similarities among class-matched real anchors resembles the matrix among synthetic anchors far more closely than the absolute positions of real and synthetic features resemble each other. When this relational agreement holds, a classifier head that reads anchor-similarity profiles transfers from synthetic to real. It should beat the same head reading absolute features, and it should beat a matched variant in which real images are compared against synthetic anchors.
That last comparison is the crux. With one encoder and cross-domain anchors, the relative representation is just a fixed projection of absolute features, and its invariance buys nothing. The benefit can only come from each domain having its own reference frame.
Our design differs from the closest work in three ways. Category Anchor-Guided UDA computes class centroids in the synthetic feature space and labels real pixels by their absolute Euclidean distance to those centroids. It reaches 50.2 mIoU on GTA5→Cityscapes, but it needs an adversarial warm-up to bring real features near the synthetic ones first. Because we never compare real features to synthetic anchors, that warm-up should be unnecessary. Language as an Anchor (LAVA) matches class-prototype similarity matrices to a frozen text encoder for incremental learning across domains. We use no language model, we work at the level of individual images, and we target direct transfer from synthetic to real. Bootstrapping Parallel Anchors supplies our tool for finding anchor correspondences without labels, but it has only been tested on word vectors and on stitching different architectures trained on clean CIFAR-10.
Research Program
The method has three parts.
Anchor sets. We choose anchors in two levels. The coarse level has $M$ synthetic anchors per class, picked by k-means within each class so that different visual modes, such as viewpoints of "car", are covered. The fine level pairs each synthetic anchor with a real anchor of the same class. We make the pairing by entropy-regularized optimal transport (the Sinkhorn algorithm, which finds a soft matching between two point sets) inside each class. The matching compares each anchor's coarse similarity profile, meaning its average similarity to every class's anchors within its own domain. This follows the anchor optimization procedure of Bootstrapping Parallel Anchors, with class identity as the seed.
Two regimes for real class identity. In the few-shot calibration regime, class identity comes from $k$ labeled real images per class, with $k$ from 1 to 10 and drawn from a split disjoint from evaluation. In the unsupervised regime, it comes from the source model's predictions on unlabeled real images, filtered by agreement between those predictions and the real image's nearest real-anchor neighbors. In that regime the anchors are refined iteratively, as in AO.
Representation. An image with feature $z$ in domain $d$ is represented as
$$r_d(z) = \big[\, \mathrm{sim}(z - \mu_d,\ a^d_1 - \mu_d), \dots, \mathrm{sim}(z - \mu_d,\ a^d_{|A|} - \mu_d) \,\big]$$
Here $a^d_i$ is anchor $i$ in domain $d$, $\mu_d$ is the mean of domain $d$'s anchors, and $\mathrm{sim}$ is cosine similarity. Centering on the domain's own anchor mean removes the domain-wide shift. Cosine similarity removes rotation and uniform scale.
Differences between CNN and ViT backbones already involve distortions beyond rotation. Cosine similarity alone reaches 0.50 stitching accuracy on ImageNet-1k, while a product of cosine, $L_1$, $L_2$ and $L_\infty$ subspaces reaches 0.67 (From Bricks to Bridges). We therefore also test that multi-metric product, to absorb anisotropic stretching.
Classifier head. The head is trained on synthetic data only. At each batch it sees a random subset of anchors and random slot permutations within each class, so it cannot memorize particular anchors. This matters because real and synthetic anchors are matched only by class and mode, not by object instance.
Diagnostic. Before any accuracy results, we measure relational agreement for several encoders: ImageNet-pretrained ResNet-50 and ViT-B, each frozen and each after synthetic fine-tuning. The measure is centered kernel alignment (CKA, a standard score for how similar two similarity structures are) between the synthetic and real anchor-by-anchor similarity matrices, computed after class matching. We compare it against the agreement of raw features. We also test whether PASTA raises this agreement. PASTA is a Fourier augmentation that jitters high-frequency amplitudes and lifts GTAV→Cityscapes from 28.95 to 44.12 mIoU.
Baselines
Source-only. The naive reference is the same encoder and a linear head trained on synthetic absolute features, evaluated directly on real images. Every other method is compared to this under an identical backbone, identical synthetic training data, and the same number of training epochs.
Few-shot adaptation with the same labeled real images. This is the most dangerous competitor in the calibration regime. We train a linear probe on the $k$ labeled real anchors alone, and we also fine-tune the synthetic-trained head on them. Both use the same hyperparameter search budget as our method, about 20 configurations each, selected on a held-out real validation split. We beat this baseline only if we are ahead at matched $k$, and especially at $k \le 5$, where anchors should add the most value.
Closed-form alignment using the same anchors. Here we apply per-domain whitening, which rescales each domain to zero mean and identity covariance (CORAL-style), and orthogonal Procrustes rotation fitted on the class-matched anchors, as in Affine Transport. That paper reduced a physical hockey-puck prediction error from 0.73 to 0.08. This baseline asks whether the relative representation adds anything beyond a global linear correction. We must beat it by a margin larger than seed variance, over 3 seeds.
Unsupervised regime. Distribution matching with maximum mean discrepancy (DAN, which penalizes the difference between the average feature statistics of the two domains) and confidence-thresholded self-training are rerun on our backbone. For scale, VisDA reports DAN at 51.62% and the challenge winner at 92.8% on VisDA-C. Those numbers come from different backbones and heavy ensembling, so they are context rather than the target. For segmentation, CAG-UDA's 50.2 mIoU on GTA5→Cityscapes is the anchor-based number to approach. No reported PASTA result on VisDA-C was found on Lacuna, so we rerun PASTA ourselves.
Key ablation. The same relative head is evaluated on real images using synthetic anchors instead of real ones. This isolates the claim that own-domain reference frames are the working ingredient.
Why not just…?
Why not just fine-tune on the few labeled real images? This is a real threat. At $k=10$ per class, a linear probe on a strong pretrained encoder may already recover most of the gap. Our argument is that the relative head carries 150k synthetic examples' worth of decision structure and uses the real images only as a coordinate frame, which should dominate at very small $k$. The accuracy-versus-$k$ curve settles this. If the curves cross below $k=3$, the method's value is confined to extreme scarcity, and we will report exactly that.
Why not just whiten each domain and rotate? If the shift is truly a global linear distortion, per-domain whitening plus Procrustes should equal our method. In that case the contribution shrinks to "normalize per domain," which is still a useful finding. The relative representation should win only where the distortion differs across regions of feature space, which Affine Transport itself flags as its weakness in high dimensions. The head-to-head comparison, broken down by class, tests this.
Why not just use stronger augmentation like PASTA? PASTA needs no real data and gives large gains. However, the PASTA authors themselves characterize it as addressing texture and lighting, not geometry or viewpoint. We treat it as complementary: we run our method with and without PASTA, and we check whether PASTA raises relational agreement. If PASTA alone matches PASTA plus own-domain anchors, the anchors are redundant.
Proposed Experiments
The primary benchmark is VisDA-C: 12 classes, about 152k synthetic renderings, and real targets from COCO (about 55k) and YouTube Bounding Boxes (about 72k). We report per-class and mean accuracy. As a secondary test, Sim10K→Cityscapes car detection applies anchors to region features, reporting mAP; PASTA reports a +16.9 mAP gain there. GTA5→Cityscapes segmentation with pixel-level anchors is a stretch goal.
The first decisive check is the diagnostic. If the CKA between real and synthetic anchor-similarity matrices is not clearly higher than the agreement of raw features, the hypothesis fails and we stop. If agreement is high, we test whether agreement measured per encoder predicts each encoder's accuracy gain over source-only.
The second check is the own-domain versus cross-domain anchor ablation. A null result there falsifies the mechanism, even if overall accuracy improves for some other reason.
The third check compares against whitening plus Procrustes and against few-shot fine-tuning. This determines whether the method is more than normalization or plain supervision.
Finally, in the unsupervised regime, we measure pseudo-label precision from anchor-neighbor agreement against classifier confidence, early in training. This checks whether own-domain anchors avoid the confirmation bias that CAG-UDA's warm-up was designed to handle.
References
- VisDA: The Visual Domain Adaptation Challenge
- Relative representations enable zero-shot latent space communication
- Category Anchor-Guided Unsupervised Domain Adaptation for Semantic Segmentation
- Language as an Anchor: Preserving Relative Visual Geometry for Domain Incremental Learning
- Bootstrapping Parallel Anchors for Relative Representations
- From Bricks to Bridges: Product of Invariances to Enhance Latent Space Communication
- Pasta: Proportional Amplitude Spectrum Training Augmentation for Syn-to-Real Domain Generalization
- Affine Transport for Sim-to-Real Domain Adaptation