用改进的注意力机制提升图像修复质量与效率
DiNAT-IR: Exploring Dilated Neighborhood Attention for High-Quality Image Restoration
- 设计稀疏邻域注意力,兼顾全局上下文与局部细节
- 在多个基准上达到先进水平,修复效果优于现有方法
- 适合需要高保真图像恢复的科研与工业应用
Transformer凭借自注意力机制建模长程依赖,已成为图像修复主流。但自注意力计算开销大,限制了其在高分辨率图像上的应用,效率与质量权衡成为研究重点。为解决此问题,Restormer采用通道维自注意力,跨通道而非空间维度计算注意力。虽有效,却可能忽略对高质量修复至关重要的局部伪影。为此,我们探索了受高阶视觉任务启发的扩张邻域注意力(DiNA),通过滑动窗口与混合扩张因子结合,扩大感受野而不增加过多开销。然而初步实验表明,直接将此全局-局部设计应用于经典去模糊任务会阻碍准确还原,主因是局部注意力对全局上下文理解受限。为此,我们引入通道感知模块,补充局部注意力以有效融合全局信息,同时保持像素级精度。提出的DiNAT-IR是一种专为图像修复设计的Transformer架构,在多个基准上实现竞争力结果,为多种低层视觉问题提供高质量解决方案。
原文摘要 · Abstract (English)
Transformers, with their self-attention mechanisms for modeling long-range dependencies, have become a dominant paradigm in image restoration tasks. However, the high computational cost of self-attention limits scalability to high-resolution images, making efficiency-quality trade-offs a key research focus. To address this, Restormer employs channel-wise self-attention, which computes attention across channels instead of spatial dimensions. While effective, this approach may overlook localized artifacts that are crucial for high-quality image restoration. To bridge this gap, we explore Dilated Neighborhood Attention (DiNA) as a promising alternative, inspired by its success in high-level vision tasks. DiNA balances global context and local precision by integrating sliding-window attention with mixed dilation factors, effectively expanding the receptive field without excessive overhead. However, our preliminary experiments indicate that directly applying this global-local design to the classic deblurring task hinders accurate visual restoration, primarily due to the constrained global context understanding within local attention. To address this, we introduce a channel-aware module that complements local attention, effectively integrating global context without sacrificing pixel-level precision. The proposed DiNAT-IR, a Transformer-based architecture specifically designed for image restoration, achieves competitive results across multiple benchmarks, offering a high-quality solution for diverse low-level computer vision problems.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。