# US 2021/0342711 A1 · Assessing Similarity Between Items Using Embeddings Produced Using a Distributed Training Framework

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

- Number: US 2021/0342711 A1
- Document ID: US20210342711A1
- Status: Published application
- Kind: A1
- Application number: 16/864,964
- Filed: 2020-05-01
- Published: 2021-11-04
- Earliest claimed: 2020-05-01
- Assignees: Microsoft Technology Licensing, LLC
- Applicants: Microsoft Technology Licensing, LLC
- Inventors: Vladislav MOKEEV; Skyler James ANDERSON
- Web page: https://patentgrep.com/patent/US20210342711A1

## CPC

- G06F 16/3347: {using vector based model}
- G06N 5/04: Inference or reasoning models
- G06F 16/24578: {using ranking}
- G06F 16/3349: Reuse of stored results of previous queries
- G06F 16/953: Querying, e.g. by the use of web search engines
- G06N 20/00: Machine learning
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

A resource-efficient technique is described for producing and utilizing a set of trained embeddings. With respect to its training phase, the technique receives a group of sparsely-expressed training examples of high dimensionality. The technique processes the training examples using a distributed training framework of computing devices. With respect to its inference stage, the technique draws on the embeddings produced by the training framework. But in one implementation, the inference-stage processing applies a different prediction function than that used by the training framework. One implementation of interference-stage processing involves determining a distance between a query embedding and a candidate item embedding, where each such embedding is obtained or derived from the trained embeddings produced by the training framework. Another manifestation of inference-stage processing involves adjusting click counts based on identified relations among items embeddings.

## Claims

### Claim 1

A computer-implemented method for producing a set of trained embeddings, comprising:
providing a set of training examples, each training example describing a query submitted by at least one user, an item, and an indication of whether the item has been selected by said at least one user in response to submitting the query;
providing initial token embeddings associated with different training examples to plural respective embedding-updating computing devices;
performing an iteration of a training loop that includes:
using the plural embedding-updating computing devices to generate plural sets of local token embeddings;
providing the plural sets of local token embeddings to plural embedding-consolidating computing devices;
using the plural embedding-consolidating computing devices to generate plural consolidated token embeddings from the plural sets of local token embeddings, each consolidated token embedding for a particular token representing a consolidation of one or more local token embeddings for the particular token; and
providing the plural consolidated token embeddings to selected embedding-updating computing devices,
repeating the training loop until a training objective is achieved, at which point the plural consolidated token embeddings provided to the embedding-updating computing devices correspond to the set of trained embeddings.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein at least one of the plural embedding-updating computing devices is a same computing device as an embedding-consolidating computing device.

### Claim 3 (depends on 1)

The computer-implemented method of claim 1, wherein each particular training example expresses a particular query using one or more query tokens, wherein each query token is expressed as a query token vector that has a dimensionality as large as a number of query tokens in a vocabulary of query tokens.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein each particular training example expresses a particular item using an item vector that has a dimensionality as large as a number of items in a set of selectable items.

### Claim 5 (depends on 1)

The computer-implemented method claim 1, wherein each embedding-updating computing device generates a set of local token embeddings by:
for a particular training example that identifies a particular query and a particular item, generating a prediction that indicates whether the particular query is deemed similar to the particular item; and
updating a set of local token embeddings based on an indication of whether the prediction agrees with a particular label associated with the particular training example,
wherein each embedding-updating computing device performs a process that relies on no more than one global parameter value that is shared with processes performed by other embedding-updating computing devices.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the particular consolidated token embedding for the particular token is produced by averaging together two or more local token embeddings for the particular token.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein said providing of the plural consolidated token embeddings to selected embedding-updating computing devices involves sending a given consolidated token embedding associated with a given token to each embedding-updating computing device that has been assigned at least one training example that includes the given token.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein an embedding-updating computing device that has not been assigned at least one training example that includes the given token does not receive the given consolidated token embedding.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein the trained embeddings are used in an inference-stage process to determine a similarity score that measures a level of similarity between a query submitted by a user and a candidate item.

