IP Library › Granted Patent US 11,960,574
Granted Patent B2
US 11,960,574 · App. 17/361,146 · Granted Apr 16, 2024

Image generation using adversarial attacks for imbalanced datasets

Inventors: Gaurav Mittal (Redmond, WA); Nikolaos Karianakis (Sammamish, WA); Victor Manuel Fragoso Rojas (Bellevue, WA); Mei Chen (Redmond, WA); Jedrzej Jakub Kozerawski (Goleta, CA)
Assignee: MICROSOFT TECHNOLOGY LICENSING, LLC
G06F18/2431G06N3/04G06N3/08
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 11,960,574
App. No.
17/361,146
Granted
Apr 16, 2024
Kind
B2
Abstract

A method of balancing a dataset for a machine learning model includes identifying confusing classes of few-shot classes for a machine learning model during validation. One of the confusing classes and an image from one of the few-shot classes are selected. An image perturbation is computed such that the selected image is classified as the selected confusing class. The selected image is modified with the computed perturbation. The modified selected image is added to a batch for training the machine learning model.

Claims (43)

1. A method of balancing a dataset for a machine learning model, the method comprising:

receiving a machine learning model implemented in a computing system;

identifying confusing classes of few-shot classes for the machine learning model during validation;

selecting one of the confusing classes;

selecting an image from one of the few-shot classes;

computing an image perturbation such that the selected image is classified as the selected confusing class, wherein the image perturbation is computed using a gradient-ascent technique that propagates a gradient to an input image;

modifying the selected image with the computed perturbation; and

adding the modified selected image to the one few-shot class for training the machine learning model.

2. The method of claim 1 , further comprising computing a pixel update based on the gradient.

3. The method of claim 1 , wherein the selected image is modified by maximizing a posterior probability or logit of a non-true class given an input image.

4. The method of claim 1 , wherein the one confusing class is selected by:

computing a probability distribution over all classes using confusion matrix scores for a tail class;

and using the computed probability distribution to sample for a confusing class.

5. The method of claim 1 , wherein a minimum class score is computed by randomly choosing a confidence value from within 0.15 and 0.25.

6. The method of claim 1 , wherein the gradient-ascent technique is executed with a learning rate δ=0.7.

7. The method of claim 6 , further comprising stopping the gradient-ascent technique when S c′ (I′)≥s c′ or when 15 iterations is reached.

8. A computing system, comprising:

one or more processors; and

a computer-readable storage medium having computer-executable instructions stored thereupon which, when executed by the processor, cause the computing system to perform operations comprising:

selecting a confusing class of few-shot classes for a machine learning model;

selecting an image from one of the few-shot classes;

computing an image perturbation such that the selected image is classified as the selected confusing class, wherein the image perturbation is computed using a gradient-ascent technique that propagates a gradient to an input image;

modifying the selected image with the computed perturbation; and

adding the modified selected image to a batch for training the machine learning model.

9. The computing system of claim 8 , further comprising computing a pixel update based on the gradient.

10. The computing system of claim 8 , wherein the selected image is modified by maximizing a posterior probability or logit of a non-true class given an input image.

11. The computing system of claim 8 , wherein the one confusing class is selected by:

computing a probability distribution over all classes using confusion matrix scores for a tail class;

and using the computed probability distribution to sample for a confusing class.

12. A computer-readable storage medium having computer-executable instructions stored thereupon which, when executed by one or more processors of a computing device, cause the computing device to perform operations comprising:

receiving a machine learning model implemented in a computing system;

identifying confusing classes of few-shot classes for the machine learning model during validation;

selecting one of the confusing classes;

selecting an image from one of the few-shot classes;

computing an image perturbation such that the selected image is classified as the selected confusing class, wherein the image perturbation is computed using a gradient-ascent technique that propagates a gradient to an input image;

modify the selected image with the computed perturbation; and

adding the modified selected image to a batch for training the machine learning model.

13. The computer-readable storage medium of claim 12 , wherein a minimum class score is computed by randomly choosing a confidence value from within 0.15 and 0.25.

14. The computer-readable storage medium of claim 12 , wherein:

the gradient-ascent technique is executed with a learning rate δ=0.7.

15. The computer-readable storage medium of claim 14 , further comprising stopping the gradient-ascent technique when S c′ (I′)≥s c′ or when 15 iterations is reached.

16. The computer-readable storage medium of claim 12 , further comprising computing a pixel update based on the gradient.

17. The computer-readable storage medium of claim 12 , wherein the selected image is modified by maximizing a posterior probability or logit of a non-true class given an input image.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 28, 2021
From: MITTAL, GAURAV; KARIANAKIS, NIKOLAOS; FRAGOSO ROJAS, VICTOR MANUEL; CHEN, MEI; KOZERAWSKI, JEDRZEJ JAKUB
To: MICROSOFT TECHNOLOGY LICENSING, LLC
Reel/Frame 056694/0039 →
Continuity (1)
Related Publication 20220414392A1 · Dec 29, 2022
Cited By (1)
US 12,462,537