New Transformer architecture modifications from NVIDIA researchers.
nGPT: A hypersphere-based Transformer achieving 4-20x faster training and improved stability for LLMs.
π https://arxiv.org/abs/2410.01131
Proposals in this Paper π οΈ:
β’ Normalized Transformer (nGPT) architecture
β’ All vectors normalized to unit norm on hypersphere
β’ Learnable eigen learning rates control hidden state updates
β’ Removal of LayerNorm/RMSNorm layers
β’ Introduction of scaling factors for logits, query/key vectors, and MLP states
β’ Elimination of weight decay and learning rate warmup
-----
Key Insights from this Paper π‘:
β’ nGPT learns 4-20x faster than standard Transformers
β’ Hyperspherical representation improves stability and embedding separability
β’ Transformer layers act as optimization steps on a hypersphere
β’ Eigen learning rates control the impact of each block's updates
β’ nGPT handles longer contexts without modifying positional encodings
-----
Results π:
β’ 4x faster training for 1k context length
β’ 10x faster training for 4k context length
β’ 20x faster training for 8k context length
β’ Similar or better performance on downstream tasks with less training
β’ More stable performance when extrapolating to longer sequences










