# US 2024/0256852 A1 · Entity standardization for application modernization

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

- Number: US 2024/0256852 A1
- Document ID: US20240256852A1
- Status: Published application
- Kind: A1
- Application number: 18/160,301
- Filed: 2023-01-26
- Published: 2024-08-01
- Earliest claimed: 2023-01-26
- Assignees: International Business Machines Corporation
- Applicants: International Business Machines Corporation
- Inventors: Jiaqing Yuan; Michele Merler; Mihir Choudhury; Venkata Nagaraju Pavuluri; Maja Vukovic
- Web page: https://patentgrep.com/patent/US20240256852A1

## CPC

- G06N 3/08: Learning methods
- G06N 3/045: Combinations of networks
- G06N 5/022: Knowledge engineering; Knowledge acquisition
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

Standardizing a mention of an application component in a free-form text describing the technology stack of the application includes extracting the mention and encoding the mention with an embedding space encoder. The encoding creates an encoded representation of the mention in a multi-dimensional embedding space. The embedding space encoder implements a machine learning model trained using contrastive learning. The encoded representation of the mention is mapped to an encoded representation of an entity in the multi-dimensional embedding space, the entity extracted from a knowledge base of computer components. The entity whose encoded representation maps to the encoded representation of the mention can be output responsive to the mapping.

## Claims

### Claim 1

A method, comprising:
extracting, with a processor, a mention of a computer application component from a free-form text, wherein the free-form text is a textual description of a technology stack of the computer application;
encoding the mention with an embedding space encoder, wherein the encoding creates an encoded representation of the mention in a multi-dimensional embedding space, and wherein the embedding space encoder implements a machine learning model trained using contrastive learning;
mapping, with the processor, the encoded representation of the mention to an encoded representation of an entity in the multi-dimensional embedding space, wherein the entity is extracted from a knowledge base of computer components; and
outputting the entity whose encoded representation maps to the encoded representation of the mention.

### Claim 2 (depends on 1)

The method of claim 1, wherein the machine learning model implemented by the embedding space encoder is a Siamese neural network.

### Claim 3 (depends on 1)

The method of claim 1, wherein a backbone of the machine learning model implemented by the embedding space encoder is a context-sensitive, per-trained transformer language model.

### Claim 4 (depends on 1)

The method of claim 1, wherein the embedding space encoder is trained using a hybrid batch-all and batch-hard online triplet loss mining.

### Claim 5 (depends on 1)

The method of claim 1, wherein the mapping is performed by determining a vectorial distance between the encoded representation of the mention and the encoded representation of the entity in the knowledge base.

### Claim 6 (depends on 5)

The method of claim 5, wherein the vectorial distance is determined based on a cosine similarity between the encoded representation of the mention and the encoded representation of the entity in the knowledge base.

### Claim 7 (depends on 1)

The method of claim 1, further comprising:
mining a plurality of online databases for textual descriptions of computer application components;
compiling the textual descriptions in the knowledge base; and
encoding entities extracted from the textual descriptions in the multi-dimensional embedding space.

### Claim 8

A system, comprising:
One or more processors configured to initiate operations including:
extracting a mention of a computer application component from a free-form text, wherein the free-form text is a textual description of a technology stack of the computer application;
encoding the mention with an embedding space encoder, wherein the encoding creates an encoded representation of the mention in a multi-dimensional embedding space, and wherein the embedding space encoder implements a machine learning model trained using contrastive learning;
mapping the encoded representation of the mention to an encoded representation of an entity in the multi-dimensional embedding space, wherein the entity is extracted from a knowledge base of computer components; and
outputting the entity whose encoded representation maps to the encoded representation of the mention.

### Claim 9 (depends on 8)

The system of claim 8, wherein the machine learning model implemented by the embedding space encoder is a Siamese neural network.

### Claim 10 (depends on 8)

The system of claim 8, wherein a backbone of the machine learning model implemented by the embedding space encoder is a context-sensitive, per-trained transformer language model.

