# US 2025/0147958 A1 · Training a machine learned model to determine relevance of items to a query using different sets of training data from a common domain

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

- Number: US 2025/0147958 A1
- Document ID: US20250147958A1
- Status: Published application
- Kind: A1
- Application number: 19/012,864
- Filed: 2025-01-08
- Published: 2025-05-08
- Earliest claimed: 2022-02-09
- Assignees: Maplebear Inc.
- Applicants: Maplebear Inc.
- Inventors: Taesik Na; Yuqing Xie; Tejaswi Tenneti; Haixun Wang
- Web page: https://patentgrep.com/patent/US20250147958A1

## CPC

- G06F 16/24534: {Query rewriting; Transformation}
- G06Q 10/08: Logistics, e.g. warehousing, loading or distribution; Inventory or stock management
- G06F 16/2448: {for particular applications; for extensibility, e.g. user defined types}
- G06F 16/24578: {using ranking}
- G06F 16/283: {Multi-dimensional databases or data warehouses, e.g. MOLAP or ROLAP}
- G06F 18/2148: {characterised by the process organisation or structure, e.g. boosting cascade}
- G06N 20/00: Machine learning
- G06Q 10/04: Forecasting or optimisation specially adapted for administrative or management purposes, e.g. linear programming or "cutting stock problem" (market predictions or forecasting for commercial activities G06Q30/0202)
- G06Q 30/0633: {Managing shopping lists, e.g. compiling or processing purchase lists (shipping orders G06Q10/083; order filling G06Q10/087)}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)
- G06Q: INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06N: COMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS

## Abstract

An online concierge system maintains various items and an item embedding for each item. When the online concierge system receives a query for retrieving one or more items, the online concierge system generates an embedding for the query. The online concierge system trains a machine-learned model to determine a measure of relevance of an embedding for a query to item embeddings by generating training data of examples including queries and items with which users performed a specific interaction. The online concierge system generates a subset of the training data including examples satisfying one or more criteria and further trains the machine-learned model by application to the examples of the subset of the training data and stores parameters resulting from the further training as parameters of the machine-learned model.

## Claims

### Claim 1

A computer-implemented method, comprising:
receiving a query for retrieving one or more items;
applying a machine-learned model to identify a plurality of candidate items, wherein the machine-learned model is trained by:
generating training data comprising a plurality of examples, each example comprising a historical query received by an online system and an item with which a user of the online system performed a specific interaction, wherein a label applied to each example of the training data indicates whether the specific interaction was performed with the item after the online system received the historical query;
generating a noisy subset of training data and a high-quality subset of training data based on a metric that defines a quality of training data, wherein the high-quality subset has a higher metric value than the noisy subset;
initializing the machine-learned model of a plurality of layers, the machine-learned model configured to receive the historical query and the item of an example;
generating predicted measures of the items of the examples;
training the machine-learned model using the examples of the noisy subset of the training data to update a set of parameters of the machine-learned model through backpropagating error terms based on differences between the labels applied to the examples of the noisy subset of the training data and predicted measures of the examples of the noisy subset of the training data;
storing the set of parameters of the machine-learned model that are trained by the noisy subset as a first set of trained parameters;
training the machine-learned model using the examples of the high-quality subset of the training data to update the first set of trained parameters through backpropagating error terms based on differences between the labels applied to the examples of the high-quality subset of the training data and predicted measures of the examples of the high-quality subset of the training data;
storing updated set of parameters of the machine-learned model that are trained by the high-quality subset as a second set of trained parameters; and
storing the second set of trained parameters trained from the high-quality subset of the training data as parameters of the machine-learned model; and
returning one or more candidate items identified by the machine-learned model in response to the query.

### Claim 2 (depends on 1)

The computer-implemented method of claim 1, wherein generating the high-quality subset of training data comprises:
selecting examples of the training data including items with which the specific interaction was performed with at least a threshold frequency.

### Claim 3 (depends on 2)

