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

Variational Bi-domain Triplet Autoencoder

Rita Kuznetsova, Oleg Yu. BakhteevarXiv 2018

Abstract

This work investigates deep generative models, which allow us to use training data from one domain to build a model for another domain. We propose the Variational Bi-domain Triplet Autoencoder (VBTA) that learns a joint distribution of objects from different domains. We extend the VBTAs objective function by the relative constraints or triplets that sampled from the shared latent space across domains. In other words, we combine the deep generative models with a metric learning ideas in order to improve the final objective with the triplets information. The performance of the VBTA model is demonstrated on different tasks: image-to-image translation, bi-directional image generation and cross-lingual document classification.

Introduction

In modern machine learning, transferring knowledge between domains—such as translating text between languages or styles between images—remains a core challenge. The primary hurdle is establishing a shared latent representation that captures domain-invariant features. While standard Variational Autoencoders (VAEs) and CycleGANs have made strides, they often fail to ensure that semantically similar objects from different domains are aligned closely in the latent space. The Variational Bi-domain Triplet Autoencoder (VBTA) addresses this by integrating the generative power of VAEs with the discriminative constraints of triplet metric learning.

Methodology

The VBTA framework introduces a novel architecture designed to bridge domain gaps through three primary mechanisms:

  1. Bi-domain Architecture: The model utilizes two sets of encoders and decoders that map data from distinct domains into a single, shared latent space ($z$). To ensure the integrity of this mapping, a cycle-consistency constraint is applied: an object translated from Domain A to Domain B and back must resemble its original form.
  2. Triplet Information: By incorporating a triplet loss from metric learning, the model explicitly regularizes the latent space. For any pair of related objects $(x, y)$ from different domains, the model ensures their latent representations are closer to each other than to an unrelated "negative" example ($z_k$).
  3. Unsupervised Negative Sampling: The model dynamically refines the latent space by identifying "hard" negative examples—those that are currently too close to the anchor—and pushing them away, without requiring pre-labeled negative pairs.
The VBTA architecture illustrating the shared latent space and triplet constraints across domains.

Experiments and Results

The researchers evaluated the VBTA across diverse datasets, including MNIST-transpose, CelebA (for gender-based image translation), and RCV1/RCV2 (for cross-lingual document classification).

Quantitative Performance

VBTA demonstrated superior performance over several competitive baselines:

  • MNIST Translation: In classification tasks using translated images, VBTA achieved 95% accuracy, outperforming DiscoGAN (15%) and $\Delta$-GAN (93.3%).
  • Cross-Lingual Classification: For English-to-German document classification, the model reached 94.3% accuracy, surpassing previous state-of-the-art results (e.g., Su et al. at 91.3%).

Qualitative Analysis

On the CelebA dataset, the model successfully performed bi-directional image translation (male $\leftrightarrow$ female). As shown in the results, the model preserves critical identity attributes—such as hair color, glasses, and facial structure—while accurately applying the target domain's characteristics.

Bi-directional image translation results on the CelebA dataset, showing original, reconstructed, and translated images.

Key Insights and Conclusion

The success of VBTA highlights that metric learning serves as a powerful regularizer for generative models. By forcing different domains into a shared bottleneck and enforcing distance-based constraints, the model learns features that are truly domain-invariant. This allows for effective cross-lingual and cross-domain transfer even with weakly aligned data.

Future work may involve scaling the architecture to multi-domain scenarios (beyond two domains) and further reducing the reliance on weak supervision for initial alignment. Overall, VBTA represents a significant step forward in creating robust, shared representations for complex, multi-domain data.

Summary updated

BibTeX
@misc{kuznetsova2018variational,
  author = {Rita Kuznetsova and Oleg Yu. Bakhteev},
  title = {{Variational Bi-domain Triplet Autoencoder}},
  year = {2018},
  eprint = {1806.08672},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1806.08672},
}
Figure