LayerRoPE: Dynamic Depth-wise Magnitude & Angular Superposition

Shikhar Srivastava, Christopher KananarXiv 2026

TL;DR

LayerRoPE reframes the "curse of depth"—the explosive growth of activation norms in deep Transformers—not as a pathology to be suppressed, but as a useful emergent depth-positional encoding. By explicitly modeling this growth through depth-conditioned magnitude and rotation of normalization weights, LayerRoPE enables training deeper, more stable networks (up to 512 layers) while reaching the same performance as standard models with 3.4× less compute.

What Problem Does This Paper Address?

As data travels deeper into a Transformer, the $\ell_2$ norm of its hidden states grows rapidly, often by several orders of magnitude. Traditionally, researchers have viewed this as a defect that degrades gradient flow and makes training unstable. Existing solutions like Layer-Norm Scaling or Peri-Norm attempt to "tame" the network by damping the residual stream or re-normalizing outputs to keep magnitudes bounded.

The authors of LayerRoPE argue that we’ve been looking at this the wrong way. They hypothesize that this growth isn't a bug; it's the network's way of encoding its own depth. By analyzing 16 pre-trained LLMs, they found that the normalization weights ($\gamma$) naturally grow and rotate as a function of layer index, effectively acting as a depth-based coordinate system.

Methods

The paper introduces LayerRoPE, an implicit analog of Rotary Positional Embeddings (RoPE) applied along the depth axis instead of the sequence axis.

Instead of letting every layer learn its own independent normalization vector $\gamma$, LayerRoPE replaces them with a single shared global vector and a small set of depth-conditioned scalars. These scalars control two things:

  1. Magnitude: A log-linear schedule that scales the shared vector based on depth.
  2. Rotation: A rotation schedule (similar to RoPE) that rotates feature pairs in the shared vector by an angle proportional to the layer index.
Illustration of LayerRoPE's regulation of computational blocks with depth-conditioned I/O.

Crucially, LayerRoPE changes the "read/write" dynamics of the residual stream. It learns to damp what a block reads from the stream while amplifying what it writes back into it. This allows the residual stream to widen (increase in variance) while keeping the actual computation within the blocks stable.

Datasets

The authors evaluated LayerRoPE across a diverse set of tasks and architectures:

  • LLM Pre-training: Trained on the C4 (Common Crawl) dataset, scaling from 58M to 1.3B parameters.
  • Looped Latent Models: Evaluated using the Parcae architecture on FineWeb-Edu.
  • Vision Transformers (ViTs): Trained on ImageNet-1k.
  • Downstream Benchmarks: Zero-shot evaluations on ARC-e, HellaSwag, PIQA, BoolQ, OBQA, Wino, LMB, and MMLU.

Key Insights and Ideas

  • The "Aha" Moment on $\gamma$: The authors discovered that in almost all pre-trained LLMs, $\sim 99\%$ of the dimensions in the normalization weights follow a shared, near-monotone trajectory of growth and rotation across layers.
  • Widen, Don't Shrink: While most methods try to keep the residual stream "thin" to prevent instability, LayerRoPE intentionally lets it grow 4–100× wider than standard backbones. Stability comes from regulating the interface (the I/O) rather than the stream itself.
  • Monotonic Depth Scaling: Most Transformer variants start to fail or plateau as they get deeper. LayerRoPE is the only method tested that showed near-monotonic improvement in loss as depth scaled all the way to 512 layers.
Figure 2: Norm weights encode depth in LLAMA-like LLMs (LLaMA-2 7B shown here). Magnitude (left) and angular position (right) jointly form a depth-positional code along the residual stream.

Key Results

  • Compute Efficiency: LayerRoPE reaches the same validation loss as a standard Pre-Norm 1.3B model using 3.4× less training compute.
  • Parameter Reduction: By replacing per-layer $\gamma$ vectors with a shared one, it actually reduces the total parameter count (e.g., 90K fewer parameters for a 1B model) with a negligible (<0.02%) increase in FLOPs.
  • Robustness: It significantly widens the "learning rate basin." LayerRoPE can train stably at learning rates up to 8× higher than what standard baselines can tolerate, and it is 3–10× less sensitive to the exact choice of learning rate.
  • Cross-Modality Gains: Without any tuning, it improved ViT-T top-1 accuracy by 0.9 points and consistently outperformed baselines in looped latent models.
Compute-scaling curves showing LayerRoPE outperforming other normalization schemes.

Limitations and Future Work

  • Smoothness vs. Performance: While LayerRoPE enforces a smooth, monotone scaling ratio, the authors note it is still unclear exactly to what degree this specific smoothness is the primary driver of the performance gains.
  • Interaction with Sequence RoPE: The paper focuses on depth-wise rotation. Future work could investigate if there are deeper synergies between sequence-positional RoPE and depth-positional LayerRoPE.
  • Initialization: The magnitude and rotation slopes are currently initialized to -0.5; exploring more sophisticated initialization or learned schedules for these scalars could yield further benefits.

Summary updated

BibTeX
@misc{srivastava2026layerrope,
  author = {Shikhar Srivastava and Christopher Kanan},
  title = {{LayerRoPE: Dynamic Depth-wise Magnitude \& Angular Superposition}},
  year = {2026},
  eprint = {2610.09179},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2610.09179},
}
Figure