NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Domain-Neutral Feature Spaces for Unpaired Image Translation

Unpaired image translation means learning to turn photos from one collection into the style of another, such as horses into zebras or summer scenes into winter ones, without any matched before-and-after examples. Without pairs, the main difficulty is making the output keep the input's content. Pose, layout and object boundaries must survive while texture and appearance change. A common recipe is to compare small image patches of input and output in some feature space and require corresponding patches to stay close. Increasingly, that space comes from a frozen pre-trained network such as VGG-19, DINO or CLIP. A frozen network is one whose weights are kept fixed after pre-training.

The inputs and outputs live in different visual domains, so a frozen network's features for a horse patch and the matching zebra patch differ for two reasons: the content changed, and the domain changed. A content loss computed with plain dot products cannot tell these apart. It then penalizes the generator for the very style change it is supposed to make, or it saturates and gives weak gradients. We propose to measure, from unpaired samples alone, the directions in a frozen feature space that separate the two domains. We remove those directions and whiten the remaining feature dimensions (rescale them so they are uncorrelated with equal variance) before applying a patch-level content loss. We also test whether a simple statistic of the feature space predicts when a frozen backbone helps translation and when it hurts.

Core Claim

Frozen pre-trained features are a good content-preservation signal for unpaired translation only to the extent that, within them, patch identity varies more than domain identity. When a linear projection estimated in closed form from unlabeled samples of both domains removes the domain-separating subspace, frozen features become a better content signal than either the raw frozen features or the encoder that CUT learns from scratch. The ratio of within-image patch variance to between-domain variance, measured before training, should predict which backbone and layer works best.

The claim has two parts, and either can fail independently. The method could work while the predictive statistic does not. Or the statistic could predict well, but plain whitening could capture all the gain.

Grounding in Prior Work

The motivating evidence comes from embedding-quality work outside vision. The "Law'' of the Unconscious Contrastive Learner proves that dot-product alignment between unpaired modalities works only when the representations are spread uniformly on the sphere. On AudioSet, a geometry-aware LogSumExp estimate lifts zero-shot Recall@10 from 14% to 62% over the naive dot product. That paper studies retrieval, not generation; we carry its argument to the cross-domain patch comparisons inside a translation loss. AnglE-optimized Text Embeddings shows that cosine objectives lose their gradient near similarity ±1, which motivates our check of gradient magnitude on near-duplicate patches. Specializing Word Embeddings by Information Bottleneck shows that pre-trained features carry much signal that is irrelevant to the task. It also shows that compression can only filter that signal, never add what is missing. This constrains us: projection cannot rescue a backbone that never encoded the needed structure. We test that limit directly on retinal images.

The method we build on is CUT. Contrastive Learning for Unpaired Image-to-Image Translation replaces cycle consistency with a patchwise InfoNCE loss, called PatchNCE. A patch in the output must match the input patch at the same location rather than other input patches. CUT computes this loss on the generator's own encoder, trained jointly with the generator. Exploring Negatives in Contrastive Learning (PUT) shows that keeping only a few ranked hard negatives (other-location patches the model confuses with the true match) beats CUT's 255 unranked ones. Neither paper uses a pre-trained feature space, and neither asks how the geometry of that space shapes the loss.

The closest existing work uses frozen backbones as fixed metrics, with no correction. Image Manipulation with Perceptual Discriminators builds the discriminator on a frozen VGG-19 trunk. Context-Aware Optimal Transport for Retinal Fundus Enhancement computes transport costs in ImageNet VGG-19 features. Patch Your Matcher trains a translator against a frozen keypoint matcher. SG-GAN uses frozen face parsing and identity networks. All four treat the frozen space as ground truth. We instead estimate and remove the part of that space that encodes the domain gap.

Research Program

Let $f(x)$ be the frozen backbone's feature vector for a patch of image $x$. From a few thousand unpaired images of each domain we estimate two quantities. The first is the pooled within-domain patch covariance $\Sigma_w$. The second is the between-domain scatter $S_b$, computed from the domain means $\mu_A$ and $\mu_B$, optionally per spatial scale. The domain subspace $U$ consists of the top-$k$ solutions of the generalized eigenproblem $S_b u = \lambda \Sigma_w u$. These are the directions along which the two domains differ most relative to ordinary patch-to-patch variation; in effect this is Fisher's linear discriminant.

The content features used in the loss are

$$ g(x) = (I - U U^\top)\,\Sigma_w^{-1/2}\big(f(x) - \bar\mu\big), $$

where $\bar\mu$ is the mean over both domains and $U$ is orthonormalized in the whitened coordinates. PatchNCE is then applied to $g$, with a small learned projection head on top as in CUT, and the generator and discriminator are trained as in CUT.

The diagnostic statistic is $\rho = \operatorname{tr}(\Sigma_w)/\operatorname{tr}(S_b)$, computed per backbone and layer before any translation training. The prediction is that a higher $\rho$ in the raw features, or a larger gain in $\rho$ after projection, goes with better structure preservation.

