Skip to content

When Gradient Disagreement Improves Prediction in Looped Networks

Xinyu Tian, Xiaotong Shen

cs.LG

Abstract

In looped neural networks, the gradient of shared parameters sums contributions from repeated block applications, obscuring information about their disagreement. We investigate when this information can improve prediction and introduce LoopAda, an adaptive optimizer that retains the summed gradient, pools squared gradient contributions to estimate second moments for the shared parameters, and selects step sizes using the minibatch loss. An exact moment decomposition characterizes how gradient dispersion changes the update direction. For smooth looped predictors fitted by least squares, we establish sufficient conditions under which LoopAda attains lower expected excess prediction risk after the initial full-sample update than Adam at its best fixed scalar rate. The analysis accommodates approximation error. In an explicit regression model, we establish a uniform separation in prediction risk over a finite range of iterates and a bounded range of constant Adam learning rates. This separation persists under small smooth perturbations of the shared block. Experiments on simulated and real data show that LoopAda can achieve lower prediction error than Adam.

Create a lesson