The computer-implemented method of claim 2, wherein generating the high-quality subset of training data further comprises:
determining an example of the training data includes an item with which the specific frequency was performed with at least an additional threshold frequency; and
including a specific number of replicas of the example determined to include the item with which the specific frequency was performed with at least the additional threshold frequency in the subset of the training data in response to the determining.

### Claim 4 (depends on 1)

The computer-implemented method of claim 1, wherein generating the high-quality subset of training data comprises:
ranking examples of the training data based on frequencies with which the specific interaction was performed with items included in the examples of the training data;
selecting examples of the training data having at least a threshold position in the ranking.

### Claim 5 (depends on 4)

The computer-implemented method of claim 4, wherein generating the high-quality subset of training data further comprises:
determining an example of the training data includes an item with which the specific frequency was performed with at least a threshold frequency; and
including a specific number of replicas of the example determined to include the item with which the specific frequency was performed with at least the threshold frequency in the subset of the training data in response to the determining.

### Claim 6 (depends on 1)

The computer-implemented method of claim 1, wherein the specific interaction comprises including the item in an order received by the online system.

### Claim 7 (depends on 1)

The computer-implemented method of claim 1, wherein backpropagating the error terms based on the differences between the labels applied to the examples of the noisy subset of the training data and predicted measures of the examples of the noisy subset of the training data comprises:
generating the error terms from application of the machine-learned model to the example of the high-quality subset of the training data using an alternative loss function than a loss function generating the error term from application of the machine-learned model to the example of the training data.

### Claim 8 (depends on 7)

The computer-implemented method of claim 7, wherein the alternative loss function applies a higher weight to an error term from application of the machine-learned model to the example of the high-quality subset of the training data than the loss function generating the error term from application of the machine-learned model to the noisy subset of the training data.

### Claim 9 (depends on 1)

The computer-implemented method of claim 1, wherein generating the predicted measures of the items of the examples comprises:
applying the machine-learned model with a particular architecture to the example of the noisy subset of the training data and to the item of the example of the noisy subset of the training data.

### Claim 10 (depends on 9)

The computer-implemented method of claim 9, wherein generating the predicted measures of the items of the examples comprises:
applying the machine-learned model with a different architecture than the particular architecture to the example of the high-quality subset of the training data and to the item of the high-quality subset of the example of the training data.

### Claim 11

A non-transitory computer-readable storage medium configured to store code comprising instructions, wherein the instructions, when executed by one or more processors, cause the one or more processors to:
receive a query for retrieving one or more items;
apply a machine-learned model to identify a plurality of candidate items, wherein the machine-learned model is trained by:
generating training data comprising a plurality of examples, each example comprising a historical query received by an online system and an item with which a user of the online system performed a specific interaction, wherein a label applied to each example of the training data indicates whether the specific interaction was performed with the item after the online system received the historical query;
generating a noisy subset of training data and a high-quality subset of training data based on a metric that defines a quality of training data, wherein the high-quality subset has a higher metric value than the noisy subset;
initializing the machine-learned model of a plurality of layers, the machine-learned model configured to receive the historical query and the item of an example;
generating predicted measures of the items of the examples;
training the machine-learned model using the examples of the noisy subset of the training data to update a set of parameters of the machine-learned model through backpropagating error terms based on differences between the labels applied to the examples of the noisy subset of the training data and predicted measures of the examples of the noisy subset of the training data;
storing the set of parameters of the machine-learned model that are trained by the noisy subset as a first set of trained parameters;
training the machine-learned model using the examples of the high-quality subset of the training data to update the first set of trained parameters through backpropagating error terms based on differences between the labels applied to the examples of the high-quality subset of the training data and predicted measures of the examples of the high-quality subset of the training data;
storing updated set of parameters of the machine-learned model that are trained by the high-quality subset as a second set of trained parameters; and
storing the second set of trained parameters trained from the high-quality subset of the training data as parameters of the machine-learned model; and
return one or more candidate items identified by the machine-learned model in response to the query.

