cs.CVMar 23, 2026

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

Authors: Soudeep Ghoshal, Himanshu Buckchash

Organizations: Kalinga Institute of Industrial Technology, Bhubaneswar, India · IMC University of Applied Sciences Krems, Krems, Austria

Abstract

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.

Figures & tables

Explore similar work

CardsList
  1. ANCRe: Adaptive Neural Connection Reassignment for Efficient Depth Scaling

    Feb 9, 2026Yilang Zhang, Bingcong Li, Niao He +1Residual LearningNeural Network Optimization

  2. Multi-Gate Residuals

    May 22, 2026Zhizhan Zheng, Feiyun Zhang, Shuchun Liu +4Residual Learning

  3. StableGrad: Backward Scale Control without Batch Normalization

    May 19, 2026Jose I. Mestre, Alberto Fernández-Hernández, Cristian Pérez-Corral +2Deep Learning OptimizationNeural Network Training Dynamics