Gradient Residual Connections

Yangchen Pan, Qizhen Ying, Philip Torr, Bo LiuarXiv 2026

TL;DR

Standard residual networks often struggle to capture sharp, rapidly changing details due to an inherent "spectral bias" toward smooth, low-frequency functions. This paper introduces Gradient Residual Connections, a novel skip connection variant that injects the gradient of intermediate representations directly into the forward path. This simple architectural tweak significantly boosts a network's ability to approximate high-frequency functions, delivering notable performance gains in tasks like image super-resolution.

What Problem Does This Paper Address?

Deep neural networks are notoriously biased toward learning smooth, low-frequency patterns first—a phenomenon known as spectral bias. While standard identity skip connections ($h(x) = F(x) + x$) are essential for training deep networks without vanishing gradients, they pass forward lower-level, less expressive representations. In domains where the target function changes rapidly over tiny distances (high-frequency functions), these standard shortcuts can actually hinder the network's ability to resolve fine, localized details.

The authors set out to answer a fundamental question: How can we explicitly design neural network shortcuts to better capture high-frequency information?

Methods

The authors propose Gradient-based Residual Connections. Instead of simply passing the identity mapping $x$ forward, they add the gradient of the feature mapping with respect to its input. Mathematically, this sums over the rows of the Jacobian matrix:

$$h_g(x) = F(x) + x + \sum_{i=1}^d \nabla F_i(x)$$

To ensure training stability and flexibility, they introduce a convex combination of skips controlled by a trainable scalar parameter $\alpha$ passed through a sigmoid function:

$$h(x) = F(x) + (1 - \sigma(\alpha))x + \sigma(\alpha) \sum_{i=1}^d \nabla F_i(x)$$

This allows the network to dynamically balance its reliance on standard identity shortcuts versus gradient-based shortcuts. To prevent exploding gradients, the gradient vector is normalized before combination.

The "Aha!" Theoretical Insight

Why do gradients help with high frequencies? The authors prove a "gradient reversal" theorem: in a high-frequency regime, two points can be extremely close in Euclidean distance but possess nearly opposite gradient directions. Therefore, while spatial coordinates ($x$) fail to distinguish closely situated points in highly volatile regions, the normalized gradient vector provides a highly sensitive, scale-invariant feature that clearly separates them.

Datasets

The method was validated across three distinct types of tasks:

  1. Synthetic 1D Regression: A custom, noise-contaminated sinusoidal function designed with distinct low- and high-frequency regions to isolate approximation performance.
  2. Single-Image Super-Resolution: Trained on the DIV2K dataset and evaluated on standard high-resolution benchmarks: Urban100, BSD100, Set5, and Set14.
  3. Standard Image Tasks: CIFAR-10 and CIFAR-100 for image classification, and PASCAL VOC for semantic segmentation (to test generalization on low-frequency semantic tasks).

Key Insights and Ideas

  • Identity Skips Can Harm High-Frequency Learning: In low-capacity networks tackling high-frequency data, standard residual connections allow unrefined lower-level features to pollute the final layers, sometimes performing worse than a regular network with no shortcuts at all.
  • Dynamic Inductive Bias: The trainable parameter $\alpha$ acts as an automated switch. For high-frequency tasks like super-resolution, the network automatically learns to favor the gradient branch ($\alpha > 0$). For smooth semantic tasks like classification, it safely defaults back to standard identity skips ($\alpha < 0$).
  • Capacity Efficiency: Injecting gradient information allows smaller networks to punch above their weight class, achieving better fitting capacity without simply stacking more layers or parameters.
Figure 1. Learning curves on the sin dataset in terms of test MSE vs. number of training epochs. Results are averaged over 30 random seeds. For standard residual, the solid line is the version with a trainable scalar on the residual connection.

Key Results

Synthetic Regression

As shown in the function visualization below, the gradient residual approach tracks sharp, rapid oscillations with far greater accuracy than standard residual or regular networks.

Figure 3. Learned functions vs. the ground-truth function when d = 16. For each algorithm, we visualize results from the first random seed under the best hyperparameter setting, using models saved at the end of training. The region where our gradient residual method achieves substantially better approximation is highlighted by the purple circle. For clarity of visualization, only the most relevant subset of algorithms is included.

Single-Image Super-Resolution

When evaluated on standard architectures like EDSR and SRResNet, replacing standard blocks with Gradient Residuals yielded consistent improvements in Peak Signal-to-Noise Ratio (PSNR):

  • On the challenging Urban100 dataset, SEDSR-GradResidual achieved a PSNR of $30.06 \pm 0.01$ compared to the baseline SEDSR's $29.81 \pm 0.01$.
  • Remarkably, the smaller SEDSR-GradResidual model (0.6M parameters) outperformed the standard, larger EDSR model (1.36M parameters), demonstrating a much more effective utilization of model capacity.

Classification & Segmentation

On CIFAR and PASCAL VOC, the performance remained virtually identical to standard ResNets. This confirms that explicitly adding gradient pathways does not degrade performance on tasks dominated by low-frequency, category-level semantic information.

Limitations and Future Work

  • Computational Cost: Calculating the Jacobian matrix and backpropagating through it increases wall-clock training time. For example, on SEDSR, the gradient variant took ~23.7 ms per update compared to the baseline's ~10.5 ms.
  • Architectural Co-design: The authors directly swapped standard shortcuts for gradient shortcuts in existing networks. Because modern architectures are heavily optimized specifically for identity skips, designing new network topologies from scratch tailored to gradient residuals remains an open and promising direction.
  • Regularization Interactions: The paper does not explore how this method interacts with double-backpropagation or other regularization techniques that explicitly penalize input gradients to improve adversarial robustness.

Summary updated

BibTeX
@misc{pan2026gradient,
  author = {Yangchen Pan and Qizhen Ying and Philip Torr and Bo Liu},
  title = {{Gradient Residual Connections}},
  year = {2026},
  eprint = {2602.09190},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.09190},
}
Figure