Two-Stage Deep Learning Training with Early Stopping

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Deep learning model training faces challenges in determining the optimal stopping point to avoid overfitting, with existing methods like early stopping requiring trial and error for patience parameters and checkpoint methods requiring extensive training time.

Innovation Solution

A two-stage training approach that uses early stopping for the first stage and resumes training with a small number of epochs in the second stage, allowing for efficient use of computing resources and prioritization of training jobs to optimize model evaluation and training time.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If early stopping is used to prevent overfitting, then model overfitting is reduced, but training time is extended due to trial and error for patience parameters

Engineering Contradiction:
Improvemodel accuracyVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The training process is divided into two distinct stages: first-stage training with early stopping to prevent overfitting, and second-stage training with continuation to improve accuracy. This segmentation allows the system to benefit from both early stopping (preventing overfitting) and extended training (improving accuracy) without the trial-and-error time cost, as the second stage automatically continues training after early stopping triggers.

Inventive Principle:
Principle #1Segmentation

2Reliability

If training continues after early stopping to obtain better models, then model accuracy may be improved, but computing resource efficiency deteriorates

Engineering Contradiction:
Improvemodel accuracyVSAvoidcomputing resource efficiency
Core Design Contradiction:
ReliabilityVSProductivity

Solution Approach 1:

The system dynamically adjusts the training process by implementing a two-stage approach where the second stage automatically continues training after early stopping. This dynamic adjustment allows the system to capture potential accuracy improvements without manual intervention or trial-and-error, thereby improving computing resource efficiency while maintaining model accuracy.

Inventive Principle:
Principle #15Dynamics

3Reliability

If checkpoint method is used to obtain best model, then model accuracy is improved, but training time is extended to maximum iterations

Engineering Contradiction:
Improvemodel accuracyVSAvoidtraining time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The first-stage training with early stopping serves as a preliminary action that identifies the optimal stopping point to prevent overfitting. This preliminary training phase allows the system to save computational resources by avoiding unnecessary training iterations, while the second stage then continues training to achieve the best model accuracy, eliminating the need to wait for maximum iterations.

Inventive Principle:
Principle #10Preliminary action

4Reliability

If patience parameter is optimized through trial and error, then early stopping effectiveness is improved, but training time increases

Engineering Contradiction:
Improveearly stopping effectivenessVSAvoidparameter tuning time
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The patent extracts the patience parameter optimization problem from the overall training process by implementing automatic continuation training in the second stage. This extraction eliminates the need for trial-and-error parameter tuning, as the system automatically determines the optimal stopping point and continues training to achieve the best model, thereby removing the time cost of parameter optimization.

Inventive Principle:
Principle #2Taking out (Extraction)

Data Source

PatentUS11640552B2Two stage training to obtain a best deep learning model with efficient use of computing resources
Publication Date: 2023.05.02 INTERNATIONAL BUSINESS MACHINE CORPORATION
  • US11640552B2 patent drawing
  • US11640552B2 patent drawing
  • US11640552B2 patent drawing

AI summary

A computer-implemented method, a computer program product, and a computer system for efficient use of computing resources in two stage training of a deep learning model. A computer executes a first first-stage training job to train a deep learning model. The computer finishes the first first-stage training job by using early stopping and then registers a first second-stage training job to train a deep learning model that has been trained in the first first-stage training job. The computer executes the first second-stage training job with a small number of epochs. The computer interrupts the first second-stage training job and executes a second first-stage training job, in response to receiving a registration of the second first-stage training job. The computer interrupts the first second-stage training job and executes a second second-stage training job that has a higher priority, in response to receiving a registration of the second second-stage training job.