GIFT: Geometry-Informed Low-precision Gradient Communication for LLM Pretraining

· Source: Machine Learning · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Distributed, Parallel, and Cluster Computing · Depth: Expert, quick

Summary

GIFT, a Geometry-Informed Low-precision Gradient Communication method, addresses the primary scaling bottleneck of gradient communication in large language model (LLM) pretraining. Existing low-precision formats like FP8 and NVFP4 reduce communication volume but often degrade model performance due to anisotropic gradients causing direction-dependent distortion. GIFT mitigates this by transforming gradients into a near-isotropic space prior to quantization, ensuring low-precision representations are more faithful to their high-precision counterparts. This method exclusively alters the coordinate system for low-precision gradient communication, leaving the optimizer, training recipe, communication collective, and low-precision format unchanged. It incorporates a simplified geometry-aware transformation algorithm using low-rank approximation and selective application to balance computational overhead with communication reduction. Empirical convergence tests on Llama-300M and Llama-600M models demonstrated that GIFT reduces Llama-600M pretraining time by 7.6% on 64 NVIDIA GH200 Superchips, while also enhancing downstream task preservation compared to direct Euclidean FP8 communication.

Key takeaway

For Machine Learning Engineers pretraining large language models, you should consider integrating geometry-informed gradient communication methods like GIFT. This approach significantly reduces pretraining time, demonstrated by a 7.6% speedup for Llama-600M on 64 NVIDIA GH200 Superchips. Furthermore, it improves downstream task preservation compared to direct low-precision communication. Adopting this technique can enhance both the efficiency and quality of your LLM training pipelines.

Key insights

Transforming gradients into a near-isotropic space before low-precision quantization significantly improves fidelity and performance.

Principles

Method

GIFT transforms gradients into a near-isotropic space using a simplified geometry-aware algorithm with low-rank approximation and selective application before low-precision communication.

In practice

Topics

Best for: Research Scientist, AI Scientist, Machine Learning Engineer

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by Machine Learning.