LayerRoPE turns layer depth into a signal for Transformer blocks
LayerRoPE: Dynamic Depth-wise Magnitude & Angular Superposition · arXiv:2610.09179

In plain words
Transformer signals often get larger as they pass through more layers. This paper asks whether that growth is only a problem or can help identify a layer’s place in the network.
The authors introduce LayerRoPE, which makes each layer’s normalization gains from a shared set of gains adjusted for depth. In their language-model tests, it had the lowest validation loss at each tested size from 58 million to 1.3 billion parameters. The result applies to those training comparisons, not every Transformer.
The research
As information passes through a Transformer, hidden-state magnitudes can rise sharply with depth. Does this growth simply need to be suppressed, or can it carry useful information about a layer’s position? The answer matters for how a model’s blocks are regulated as networks grow deeper.
LayerRoPE generates each Transformer layer’s normalization gains from shared gains adjusted for depth, regulating block inputs and outputs.
To assess whether rising hidden-state magnitudes with depth are only a problem, the authors examined normalization gains in pretrained language models.
In most tested models, MLP-block gains varied in magnitude and direction with depth, consistent with an implicit layer-position signal, though exceptions appeared.
They then tested LayerRoPE, which generates depth-specific gains from shared gains, against other normalization methods in C4-trained language models. It had the lowest validation loss at each tested size from 58 million to 1.3 billion parameters.
A fitted curve estimated 3.4 times less compute than Pre-Norm to reach its 1.3-billion-parameter loss, supporting an advantage in these comparisons.
The strongest language-model results come from the paper’s tested C4 training settings. The compute saving is estimated from fitted curves, and the 512-layer fixed-rate result uses one seed; the pretrained-gain pattern also has model and block-specific exceptions.
What the evidence shows
- A different view of growth
LayerRoPE is a Transformer normalization method that generates layer-specific gains from shared gains adjusted for depth. The paper begins with a question about growing hidden-state magnitudes: should a Transformer suppress this growth, or might it carry information about layer position?
That question matters to the method because it treats depth as a signal that can shape how blocks interact with the residual stream.
- Looking for depth signals
To examine whether depth information appears in pretrained models, the authors analyzed normalization gains in 16 language models from nine families. In most tested models, the magnitude and direction of MLP-block gains varied with layer depth, consistent with an implicit signal of layer position.
The pattern was not universal: three Pre-Norm models lacked clear depth-conditioning in MLP gains, and Attention-block gains generally lacked it.
- Making depth explicit
LayerRoPE turns the observed pattern into an explicit construction. Instead of learning independent gain vectors at every layer, it shares a feature-gain vector at each normalization site and adjusts it by depth-dependent magnitude and rotation factors.
The resulting gains regulate what blocks read from and write to the residual stream. The authors test this method against other normalization choices in C4 language-model training.
- Results across size and depth
In a model ladder from 58 million to 1.3 billion parameters, LayerRoPE had the lowest validation loss at each tested scale. A fitted curve estimated that it would need 3.4 times less training compute than Pre-Norm to reach Pre-Norm’s 1.3-billion-parameter loss; that estimate interpolates between measured scales.
In a separate study of models up to 512 layers, LayerRoPE had the lowest loss at each tested depth, including in method-specific learning-rate sweeps.
- Mechanism and transfer
The authors’ further measurements and tests help interpret the results. LayerRoPE increased residual-stream variance in the reported large-model comparisons, which the authors interpret as regulating block reads and writes instead of damping the stream.
Ablations at 134 million parameters support the use of both depth schedules and the shared-gain design. Tests in looped language models and Vision Transformers also improved on their corresponding comparisons, within those tested settings.
Deep
- Original paper authors
- Shikhar Srivastava, Christopher Kanan
- Submitted to arXiv
- License
- CC BY 4.0