Residual Connections Harm Generative Representation Learning
Xiao Zhang, Ruoxi Jiang, William Gao, Rebecca Willett, Michael Maire
TL;DR
This work questions the ubiquity of unmodified residual shortcuts in self-supervised generative learning, arguing that identity paths can suppress abstraction by echoing shallow features. It introduces depth-dependent decayed identity shortcuts, formalized by ${\bm{x}}_{l+1} = {\alpha}_l {\bm{x}}_l + f_{\mathbf{\theta}_l}({\bm{x}}_l)$ with ${\alpha}_l = 1-\delta_{\alpha} l$ and ${\alpha_L^{\rm eff}} = \prod_{l=1}^L {\alpha_l}$, controlled by a single hyperparameter ${\alpha_{\min}}$. In MAE with ViT-B/16, this yields LP accuracy of ${\rm LP}=72.7\%$ and ${\rm KNN}=63.9\%$, a substantial improvement over the baseline, while diffusion models show concurrent gains in representation quality and generation. The results reveal a link between improved abstractions and a low-rank inductive bias, suggesting that carefully decaying skip connections can enhance unsupervised learning and generative modeling without extra parameters.
Abstract
We show that introducing a weighting factor to reduce the influence of identity shortcuts in residual networks significantly enhances semantic feature learning in generative representation learning frameworks, such as masked autoencoders (MAEs) and diffusion models. Our modification notably improves feature quality, raising ImageNet-1K K-Nearest Neighbor accuracy from 27.4% to 63.9% and linear probing accuracy from 67.8% to 72.7% for MAEs with a ViT-B/16 backbone, while also enhancing generation quality in diffusion models. This significant gap suggests that, while residual connection structure serves an essential role in facilitating gradient propagation, it may have a harmful side effect of reducing capacity for abstract learning by virtue of injecting an echo of shallower representations into deeper layers. We ameliorate this downside via a fixed formula for monotonically decreasing the contribution of identity connections as layer depth increases. Our design promotes the gradual development of feature abstractions, without impacting network trainability. Analyzing the representations learned by our modified residual networks, we find correlation between low effective feature rank and downstream task performance.
