GNMR: Runtime Stability Control for Low-Precision Large Language Model Training

TL;DR

GNMR controls stability in low-precision language model training by comparing gradient norms with historical means.

cs.LG 🔴 Advanced 2026-05-30 14 views
Boao Kong Weichen Jia Engao Zhang Guohong Li Yonghan Dong Yao Wang Yaoyuan Wang Yunke Peng Kun Yuan
low-precision training stability control language models GNMR deep learning

Key Findings

Methodology

GNMR is a lightweight controller that monitors risk by comparing each recoverable unit's current gradient norm with its historical mean. Together with Δ-GNMR for abrupt short-window increases, GNMR maps local risk signals to bounded recovery actions without changing numerical format, kernel, or backend recipe.

Key Results

  • GNMR maintains high-fidelity quality in LLaMA-2 13B fine-tuning, with validation perplexity significantly reduced across model sizes, 4-bit/8-bit strategy close to fixed 8-bit reference.
  • In activation-quantization stress tests, GNMR-controlled 4-bit/8-bit recovery remains close to fixed 8-bit and BF16/16-bit references.
  • GNMR maintains quality close to higher-fidelity references throughout DeepSeek-style mixed-precision training.

Significance

GNMR provides a backend-agnostic controller for low-precision training, improving stability while preserving low-cost execution. This research addresses the challenge of detecting and recovering local stability risks in low-precision training.

Technical Contribution

GNMR introduces a new runtime stability control framework, addressing local risk issues in low-precision training through real-time monitoring and budgeted recovery strategy. It differs from existing methods by offering new theoretical guarantees and engineering possibilities.

Novelty

GNMR is the first to use the ratio of gradient norm to historical mean for real-time risk monitoring, providing a novel stability control method for low-precision training with unique innovations compared to existing methods.

Limitations

  • GNMR may not detect all risks, especially when historical means are unstable.
  • Δ-GNMR may require frequent adjustments in highly dynamic environments.

Future Work

Future work could explore GNMR's application to other model architectures and integration with other stability control methods.

AI Executive Summary

Stability in low-precision language model training has been a challenge, with existing solutions often failing to address runtime local risks. GNMR offers a lightweight stability control method by comparing gradient norms with historical means. Experimental results show GNMR maintains high-fidelity quality in LLaMA-2 13B fine-tuning and performs well in activation-quantization stress tests. GNMR not only addresses local risk issues in low-precision training but also provides new directions for future research. Despite some limitations, GNMR offers a new perspective for stability control in low-precision training.

Deep Analysis

Background

Low-precision training aims to reduce computation and memory costs but has faced challenges in stability. Existing methods like mixed-precision training and FP8 training maintain model quality but lack in runtime local risk detection and recovery.

Core Problem

Local stability risks in low-precision training are a core issue, appearing briefly and affecting training quality. Detecting and recovering these risks without changing numerical format is challenging.

Innovation

GNMR offers a new real-time risk monitoring method by comparing gradient norms with historical means. It combines Δ-GNMR for short-window abrupt changes, providing a budgeted recovery strategy to address local risk issues in low-precision training.

Methodology

  • �� GNMR monitors risk by comparing current gradient norms with historical means.
  • �� Δ-GNMR detects abrupt short-window changes.
  • �� GNMR maps local risk signals to bounded recovery actions without changing numerical format.

Experiments

Experiments include validating GNMR's effectiveness in LLaMA-2 13B fine-tuning, activation-quantization stress tests, and DeepSeek-style mixed-precision training. Training is conducted on the C4-en dataset, comparing validation perplexity under different precision strategies.

Results

GNMR maintains high-fidelity quality in LLaMA-2 13B fine-tuning, significantly reducing validation perplexity. In activation-quantization stress tests, GNMR-controlled 4-bit/8-bit recovery remains close to fixed 8-bit and BF16/16-bit references.

Applications

GNMR can be used for stability control in low-precision language model training, suitable for scenarios requiring reduced computation costs, such as large-scale model fine-tuning.

Limitations & Outlook

GNMR may not detect all risks, especially when historical means are unstable. Δ-GNMR may require frequent adjustments in highly dynamic environments.

Plain Language Accessible to non-experts

Imagine you're cooking in a kitchen, and GNMR is like a smart cooking assistant that adjusts the heat based on each dish's historical cooking time. If a dish suddenly requires higher heat, the assistant will alert and adjust to ensure every dish is perfectly cooked. This smart control allows you to navigate the kitchen effortlessly without worrying about a dish suddenly burning.

ELI14 Explained like you're 14

Imagine you're playing a game, and GNMR is like your game assistant, adjusting difficulty based on your past performance. If a level suddenly becomes challenging, the assistant will alert and help you adjust your strategy to ensure you can smoothly pass the level. This way, you can always enjoy the game without worrying about suddenly facing an impossible challenge!

Glossary

GNMR (Gradient Norm-to-Mean Ratio)

Compares current gradient norm with historical mean for real-time risk monitoring.

Used for detecting local risks in low-precision training.

Δ-GNMR (Short-window Change)

Compares current GNMR value with recent window average to detect short-term changes.

Used for detecting abrupt short-window risks.

LLaMA-2

A large language model used for fine-tuning and validating GNMR's effectiveness.

Test model in experiments.

Activation Quantization

Quantizes model activations to reduce computation costs.

GNMR controls risks in activation quantization.

DeepSeek

A mixed-precision training strategy combining different precisions to optimize performance.

GNMR used for stability control in DeepSeek-style training.

Open Questions Unanswered questions from this research

  • 1 How to optimize Δ-GNMR parameters in highly dynamic environments?
  • 2 GNMR's applicability to other model architectures?
  • 3 How to further reduce GNMR's computational cost?

Applications

Immediate Applications

Low-precision Model Fine-tuning

GNMR can be used for fine-tuning large-scale language models, reducing computation costs and improving stability.

Long-term Vision

Intelligent Stability Control

GNMR may become a standard method for future low-precision training, driving smarter stability control technologies.

Abstract

Training stability is a key bottleneck in low-precision language model training: efficient low-cost paths can still produce short-lived numerical risks at a small set of operators. We formulate this as runtime stability control and present Gradient Norm-to-Mean Ratio (GNMR), a lightweight controller that compares each recoverable unit's current gradient norm with its historical mean. Together with $Δ$-GNMR for abrupt short-window increases, GNMR maps local risk signals to bounded recovery actions under a hard $\mathrm{maxO}$ budget and a short lock interval, without changing the numerical format, kernel, or backend recipe. Across activation-quantization stress, DeepSeek-style recipe-level training, and LLaMA-2 13B fine-tuning, GNMR preserves high-fidelity quality with sparse, budgeted recovery. These results support GNMR as a backend-agnostic controller to improve low-precision training stability while preserving low-cost execution.

cs.LG math.OC stat.ML