# US 2025/0165851 A1 · Dynamic selection of training routines based on data shift severity

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2025/0165851 A1
- Document ID: US20250165851A1
- Status: Published application
- Kind: A1
- Application number: 18/513,173
- Filed: 2023-11-17
- Published: 2025-05-22
- Earliest claimed: 2023-11-17
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Youbing YIN; Joshua EDWARDS; Benjamin ENG
- Web page: https://patentgrep.com/patent/US20250165851A1

## CPC

- G06N 20/00: Machine learning
- G06N 3/045: Combinations of networks
- G06N 3/047: Probabilistic or stochastic networks
- G06N 3/0475: Generative networks
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems are described herein for facilitating dynamic selection of training routines for training machine learning models based on data shift severity. The system may detect, in a production dataset, a data shift from a training dataset used to train a machine learning model. The system may provide the production dataset to an adversarial network to cause the adversarial network to generate synthetic data based on the production dataset. The system may determine that a magnitude of the data shift satisfies a first threshold and does not satisfy a second threshold and, in response, may perform a first training routine. The first training routine may involve training a second machine learning model using the training dataset, the production dataset, and the synthetic data. The system may then replace the first machine learning model with the second machine learning model in a production environment.

## Claims

### Claim 1

A system for dynamically selecting training routines for training machine learning models based on data shift severity, the system comprising:
one or more processors and one or more non-transitory computer-readable media having computer-executable instructions stored thereon, the computer-executable instructions, when executed by the one or more processors, causing operations comprising:
detecting, in a production dataset, a data shift from a training dataset used to train a machine learning model;
providing, to a generative adversarial network, the production dataset to cause the generative adversarial network to generate synthetic data based on the production dataset;
in response to a magnitude of the data shift satisfying a first threshold and not satisfying a second threshold higher than the first threshold, performing a first training routine for training a new machine learning model in lieu of performing a second training routine for training the new machine learning model, the first training routine comprising training the new machine learning model using a first updated dataset, the first updated dataset comprising the training dataset, the production dataset, and the synthetic data, the first training routine further comprising assigning first weights to the production dataset and the synthetic data and second weights to the training dataset, wherein the first weights are heavier than the second weights;
in response to the magnitude of the data shift satisfying the second threshold, performing the second training routine for training the new machine learning model in lieu of performing the first training routine, the second training routine being different from the first training routine and comprising training the new machine learning model using a second updated dataset different from the first updated dataset, the second updated dataset comprising the production dataset and the synthetic data; and
replacing the machine learning model with the new machine learning model in a production environment.

### Claim 2

A method comprising:
detecting, in a production dataset, a data shift from a training dataset used to train a first machine learning model;
providing, to a generative adversarial network, the production dataset to cause the generative adversarial network to generate synthetic data based on the production dataset;
determining that a magnitude of the data shift satisfies a first threshold and does not satisfy a second threshold;
performing, based on determining that the magnitude of the data shift satisfies the first threshold and does not satisfy the second threshold, a first training routine comprising training a second machine learning model using a first updated dataset, the first updated dataset comprising the training dataset, the production dataset, and the synthetic data; and
replacing the first machine learning model with the second machine learning model in a production environment.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
detecting, in a new production dataset, a new data shift from the training dataset used to train the first machine learning model;
determining that a new magnitude of the new data shift satisfies the second threshold;
performing, based on determining that the new magnitude of the new data shift satisfies the second threshold, a second training routine comprising training a new machine learning model using a second updated dataset different from the first updated dataset, the second updated dataset comprising the production dataset and the synthetic data; and
replacing the first machine learning model with the new machine learning model.

### Claim 4 (depends on 2)

The method of claim 2, further comprising:
detecting, in a new production dataset, a new data shift from the training dataset used to train the first machine learning model;
determining that a new magnitude of the new data shift satisfies the first threshold and does not satisfy the second threshold;
performing, based on determining that the new magnitude of the new data shift satisfies the first threshold and does not satisfy the second threshold, a third training routine comprising (i) obtaining an instance of the first machine learning model that has one or more same training-derived parameters as the first machine learning model previously trained using the training dataset and (ii) providing, to the instance of the first machine learning model, a second updated dataset different from the first updated dataset to generate an updated machine learning model, the second updated dataset comprising the production dataset and the synthetic data; and
replacing the first machine learning model with the updated machine learning model.

### Claim 5 (depends on 4)

The method of claim 4, wherein generating the updated machine learning model comprises causing the first machine learning model to update one or more weights used to generate predictions.

### Claim 6 (depends on 4)