### Claim 12 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein generating the high-quality subset of training data comprises:
selecting examples of the training data including items with which the specific interaction was performed with at least a threshold frequency.

### Claim 13 (depends on 12)

The non-transitory computer-readable storage medium of claim 12, wherein generating the high-quality subset of training data further comprises:
determining an example of the training data includes an item with which the specific frequency was performed with at least an additional threshold frequency; and
including a specific number of replicas of the example determined to include the item with which the specific frequency was performed with at least the additional threshold frequency in the subset of the training data in response to the determining.

### Claim 14 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein generating the high-quality subset of training data comprises:
ranking examples of the training data based on frequencies with which the specific interaction was performed with items included in the examples of the training data;
selecting examples of the training data having at least a threshold position in the ranking.

### Claim 15 (depends on 14)

The non-transitory computer-readable storage medium of claim 14, wherein generating the high-quality subset of training data further comprises:
determining an example of the training data includes an item with which the specific frequency was performed with at least a threshold frequency; and
including a specific number of replicas of the example determined to include the item with which the specific frequency was performed with at least the threshold frequency in the subset of the training data in response to the determining.

### Claim 16 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein the specific interaction comprises including the item in an order received by the online system.

### Claim 17 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein backpropagating the error terms based on the differences between the labels applied to the examples of the noisy subset of the training data and predicted measures of the examples of the noisy subset of the training data comprises:
generating the error terms from application of the machine-learned model to the example of the high-quality subset of the training data using an alternative loss function than a loss function generating the error term from application of the machine-learned model to the example of the training data.

### Claim 18 (depends on 17)

The non-transitory computer-readable storage medium of claim 17, wherein the alternative loss function applies a higher weight to an error term from application of the machine-learned model to the example of the high-quality subset of the training data than the loss function generating the error term from application of the machine-learned model to the noisy subset of the training data.

### Claim 19 (depends on 11)

The non-transitory computer-readable storage medium of claim 11, wherein generating the predicted measures of the items of the examples comprises:
applying the machine-learned model with a particular architecture to the example of the noisy subset of the training data and to the item of the example of the noisy subset of the training data.

### Claim 20

A system comprising a computer readable storage medium and one or more processors, wherein the computer readable storage medium is configured to store code comprising instructions, wherein the instructions, when executed by the one or more processors, cause the one or more processors to:
receive a query for retrieving one or more items;
apply a machine-learned model to identify a plurality of candidate items, wherein the machine-learned model is trained by:
generating training data comprising a plurality of examples, each example comprising a historical query received by an online system and an item with which a user of the online system performed a specific interaction, wherein a label applied to each example of the training data indicates whether the specific interaction was performed with the item after the online system received the historical query;
generating a noisy subset of training data and a high-quality subset of training data based on a metric that defines a quality of training data, wherein the high-quality subset has a higher metric value than the noisy subset;
initializing the machine-learned model of a plurality of layers, the machine-learned model configured to receive the historical query and the item of an example;
generating predicted measures of the items of the examples;
training the machine-learned model using the examples of the noisy subset of the training data to update a set of parameters of the machine-learned model through backpropagating error terms based on differences between the labels applied to the examples of the noisy subset of the training data and predicted measures of the examples of the noisy subset of the training data;
storing the set of parameters of the machine-learned model that are trained by the noisy subset as a first set of trained parameters;
training the machine-learned model using the examples of the high-quality subset of the training data to update the first set of trained parameters through backpropagating error terms based on differences between the labels applied to the examples of the high-quality subset of the training data and predicted measures of the examples of the high-quality subset of the training data;
storing updated set of parameters of the machine-learned model that are trained by the high-quality subset as a second set of trained parameters; and
storing the second set of trained parameters trained from the high-quality subset of the training data as parameters of the machine-learned model; and
return one or more candidate items identified by the machine-learned model in response to the query.
