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

GradAttn:用任务调节的注意力路径替代固定残差连接

GradAttn: Replacing Fixed Residual Connections with Task-Modulated Attention Pathways

Kalinga Institute of Industrial Technology(卡林加工业技术学院);IMC University of Applied Sciences Krems(IMC克雷姆斯应用科技大学)

Soudeep Ghoshal, Himanshu Buckchash

AI总结:

GradAttn通过引入注意力机制替代传统残差连接,动态调节梯度流以提升特征学习效果,在多个数据集上优于ResNet-18,且保持网络规模相近。

摘要:

深度卷积网络在深度增加时面临梯度信号退化问题,限制了复杂架构中的有效特征学习。ResNet通过残差连接解决此问题,但固定短路无法适应输入复杂度变化或在网络层次中选择性强调任务相关特征。本研究提出GradAttn,一种混合CNN-Transformer框架,用注意力控制的梯度流替代固定残差连接。通过提取不同深度的多尺度CNN特征并通过自注意力调节,GradAttn动态加权浅层纹理特征和深层语义表示。在八个多样化的数据集上评估了三个GradAttn变体,结果表明GradAttn在五个数据集上优于ResNet-18,其中在FashionMNIST上准确率提升达+11.07%的同时保持网络规模相近。梯度流分析显示,由注意力引入的受控不稳定性常与泛化能力提升相关,挑战了完美稳定性最优的假设。此外,位置编码的有效性证明依赖于数据集,CNN层次经常编码足够的空间结构。这些发现表明注意力机制作为可学习梯度控制的使能者,为深度神经架构中的自适应表示学习提供了新范式。

英文摘要:

Deep ConvNets suffer from gradient signal degradation as network depth increases, limiting effective feature learning in complex architectures. ResNet addressed this through residual connections, but these fixed short circuits cannot adapt to varying input complexity or selectively emphasize task-relevant features across network hierarchies. This study introduces GradAttn, a variation of the residual approach in CNNs that replaces the fixed residual connections with attention-controlled gradient flow. By extracting multi-scale CNN features at different depths and regulating them through self-attention, GradAttn dynamically weights shallow texture features and deep semantic representations. For representational analysis, we evaluated three GradAttn variants across eight diverse datasets: from natural images and medical imaging to fashion recognition. The results demonstrate that GradAttn outperforms ResNet-18 on five of eight datasets, achieving up to +11.07% accuracy improvement on FashionMNIST while maintaining a comparable network size. Gradient flow analysis reveals that controlled instabilities, introduced by attention, often coincide with improved generalization, challenging the assumption that perfect stability is optimal. Furthermore, positional encoding's effectiveness turned out to be dataset-dependent, with CNN hierarchies frequently encoding sufficient spatial structure. These findings render attention mechanisms as enablers of learnable gradient control, offering a new way for adaptive representation learning in deep neural architectures.

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

↑