IP Library Granted Patent US 12,450,277
Granted Patent B2
US 12,450,277 · App. 18/932,301 · Granted Oct 21, 2025

False negative prediction for training a machine-learning model

Inventors: Xiaochen Wang (State College, PA); Taesik Na (Issaquah, WA); Xiao Xiao (San Diego, CA); Ruhan Zhang (Seattle, WA); Xuan Zhang (Palo Alto, CA); Tejaswi Tenneti (San Carlos, CA); Haixun Wang (Bellevue, WA)
Assignee: Maplebear Inc.
G06F16/35G06F16/24578G06F16/383G06F16/906G06F16/9532G06F16/9535
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,450,277
App. No.
18/932,301
Granted
Oct 21, 2025
Kind
B2
Abstract

An online system updates the labels on negative examples to account for the possibility that the example is a false negative. The system generates a set of initial training examples that each include a query input by the user and item data for an item presented as a result to the user's query. Each training example also includes an initial label, which represents whether the user interacted with the item presented as a search result. The online system updates the initial label for a negative training example by identifying a set of bridge queries and computing a similarity score between the query for the training example and the bridge queries. The online system computes an updated label for the negative example based on the similarity scores and updates the training example with the updated label.

Claims (77)

1. A non-transitory computer-readable medium storing a set of parameters for a machine-learning model, wherein the parameters are produced by a process comprising:

initializing the set of parameters for the machine-learning model;

accessing search log data captured by an online system, wherein the search log data describes a plurality of queries placed by users of the online system and a plurality of items;

generating a set of initial training examples based on the search log data, wherein each initial training example comprises a query of the plurality of queries, an item of the plurality of items, and an initial label, wherein the initial label represents whether the item was presented as a search result to a user and was selected by the user;

identifying a set of initial negative examples by identifying a subset of the set of initial training examples with initial labels below a threshold value;

updating the set of initial negative examples to generate a set of updated negative examples, wherein the set of updated negative examples is generated by, for each initial negative example:

identifying a plurality of bridge queries for the query of the initial negative example, wherein the plurality of bridge queries is a subset of the plurality of queries for which the item of the initial negative example was presented as a search result to a user and was selected by the user;

computing a similarity score between the query of the initial negative example and each of the plurality of bridge queries;

computing an updated label for the initial negative example based on the computed similarity scores; and

generating an updated negative example comprising the computed updated label and the query and item of the initial negative example;

generating a final set of training examples comprising the set of updated negative examples and a subset of the set of initial training examples with initial labels above the threshold value;

updating the set of parameters by processing each training example in the final set of training examples, wherein updating the set of parameters results in an updated set of parameters for the machine-learning model, and wherein processing each training example in the set of training examples comprises:

applying the machine-learning model to the item data and the query of the training example to generate an item prediction score, wherein the item prediction score represents a predicted likelihood that a user would select the item when the item is presented as a search result for the query;

computing a loss score by comparing the item prediction score to a label of the training example; and

updating the set of parameters for the machine-learning model through a backpropagation process using the computed loss score; and

storing the updated set of parameters on the computer-readable medium.

2. The computer-readable medium of claim 1 , wherein the machine-learning model is a cross encoder model.

3. The computer-readable medium of claim 1 , wherein each initial training example of the set of initial training examples comprises user data describing a user corresponding to the query of the initial training example.

4. The computer-readable medium of claim 1 , wherein each initial training example of the set of initial training examples comprises context data describing a context of the query of the initial training example.

5. The computer-readable medium of claim 1 , wherein computing a similarity score between the query of the initial negative example and a bridge query comprises:

applying a query embedding model to the query and the bridge query to generate embeddings for the query and bridge query; and

computing a distance between the embedding for the query and the embedding for the bridge query.

6. The computer-readable medium of claim 5 , wherein the embedding model is part of a bi-encoder model that is trained to generate query embeddings and item embeddings for use in selecting items for search results.

7. The computer-readable medium of claim 1 , wherein computing an updated label for the initial negative examples comprises:

computing an average of the computed similarity scores.

8. The computer-readable medium of claim 1 , further comprising:

filtering the set of updated negative examples based on the updated labels.

9. A method, performed by a computing system comprising a processor and a non-transitory computer-readable medium, comprising:

initializing a set of parameters for a machine-learning model;

accessing search log data captured by an online system, wherein the search log data describes a plurality of queries placed by users of the online system and a plurality of items;

generating a set of initial training examples based on the search log data, wherein each initial training example comprises a query of the plurality of queries, an item of the plurality of items, and an initial label, wherein the initial label represents whether the item was presented as a search result to a user and was selected by the user;

identifying a set of initial negative examples by identifying a subset of the set of initial training examples with initial labels below a threshold value;

updating the set of initial negative examples to generate a set of updated negative examples, wherein the set of updated negative examples is generated by, for each initial negative example:

identifying a plurality of bridge queries for the query of the initial negative example, wherein the plurality of bridge queries is a subset of the plurality of queries for which the item of the initial negative example was presented as a search result to a user and was selected by the user;

computing a similarity score between the query of the initial negative example and each of the plurality of bridge queries;

computing an updated label for the initial negative example based on the computed similarity scores; and

