Unbiased Gradient Optimization via Iterative Clipping Feedback

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing methods for finding stationary points of loss functions, particularly in deep neural networks, face issues such as 'exploding gradients' and biased updates due to irregular loss landscapes, leading to suboptimal convergence and accuracy in training neural networks, especially with small batch sizes.

Innovation Solution

A system that iteratively modifies gradients using clipped values from previous iterations, processes these with a clipping function to generate clipped gradients, and stores the difference for the next iteration, allowing for unbiased and rapid convergence to stationary points by smoothing out noise associated with small batch sizes.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If gradient updates are used to find stationary points of loss functions, then convergence to optimal parameters is achieved, but gradient updates may become too large causing exploding gradients and overshooting stationary points

Engineering Contradiction:
Improveconvergence reliabilityVSAvoidgradient update size
Core Design Contradiction:
ReliabilityVSForce

Solution Approach 1:

The patent dynamically adjusts the gradient update size by introducing a clipping threshold parameter that adapts during training. When gradients exceed this threshold, they are clipped to a maximum magnitude, preventing exploding gradients while maintaining reliable convergence to stationary points

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The system implements feedback by monitoring gradient magnitudes and adjusting clipping thresholds based on observed gradient behavior. This feedback mechanism allows the system to maintain stable convergence while adapting to varying gradient scales encountered during different phases of training

Inventive Principle:
Principle #23Feedback

2Reliability

If gradient clipping is applied to reduce gradient update size, then exploding gradients are prevented, but bias is introduced in parameter updates leading to slow convergence and missed stationary points

Engineering Contradiction:
Improvegradient stabilityVSAvoidconvergence speed
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The patent makes the clipping mechanism dynamic by adjusting the clipping threshold based on the running average of gradient magnitudes. This dynamic adaptation allows the system to be less aggressive with clipping during stable phases, reducing bias and improving convergence speed while maintaining gradient stability during volatile phases

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system performs preliminary computation of an unclipped gradient and compares it against the clipping threshold before applying clipping. This preliminary action allows the system to avoid clipping when unnecessary, reducing bias in parameter updates and maintaining faster convergence

Inventive Principle:
Principle #10Preliminary action

3Productivity

If small batch sizes are used for gradient evaluation, then computational resources are reduced, but loss landscape becomes more irregular causing biased updates and slower convergence

Engineering Contradiction:
Improvecomputational efficiencyVSAvoidupdate accuracy
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The patent introduces a running average of gradient magnitudes as an intermediary that smooths out the noise and irregularities caused by small batch sizes. This intermediary provides a more stable reference for gradient clipping, improving update accuracy while maintaining the computational efficiency of small batch training

Inventive Principle:
Principle #24Intermediary (Mediator)

Data Source

PatentUS20240256861A1Determining stationary points of a loss function using clipped and unbiased gradients
Publication Date: 2024.08.01 GDM HOLDING LLC
  • US20240256861A1 patent drawing
  • US20240256861A1 patent drawing
  • US20240256861A1 patent drawing

AI summary

A method of optimizing a loss function defined by one or more numerical parameters is provided. The method comprises determining initial values of the parameters, and performing a plurality of training iterations. Each training iteration except the first comprises (i) determining a gradient of the loss function associated with the parameters, (ii) obtaining a clipped value generated in a previous training iteration, (iii) additively combining the gradient and the clipped value to generate a modified gradient, (iv) processing, using a clipping function based on a threshold value, the modified gradient to generate a clipped gradient, (v) updating the value of the one or more parameters based on the clipped gradient, and (vi) storing, as the clipped value for use in a next training iteration, a difference between the modified gradient and the clipped gradient.