Abstract
In this work, we revisit Transformer optimization through the lens of second-order geometry and establish a direct connection between architectural design, activation scale, the Hessian matrix, and the maximum tolerable learning rate. We introduce a simple normalization strategy, termed SimpleNorm, which stabilizes intermediate activation scales by construction. Then, by analyzing the Hessian of the loss with respect to network activations, we theoretically show that SimpleNorm significantly reduces the spectral norm of the Hessian, thereby permitting larger stable learning rates. We validate our theoretical findings through extensive experiments on large GPT models at parameter scales 1B, 1.4B, 7B and 8B. Empirically, SimpleGPT, our SimpleNorm-based network, tolerates learning rates 3x–10x larger than standard convention, consistently demonstrates strong optimization stability, and achieves substantially better performance than well-established baselines. Specifically, when training 7B-scale models for 60K steps, SimpleGPT achieves a training loss that is 0.08 lower than that of LLaMA2 with QKNorm, reducing the loss from 2.290 to 2.208. Our source code is available at https://github.com/Ocram7/SimpleGPT.
Introduction
Training massive Transformers is a delicate balancing act. As models scale in depth and width, they become increasingly prone to optimization instability—the "exploding" gradients or activations that can ruin a multi-million dollar training run. To combat this, researchers have historically relied on architectural heuristics like Pre-Normalization (PreNorm) or Query-Key Normalization (QKNorm). While effective, these techniques are often justified empirically.
There is a significant gap in our theoretical understanding of how these choices affect the Hessian (the matrix of second-order derivatives). In classical optimization, the "spectral norm" of the Hessian dictates the maximum stable learning rate; if the landscape is too "sharp" (high curvature), a large learning rate will cause the model to diverge. SimpleGPT bridges this gap by designing an architecture grounded in second-order geometry.
The SimpleNorm Architecture
The core innovation is SimpleNorm, a unified primitive that treats "linear mapping followed by normalization" as a single operation. Standard Transformers typically normalize at the start or end of a residual block. SimpleGPT, however, inserts a normalization layer (specifically RMSNorm) immediately after every linear projection.
This includes the Query (Q), Key (K), and Value (V) projections, the attention output projection, both layers of the Feed-Forward Network (FFN), and gating layers in SwiGLU architectures. Mathematical analysis shows that this placement makes the Hessian of the loss weight-scale invariant. In standard models, as weights grow during training, the curvature of the loss landscape increases, forcing practitioners to use smaller, slower learning rates. SimpleNorm breaks this dependency, keeping the landscape "smooth" regardless of weight magnitude.
Experimental Results
SimpleGPT was validated across several standard large-scale text corpora, including C4 and OpenWebText, using model backbones like nanoGPT, Llama2, and Llama3.
Learning Rate Tolerance and Stability
SimpleGPT consistently handles learning rates 3x to 10x larger than standard Llama-style baselines. In stress tests where standard models diverged, SimpleGPT remained stable. This is a direct consequence of reducing the Hessian's spectral norm, which fundamentally increases the "speed limit" of training.
Performance Gains at Scale
The empirical results are robust across multiple scales. On a 1B model, SimpleGPT reduced the final training loss by 0.032 compared to the QKNorm baseline. The gains are even more pronounced at the 7B scale.
When training a 7B-scale model for 60K steps, SimpleGPT achieved a training loss 0.08 lower than Llama2 with QKNorm, reducing it from 2.290 to 2.208. These gains were consistent whether the backbone was nanoGPT, Llama2, or Llama3, suggesting SimpleNorm is a general-purpose improvement for the Transformer architecture.
Conclusion
SimpleGPT demonstrates that grounding architectural design in second-order optimization geometry leads to more stable and performant models. By normalizing after every linear layer, the model induces a genuinely nonlinear transformation at every step, increasing expressive capacity without adding extra parameters. While adding normalization layers introduces a small (3%) computational overhead, this can be mitigated through kernel fusion. Future work will explore even more efficient point-wise functions to eliminate this overhead entirely and test these principles at the 100B+ parameter frontier.
Summary updated