arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.08483cs.CV
收藏

QS-Attn:I2I翻译对比学习中的问题选择注意

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

Shanghai Key Laboratory of Multidimensional Information Processing(上海多维度信息处理重点实验室)

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

摘要:

非成对图像到图像(I2 I)翻译通常需要最大化源图像和跨不同域的翻译图像之间的互信息,这对于生成器保持源内容并防止其不必要的修改是至关重要的。自监督对比学习已经成功地应用于I2 I中。通过将来自同一位置的特征约束为比来自不同位置的特征更接近,它隐式地确保结果从源获取内容。然而,以前的工作使用来自随机位置的特征来施加约束,这可能是不合适的,因为某些位置包含较少的源域信息。此外,特征本身并不反映与他人的关系。本文通过有意识地选择显著锚点进行对比学习来解决这些问题。我们设计了一个查询选择注意力(QS-Attn)模块,它比较源域中的特征距离,给出每行具有概率分布的注意力矩阵。然后,我们根据从分布中计算出的重要性度量来选择查询。所选择的被视为对比损失的锚。同时,利用简化注意矩阵对两个域中的特征进行路由,使源关系保持在综合过程中。我们在三个不同的I2 I数据集上验证了我们提出的方法,表明它在不增加可学习参数的情况下提高了图像质量。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