Share from 0:00
0:00
/

nGPT: Normalized Transformer with Representation Learning on the Hypersphere

Generated this podcast with Google's Illuminate.

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

Discussion about this video

User's avatar

Ready for more?