Search papers, labs, and topics across Lattice.
This paper investigates how the architectural design of Transformer feedforward blocks influences the preservation of rank across depth during initialization. By reinterpreting skip connections and normalization as mechanisms for maintaining gradient rank, the authors reveal a tradeoff between rank collapse and ensemble-like behavior, which is controlled by the relative scales of the skip and branch connections. The findings unify existing literature on normalization placement and depth scaling, showing that the initialization rank of the input-output Jacobian can predict network performance on tasks like CIFAR-10.
Skip connections and normalization layers are not just about controlling magnitude; they are crucial for preserving gradient rank and influencing model performance.
We investigate how each component of the Transformer feedforward block architecture design determines how much rank survives across depth at initialization. We reinterpret skip connections and normalization, long understood as controlling magnitude, as mechanisms for preserving gradient rank across depth, since the very matrix multiplications and nonlinear activations that make the network expressive also reduce the rank. We show that skip connections trade off rank collapse against ensemble-like behavior, controlled by the relative scales of the branch and the skip: skip connections route the gradient around the residual branch, where rank is lost, rather than along the long gradient paths that encourage the layers to compose. The placement of the normalization layer controls this same tradeoff by setting the branch-to-skip ratio across depth, unifying much of the normalization placement and depth scaling literature, in particular why rank collapses for Post-Norm but plateaus for Pre-Norm. Other aspects of the architecture, like the two-matrix structure that expands and contracts the width, use additional parameters to preserve the representation or branch Jacobian rank. The second matrix decorrelates a coherent mean spike that would grow across blocks with a single matrix and uncentered activation, preventing the residual representation from collapsing. The width expansion between the two matrices keeps the branch Jacobian full rank: applying the rank-reducing activation in this expanded space leaves enough directions to span the original, at a width that follows a Marchenko--Pastur law. The initialization rank of the input--output Jacobian predicts which networks train on CIFAR-10. Taken together, we recast architecture design for deep networks as navigating an intrinsic tradeoff among rank collapse, ensemble-like behavior, and parameter count.