IP Library › Granted Patent US 12,380,683
Granted Patent B2
US 12,380,683 · App. 17/988,861 · Granted Aug 5, 2025

Forecasting uncertainty in machine learning models

Inventor: Gil Shamir (Sewickley, PA)
Assignee: GOOGLE LLC
G06V10/7747G06V10/772
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,380,683
App. No.
17/988,861
Filed
Nov 17, 2022
Granted
Aug 5, 2025
Kind
B2
Art Unit
2667
USPC
382/159
Abstract

Provided are systems and methods for generating a score for any model which can be updated online, regardless of model type architecture and parameters, leveraging relations between regret and uncertainty.

Claims (45)

1. A computer-implemented method, the method comprising:

for each of a plurality of examples, each example comprising an input and a label:

processing, by a computing system comprising one or more computing devices, the input with the machine-learned model to generate a model score and a prediction with respect to the label;

updating, by the computing system, one or more parameter values of the machine-learned model based on a gradient associated with the prediction of the machine-learned model with respect to the label, thereby generating an updated machine-learned model;

processing, by the computing system, the input with the updated machine-learned model to generate an updated score;

determining, by the computing system, a difference between the model score and the updated score; and

determining, by the computing system, a measure of an effective number of similar examples that the machine-learned model observed in a training dataset based on the difference between the model score and the updated score;

determining, by the computing system, an uncertainty score for the input relative to each of a number of possible labels; and

generating, by the computing system, a weighted average of the uncertainty score over all of the number of possible labels and

initiating, by the computing system, an action based on the measure determined for each of the plurality of examples.

2. The computer-implemented method of claim 1 , wherein the action comprises an explore or exploit decision.

3. The computer implemented method of claim 1 , wherein the model used to compute the measure is an auxiliary model to a model used to perform inference.

4. The computer-implemented method of claim 1 , wherein the measure of the effective number of similar examples is used to determine a shrinkage of the prediction.

5. The computer-implemented method of claim 1 , wherein the label for each example comprises a ground truth label for the input.

6. The computer-implemented method of claim 1 , wherein the label for each example comprises a binary label.

7. The computer-implemented method of claim 1 , wherein the label for each example comprises a label from a multi-label setting.

8. The computer-implemented method of claim 1 , wherein the model score comprises a dot product or an output of a neural network.

9. The computer-implemented method of claim 1 , wherein the model score comprises a logit score.

10. The computer-implemented method of claim 1 , wherein the prediction comprises a probability prediction for the input relative to the label.

11. The computer-implemented method of claim 1 , wherein the measure comprises one divided by the prediction times an absolute value of the difference between the model score and the updated score.

12. The computer-implemented method of claim 1 , wherein updating, by the computing system, the one or more parameter values of the machine-learned model based on the gradient comprises performing a gradient descent step.

13. The computer-implemented method of claim 1 , further comprising, for each example: reverting the updating of the one or more parameter values of the machine-learned model so as to return to the machine-learned model prior to said updating to perform inference on the score of the ground truth label of an example.

14. The computer-implemented method of claim 1 , wherein the machine-learned model is updated in an online fashion.

15. A computer system configured to perform operations, the operations comprising:

for at least one of a plurality of examples, each example comprising an input and a label:

processing, by a computing system comprising one or more computing devices, the input with the machine-learned model to generate a model score and a prediction with respect to the label;

updating, by the computing system, one or more parameter values of the machine-learned model based on a gradient associated with the prediction of the machine-learned model with respect to the label, thereby generating an updated machine-learned model;

processing, by the computing system, the input with the updated machine-learned model to generate an updated score;

determining, by the computing system, a difference between the model score and the updated score; and

determining, by the computing system, an uncertainty score for the example based on the difference between the model score and the updated score;

determining, by the computing system, the uncertainty score for the input relative to each of a number of possible labels; and

generating, by the computing system, a weighted average of the uncertainty scores over all of the number of possible labels; and

initiating, by the computing system, an action based on the uncertainty score for the at least one of plurality of examples.

16. One or more non-transitory computer-readable media that store instructions that, when executed by one or more processors of a computing system, cause the computing system to perform operations, the operations comprising:

for each of a plurality of examples, each example comprising an input and a label:

processing, by a computing system comprising one or more computing devices, the input with the machine-learned model to generate a model score and a prediction with respect to the label;

updating, by the computing system, one or more parameter values of the machine-learned model based on a gradient associated with the prediction of the machine-learned model with respect to the label, thereby generating an updated machine-learned model;

processing, by the computing system, the input with the updated machine-learned model to generate an updated score;

determining, by the computing system, a difference between the model score and the updated score; and

determining, by the computing system, an uncertainty score for the example based on the difference between the model score and the updated score;

determining, by the computing system, the uncertainty score for the input relative to each of a number of possible labels; and

generating, by the computing system, a weighted average of the uncertainty scores over all of the number of possible labels; and

initiating, by the computing system, an action based on the uncertainty score determined for each of the plurality of examples.

17. The one or more non-transitory computer-readable media of claim 16 , wherein the uncertainty score comprises one minus the prediction times the prediction squared times an absolute value of the difference between the model score and the updated score.

18. The one or more non-transitory computer-readable media of claim 16 , wherein the action comprises an explore or exploit decision.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jan 6, 2023
From: SHAMIR, GIL
To: GOOGLE LLC
Reel/Frame 062292/0878 →
Continuity (1)
Related Publication 20240169707A1 · May 23, 2024
References Cited (8)
US 11562203B2 · Gauthier · 2023 [cited by examiner]
US 11742076B2 · Banerjee · 2023 [cited by examiner]
US 11790369B2 · Wittenbach · 2023 [cited by examiner]
US 20210117760A1 · Krishnan · 2021 [cited by examiner]
US 20210366106A1 · Yao · 2021 [cited by examiner]
US 20220108219A1 · Shamir · 2022 [cited by examiner]
US 20230040793A1 · Sud · 2023 [cited by examiner]
US 20240428573A1 · Fuxman · 2024 [cited by examiner]