The ResNet architecture has been widely adopted in deep learning due to its significant boost to performance through the use of simple skip connections, yet the underlying mechanisms leading to its success remain largely unknown. In this paper, we conduct a thorough empirical study of the ResNet architecture in classification tasks by linearizing its constituent residual blocks using Residual Jacobians and measuring their singular value decompositions. Our measurements reveal a process called Residual Alignment (RA) characterized by four properties:
(RA1) intermediate representations of a given input are equispaced on a line, embedded in high dimensional space, as observed by Gai and Zhang [2021];
(RA2) top left and right singular vectors of Residual Jacobians align with each other and across different depths;
(RA3) Residual Jacobians are at most rank C for fully-connected ResNets, where C is the number of classes; and
(RA4) top singular values of Residual Jacobians scale inversely with depth.
RA consistently occurs in models that generalize well, in both fully-connected and convolutional architectures, across various depths and widths, for varying numbers of classes, on all tested benchmark datasets, but ceases to occur once the skip connections are removed. It also provably occurs in a novel mathematical model we propose. This phenomenon reveals a strong alignment between residual branches of a ResNet (RA2+4), imparting a highly rigid geometric structure to the intermediate representations as they progress linearly through the network (RA1) up to the final layer, where they undergo Neural Collapse.
Uncovering Logit Suppression Vulnerabilities in LLM Safety Alignment
Huazhong University of Science and Technology(华中科技大学);Nanyang Technological University(南洋理工大学);University of New South Wales(新南威尔士大学);Nankai University(南开大学)
LAIR-Net: Leaky Alignment-Impulse Residual Networks for Tabular Regression
Indian Institute of Technology Guwahati(印度技术学院加瓦哈蒂分校);SAFIR, Sorbonne University Abu Dhabi(阿布扎比索邦大学 SAFIR);Indian Institute of Technology Bombay(印度技术学院孟买分校)
Learning to Think in Physics: Breaking Shortcut Learning in Scientific Diffusion via Representation Alignment
The Hong Kong University of Science and Technology (Guangzhou)(香港理工大学(广州));Shandong University(山东大学);LimX Dynamics Technology Co., Ltd.(LimX动态技术有限公司);Xidian University(西安电子科技大学);Peking University(北京大学);Institute of Deep Perception Technology, Jiangsu Industrial Technology Research Institute (JITRI)(感知技术研究院,江苏工业技术研究院(JITRI));Griffith University(格里菲斯大学)