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

Mix and Match Networks: Encoder-Decoder Alignment for Zero-Pair Image Translation

Yaxing Wang, Joost van de Weijer, Luis Herranz

Abstract

We address the problem of image translation between domains or modalities for which no direct paired data is available (i.e. zero-pair translation). We propose mix and match networks, based on multiple encoders and decoders aligned in such a way that other encoder-decoder pairs can be composed at test time to perform unseen image translation tasks between domains or modalities for which explicit paired samples were not seen during training. We study the impact of autoencoders, side information and losses in improving the alignment and transferability of trained pairwise translation models to unseen translations. We show our approach is scalable and can perform colorization and style transfer between unseen combinations of domains. We evaluate our system in a challenging cross-modal setting where semantic segmentation is estimated from depth images, without explicit access to any depth-semantic segmentation training pairs. Our model outperforms baselines based on pix2pix and CycleGAN models.

Introduction

Standard image-to-image translation models, such as pix2pix, typically require paired datasets where every image in Domain A has a corresponding match in Domain B. However, in many real-world scenarios, such direct pairings are unavailable. For instance, one might possess (RGB, Depth) pairs and (RGB, Semantic Segmentation) pairs, but lack direct (Depth, Segmentation) data. This is the "zero-pair" translation problem.

Existing approaches often struggle with this gap. Unpaired methods like CycleGAN frequently fail when visual structures differ significantly across modalities. Cascaded methods, which translate through an intermediate domain (e.g., Depth $\to$ RGB $\to$ Segmentation), suffer from compounding errors and the loss of critical structural information in the intermediate step. Mix and Match Networks (M&MNet) resolve this by aligning modular encoders and decoders through a shared latent space.

Methods

Overview of the M&MNet training and testing framework. (a) Training uses an anchor domain (blue) to align multiple modalities. (b) At test time, encoders and decoders are mixed to perform zero-pair translation. (c) Comparison with a cascaded 2xpix2pix baseline.

Encoder-Decoder Alignment

The M&MNet architecture consists of independent encoders ($f$) and decoders ($g$) for each modality. During training, these components are forced to map into a shared latent space. If the model is presented with an RGB-Depth pair, it trains the RGB encoder and Depth decoder. To ensure robustness and consistency, the model also trains autoencoders (e.g., RGB $\to$ RGB) and applies an $L_2$ loss to ensure that latent vectors from corresponding images in different domains are nearly identical.

Modality-Independent Side Information

A key innovation in M&MNet is the use of pooling indices as side information. While standard skip connections pass high-resolution details from encoder to decoder, they are often too domain-specific and hinder zero-pair transfer. Pooling indices (derived from the SegNet architecture) capture structural information—specifically where edges and boundaries are located—without being tied to the textures or colors of a specific domain. This makes them ideal modality-independent guides for the decoder.

Scalability

The modular nature of M&MNet allows it to scale linearly ($N$) with the number of domains. Adding a new modality only requires training one new encoder/decoder pair to align with the existing shared latent space, whereas traditional pairwise methods would require $N^2$ models to cover all possible translations.

Key Results

The authors evaluated M&MNet on the SceneNetRGBD dataset, focusing on the challenging Depth $\to$ Semantic Segmentation zero-pair task. In this setup, the model never saw Depth and Segmentation images together during training, using RGB as the "anchor" domain.

Method Mean IoU (mIoU)
CycleGAN (Unpaired) 6.34%
2×pix2pix (Cascaded) 25.4%
M&MNet (Ours) 55.4%

The results demonstrate that direct latent alignment is significantly more effective than passing through an intermediate image representation. M&MNet also showed strong performance in reverse (Segmentation $\to$ Depth) and in multimodal settings where both RGB and Depth were used to predict segmentation.

Conclusion

Mix and Match Networks provide a scalable and effective framework for zero-pair image translation. By leveraging a shared latent space and modality-independent side information like pooling indices, the model successfully bridges domains that were never paired during training. While the system relies on a common "anchor" domain to facilitate alignment, its modularity makes it highly practical for complex multi-modal sensor environments.

Summary updated

BibTeX
@inproceedings{wang2018mix,
  author = {Yaxing Wang and Joost van de Weijer and Luis Herranz},
  title = {{Mix and Match Networks: Encoder-Decoder Alignment for Zero-Pair Image Translation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2018},
  url = {https://openreview.net/forum?id=ryNdspbdZr},
}
Figure