QS-Attn: Query-Selected Attention for Contrastive Learning in I2I Translation

03/16/2022
by   Xueqi Hu, et al.
0

Unpaired image-to-image (I2I) translation often requires to maximize the mutual information between the source and the translated images across different domains, which is critical for the generator to keep the source content and prevent it from unnecessary modifications. The self-supervised contrastive learning has already been successfully applied in the I2I. By constraining features from the same location to be closer than those from different ones, it implicitly ensures the result to take content from the source. However, previous work uses the features from random locations to impose the constraint, which may not be appropriate since some locations contain less information of source domain. Moreover, the feature itself does not reflect the relation with others. This paper deals with these problems by intentionally selecting significant anchor points for contrastive learning. We design a query-selected attention (QS-Attn) module, which compares feature distances in the source domain, giving an attention matrix with a probability distribution in each row. Then we select queries according to their measurement of significance, computed from the distribution. The selected ones are regarded as anchors for contrastive loss. At the same time, the reduced attention matrix is employed to route features in both domains, so that source relations maintain in the synthesis. We validate our proposed method in three different I2I datasets, showing that it increases the image quality without adding learnable parameters.

READ FULL TEXT

page 2

page 4

page 6

page 7

page 12

page 13

page 14

page 15

research
02/23/2023

Attention Mechanism for Contrastive Learning in GAN-based Image-to-Image Translation

Using real road testing to optimize autonomous driving algorithms is tim...
research
02/22/2023

ACE: Zero-Shot Image to Image Translation via Pretrained Auto-Contrastive-Encoder

Image-to-image translation is a fundamental task in computer vision. It ...
research
04/24/2023

Multi-crop Contrastive Learning for Unsupervised Image-to-Image Translation

Recently, image-to-image translation methods based on contrastive learni...
research
03/03/2023

Generalized Semantic Segmentation by Self-Supervised Source Domain Projection and Multi-Level Contrastive Learning

Deep networks trained on the source domain show degraded performance whe...
research
04/22/2023

Spectral normalized dual contrastive regularization for image-to-image translation

Existing image-to-image(I2I) translation methods achieve state-of-the-ar...

Please sign up or login with your details

Forgot password? Click here to reset