We will analyze four things. The first is how $k$ trades off against quality. Too large a $k$ should begin removing shape information that happens to correlate with domain, which is the expected failure on cat-to-dog faces. The second is gradient magnitude on near-identical positive pairs, before and after whitening, to test the saturation account. The third is whether the best hard-negative count in PUT shifts with feature uniformity, since PUT left open what sets that threshold. The fourth is whether the projection fails, as the information-bottleneck result predicts, on retinal images, where ImageNet features may never have encoded fine vessels.

Baselines

The naive reference point is CUT exactly as published, with its learned encoder and no pre-trained features. It reports FID 45.5 on Horse→Zebra and 24.7 mAP on Cityscapes (CUT). FID (Fréchet Inception Distance) measures how far generated images are from real target images in an Inception network's feature space; lower is better. The Cityscapes mAP scores how well a segmentation network recovers the input layout from the translated image. CycleGAN, at FID 77.2 and 20.4 mAP, serves as the no-pre-training floor.

The strongest existing methods are PUT-3, with FID 33.82 on Horse→Zebra and 24.86 mAP on Cityscapes (PUT), and UNSB, with FID 35.7 on Horse→Zebra and 73.9 on Summer→Winter (UNSB). UNSB is a multi-step model that moves an image gradually from one domain to the other. They are the strongest competitors because they currently lead on the exact benchmarks and content-preservation question we target. Our method is a change to the content loss, so we add it on top of PUT's ranked-negative loss as well as on top of CUT. Beating PUT-3 means a lower Horse→Zebra FID and a higher Cityscapes mAP, both under our own reruns.

On retinal enhancement, the strongest frozen-feature competitor is context-aware optimal transport in VGG-19 space. It reports PSNR 24.79 on EyeQ, and PSNR 29.47 with vessel-segmentation AUC 0.921 on DRIVE (Context-Aware OT). PSNR measures pixel-level fidelity to a reference image; higher is better.

Fairness requires reruns, not copied numbers. We will rerun all baselines with the same generator architecture, resolution, training iterations and data splits. Each method gets the same budget of hyperparameter trials, and FID is computed with a single shared implementation. Published numbers are used only to check that our reruns reproduce them.

The ablations isolate the key ingredient. The first applies raw frozen features plus the learned head, with no whitening and no projection. The second applies whitening only. The third removes a random $k$-dimensional subspace of matched size. The fourth replaces the Fisher subspace with the top PCA directions, which remove high-variance directions regardless of whether they separate the domains. Our method must beat whitening-only and random removal for the domain-subspace claim to stand.

Why not just…?

Why not just plug DINO or CLIP features into PatchNCE and let the projection head adapt? This is the most direct threat, and it is our first ablation. A learned head can in principle discover the domain-invariant directions itself. However, it is trained with the same contrastive loss that the domain gap corrupts, and nothing pushes it specifically toward invariance. If the raw frozen features with a head match our projected version across all backbones, the domain-subspace claim is false. The note would then report a negative result about where frozen-feature gains come from.

Why not just whiten the features? Whitening addresses the uniformity condition from Che and Eysenbach and costs nothing. If whitening alone captures most of the gain, the right conclusion is "uniformity matters, the domain gap does not." The whitening-only ablation decides this. We expect it to help most on anisotropic CLIP features and least where domain shift dominates, as in Summer→Winter.

Why not just fine-tune the backbone jointly with the generator? A trainable feature space under a contrastive content loss can make the loss easy to satisfy without the generator preserving content. CUT's from-scratch encoder is essentially this option already, and PUT documents its instability through what it calls mutual-information explosion. We include a jointly fine-tuned DINO variant under the same budget. Our method's advantage is that the projection is fixed and fitted in closed form before training.

Why not use a variational information bottleneck to compress the guidance features? The bottleneck result suggests that learned nonlinear compression beats simple reduction. It needs a task signal, though, and in unpaired translation the only available signal is the loss we are trying to repair. If a variational bottleneck head clearly beats our linear projection, that would show that the useful structure is nonlinear. We run it as a secondary comparison.

Proposed Experiments

We test VGG-19, DINO and CLIP backbones at two layer depths on Horse→Zebra, Summer→Winter, Cityscapes labels→photo, AFHQ cat→dog, and EyeQ with DRIVE evaluation. Translation quality is measured by FID. Structure preservation is measured by Cityscapes mAP and DRIVE vessel AUC, which depend less on any single feature network than FID does. To avoid circular evaluation, the backbone used in the loss is never the network that computes the metric.

There are three decisive checks. The first is that the domain-projected loss beats whitening-only and random-subspace removal on at least three of the four natural-image tasks, at matched budget. The second is that $\rho$, measured before training, rank-correlates with final Cityscapes mAP across the six backbone-layer settings. If it does not, the diagnostic claim is dropped. The third is that on DRIVE, projected ImageNet features do not exceed context-aware optimal transport's AUC of 0.921, which would confirm that removing directions cannot add missing anatomy. A clear win there instead would mean the earlier bottleneck limit is less binding for vision than expected.