Dynamic Directional Rounding for Low-Precision Gradient Updates

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional rounding techniques, including IEEE standards and stochastic rounding, face challenges in efficiently implementing random rounding behaviors for floating-point numbers, particularly in applications like neural network training, where limited precision leads to inaccurate parameter updates due to small gradients.

Innovation Solution

Dynamic directional rounding method that determines the rounding direction based on the sign of the operand, enabling efficient rounding without generating random values, thus ensuring parameter updates align with gradient directions, improving accuracy and reducing circuitry and power consumption.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Measurement precision

If stochastic rounding techniques are used to achieve random rounding behavior, then rounding accuracy is improved, but device complexity and power consumption increase due to random value generation requirements

Engineering Contradiction:
Improverounding accuracyVSAvoidcircuitry complexity
Core Design Contradiction:
Measurement precisionVSDevice complexity

Solution Approach 1:

The patent extracts the random value generation step from the rounding process entirely. Instead of generating random values and using them for rounding, the invention uses the sign bit of the operand itself to determine rounding direction, eliminating the need for separate random number generation circuitry while maintaining the benefits of stochastic-like rounding behavior.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The operand's own sign bit is used to control the rounding direction, making the rounding process self-determining without external random value input. The sign bit that already exists in the floating-point representation is repurposed to control rounding behavior, eliminating the need for additional random value generation resources.

Inventive Principle:
Principle #25Self-service

2Measurement precision

If stochastic rounding techniques are used to achieve random rounding behavior, then rounding accuracy is improved, but power consumption increases due to random value generation

Engineering Contradiction:
Improverounding accuracyVSAvoidpower consumption
Core Design Contradiction:
Measurement precisionVSUse of energy by moving object

Solution Approach 1:

The patent removes the power-consuming random value generation step from the rounding process. By using the existing sign bit to control rounding direction, the invention eliminates the need for random number generators, thereby reducing power consumption while maintaining rounding accuracy benefits.

Inventive Principle:
Principle #2Taking out (Extraction)

Solution Approach 2:

The rounding process uses the operand's inherent sign bit information to determine rounding direction, eliminating the need for additional power-consuming random value generation. The system serves itself by repurposing existing data bits rather than requiring additional energy-intensive random number generation.

Inventive Principle:
Principle #25Self-service

3Device complexity

If conventional IEEE rounding techniques are used, then device complexity is reduced, but manufacturing precision deteriorates due to inability to handle small gradients in neural network training

Engineering Contradiction:
Improvecircuitry complexityVSAvoidparameter update accuracy
Core Design Contradiction:
Device complexityVSManufacturing precision

Solution Approach 1:

The patent introduces dynamic rounding behavior that adapts based on the sign bit of the operand. Instead of using fixed rounding modes, the rounding direction changes dynamically according to the operand's sign, enabling the system to maintain low complexity while achieving improved precision for neural network training applications where gradient direction matters.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The invention changes the rounding parameter (rounding direction) based on the sign bit of the operand. By making the rounding behavior dependent on the sign parameter rather than using fixed IEEE rounding modes, the system achieves better precision for small gradient updates while maintaining simple circuitry comparable to conventional rounding implementations.

Inventive Principle:
Principle #35Parameter changes

Data Source

PatentUS20260017017A1Dynamic directional rounding
Publication Date: 2026.01.15 NVIDIA CORP
  • US20260017017A1 patent drawing
  • US20260017017A1 patent drawing
  • US20260017017A1 patent drawing

AI summary

A method, computer readable medium, and system are disclosed for rounding floating point values. Dynamic directional rounding is a rounding technique for floating point operations. A floating point operation (addition, subtraction, multiplication, etc.) is performed on an operand to compute a floating point result. A sign (positive or negative) of the operand is identified. In one embodiment, the sign determines a direction in which the floating point result is rounded (towards negative or positive infinity). When used for updating parameters of a neural network during backpropagation, dynamic directional rounding ensures that rounding is performed in the direction of the gradient.