# US 2023/0267764 A1 · System and methods for diversity auditing

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

- Number: US 2023/0267764 A1
- Document ID: US20230267764A1
- Status: Published application
- Kind: A1
- Application number: 17/652,026
- Filed: 2022-02-22
- Published: 2023-08-24
- Earliest claimed: 2022-02-22
- Assignees: Adobe Inc.
- Applicants: Adobe Inc.
- Inventors: Md Mehrab Tanjim; Ritwik Sinha; Moumita Sinha; David Thomas Arbour; Sridhar Mahadevan
- Web page: https://patentgrep.com/patent/US20230267764A1

## CPC

- G06V 10/82: using neural networks
- G06V 40/172: {Classification, e.g. identification}
- G06V 40/161: {Detection; Localisation; Normalisation}
- G06V: IMAGE OR VIDEO RECOGNITION OR UNDERSTANDING

## Abstract

Systems and methods for diversity auditing are described. The systems and methods include identifying a plurality of images; detecting a face in each of the plurality of images using a face detection network; classifying the face in each of the plurality of images based on a sensitive attribute using an image classification network; generating a distribution of the sensitive attribute in the plurality of images based on the classification; and computing a diversity score for the plurality of images based on the distribution.

## Claims

### Claim 1

A method for data auditing, comprising:
identifying a plurality of images;
detecting a face in each of the plurality of images using a face detection network;
classifying the face in each of the plurality of images based on a sensitive attribute using an image classification network;
generating a distribution of the sensitive attribute in the plurality of images based on the classification; and
computing a diversity score for the plurality of images based on the distribution.

### Claim 2 (depends on 1)

The method of claim 1, further comprising:
identifying a website; and
collecting the plurality of images from the website.

### Claim 3 (depends on 2)

The method of claim 2, further comprising:
performing an image search on the website; and
receiving search results for the image search, wherein the plurality of images is collected from the search results.

### Claim 4 (depends on 1)

The method of claim 1, further comprising:
ordering the plurality of images based at least in part on the diversity score.

### Claim 5 (depends on 1)

The method of claim 1, further comprising:
generating an image feature vector for each of the plurality of images, wherein the classification is based on the image feature vector.

### Claim 6 (depends on 1)

The method of claim 1, further comprising:
identifying a comparison population for the plurality of images; and
identifying a baseline distribution of the sensitive attribute based on the comparison population, wherein the diversity score is computed by comparing the distribution and the baseline distribution.

### Claim 7 (depends on 6)

The method of claim 6, further comprising:
computing a Hellinger distance between the distribution and the baseline distribution, wherein the diversity score is based on the Hellinger distance.

### Claim 8 (depends on 6)

The method of claim 6, further comprising:
identifying an additional baseline distribution of the sensitive attribute, wherein the diversity score is computed by comparing the distribution to the baseline distribution and the additional baseline distribution.

### Claim 9 (depends on 1)

The method of claim 1, further comprising:
identifying additional images having the sensitive attribute based on the diversity score; and
combining the plurality of images with the additional images to obtain a representative set of images.

### Claim 10 (depends on 9)

The method of claim 9, further comprising:
generating the additional images using a generative adversarial network (GAN).

### Claim 11 (depends on 1)

The method of claim 1, wherein:
the sensitive attribute comprises race, gender, or age.

### Claim 12

A method for data auditing, comprising:
identifying a training set including a plurality of training images and label data identifying a ground truth sensitive attribute of a face in each of the plurality of training images;
classifying the face in each of the plurality of images using an image classification network to obtain a predicted sensitive attribute;
updating parameters of the image classification network by comparing the predicted sensitive attribute to the ground truth sensitive attribute;
applying the image classification network to a plurality of images to obtain a distribution of a sensitive attribute in the plurality of images; and
computing a diversity score for the plurality of images based on the distribution.

### Claim 13 (depends on 12)

The method of claim 12, further comprising:
computing a loss function based on comparing the predicted sensitive attribute to the ground truth sensitive attribute; and
computing a gradient of the loss function, wherein the parameters of the image classification network are updated based on the gradient of the loss function.

### Claim 14 (depends on 12)

The method of claim 12, further comprising:
training a face detection network to detect the face in each of the plurality of images, wherein the image classification network takes the face in each of the plurality of images as input.

### Claim 15 (depends on 12)

The method of claim 12, further comprising:
identifying a comparison population for the plurality of images; and
identifying a baseline distribution of the sensitive attribute based on the comparison population, wherein the diversity score is computed by comparing the distribution and the baseline distribution.

### Claim 16

An apparatus for data auditing, comprising:
a face detection network configured to detect a face in each of a plurality of images;
an image classification network configured to classify the face in each of the plurality of images based on a sensitive attribute;
a distribution component configured to generate a distribution of the sensitive attribute in the plurality of images based on the classification; and
a scoring component configured to compute a diversity score for the plurality of images based on the distribution.

### Claim 17 (depends on 16)

The apparatus of claim 16, further comprising:
an image collection component configured to collect the plurality of images from a website.

### Claim 18 (depends on 16)

The apparatus of claim 16, further comprising:
a generator network configured to generate additional images based on the diversity score.

### Claim 19 (depends on 16)

The apparatus of claim 16, wherein:
the face detection network comprises a convolutional neural network (CNN) architecture.

### Claim 20 (depends on 16)

The apparatus of claim 16, wherein:
the image classification network comprises a residual neural network (ResNet) architecture.
