Blending Machine Learning Model Versions for Smooth Migration

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Machine learning model updates often result in significant prediction 'jitter' due to substantial changes in model configurations, leading to disruptions in downstream applications and a lack of efficient tools for incremental model migration.

Innovation Solution

A method for blending model predictions during migration, which involves loading both old and new models, computing a migration duration based on the scale of changes, and blending outputs using weights that linearly decrease for the old model and increase for the new model over the migration duration.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If model updates are applied immediately to replace older models, then predictive performance is improved, but prediction stability deteriorates due to significant output changes causing downstream application disruptions

Engineering Contradiction:
Improvepredictive performanceVSAvoidprediction stability
Core Design Contradiction:
ReliabilityVSStability of the object's composition

Solution Approach 1:

The system dynamically adjusts the blend weight between old and new models over time. The blend weight transitions from 0 (fully old model) to 1 (fully new model) based on elapsed migration time, allowing the system to adaptively balance performance improvement against stability requirements at different stages of the migration process

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The system changes the operational parameter of model version weighting over time. By parameterizing the blend weight as a function of migration duration, the system transforms the static model selection problem into a dynamic parameter adjustment process that smooths transitions and reduces prediction jitter

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If model configuration changes are made to improve model performance, then predictive accuracy is improved, but output consistency deteriorates due to drastic effects on model outputs

Engineering Contradiction:
Improvepredictive accuracyVSAvoidoutput consistency
Core Design Contradiction:
Measurement precisionVSStability of the object's composition

Solution Approach 1:

The blended model prediction serves as an intermediary between the old model and new model. Instead of directly switching from old to new predictions, the system introduces a intermediate blended prediction that combines both models weighted by migration progress, thereby smoothing the transition and maintaining output consistency

Inventive Principle:
Principle #24Intermediary (Mediator)

Solution Approach 2:

The system prepares for potential output disruptions by pre-establishing a gradual migration schedule with defined blend weights. This beforehand cushioning through incremental weight adjustment prevents sudden output changes that would otherwise occur with immediate model replacement

Inventive Principle:
Principle #11Beforehand cushioning (Prior cushioning)

3Stability of the object's composition

If legacy models are maintained to ensure stability, then prediction stability is maintained, but system efficiency deteriorates due to the need to maintain and run multiple model versions

Engineering Contradiction:
Improveprediction stabilityVSAvoidsystem efficiency
Core Design Contradiction:
Stability of the object's compositionVSProductivity

Solution Approach 1:

The system maintains continuous useful action by keeping both old and new models operational during the migration period with appropriate weighting. This continuous operation of both models ensures stability while progressively transitioning to the more efficient new model, ultimately achieving full productivity benefits once migration completes

Inventive Principle:
Principle #20Continuity of useful action

Data Source

PatentUS20250077959A1Smooth blending of machine learning model versions
Publication Date: 2025.03.06 AMPERITY INC
  • US20250077959A1 patent drawing
  • US20250077959A1 patent drawing
  • US20250077959A1 patent drawing

AI summary

In some implementations, the techniques described herein relate to a method including: loading a current and a new model, the new model including the most recent version of the current model; computing a migration duration based on computed properties, namely the jitter in predictions between the current and the new models based on imputing the same inference data to both models; blending outputs of the current model with outputs of the new model according to weights computed for a current time step in the migration process; and serving new predictions using the new model when the migration duration expires.