arXiv:2507.12006cs.CVcs.AI2025-07ICCV被引 30

让视觉Transformer找回丢失的细节纹理,提升分割检测精度

Frequency-Dynamic Attention Modulation for Dense Prediction

论文配图:Frequency-Dynamic Attention Modulation for Dense Prediction
图 1 · 摘自论文原文
  • 通过电路理论启发的注意力反演与动态缩放,调节模型频率响应
  • 在多种任务中实现显著性能提升,如语义分割、目标检测和遥感识别
  • 无需改动主干结构,可轻松接入现有ViT模型,适合视觉任务优化

视觉变压器(ViTs)在计算机视觉任务中表现优异,但其注意力机制使每层呈现低通滤波特性,叠加架构导致高频信息衰减,造成关键细节与纹理丢失。本文提出一种受电路理论启发的新策略——频域动态注意力调制(FDAM),可无缝集成至现有ViT中。FDAM包含两个技术:注意力反演(AttInv)通过反转注意力矩阵中的低通滤波器生成互补高通响应,并动态融合;频率动态缩放(FreqScale)对不同频率成分加权,实现精细调整。特征相似性分析与有效秩评估表明,该方法避免表示坍塌,在SegFormer、DeiT、MaskDINO等模型上均实现稳定提升,涵盖语义分割、目标检测与实例分割任务。此外,在单尺度遥感检测任务中达到当前最优结果。代码已开源。

原文摘要 · Abstract (English)

Vision Transformers (ViTs) have significantly advanced computer vision, demonstrating strong performance across various tasks. However, the attention mechanism in ViTs makes each layer function as a low-pass filter, and the stacked-layer architecture in existing transformers suffers from frequency vanishing. This leads to the loss of critical details and textures. We propose a novel, circuit-theory-inspired strategy called Frequency-Dynamic Attention Modulation (FDAM), which can be easily plugged into ViTs. FDAM directly modulates the overall frequency response of ViTs and consists of two techniques: Attention Inversion (AttInv) and Frequency Dynamic Scaling (FreqScale). Since circuit theory uses low-pass filters as fundamental elements, we introduce AttInv, a method that generates complementary high-pass filtering by inverting the low-pass filter in the attention matrix, and dynamically combining the two. We further design FreqScale to weight different frequency components for fine-grained adjustments to the target response function. Through feature similarity analysis and effective rank evaluation, we demonstrate that our approach avoids representation collapse, leading to consistent performance improvements across various models, including SegFormer, DeiT, and MaskDINO. These improvements are evident in tasks such as semantic segmentation, object detection, and instance segmentation. Additionally, we apply our method to remote sensing detection, achieving state-of-the-art results in single-scale settings. The code is available at https://github.com/Linwei-Chen/FDAM.

视觉Transformer注意力机制频域调制图像分割

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。