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

图像修复中自注意力与卷积的动态关联学习

Dynamic Association Learning of Self-Attention and Convolution in Image Restoration

Harbin Institute of Technology(哈尔滨工业大学);Wuhan University(武汉大学);Hubei University(湖北大学);Hangzhou Lingban Technology Ltd.(杭州灵伴科技有限公司)

Kui Jiang, Xuemei Jia, Wenxin Huang, Wenbin Wang, Zheng Wang, Junjun Jiang

AI总结:

针对卷积神经网络感受野有限、权重静态的问题,提出自注意力与卷积的动态关联学习方法,通过多输入注意力模块关联雨纹去除与背景恢复,结合残差Transformer与编解码分支实现高质量图像去雨。

摘要:

卷积神经网络(CNNs)与自注意力(Self attention)在多媒体应用的图像修复任务中,针对自注意力与卷积的动态关联学习已取得巨大成功。然而CNNs至少存在两点缺陷:1)感受野有限;2)推理阶段滑动窗口权重为静态,无法应对内容多样性。针对CNNs与自注意力的优缺点,本文提出一种关联学习方法,以扬长避短,实现高质量、高效率的图像修复。我们认为雨的分布反映了退化的位置和程度,因此除了雨分布预测之外,还提出以关联学习的方式,利用预测得到的退化先验细化背景纹理。最终,我们通过关联雨纹去除与背景恢复实现图像去雨,针对两个子任务分别设计了图像去雨网络与背景恢复网络。关联学习的核心部分是一种新型多输入注意力模块(MAM),它生成退化先验,并根据预测的雨分布生成退化掩膜。得益于自注意力(SA)的全局相关性计算,MAM可借助退化掩膜从带雨输入中提取有价值的互补分量,进而辅助实现精准的纹理恢复。同时,自注意力倾向于按照自注意力重要性聚合特征图,而卷积则使特征图多样化以聚焦于局部纹理。混合融合网络包含一个残差Transformer分支与一个编解码分支:前者以少量可学习token为输入,堆叠多头注意力与前馈网络来编码图像的全局特征;后者则利用多尺度编解码结构来表征上下文知识。

英文摘要:

CNNs and Self attention have achieved great success in multimedia applications for dynamic association learning of self-attention and convolution in image restoration. However, CNNs have at least two shortcomings: 1) limited receptive field; 2) static weight of sliding window at inference, unable to cope with the content diversity.In view of the advantages and disadvantages of CNNs and Self attention, this paper proposes an association learning method to utilize the advantages and suppress their shortcomings, so as to achieve high-quality and efficient inpainting. We regard rain distribution reflects the degradation location and degree, in addition to the rain distribution prediction. Thus, we propose to refine background textures with the predicted degradation prior in an association learning manner. As a result, we accomplish image deraining by associating rain streak removal and background recovery, where an image deraining network and a background recovery network are designed for two subtasks. The key part of association learning is a novel multi-input attention module. It generates the degradation prior and produces the degradation mask according to the predicted rainy distribution. Benefited from the global correlation calculation of SA, MAM can extract the informative complementary components from the rainy input with the degradation mask, and then help accurate texture restoration. Meanwhile, SA tends to aggregate feature maps with self-attention importance, but convolution diversifies them to focus on the local textures. A hybrid fusion network involves one residual Transformer branch and one encoder-decoder branch. The former takes a few learnable tokens as input and stacks multi-head attention and feed-forward networks to encode global features of the image. The latter, conversely, leverages the multi-scale encoder-decoder to represent contexture knowledge.

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

↑