# US 2024/0005648 A1 · Selective knowledge distillation

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

- Number: US 2024/0005648 A1
- Document ID: US20240005648A1
- Status: Published application
- Kind: A1
- Application number: 18/211,666
- Filed: 2023-06-20
- Published: 2024-01-04
- Earliest claimed: 2022-06-29
- Applicants: ObjectVideo Labs, LLC
- Inventors: Sravanthi Bondugula; Gang Qian; Lei Shi; Allison Beach
- Web page: https://patentgrep.com/patent/US20240005648A1

## CPC

- G06V 10/774: Generating sets of training patterns; Bootstrap methods, e.g. bagging or boosting
- G06V 10/776: Validation; Performance evaluation
- G06N 3/045: Combinations of networks
- G06N 3/096: Transfer learning
- G06V 10/764: using classification, e.g. of video objects
- G06V 10/7792: {the supervisor being an automated module, e.g. "intelligent oracle"}
- G06V 10/82: using neural networks
- G06V 20/70: Labelling scene content, e.g. deriving syntactic or semantic representations
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods, systems, and apparatus, including computer programs encoded on computer storage media, for updating a knowledge distillation training system. One of the methods includes: providing, to a teacher model in a knowledge distillation training system, first data representing an image to cause the teacher model to generate teacher output data that indicates whether the image depicts an object of interest; providing, to a student model in the knowledge distillation training system, second data representing the image to cause the student model to generate student output data that indicates whether the image depicts an object of interest; determining whether an accuracy of the teacher output data satisfies an accuracy threshold; and in response to determining that the accuracy of the teacher output data does not satisfy the accuracy threshold: determining to skip updating the student model; and updating the student model using the student output data and ground truth data.

## Claims

### Claim 1

A computer-implemented method comprising:
providing, to a teacher model in a knowledge distillation training system, first data representing an image to cause the teacher model to generate teacher output data that indicates whether the image depicts an object of interest;
providing, to a student model in the knowledge distillation training system, second data representing the image to cause the student model to generate student output data that indicates whether the image depicts an object of interest;
determining whether an accuracy of the teacher output data satisfies an accuracy threshold; and
in response to determining that the accuracy of the teacher output data does not satisfy the accuracy threshold:
determining to skip updating the student model using a distillation loss for the teacher model; and
updating the student model using the student output data and ground truth data for the image.

### Claim 2 (depends on 1)

The method of claim 1, comprising:
providing, to the teacher model in a knowledge distillation training system, third data representing a second image to cause the teacher model to generate second teacher output data that indicates whether the second image depicts an object of interest;
providing, to the student model in the knowledge distillation training system, fourth data representing the second image to cause the student model to generate second student output data that indicates whether the second image depicts an object of interest;
determining whether a second accuracy of the second teacher output data satisfies the accuracy threshold; and
in response to determining that the second accuracy of the second teacher output data satisfies the accuracy threshold, updating the student model using the second student output data, second ground truth data for the second image, and a second distillation loss for the teacher model determined using the second teacher output data.

### Claim 3 (depends on 1)

The method of claim 1, wherein:
the teacher output data comprises data that represents each of a plurality of bounding boxes;
determining whether the accuracy of the teacher output data satisfies the accuracy threshold comprises determining, for each of the plurality of bounding boxes, whether a corresponding accuracy of a corresponding portion of the teacher output data that represents a bounding box of the plurality of bounding boxes satisfies the accuracy threshold; and
determining to skip updating the student model comprises determining, for the bounding box of the plurality of bounding boxes that have the corresponding accuracy that does not satisfy the accuracy threshold, to skip updating the student model using a corresponding distillation loss for the bounding box.

### Claim 4 (depends on 1)

The method of claim 1, comprising determining the accuracy of the teacher output data using the ground truth data for the image and the teacher output data.

### Claim 5 (depends on 1)

The method of claim 1, wherein the teacher output data and the student output data comprise predicted labels and bounding box locations.

### Claim 6 (depends on 1)

The method of claim 1, wherein updating the student model using the student output data and ground truth data for the image comprises: determining a cross entropy loss using the ground truth and the student output data; and updating the student model using the cross entropy loss.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first data and second data comprise different data.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first data and second data comprise the same data.

### Claim 9 (depends on 1)

The method of claim 1, wherein the teacher model and the student model are object detection models.

### Claim 10 (depends on 1)

