Lune

CVPR2022Top-tier venue

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

Xueqi Hu, Xinyue Zhou, Qiusheng Huang, Zhengyi Shi, Li Sun, Qingli Li

Abstract

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 with-out adding learnable parameters. Codes are available at https://github.com/sapphire497/query-selected-attention.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

9 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Unsupervised Learning of Visual Features by Contrasting Cluster Assignments cites A Simple Framework for Contrastive Learning of Visual Representations
  • Rethinking the Paradigm of Content Constraints in Unpaired Image-to-Image Translation cites A Simple Framework for Contrastive Learning of Visual Representations
  • Rethinking the Paradigm of Content Constraints in Unpaired Image-to-Image Translation cites StarGAN v2: Diverse Image Synthesis for Multiple Domains
  • Rethinking the Paradigm of Content Constraints in Unpaired Image-to-Image Translation cites Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning
  • CHIMLE: Conditional Hierarchical IMLE for Multimodal Conditional Image Synthesis cites StarGAN v2: Diverse Image Synthesis for Multiple Domains
  • Bootstrap Your Own Latent - A New Approach to Self-Supervised Learning cites A Simple Framework for Contrastive Learning of Visual Representations
  • Unsupervised Image-to-Image Translation with Density Changing Regularization cites StarGAN v2: Diverse Image Synthesis for Multiple Domains
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers9

  1. Unsupervised Image-to-Image Translation with Density Changing RegularizationShaoan Xie, Qirong Ho, Kun ZhangNeurIPS 2022 · 38 citations
  2. Patch-Wise Graph Contrastive Learning for Image TranslationChanyong Jung, Gihyun Kwon, Jong Chul YeAAAI 2024 · 22 citations
  3. Rethinking the Paradigm of Content Constraints in Unpaired Image-to-Image TranslationXiuding Cai, Yaoyao Zhu, Dong Miao, Linjie Fu et al.AAAI 2024 · 16 citations
  4. CHIMLE: Conditional Hierarchical IMLE for Multimodal Conditional Image SynthesisShichong Peng, Seyed Alireza Moazenipourasil, Ke LiNeurIPS 2022 · 4 citations
  5. Multi-Region Text-Driven Manipulation of Diffusion ImageryYiming Li, Peng Zhou, Jun Sun, Yi XuAAAI 2024 · 4 citations

Builds on10

  1. A Simple Framework for Contrastive Learning of Visual RepresentationsTing Chen, Simon Kornblith, Mohammad Norouzi, Geoffrey E. HintonICML 2020 · 24,064 citations
  2. Bootstrap Your Own Latent - A New Approach to Self-Supervised LearningJean-Bastien Grill, Florian Strub, Florent Altché, Corentin Tallec et al.NeurIPS 2020 · 9,171 citations
  3. Informer: Beyond Efficient Transformer for Long Sequence Time-Series ForecastingHaoyi Zhou, Shanghang Zhang, Jieqi Peng, Shuai Zhang et al.AAAI 2021 · 7,289 citations
  4. Unsupervised Learning of Visual Features by Contrasting Cluster AssignmentsMathilde Caron, Ishan Misra, Julien Mairal, Priya Goyal et al.NeurIPS 2020 · 5,249 citations
  5. StarGAN v2: Diverse Image Synthesis for Multiple DomainsYunjey Choi, Youngjung Uh, Jaejun Yoo, Jung-Woo HaCVPR 2020

Related papers

  1. Edge Guided GANs with Contrastive Learning for Semantic Image SynthesisHao Tang, Xiaojuan Qi, Guolei Sun, Dan Xu et al.ICLR 2023 · 2 citations
  2. The Spatially-Correlative Loss for Various Image Translation TasksChuanxia Zheng, Tat-Jen Cham, Jianfei CaiCVPR 2021
  3. Marginal Contrastive Correspondence for Guided Image GenerationFangneng Zhan, Yingchen Yu, Rongliang Wu, Jiahui Zhang et al.CVPR 2022 · 38 citations
  4. Exploring Negatives in Contrastive Learning for Unpaired Image-to-Image TranslationYupei Lin, Sen Zhang, Tianshui Chen, Yongyi Lu et al.ACM MM 2022 · 19 citations
  5. Instance-wise Hard Negative Example Generation for Contrastive Learning in Unpaired Image-to-Image TranslationWeilun Wang, Wengang Zhou, Jianmin Bao, Dong Chen et al.ICCV 2021 · 100 citations
Dusk over the sea between two cliffs drawn in fine vertical lines