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

· Source: cs.LG updates on arXiv.org · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Cloud Computing & IT Infrastructure · Depth: Expert, extended

Summary

GIFT is a novel geometry-informed gradient scaling method designed to address the communication bottleneck in large language model (LLM) pretraining. It improves low-precision gradient communication, specifically using FP8, by transforming anisotropic gradients into a near-isotropic space before quantization. This approach makes low-precision representations substantially more faithful to their high-precision counterparts, avoiding performance degradation seen in existing Euclidean quantization methods. GIFT does not alter the optimizer or training recipe, focusing solely on the coordinate system for communication. It employs a simplified K-FAC-based geometry-aware transformation with low-rank approximation and selective application to balance computational overhead and communication reduction. Empirical results with Llama-300M and Llama-600M models show GIFT reduces Llama-600M pretraining time by 7.6% on 64 NVIDIA GH200 Superchips, while also improving downstream task preservation compared to direct Euclidean FP8 communication. This method achieves a 75.0% reduction in gradient communication volume.

Key takeaway

For AI Architects designing large-scale LLM pretraining systems, you should consider geometry-informed gradient communication to mitigate performance degradation from low-precision formats. Implementing GIFT can reduce pretraining time by 7.6% for models like Llama-600M on 64 NVIDIA GH200 Superchips, while significantly improving downstream task preservation. This approach allows you to achieve communication efficiency without sacrificing model quality, especially as GPU counts and model sizes increase.

Key insights

Anisotropic gradients cause low-precision quantization errors; transforming them into isotropic coordinates improves fidelity.

Principles

Method

GIFT transforms gradients using a low-rank K-FAC approximation, quantizes in the new coordinate system, communicates, and maps back. This is applied selectively to vulnerable layers.

In practice

Topics

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

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by cs.LG updates on arXiv.org.