The method of claim 1, wherein:
determining whether the accuracy of the teacher output data satisfies the accuracy threshold comprises:
determining whether the accuracy for a first portion of the teacher output data satisfies the accuracy threshold; and
determining whether a second accuracy for a second, different portion of the teacher output data satisfies the accuracy threshold;
determining to skip updating the student model using the distillation loss for the teacher model comprises determining to skip updating the student model using a first distillation loss corresponding to the first portion of the teacher output data in response to determining that the accuracy for the first portion of the teacher output data does not satisfy the accuracy threshold, the method comprising:
in response to determining that the second accuracy satisfies the accuracy threshold, updating the student model using the second, different portion of the student output data, second ground truth data for the second, different portion, and a second distillation loss for the teacher model determined using the second portion of the teacher output data.

### Claim 11

A system comprising one or more computers and one or more storage devices on which are stored instructions that are operable, when executed by the one or more computers, to cause the one or more computers to perform operations comprising:
providing, to a teacher model in a knowledge distillation training system, first data representing an image to cause the teacher model to generate teacher output data that indicates whether the image depicts an object of interest;
providing, to a student model in the knowledge distillation training system, second data representing the image to cause the student model to generate student output data that indicates whether the image depicts an object of interest;
determining whether an accuracy of the teacher output data satisfies an accuracy threshold; and
in response to determining that the accuracy of the teacher output data does not satisfy the accuracy threshold:
determining to skip updating the student model using a distillation loss for the teacher model; and
updating the student model using the student output data and ground truth data for the image.

### Claim 12 (depends on 11)

The system of claim 11, wherein the operations further comprise:
providing, to the teacher model in a knowledge distillation training system, third data representing a second image to cause the teacher model to generate second teacher output data that indicates whether the second image depicts an object of interest;
providing, to the student model in the knowledge distillation training system, fourth data representing the second image to cause the student model to generate second student output data that indicates whether the second image depicts an object of interest;
determining whether a second accuracy of the second teacher output data satisfies the accuracy threshold; and
in response to determining that the second accuracy of the second teacher output data satisfies the accuracy threshold, updating the student model using the second student output data, second ground truth data for the second image, and a second distillation loss for the teacher model determined using the second teacher output data.

### Claim 13 (depends on 11)

The system of claim 11, wherein:
the teacher output data comprises data that represents each of a plurality of bounding boxes;
determining whether the accuracy of the teacher output data satisfies the accuracy threshold comprises determining, for each of the plurality of bounding boxes, whether a corresponding accuracy of a corresponding portion of the teacher output data that represents the bounding box satisfies the accuracy threshold; and
determining to skip updating the student model comprises determining, for the bounding boxes from the plurality of bounding boxes that have the corresponding accuracy that does not satisfy the accuracy threshold, to skip updating the student model using a corresponding distillation loss for the bounding box.

### Claim 14 (depends on 11)

The system of claim 11, wherein the operations further comprise determining the accuracy of the teacher output data using the ground truth data for the image and the teacher output data.

### Claim 15 (depends on 11)

The system of claim 11, wherein the teacher output data and the student output data comprise predicted labels and bounding box locations.

### Claim 16 (depends on 11)

The system of claim 11, wherein updating the student model using the student output data and ground truth data for the image comprises: determining a cross entropy loss using the ground truth and the student output data; and updating the student model using the cross entropy loss.

### Claim 17 (depends on 11)

The system of claim 11, wherein the first data and second data comprise different data.

### Claim 18 (depends on 11)

The system of claim 11, wherein the first data and second data comprise the same data.

### Claim 19 (depends on 11)

The system of claim 11, wherein the teacher model and the student model are object detection models.

### Claim 20

One or more non-transitory computer storage media encoded with instructions that, when executed by one or more computers, cause the one or more computers to perform operations comprising:
providing, to a teacher model in a knowledge distillation training system, first data representing an image to cause the teacher model to generate teacher output data that indicates whether the image depicts an object of interest;
providing, to a student model in the knowledge distillation training system, second data representing the image to cause the student model to generate student output data that indicates whether the image depicts an object of interest;
determining whether an accuracy of the teacher output data satisfies an accuracy threshold; and
in response to determining that the accuracy of the teacher output data does not satisfy the accuracy threshold:
determining to skip updating the student model using a distillation loss for the teacher model; and
updating the student model using the student output data and ground truth data for the image.
