Abstract
Domain translation is the task of finding correspondence between two domains. Several deep neural network (DNN) models, e.g., CycleGAN and cross-lingual language models, have shown remarkable successes on this task under the unsupervised setting—the mappings between the domains are learned from two independent sets of training data in both domains (without paired samples). However, those methods typically do not perform well on a significant proportion of test samples. In this article, we hypothesize that many of such unsuccessful samples lie at the fringe—relatively low-density areas—of data distribution, where the DNN was not trained very well, and propose to perform the Langevin dynamics to bring such fringe samples toward high-density areas. We demonstrate qualitatively and quantitatively that our strategy, called Langevin cooling (L-Cool), enhances state-of-the-art methods in image translation and language translation tasks.
Introduction
Unsupervised Domain Translation (DT) aims to find correspondences between two domains (e.g., turning a photo of a horse into a zebra, or translating English to French) using independent, unpaired datasets. While models like CycleGAN and XLM have achieved impressive results, they frequently produce poor translations for a significant portion of test data.
The authors hypothesize that these failures occur because many test samples lie in the "fringe"—low-density areas of the data distribution. Because deep neural networks (DNNs) are primarily trained on high-density regions, they generalize poorly to these outliers. The challenge is to make these "weird" test samples look more "typical" before passing them through the translation model, without losing their essential semantic content.
Methods: Langevin Cooling (L-Cool)
The core idea of L-Cool is to perform a small, iterative move of the input sample toward the high-density manifold of its source domain before translation. This acts as a "plug-in" pre-processing step for existing models.
- Gradient Estimation: To move toward high density, the model needs to know the gradient of the data's log-probability ($\nabla_x \log p(x)$). The authors use a Denoising Autoencoder (DAE) for this. A key theoretical insight is that a DAE trained with small noise effectively learns to estimate this gradient.
- Langevin Dynamics: The method employs the Metropolis-Adjusted Langevin Algorithm (MALA) to update the test sample. By carefully controlling the step size and noise variance, they effectively "cool" the distribution, concentrating the probability mass around the most typical examples.
Key Insights
- The Fringe Hypothesis: The paper provides empirical evidence that translation failure is strongly correlated with "fringeness"—samples further from the learned manifold are much more likely to result in poor translations.
- Cooling vs. Smoothing: Unlike simple smoothing (like median filters), which can move samples anywhere, L-Cool specifically drives samples toward the learned training data distribution.
- Feature Space Cooling for Text: For discrete data like language, applying Langevin dynamics in the raw input space is difficult. The authors found that "cooling" the intermediate feature representations (L-Cool-Feature) within the transformer encoder was significantly more effective than cooling initial word embeddings.
Key Results
L-Cool consistently improved the performance of state-of-the-art base models across both image and language modalities.
Image-to-Image Translation
In qualitative evaluations, L-Cool significantly reduced artifacts and improved target attributes. For example, in the orange2apple task, it removed green artifacts and improved color consistency compared to the CycleGAN baseline.
Quantitatively, on benchmarks like sat2map, pixel-wise accuracy improved across the board. For horse2zebra, the "likeness" to the target domain increased significantly when L-Cool was applied, especially for the most "fringe" samples.
Language Translation
L-Cool-Feature outperformed the baseline XLM model across all four language pairs tested. For example, in English-French (EN-FR) translation, the BLEU score improved from 33.46 to 33.91.
Conclusion and Limitations
While L-Cool provides a robust enhancement for domain translation, it introduces computational overhead; because it is iterative, inference is 10–100x slower than the base model. Additionally, the "temperature" and number of steps must be carefully tuned to avoid over-cooling, which can lead to a loss of specific details from the original input. Future work may explore more advanced gradient estimators, such as Energy-Based Models (EBMs), to further refine the process.
Summary updated