Skip to main content
QUICK REVIEW

[论文解读] WavePaint: Resource-efficient Token-mixer for Self-supervised Inpainting

Pranav Jeevan, Dharshan Sampath Kumar|arXiv (Cornell University)|Jul 1, 2023
Generative Adversarial Networks and Image SynthesisComputer Science被引用 3
一句话总结

WavePaint 提出了一种基于 WaveMix 架构的资源高效、全卷积神经网络图像修复模型,利用二维离散小波变换(DWT)和深度可分离卷积,实现高效的时空混合与多分辨率特征混合。该模型在 CelebA-HQ 数据集上仅使用不到 500 万个参数,即实现了当前最优的重建质量,优于参数量更大的模型(如 LaMa,2700 万个参数;CoModGAN,1.09 亿个参数),且参数量不足其一半,训练与推理速度显著更快,同时无需对抗性或扩散训练。

ABSTRACT

Image inpainting, which refers to the synthesis of missing regions in an image, can help restore occluded or degraded areas and also serve as a precursor task for self-supervision. The current state-of-the-art models for image inpainting are computationally heavy as they are based on transformer or CNN backbones that are trained in adversarial or diffusion settings. This paper diverges from vision transformers by using a computationally-efficient WaveMix-based fully convolutional architecture -- WavePaint. It uses a 2D-discrete wavelet transform (DWT) for spatial and multi-resolution token-mixing along with convolutional layers. The proposed model outperforms the current state-of-the-art models for image inpainting on reconstruction quality while also using less than half the parameter count and considerably lower training and evaluation times. Our model even outperforms current GAN-based architectures in CelebA-HQ dataset without using an adversarially trainable discriminator. Our work suggests that neural architectures that are modeled after natural image priors require fewer parameters and computations to achieve generalization comparable to transformers.

研究动机与目标

  • 开发一种计算高效的图像修复模型,避免视觉 Transformer 和 GAN 所需的高资源消耗。
  • 探索基于 2D-DWT 的 token 混合机制,作为视觉 Transformer 中自注意力机制的低成本替代方案,用于图像恢复中的全局上下文聚合。
  • 通过架构设计利用自然图像先验(如尺度不变性与多分辨率结构),以减少参数量与计算需求。
  • 在无需对抗性或扩散训练的前提下,实现具有竞争力的图像修复性能,后者通常耗时且数据密集。
  • 证明基于图像先验设计的模型可在参数量更少、推理速度更快的前提下,有效泛化,优于基于 Transformer 或 GAN 的方法。

提出的方法

  • 采用基于 WaveMix 的全卷积神经网络架构,利用二维离散小波变换(DWT)实现无参数、无损的空间下采样与多分辨率特征混合。
  • 在每个 WaveMix 模块后集成深度可分离卷积层,以极低的参数增加进一步增强空间 token 混合能力。
  • 在多个阶段中使用多级 2D-DWT,实现有效感受野的指数级扩展,同时避免计算成本的二次方增长。
  • 采用单阶段端到端训练范式,无需判别器或扩散调度器,仅依赖像素级重建损失。
  • 通过将输入图像掩码显式作为输入条件,将 WaveMix 模块结构适配至图像修复任务。
  • 通过模块化设计(每模块包含 4 个 WaveMix 块)优化模型效率,在参数量与性能之间取得平衡。
Figure 1: A sample of inpainted images (bottom row) generated by WavePaint from masked images (top row) from CelebA-HQ set using wide, medium, and narrow masks, respectively
Figure 1: A sample of inpainted images (bottom row) generated by WavePaint from masked images (top row) from CelebA-HQ set using wide, medium, and narrow masks, respectively

实验结果

研究问题

  • RQ1基于小波的 token 混合架构是否能在远少于视觉 Transformer 或 GAN 的参数量下,实现具有竞争力的图像修复性能?
  • RQ2通过 2D-DWT 引入多分辨率、尺度不变性先验,是否能在无需对抗训练的前提下,提升图像修复的泛化能力与重建质量?
  • RQ3在不增加模型规模的前提下,深度可分离卷积在 DWT 基础架构中能在多大程度上增强特征混合能力?
  • RQ4WaveMix 块的模块化排列如何影响模型大小、推理速度与重建保真度之间的权衡?
  • RQ5轻量化、非对抗性模型是否能在资源消耗更少的前提下,超越如 LaMa 和 CoModGAN 等更大更复杂的模型,在 FID 指标与推理速度上表现更优?

主要发现

  • WavePaint 在 500 万个参数下,于 CelebA-HQ 数据集上在窄、中、宽掩码设置下均优于 LaMa(2700 万个参数)的 FID 分数,证明其在显著更少参数下仍具备更优的生成质量。
  • WavePaint 的训练与推理速度约为 LaMa 的 3 倍,且 GPU 显存占用不足其一半,凸显其效率优势。
  • 移除深度可分离卷积层可使训练与推理吞吐量提升 14%,但 FID 分数恶化 38%,表明其在极低参数成本下对性能具有决定性作用。
  • 每模块使用 4 个 WaveMix 块可实现最佳平衡——在保持高性能(FID ≈ 0.079)的同时,将参数量控制在 400 万个,优于块数更少或更多的配置。
  • WavePaint 在无需对抗训练的前提下,于 CelebA-HQ 上实现了当前最优的重建质量,其 FID 分数与推理速度均优于基于 GAN 的模型 CoModGAN。
  • 多级 2D-DWT 通过实现感受野的指数级增长,显著提升模型性能,且在 CelebA-HQ 与 ImageNet 数据集上,更高层级的 DWT 均带来更优结果。
Figure 2: Inpainted images (second and fourth columns) generated by WavePaint from masked images (first and third columns) from ImageNet validation set
Figure 2: Inpainted images (second and fourth columns) generated by WavePaint from masked images (first and third columns) from ImageNet validation set

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。