# US 2023/0066807 A1 · Automatic generation of attribute sets for counterfactual explanations

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

- Number: US 2023/0066807 A1
- Document ID: US20230066807A1
- Status: Published application
- Kind: A1
- Application number: 17/464,566
- Filed: 2021-09-01
- Published: 2023-03-02
- Earliest claimed: 2021-09-01
- Assignees: Capital One Services, LLC
- Applicants: Capital One Services, LLC
- Inventors: Brian Barr; Christopher Bruss
- Web page: https://patentgrep.com/patent/US20230066807A1

## CPC

- G06N 3/04: Architecture, e.g. interconnection topology
- G06N 20/00: Machine learning
- G06N 3/084: Backpropagation, e.g. using gradient descent
- G06N 3/09: Supervised learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Methods and systems are described herein for generating updated sets of attributes that would turn a negative decision of an automated system into a positive decision. A received set of attributes associated with a negative decision of an automated system may be used to generate a latent representation of that set of attributes. A machine learning model may then be used to output a change value (an alpha value). The alpha value may represent a minimum change needed to be made to the set of attributes to change the negative decision to a positive decision. The alpha value may then be applied to the latent representation to generate an updated latent representation, which may then be decoded into an updated set of attributes that would generate a positive decision from the automated system.

## Claims

### Claim 1

A system for generating updated sets of attributes, the system comprising:
one or more processors; and
a non-transitory computer-readable storage medium storing instructions, which when executed by the one or more processors cause the one or more processors to:
receive a set of attributes associated with a user, wherein the user received a negative decision from an automated system based on the set of attributes;
encode the set of attributes into a latent representation, wherein encoding the set of attributes into the latent representation comprises compressing the set of attributes into a multi-dimensional value that has less dimensions than a number of attributes in the set of attributes;
input the latent representation into a machine learning model to obtain an associated change value for the set of attributes, wherein the machine learning model is trained, using a plurality of latent representations and a plurality of change values, to output, for a received latent representation, a corresponding change value, and wherein each change value represents a minimum change needed to be made to the set of attributes to change the negative decision to a positive decision;
apply the associated change value to one or more dimensions of the latent representation to generate an updated latent representation;
decode the latent representation into an updated set of attributes; and
provide, to the user, the updated set of attributes.

### Claim 2 (depends on 1)

The system of claim 1, wherein the instructions for applying the associated change value to the one or more dimensions further cause the one or more processors to apply the associated change value to each dimension of the multi-dimensional value.

### Claim 3 (depends on 1)

The system of claim 1, wherein the instructions further cause the one or more processors to:
receive a training dataset comprising a plurality of records, wherein each record comprises a plurality of attributes of a corresponding user, and wherein each record is associated with a corresponding negative decision received from the automated system based on a corresponding plurality of attributes;
encode the plurality of records into the plurality of latent representations;
generate, for the plurality of latent representations, the plurality of change values, wherein applying a change value to a corresponding latent representation having the corresponding negative decision causes the corresponding latent representation to now have a corresponding positive decision; and
train, using the plurality of latent representations and the plurality of change values, the machine learning model to output, for the received latent representation, the corresponding change value.

### Claim 4 (depends on 3)

The system of claim 3, wherein the instructions for generating, for the plurality of latent representations, the plurality of change values cause the one or more processors to:
retrieve a plurality of positive latent representations, wherein each latent representation of the plurality of positive latent representations is associated with attributes known to receive a positive decision from the automated system;
determine an average latent representation from the plurality of positive latent representations; and
generate a training change value based on the average latent representation and each of the plurality of latent representations.

### Claim 5

A method for generating updated sets of attributes, the method comprising:
receiving a set of attributes associated with a negative decision;
encoding the set of attributes into a latent representation;
inputting the latent representation into a machine learning model trained to output a corresponding change value when a particular latent representation is input into the machine learning model, wherein each change value represents a minimum change needed to be made to the set of attributes to change the negative decision to a positive decision;
obtaining, from the machine learning model, an associated change value for the set of attributes;
applying the associated change value to the latent representation to generate an updated latent representation;
decoding the latent representation into an updated set of attributes; and
providing the updated set of attributes for review by a user.

### Claim 6 (depends on 5)

The method of claim 5, further comprising:
receiving a training dataset comprising a plurality of records, wherein each record comprises a plurality of attributes of a corresponding user, and wherein each record is associated with a corresponding negative decision received from an automated system based on a corresponding plurality of attributes;
encoding the plurality of records into a plurality of latent representations;
generating, for the plurality of latent representations, a plurality of change values, wherein applying a change value to a corresponding latent representation having the corresponding negative decision causes the latent representation to now have a corresponding positive decision; and
training, using the plurality of latent representations and the plurality of change values, the machine learning model to output a corresponding change value for a received latent representation.

### Claim 7 (depends on 6)