### Claim 10 (depends on 1)

The computer-implemented method of claim 1, wherein the trained embeddings are used in an inference-stage process, and wherein the inference-stage process uses a prediction function that differs from a prediction function used in the training loop to generate the plural sets of local token embeddings.

### Claim 11

A computer-implemented method for determining a relation among two or more items, comprising:
receiving identifiers associated with a first item and a second item to be compared;
identifying a first embedding associated with the first item;
identifying a second embedding associated with the second item;
determining a relation between the first item and the second item by determining a relation between the first embedding and the second embedding in a vector space, to provide a similarity score; and
providing an output result that depends on the similarity score,
said identifying a first embedding and identifying a second embedding drawing on a data store of trained embeddings produced by a training framework,
the training framework producing the trained embeddings using a distributed set of computing devices, and using a prediction function that differs from a prediction function used in said determining of the relation between the first item and the second item.

### Claim 12 (depends on 11)

The computer-implemented method of claim 11,
wherein the first item is a query submitted by a user via a user computing device,
wherein the second item is a candidate item under consideration,
wherein said identifying of the first embedding involves identifying a query embedding associated with one or more tokens of the query,
wherein said identifying of the second embedding involves identifying an item embedding associated with the candidate item,
wherein said determining of the relation involves determining a distance between the query embedding and the item embedding, the distance corresponding to the similarity score, and
wherein said providing the output result includes sending search results to the user computing device that identifies a relationship of the candidate item to the query.

### Claim 13 (depends on 12)

The computer-implemented method of claim 12, wherein said identifying of the query embedding comprises:
identifying plural query-component embeddings respectively associated with query tokens of the query; and
summing the plural query-component embeddings to produce the query embedding.

### Claim 14 (depends on 12)

The computer-implemented method of claim 12, wherein said identifying of the item embedding comprises retrieving a single item embedding from a data store that is associated with an item identifier that identifies the candidate item.

### Claim 15 (depends on 12)

The computer-implemented method of claim 12, wherein said identifying of the item embedding comprises:
identifying plural item-component embeddings respectively associated with tokens that form at least part of the candidate item; and
summing the plural item-component embeddings to produce the item embedding.

### Claim 16 (depends on 15)

The computer-implemented method of claim 15, wherein the item embedding is produced by summing the plural item-component embeddings upon a determination that there is no single item embedding in a data store that is associated with an item identifier that identifies the candidate item.

### Claim 17 (depends on 15)

The computer-implemented method of claim 15, wherein the plural item-component embeddings describe respective tokens in a title associated with the candidate item.

### Claim 18 (depends on 11)

The computer-implemented method of claim 11,
wherein the first item is an item selected by at least one user a first number of times, as described by first original count information associated with the first item,
wherein the second item is an item selected by said at least one user a second number of times, as reflected by second original count information associated with the second item, the second number of times differing from the first number of times,
wherein the computer-implemented method further includes generating revised count information for the second item based on the first original count information as weighted by the similarity score, and
wherein the method includes storing the revised count information.

### Claim 19 (depends on 18)

The computer-implemented method of claim 18, further comprising adjusting a ranking of the second item in search results provided to a user relative to the first item based on the revised count information.

### Claim 20

A computer-readable storage medium for storing computer-readable instructions, the computer-readable instructions, when executed by one or more hardware processors, performing a method that comprises:
accessing a data structure;
receiving original count information for a first item from the data structure that indicates that the first item has been selected a first number of times in response to submission of a query;
receiving other instances of original count information from the data structure that pertain to plural other items, each instance of other original count information indicating that another item has been selected a number of times in response to submission of the same query;
identifying a first embedding associated with the first item;
identifying other embeddings respectively associated with the other items;
determining a relation between the first item and each of the other items by determining a relation between the first embedding and each of the other embeddings in a vector space, to provide plural similarity scores;
adjusting the original count information for the second item by the other instances of original count information, as weighted by the respective similarity scores, to provide revised count information; and
storing the revised count information in the data structure.
