# US 2024/0202556 A1 · Precomputed explanation scores

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

- Number: US 2024/0202556 A1
- Document ID: US20240202556A1
- Status: Published application
- Kind: A1
- Application number: 18/067,852
- Filed: 2022-12-19
- Published: 2024-06-20
- Earliest claimed: 2022-12-19
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Stefan A. G. Van Der Stockt; ERIKA AGOSTINELLI; Edward James Biddle; Sourav Mazumder
- Web page: https://patentgrep.com/patent/US20240202556A1

## CPC

- G06N 5/045: Explanation of inference; Explainable artificial intelligence [XAI]; Interpretable artificial intelligence
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N 20/00: Machine learning
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A method, system, and computer program product generate precomputed explanation scores in AI systems. The method includes obtaining a set of labeled transactions comprising input features and corresponding output labels generated by a machine learning (ML) model and generating an explainable artificial intelligence (XAI) module. The generating includes clustering the labeled transactions based on the input features, scoring homogeneity of the clustered transactions based on the corresponding output labels, and selecting at least one cluster from the clustered transactions based on the homogeneity scoring. The generating further includes obtaining, by an explainability model, explainability scores for transactions in the at least one cluster, generating a unified explainability score for the at least one cluster based on the explainability scores, and storing the unified explainability score in a set of precomputed explanations.

## Claims

### Claim 1

A method, comprising:
obtaining, by a processor communicatively coupled to a memory, a set of labeled transactions comprising input features and corresponding output labels generated by a machine learning (ML) model; and
generating, by the processor, an explainable artificial intelligence (XAI) module, wherein the generating comprises:
clustering the labeled transactions based on the input features;
scoring homogeneity of the clustered transactions based on the corresponding output labels;
selecting at least one cluster from the clustered transactions based on the homogeneity scoring;
obtaining, by an explainability model, explainability scores for transactions in the at least one cluster;
generating a unified explainability score for the at least one cluster based on the explainability scores; and
storing the unified explainability score in a set of precomputed explanations.

### Claim 2 (depends on 1)

The method of claim 1, further comprising receiving a live transaction from a user device.

### Claim 3 (depends on 2)

The method of claim 2, further comprising selecting, by the XAI module, an explainability score for the live transaction from the set of precomputed explanations.

### Claim 4 (depends on 3)

The method of claim 3, wherein the explainability score is selected based on input features of the live transaction.

### Claim 5 (depends on 2)

The method of claim 2, further comprising:
selecting, by the XAI module, a most aligned cluster from the at least one cluster based on input features of the live transaction; and
determining, by the XAI module, whether the most aligned cluster satisfies a closeness criterion.

### Claim 6 (depends on 5)

The method of claim 5, further comprising, in response to determining that the most aligned cluster does not satisfy the closeness criterion, generating a new explainability score for the live transaction.

### Claim 7 (depends on 5)

The method of claim 5, further comprising, in response to determining that the most aligned cluster satisfies the closeness criterion, comparing output labels of the most aligned cluster with output labels of the live transaction.

### Claim 8 (depends on 7)

The method of claim 7, further comprising:
determining, based on the comparing, that the output labels do not include a congruent output label; and
in response to the determining that the output labels do not include a congruent output label, generating a new explainability score for the live transaction.

### Claim 9 (depends on 7)

The method of claim 7, further comprising:
identifying a congruent output label based on the comparing; and
in response to the identifying the congruent output label, selecting an explainability score for the live transaction from the set of precomputed explanations.

### Claim 10 (depends on 9)

The method of claim 9, wherein the selected explainability score is a unified explainability score for the most aligned cluster.

### Claim 11 (depends on 10)

The method of claim 10, further comprising updating the most aligned cluster to include the input features of the live transaction.

### Claim 12 (depends on 1)

The method of claim 1, wherein the set of labelled transactions comprises transactions implemented by a database management system.

### Claim 13 (depends on 1)

The method of claim 1, wherein:
the clustering comprises forming branch levels of the clustered transaction by hierarchical clustering;
the homogeneity scoring comprises generating homogeneity scores for the branch levels; and
the selecting the at least one cluster comprises selecting a branch level based on the homogeneity scoring.

### Claim 14 (depends on 1)

The method of claim 1, wherein the selecting the at least one cluster comprises selecting a cluster having a homogeneity score above an adjustable threshold homogeneity score.

### Claim 15

A system, comprising:
a memory; and
a processor communicatively coupled to the memory, wherein the processor is configured to perform a method comprising:
obtaining, by a processor communicatively coupled to a memory, a set of labeled transactions comprising input features and corresponding output labels generated by a machine learning (ML) model; and
generating, by the processor, an explainable artificial intelligence (XAI) module,
wherein the generating comprises:
clustering the labeled transactions based on the input features;
scoring homogeneity of the clustered transactions based on the corresponding output labels;
selecting at least one cluster from the clustered transactions based on the homogeneity scoring;
obtaining, by an explainability model, explainability scores for transactions in the at least one cluster;
generating a unified explainability score for the at least one cluster based on the explainability scores; and
storing the unified explainability score in a set of precomputed explanations.

### Claim 16 (depends on 15)

The system of claim 15, further comprising:
receiving a live transaction from a user device; and
selecting, by the XAI module, an explainability score for the live transaction from the set of precomputed explanations.

### Claim 17 (depends on 16)

The system of claim 16, wherein the explainability score is selected based on input features of the live transaction.

### Claim 18

A computer program product, the computer program product comprising a computer readable storage medium having program instructions embodied therewith, the program instructions executable by a processor to cause a device to perform a method, the method comprising:
obtaining, by a processor communicatively coupled to a memory, a set of labeled transactions comprising input features and corresponding output labels generated by a machine learning (ML) model; and
generating, by the processor, an explainable artificial intelligence (XAI) module, wherein the generating comprises:
clustering the labeled transactions based on the input features;
scoring homogeneity of the clustered transactions based on the corresponding output labels;
selecting at least one cluster from the clustered transactions based on the homogeneity scoring;
obtaining, by an explainability model, explainability scores for transactions in the at least one cluster;
generating a unified explainability score for the at least one cluster based on the explainability scores; and
storing the unified explainability score in a set of precomputed explanations.

### Claim 19 (depends on 18)

The computer program product of claim 18, further comprising:
receiving a live transaction from a user device; and
selecting, by the XAI module, an explainability score for the live transaction from the set of precomputed explanations.

### Claim 20 (depends on 19)

The computer program product of claim 19, wherein the explainability score is selected based on input features of the live transaction.