The method of claim 6, wherein generating, for the plurality of latent representations, the plurality of change values comprises:
retrieving a plurality of positive latent representations, wherein each latent representation of the plurality of positive latent representations is associated with attributes known to receive the positive decision from the automated system;
determining an average latent representation from the plurality of positive latent representations; and
generating a training change value based on the average latent representation and each of the plurality of latent representations.

### Claim 8 (depends on 6)

The method of claim 6, wherein generating, for the plurality of latent representations, the plurality of change values comprises:
inputting into a latent representation generating machine learning model a first set of attributes, wherein the latent representation generating machine learning model has been trained to generate latent representations for attribute sets associated with positive decisions of the automated system, and wherein the first set of attributes is associated with the negative decision of the automated system;
obtaining from the latent representation generating machine learning model, a first latent representation for the first set of attributes; and
generating a training change value based on the first latent representation and each of the plurality of latent representations.

### Claim 9 (depends on 5)

The method of claim 5, wherein applying the associated change value to the latent representation to generate the updated latent representation comprises performing a linear interpolation operation based on the associated change value, the latent representation and a given latent representation having the positive decision.

### Claim 10 (depends on 5)

The method of claim 5, wherein encoding the set of attributes into the latent representation comprises compressing the set of attributes into a multi-dimensional value.

### Claim 11 (depends on 10)

The method of claim 10, further comprising applying the associated change value to each dimension of the multi-dimensional value.

### Claim 12 (depends on 5)

The method of claim 5, further comprising:
determining that the updated latent representation requires the user to change an attribute that is not changeable; and
in response to determining that the updated latent representation requires the user to change the attribute that is not changeable, applying a different associated change value to the latent representation.

### Claim 13

A non-transitory, computer-readable medium for updating sets of attributes, storing instructions that, when executed by one or more processors, cause the one or more processors to perform operations comprising:
receiving a set of attributes associated with a negative decision;
encoding the set of attributes into a latent representation;
inputting the latent representation into a machine learning model trained to output a corresponding change value when a particular latent representation is input into the machine learning model, wherein each change value represents a minimum change needed to be made to the set of attributes to change the negative decision to a positive decision;
obtaining, from the machine learning model, an associated change value for the set of attributes;
applying the associated change value to the latent representation to generate an updated latent representation;
decoding the latent representation into an updated set of attributes; and
providing the updated set of attributes for review by a user.

### Claim 14 (depends on 13)

The non-transitory, computer-readable medium of claim 13, wherein the instructions further cause the one or more processors to perform operations comprising:
receiving a training dataset comprising a plurality of records, wherein each record comprises a plurality of attributes of a corresponding user, and wherein each record is associated with a corresponding negative decision received from an automated system based on a corresponding plurality of attributes;
encoding the plurality of records into a plurality of latent representations;
generating for the plurality of latent representations a plurality of change values, wherein applying a change value to a corresponding latent representation having the corresponding negative decision causes the latent representation to now have a corresponding positive decision; and
training, using the plurality of latent representations and the plurality of change values, the machine learning model to output a corresponding change value for a received latent representation.

### Claim 15 (depends on 14)

The non-transitory, computer-readable medium of claim 14, wherein the instructions for generating, for the plurality of latent representations, the plurality of change values further cause the one or more processors to perform operations comprising:
retrieving a plurality of positive latent representations, wherein each latent representation of the plurality of positive latent representations is associated with attributes known to receive the positive decision from the automated system;
determining an average latent representation from the plurality of positive latent representations; and
generating a training change value based on the average latent representation and each of the plurality of latent representations.

### Claim 16 (depends on 14)

The non-transitory, computer-readable medium of claim 14, wherein the instructions for generating, for the plurality of latent representations, the plurality of change values further cause the one or more processors to perform operations comprising:
inputting into a latent representation generating machine learning model a first set of attributes, wherein the latent representation generating machine learning model has been trained to generate latent representations for attribute sets associated with positive decisions of the automated system, and wherein the first set of attributes is associated with the negative decision of the automated system;
obtaining from the latent representation generating machine learning model, a first latent representation for the first set of attributes; and
generating a training change value based on the first latent representation and each of the plurality of latent representations.

### Claim 17 (depends on 13)

The non-transitory, computer-readable medium of claim 13, wherein the instructions for applying the associated change value to the latent representation to generate the updated latent representation further cause the one or more processors to perform a linear interpolation operation based on the associated change value, the latent representation and a given latent representation having the positive decision.

### Claim 18 (depends on 13)

The non-transitory, computer-readable medium of claim 13, wherein the instructions for encoding the set of attributes into the latent representation further cause the one or more processors to compress the set of attributes into a multi-dimensional value.

### Claim 19 (depends on 18)

The non-transitory, computer-readable medium of claim 18, further comprising applying the associated change value to each dimension of the multi-dimensional value.

### Claim 20 (depends on 13)

The non-transitory, computer-readable medium of claim 13, wherein the one or more processors are further configured to perform operations comprising:
determining that the updated latent representation requires the user to change an attribute that is not changeable; and
in response to determining that the updated latent representation requires the user to change the attribute that is not changeable, applying a different associated change value to the latent representation.
