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.