Piecewise Learning Rate Scheduling for Efficient Language Model Retraining

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Training large language models is computationally intensive and inefficient due to improper determination of the learning rate, leading to degraded performance and the need for restarting the training process, which discards previous effort.

Innovation Solution

A piecewise learning rate function is applied, comprising linearly increasing, inversely decreasing with a constant term, and linearly decreasing phases to optimize training iterations, ensuring efficient retraining without discarding previous effort.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Productivity

If a fixed learning rate is used during training, then the training process is simple to implement, but the training efficiency is low and model performance degrades

Engineering Contradiction:
Improvetraining efficiencyVSAvoidlearning rate schedule complexity
Core Design Contradiction:
ProductivityVSDevice complexity

Solution Approach 1:

The learning rate is transformed from a static fixed value to a dynamic schedule that changes over training iterations. The system implements a piecewise function with three phases: linear increase, inverse square root decrease with constant term, and linear decrease, allowing the learning rate to adapt automatically to different training stages without manual intervention

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The learning rate parameter is changed from a constant to a time-varying function. The patent specifies exact mathematical formulations for each phase: linear increase (lr = lr_min + (lr_max - lr_min) * progress), inverse square root decrease (lr = alpha / sqrt(iterations) + constant), and linear decrease, transforming a single parameter into a dynamic control mechanism

Inventive Principle:
Principle #35Parameter changes

2Adaptability or versatility

If the training process is restarted when retraining is needed, then new training data can be incorporated, but previous training effort is discarded

Engineering Contradiction:
Improveretraining capabilityVSAvoidtraining time
Core Design Contradiction:
Adaptability or versatilityVSLoss of time

Solution Approach 1:

The learning rate schedule is designed from the beginning to accommodate multiple training runs. By establishing a schedule that can resume from checkpoint iterations rather than always starting from zero, the system prepares in advance for retraining scenarios, allowing seamless continuation without discarding previous work

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The training process maintains continuity by resuming the learning rate schedule from where it left off. When retraining with new data, the system continues the existing learning rate progression rather than restarting, ensuring that the useful action of parameter optimization continues uninterrupted across multiple training phases

Inventive Principle:
Principle #20Continuity of useful action

3Speed

If the learning rate is increased to speed up training, then training converges faster, but model performance degrades

Engineering Contradiction:
Improvetraining speedVSAvoidmodel performance
Core Design Contradiction:
SpeedVSReliability

Solution Approach 1:

The learning rate follows a periodic pattern of increase and decrease across different training phases. The schedule periodically increases learning rate during linear phases to accelerate training, then decreases during inverse square root and final linear decrease phases to refine convergence, creating a rhythm that balances speed and performance

Inventive Principle:
Principle #19Periodic action

Solution Approach 2:

The learning rate dynamically adjusts its magnitude based on training progress. Rather than maintaining a high fixed learning rate that sacrifices performance, the system dynamically modulates the learning rate through piecewise functions, allowing high speeds during early training and precise control during later convergence phases

Inventive Principle:
Principle #15Dynamics

Data Source

PatentUS20250245552A1Learning rate schedule for training machine learning based language models
Publication Date: 2025.07.31 DATABRICKS INC
  • US20250245552A1 patent drawing
  • US20250245552A1 patent drawing
  • US20250245552A1 patent drawing

AI summary

A system trains a machine learning model, such as a language model for a set of iterations using a learning rate that is a piecewise function comprising: (1) a first range of inputs for which the learning rate is linearly increasing in value with the number of iterations, (2) a second range of inputs after the first range of inputs for which the learning rate comprises: a first term that varies as inverse square root of the number of iterations, and a second term that has a constant value with respect to the number of iterations, and (3) a third range of inputs for which the learning rate is linearly decreasing in value with the number of iterations. The system evaluates the trained language model and determines based on the evaluation, whether the trained language model should be deployed.