paper-with-me

Papers

HybridNorm: Towards Stable and Efficient Transformer Training via Hybrid Normalization

2025-03-06 · Zhijian Zhuo, Yutao Zeng, Ya Wang, Sijun Zhang, Jian Yang, XiaoQing Li, Xun Zhou, Jinwen Ma

Transformers have become the de facto architecture for a wide range of machine learning tasks, particularly in large language models (LLMs). Despite their remarkable performance, challenges remain in training deep transformer networks, especially regarding the location of layer normalization. While Pre-Norm structures facilitate easier training due to their more prominent identity path, they often yield suboptimal performance compared to Post-Norm. In this paper, we propose $\textbf{HybridNorm}$, a straightforward yet effective hybrid normalization strategy that integrates the advantages of both Pre-Norm and Post-Norm approaches. Specifically, HybridNorm employs QKV normalization within the attention mechanism and Post-Norm in the feed-forward network (FFN) of each transformer block. This design not only stabilizes training but also enhances performance, particularly in the context of LLMs. Comprehensive experiments in both dense and sparse architectures show that HybridNorm consistently outperforms both Pre-Norm and Post-Norm approaches, achieving state-of-the-art results across various benchmarks. These findings highlight the potential of HybridNorm as a more stable and effective technique for improving the training and performance of deep transformer models. Code is available at https://github.com/BryceZhuo/HybridNorm.

📄 PDF Abstract BibTeX arXiv:2503.04598

Code (1)

brycezhuo/hybridnorm 공식 구현 pytorch

Methods 이 논문이 사용한 방법론

Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Attention 설명 없음

Similar Papers 제목 키워드 기반

Effects of Architectures on Continual Semantic Segmentation

2023-02-21 · Tobias Kalb, Niket Ahuja, Jingxing Zhou, Jürgen Beyerer

Research in the field of Continual Semantic Segmentation is mainly investigating novel learning algorithms to overcome catastrophic forgetting of neural networks. Most recent publications have focused on improving learni…

Continual LearningContinual Semantic SegmentationDecoderSemantic Segmentation

Stability of Transformers under Layer Normalization

2025-10-10 · Kelvin Kan, Xingjian Li, Benjamin J. Zhang, Tuhin Sahai 외 arxiv

Despite their widespread use, training deep Transformers can be unstable. Layer normalization, a standard component, improves training stability, but its placement has often been ad-hoc. In this paper, we conduct a princ…

Enhanced QKNorm normalization for neural transformers with the Lp norm

2026-02-04 · Ezequiel Lopez-Rubio, Javier Montes-Perez, Esteban Jose Palomo arxiv

The normalization of query and key vectors is an essential part of the Transformer architecture. It ensures that learning is stable regardless of the scale of these vectors. Some normalization approaches are available. I…

On Layer Normalization in the Transformer Architecture

2020-02-12 · ICML 2020 1 · Ruibin Xiong, Yunchang Yang, Di He, Kai Zheng 외

The Transformer is widely used in natural language processing tasks. To train a Transformer however, one usually needs a carefully designed learning rate warm-up stage, which is shown to be crucial to the final performan…

Affine-Scaled Attention: Towards Flexible and Stable Transformer Attention

2026-02-26 · Jeongin Bae, Baeseong Park, Gunho Park, Minsub Kim 외 arxiv

Transformer attention is typically implemented using softmax normalization, which enforces attention weights with unit sum normalization. While effective in many settings, this constraint can limit flexibility in control…