### Claim 11 (depends on 8)

The system of claim 8, wherein the embedding space encoder is trained using a hybrid batch-all and batch-hard online triplet loss mining.

### Claim 12 (depends on 8)

The system of claim 8, wherein the mapping is performed by determining a vectorial distance between the encoded representation of the mention and the encoded representation of the entity in the knowledge base.

### Claim 13 (depends on 12)

The system of claim 12, wherein the vectorial distance is determined based on a cosine similarity between the encoded representation of the mention and the encoded representation of the entity in the knowledge base.

### Claim 14

A computer program product, the computer program product comprising:
one or more computer-readable storage media and program instructions collectively stored on the one or more computer-readable storage media, the program instructions executable by a processor to cause the processor to initiate operations including:
extracting a mention of a computer application component from a free-form text, wherein the free-form text is a textual description of a technology stack of the computer application;
encoding the mention with an embedding space encoder, wherein the encoding creates an encoded representation of the mention in a multi-dimensional embedding space, and wherein the embedding space encoder implements a machine learning model trained using contrastive learning;
mapping the encoded representation of the mention to an encoded representation of an entity in the multi-dimensional embedding space, wherein the entity is extracted from a knowledge base of computer components; and
outputting the entity whose encoded representation maps to the encoded representation of the mention.

### Claim 15 (depends on 14)

The computer program product of claim 14, wherein the machine learning model implemented by the embedding space encoder is a Siamese neural network.

### Claim 16 (depends on 14)

The computer program product of claim 14, wherein a backbone of the machine learning model implemented by the embedding space encoder is a context-sensitive, per-trained transformer language model.

### Claim 17 (depends on 14)

The computer program product of claim 14, wherein the embedding space encoder is trained using a hybrid batch-all and batch-hard online triplet loss mining.

### Claim 18 (depends on 14)

The computer program product of claim 14, wherein the mapping is performed by determining a vectorial distance between the encoded representation of the mention and the encoded representation of the entity in the knowledge base.

### Claim 19 (depends on 18)

The computer program product of claim 18, wherein the vectorial distance is determined based on a cosine similarity between the encoded representation of the mention and the encoded representation of the entity in the knowledge base.

### Claim 20 (depends on 14)

The computer program product of claim 14, wherein the program instructions are executable by the processor to cause the processor to initiate operations further including:
mining a plurality of online databases for textual descriptions of computer application components;
compiling the textual descriptions in the knowledge base; and
encoding entities extracted from the textual descriptions in the multi-dimensional embedding space.

### Claim 21

A method, comprising:
generating, with a processor, a stand-alone encoder, wherein the stand-alone encoder implements a contrastive learning model trained using a hybrid batch-all and batch-hard online triplet mining; and
encoding, by the stand-alone encoder, a plurality of entities drawn from a knowledge base, wherein the encoding creates a unique encoded representation of each of the plurality of entities.

### Claim 22 (depends on 21)

The method of claim 21, wherein the machine learning model implemented by the stand-alone encoder is a Siamese neural network.

### Claim 23 (depends on 21)

The method of claim 21, wherein a backbone of the machine learning model is a context-sensitive, per-trained transformer language model.

### Claim 24 (depends on 21)

The method of claim 21, further comprising:
encoding, with the stand-alone encoder, an entity added to existing entities of the knowledge base;
wherein no further training of the stand-alone encoder is necessary in response to the encoding the entity added to the exiting entities of the knowledge base.

### Claim 25

A method, comprising:
generating, with a processor, a plurality of triplet examples to train a contrastive learning model;
iteratively adjusting, by the processor, parameters of the contrastive learning model during an initial sequence of training epochs using batch-all mining with the triplet examples; and
further adjusting, by the processor, parameters of the contrastive learning model during a subsequent sequence of training epochs using batch-hard mining as the parameters converge to a final set of values.