The method of claim 4, wherein generating the updated machine learning model comprises causing the first machine learning model to update one or more classifiers used to generate predictions.

### Claim 7 (depends on 2)

The method of claim 2, further comprising:
detecting, in the production dataset, a new data shift from the training dataset used to train the first machine learning model;
determining that a new magnitude of the new data shift does not satisfy the first threshold; and
based on determining that the new magnitude of the new data shift does not satisfy the first threshold, refraining from implementing a training routine.

### Claim 8 (depends on 2)

The method of claim 2, wherein performing the first training routine comprises assigning first weights to the production dataset and the synthetic data and assigning second weights to the training dataset, wherein the first weights are heavier than the second weights.

### Claim 9 (depends on 2)

The method of claim 2, further comprising calculating the magnitude of the data shift using feature similarity scores based on the training dataset and the production dataset.

### Claim 10 (depends on 2)

The method of claim 2, further comprising calculating the magnitude of the data shift by comparing one or more predictions generated by the first machine learning model with one or more ground truths derived from the training dataset.

### Claim 11 (depends on 2)

The method of claim 2, further comprising calculating the magnitude of the data shift using one or more evaluation metrics associated with the first machine learning model.

### Claim 12

One or more non-transitory, computer-readable media storing instructions that, when executed by one or more processors, cause operations comprising:
detecting, in a second dataset, a data shift from a first dataset used to train a first machine learning model;
obtaining, via a generative adversarial network, synthetic data based on the second dataset;
performing, based on a magnitude of the data shift satisfying a first threshold and not satisfying a second threshold, a first training routine comprising training a second machine learning model using the first dataset, the second dataset, and the synthetic data; and
replacing the first machine learning model with the second machine learning model.

### Claim 13 (depends on 12)

The one or more non-transitory, computer-readable media of claim 12, wherein the instructions further cause the one or more processors to perform operations comprising:
detecting, in a third dataset, a new data shift from the first dataset used to train the first machine learning model;
determining that a new magnitude of the new data shift satisfies the second threshold;
performing, based on determining that the new magnitude of the new data shift satisfies the second threshold, a second training routine different from the first training routine, the second training routine comprising training a new machine learning model using the second dataset and the synthetic data; and
replacing the first machine learning model with the new machine learning model.

### Claim 14 (depends on 12)

The one or more non-transitory, computer-readable media of claim 12, wherein the instructions further cause the one or more processors to perform operations comprising:
detecting, in a third dataset, a new data shift from the first dataset used to train the first machine learning model;
determining that a new magnitude of the new data shift satisfies the first threshold and does not satisfy the second threshold;
performing, based on determining that the new magnitude of the new data shift satisfies the first threshold and does not satisfy the second threshold, a third training routine different from the first training routine, the third training routine comprising (i) obtaining an instance of the first machine learning model that has one or more same training-derived parameters as the first machine learning model previously trained using the first dataset and (ii) providing, to the instance of the first machine learning model, the second dataset and the synthetic data to generate an updated machine learning model; and
replacing the first machine learning model with the updated machine learning model.

### Claim 15 (depends on 14)

The one or more non-transitory, computer-readable media of claim 14, wherein, to generate the updated machine learning model, the instructions further cause the one or more processors to cause the first machine learning model to update one or more weights used to generate predictions.

### Claim 16 (depends on 14)

The one or more non-transitory, computer-readable media of claim 14, wherein, to generate the updated machine learning model, the instructions further cause the one or more processors to cause the first machine learning model to update one or more classifiers used to generate predictions.

### Claim 17 (depends on 12)

The one or more non-transitory, computer-readable media of claim 12, wherein, to perform the first training routine, the instructions further cause the one or more processors to assign first weights to the second dataset and the synthetic data and assign second weights to the first dataset, wherein the first weights are heavier than the second weights.

### Claim 18 (depends on 12)

The one or more non-transitory, computer-readable media of claim 12, wherein the instructions further cause the one or more processors to perform operations comprising calculating the magnitude of the data shift using feature similarity scores based on the first dataset and the second dataset.

### Claim 19 (depends on 12)

The one or more non-transitory, computer-readable media of claim 12, wherein the instructions further cause the one or more processors to perform operations comprising calculating the magnitude of the data shift by comparing one or more predictions generated by the first machine learning model with one or more ground truths derived from the first dataset.

### Claim 20 (depends on 12)

The one or more non-transitory, computer-readable media of claim 12, wherein the instructions further cause the one or more processors to perform operations comprising calculating the magnitude of the data shift using one or more evaluation metrics associated with the first machine learning model.