generating an updated negative example comprising the computed updated label and the query and item of the initial negative example;

generating a final set of training examples comprising the set of updated negative examples and a subset of the set of initial training examples with initial labels above the threshold value;

updating the set of parameters by processing each training example in the final set of training examples, wherein updating the set of parameters results in an updated set of parameters for the machine-learning model, and wherein processing each training example in the set of training examples comprises:

applying the machine-learning model to the item data and the query of the training example to generate an item prediction score, wherein the item prediction score represents a predicted likelihood that a user would select the item when the item is presented as a search result for the query;

computing a loss score by comparing the item prediction score to a label of the training example; and

updating the set of parameters for the machine-learning model through a backpropagation process using the computed loss score; and

storing the updated set of parameters on the computer-readable medium.

10. The method of claim 9 , wherein the machine-learning model is a cross encoder model.

11. The method of claim 9 , wherein each initial training example of the set of initial training examples comprises user data describing a user corresponding to the query of the initial training example.

12. The method of claim 9 , wherein each initial training example of the set of initial training examples comprises context data describing a context of the query of the initial training example.

13. The method of claim 9 , wherein computing a similarity score between the query of the initial negative example and a bridge query comprises:

applying a query embedding model to the query and the bridge query to generate embeddings for the query and bridge query; and

computing a distance between the embedding for the query and the embedding for the bridge query.

14. The method of claim 13 , wherein the embedding model is part of a bi-encoder model that is trained to generate query embeddings and item embeddings for use in selecting items for search results.

15. The method of claim 9 , wherein computing an updated label for the initial negative examples comprises:

computing an average of the computed similarity scores.

16. The method of claim 9 , further comprising:

filtering the set of updated negative examples based on the updated labels.

17. A system comprising:

a processor; and

a non-transitory computer-readable medium storing instructions that, when executed by the processor, cause the processor to perform operations comprising:

initializing a set of parameters for a machine-learning model;

accessing search log data captured by an online system, wherein the search log data describes a plurality of queries placed by users of the online system and a plurality of items;

generating a set of initial training examples based on the search log data, wherein each initial training example comprises a query of the plurality of queries, an item of the plurality of items, and an initial label, wherein the initial label represents whether the item was presented as a search result to a user and was selected by the user;

identifying a set of initial negative examples by identifying a subset of the set of initial training examples with initial labels below a threshold value;

updating the set of initial negative examples to generate a set of updated negative examples, wherein the set of updated negative examples is generated by, for each initial negative example:

identifying a plurality of bridge queries for the query of the initial negative example, wherein the plurality of bridge queries is a subset of the plurality of queries for which the item of the initial negative example was presented as a search result to a user and was selected by the user;

computing a similarity score between the query of the initial negative example and each of the plurality of bridge queries;

computing an updated label for the initial negative example based on the computed similarity scores; and

generating an updated negative example comprising the computed updated label and the query and item of the initial negative example;

generating a final set of training examples comprising the set of updated negative examples and a subset of the set of initial training examples with initial labels above the threshold value;

updating the set of parameters by processing each training example in the final set of training examples, wherein updating the set of parameters results in an updated set of parameters for the machine-learning model, and wherein processing each training example in the set of training examples comprises:

applying the machine-learning model to the item data and the query of the training example to generate an item prediction score, wherein the item prediction score represents a predicted likelihood that a user would select the item when the item is presented as a search result for the query;

computing a loss score by comparing the item prediction score to a label of the training example; and

updating the set of parameters for the machine-learning model through a backpropagation process using the computed loss score; and

storing the updated set of parameters on the computer-readable medium.

18. The system of claim 17 , wherein each initial training example of the set of initial training examples comprises user data describing a user corresponding to the query of the initial training example.

19. The system of claim 17 , wherein each initial training example of the set of initial training examples comprises context data describing a context of the query of the initial training example.

20. The system of claim 17 , wherein computing a similarity score between the query of the initial negative example and a bridge query comprises:

applying a query embedding model to the query and the bridge query to generate embeddings for the query and bridge query; and

computing a distance between the embedding for the query and the embedding for the bridge query.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Nov 15, 2024
From: WANG, XIAOCHEN; NA, TAESIK; XIAO, XIAO; ZHANG, RUHAN; ZHANG, XUAN; TENNETI, TEJASWI; WANG, HAIXUN
To: MAPLEBEAR INC.
Reel/Frame 069288/0219 →
Continuity (2)
Provisional Application 63595648 · Nov 2, 2023
Related Publication 20250147997A1 · May 8, 2025
References Cited (9)
US 6411952B1 · Bharat · 2002 [cited by examiner]
US 10170107B1 · Dreyer · 2019 [cited by examiner]
US 20080086432A1 · Schmidtler · 2008 [cited by examiner]
US 20080097936A1 · Schmidtler · 2008 [cited by examiner]
US 20130246048A1 · Nagase · 2013 [cited by examiner]
US 20160098645A1 · Sharma · 2016 [cited by examiner]
US 20210334314A1 · Shmiel · 2021 [cited by examiner]
US 20230306071A1 · Magureanu · 2023 [cited by examiner]
US 20240127070A1 · Gao · 2024 [cited by examiner]