Contrastive Learning for Unpaired Image-to-Image Translation
Authors:
Preprint
Abstract
In image-to-image translation, each patch in the output should reflect the content of the corresponding patch in the input, independent of domain. We propose a straightforward method for doing so -- maximizing mutual information between the two, using a framework based on contrastive learning. The method encourages two elements (corresponding patches) to map to a similar point in a learned feature space, relative to other elements (other patches) in the dataset, referred to as negatives. We explore several critical design choices for making contrastive learning effective in the image synthesis setting. Notably, we use a multilayer, patch-based approach, rather than operate on entire images. Furthermore, we draw negatives from within the input image itself, rather than from the rest of the dataset. We demonstrate that our framework enables one-sided translation in the unpaired image-to-image translation setting, while improving quality and reducing training time. In addition, our method can even be extended to the training setting where each "domain" is only a single image.Keywords
All Related Versions
This publication has 6 references indexed in Scilit:
- Contrastive Multiview Coding2020
- DeepLab: Semantic Image Segmentation with Deep Convolutional Nets, Atrous Convolution, and Fully Connected CRFsIEEE Transactions on Pattern Analysis and Machine Intelligence, 2017
- Discriminative Unsupervised Feature Learning with Exemplar Convolutional Neural NetworksIEEE Transactions on Pattern Analysis and Machine Intelligence, 2015
- Data-driven visual similarity for cross-domain image matchingACM Transactions on Graphics, 2011
- Reducing the Dimensionality of Data with Neural NetworksScience, 2006
- Image quality assessment: from error visibility to structural similarityIEEE Transactions on Image Processing, 2004