WO2024012360A1 - Data processing method and related apparatus - Google Patents

Data processing method and related apparatus Download PDF

Info

Publication number
WO2024012360A1
WO2024012360A1 PCT/CN2023/106278 CN2023106278W WO2024012360A1 WO 2024012360 A1 WO2024012360 A1 WO 2024012360A1 CN 2023106278 W CN2023106278 W CN 2023106278W WO 2024012360 A1 WO2024012360 A1 WO 2024012360A1
Authority
WO
WIPO (PCT)
Prior art keywords
model
operation information
user
items
recommendation model
Prior art date
Application number
PCT/CN2023/106278
Other languages
French (fr)
Chinese (zh)
Inventor
陈渤
秦佳锐
刘卫文
唐睿明
张伟楠
俞勇
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2024012360A1 publication Critical patent/WO2024012360A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N20/00Machine learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N5/00Computing arrangements using knowledge-based models
    • G06N5/04Inference or reasoning models

Definitions

  • This application relates to the field of artificial intelligence, and in particular, to a data processing method and related devices.
  • Artificial intelligence is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
  • artificial intelligence is a branch of computer science that attempts to understand the nature of intelligence and produce a new class of intelligent machines that can respond in a manner similar to human intelligence.
  • Artificial intelligence is the study of the design principles and implementation methods of various intelligent machines, so that the machines have the functions of perception, reasoning and decision-making.
  • Industrial information retrieval systems such as recommendation systems, search engines or advertising platforms
  • massive amounts of data such as items, information, advertisements
  • major platforms generate millions of new information every day, which brings great challenges to the information retrieval system.
  • system response time acceptable to users is very short (tens of milliseconds)
  • retrieving the most interesting data for users in such a short period of time has become the primary task of the information retrieval system.
  • complex machine learning models can better model the relationship between users and items, and therefore have better prediction accuracy, but often also lead to inefficiencies and, therefore, are limited by the latency of online inference. Requirements, becomes more difficult when deployed, and only a small number of items can be scored. On the contrary, due to the relatively low complexity of simple models, it is feasible to score a large number of items in terms of efficiency. However, due to the low capacity of the model, the prediction effect is often unsatisfactory. Therefore, building a multi-stage ranking system is a common solution for industrial information retrieval systems to balance prediction efficiency and effectiveness.
  • the multi-stage ranking system divides the original single system into multiple stages. Simple models can be deployed in the early stages of the system to quickly filter out a large number of irrelevant candidate items, while complex models are usually placed in the later stages of retrieval to be more relevant. users, thereby ranking candidate items more accurately.
  • the recommendation model in each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
  • This application provides a data processing method that uses a joint training model to allow each stage model to focus on fitting the data of its own stage, while using the upstream and downstream stages to assist training, thereby improving the prediction effect.
  • this application provides a data processing method, which method includes: predicting the user's first operation information on the item through the first recommendation model based on the first training sample; the first training sample is the user and the item Attribute information, the first operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model; According to the second training sample, the third operation information and the fourth operation information of the user on the item are predicted through the second recommendation model and the updated first recommendation model respectively; the second training sample is the attributes of the user and the item information, the first recommendation model and the second recommendation model are ranking models at different stages in the multi-stage cascade recommendation system, the third operation information and the fourth operation information are used to determine the second loss; the second loss is used After updating the updated first recommended model.
  • the updated first recommendation model obtained through the self-learning flow can process the second training sample to obtain the fourth operation information, which serves as the supervision signal of the third operation information (that is, the true value of the second training sample) , can be predicted as a higher-order recommendation model (that is, based on the second training sample, the user's third operation information on the item is predicted by the second recommendation model).
  • the guidance of the fine-ranking model is added, and the interactive information between different stages is used to obtain better performance without changing the system architecture or sacrificing reasoning efficiency.
  • the recommendation model at each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
  • This invention adopts a joint training model, allowing each stage model to focus on fitting the parameters of each stage. Data, while using the upstream and downstream stages to assist training, thereby improving the prediction effect.
  • the multi-stage joint optimization proposed in the embodiments of this application is implemented in the form of data exchange between different models without changing the training process of each model. Therefore, it is more suitable for the deployment of industrial systems and achieves better prediction results. .
  • the architecture of a multi-stage recommendation system often adopts the architecture of recall (or can be called matching), rough ranking, fine ranking, and rearrangement (or only includes recall, rough ranking, and fine ranking, or The combination of at least two of them is not limited by this application).
  • rough sorting can be located between recall and fine sorting.
  • the main goal of the rough sorting layer is to select the best candidate recall sub-sets of hundreds of magnitude from tens of thousands of candidate recall sets to enter fine sorting, which is carried out by fine sorting. Further sort the output.
  • the first recommendation model may be a rough ranking model, and the second recommendation model may be a fine ranking model; or, the first recommendation model may be a recall model, and the second recommendation model may be a fine ranking model. ; Or, the first recommendation model is a recall model, and the second recommendation model is a rough ranking model; or, the first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model; or, the first recommendation model The model is a coarse ranking model, and the second recommendation model is a rearrangement model; or the first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
  • the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operating information for some or all of the items in.
  • the converged second recommendation model is used to predict the user's operation information for all items in the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model. Model).
  • the converged second recommendation model is used to predict the user's operation information for some of the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a rearrangement model. Model, based on the prediction results obtained by the first recommendation model, one item screening can be performed, the fine ranking model needs to perform further screening, and the second recommendation model can make predictions based on the items screened by the fine ranking model).
  • the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following: the number of parameters included in the model, the number of network layers included in the model Depth, the width of the network layers included in the model, and the number of feature dimensions of the input data.
  • the first training sample can be processed according to the first recommendation model, that is, the first operation information of the user on the item can be predicted through the first recommendation model; the first training sample is the user and item attribute information.
  • the items in the first training sample may be items filtered by the recommendation model in the upstream stage.
  • the first training sample can be attribute information of users and items.
  • the user's attribute information may be attributes related to the user's preference characteristics, including at least one of gender, age, occupation, income, hobbies, and educational level.
  • the gender may be male or female, and the age may be 0-100.
  • the number in between, the occupation can be teachers, programmers, chefs, etc., the hobbies can be basketball, tennis, running, etc., and the education level can be elementary school, junior high school, high school, university, etc.; this application does not limit the target users The specific type of attribute information.
  • the items can be physical items or virtual items, such as APP, audio and video, web pages, news information, etc.
  • the attribute information of the item can be the item name, developer, installation package size, category, and praise rating. At least one.
  • the category of the item can be chatting, parkour games, office, etc., and the favorable rating can be ratings, comments, etc. for the item; this application is not limited to The specific type of attribute information for the item.
  • the first operation information predicted by the first recommendation model can be the user's behavioral operation type for the item, or whether a certain operation type has been performed.
  • the above operation type can be browsing and clicking in the e-commerce platform behavior. , add to shopping cart, purchase and other operation types.
  • the second operation information can be used as the ground truth when training the first recommendation model.
  • the items in the first training sample can include exposed items (that is, items that have been presented to the user) and unexposed items ( That is, items that have not yet been presented to the user).
  • the first recommendation model can predict the user's operation information on the exposed items.
  • the second operation information is the true value of the user's operation information on the exposed items. This part of the information can be obtained based on the interaction records between the user and the items (such as the user's operation log).
  • the behavior log can include the user's actual operation records on each item.
  • the first training sample is attribute information of users, exposed items, and unexposed items
  • the second operation The information includes the user's predicted operation information for the unexposed item and the user's actual operation information for the exposed item.
  • the actual operation information is obtained based on the user's operation log.
  • the first recommendation model can predict the user's operation information for unexposed items.
  • the part of the second operation information that is the true value of the user's operation information for unexposed items can be predicted (also It is the prediction operation information).
  • the predicted operation information indicates that the user has not performed any operation on the unexposed item (that is, the unexposed sample is regarded as a negative correlation sample), or is obtained through other prediction models.
  • the recommendation model is trained using exposure data; during inference, the model needs to sort a large amount of unseen data. This means that the data distribution during training is very different from the data distribution during inference, which will cause the system to be in a suboptimal state.
  • by predicting (or directly) unexposed data, and using unexposed data Training the recommendation model in a multi-stage ranking system can improve the performance of the model.
  • the first training sample is attribute information of the user and items, including: the first training sample is attribute information of the user and N items, and the first operation information is the user's response to the N items.
  • Operation information of items the first operation information is used to filter N1 items from the N items; the method also includes: based on the attribute information of the user and some or all of the N1 items, through a third recommendation model , predict the user's fifth operation information for some or all of the N1 items; the fifth operation information and the sixth operation information are used to determine the third loss, and the sixth operation information includes information obtained according to the user's operation log information; the third loss is used to update the third recommendation model to obtain the second recommendation model.
  • this application provides a data processing device, which includes:
  • the first prediction module is used to predict the user's first operation information on the item through the first recommendation model based on the first training sample; the first training sample is the attribute information of the user and the item, and the first operation information and the third
  • the second operation information is used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model;
  • the second prediction module is used to predict the third operation information and the fourth operation information of the user on the item through the second recommendation model and the updated first recommendation model respectively according to the second training sample;
  • the second training The samples are attribute information of users and items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to determine the second Loss; the second loss is used to update the updated first recommendation model.
  • the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operating information for some or all of the items in.
  • the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following:
  • the number of parameters included in the model the depth of the network layers included in the model, the width of the network layers included in the model, and the number of feature dimensions of the input data.
  • the first training sample is attribute information of the user, exposed items, and unexposed items
  • the second operation information includes the user's predicted operation information for the unexposed items, and the user's predicted operation information for the exposed items.
  • Actual operation information which is obtained based on the user's operation log; or,
  • the second training sample is attribute information of users, exposed items, and unexposed items.
  • the predicted operation information indicates that the user has not performed any operation on the unexposed item.
  • the first training sample is attribute information of the user and items, including: the first training sample is attribute information of the user and N items, and the first operation information is the user's response to the N items.
  • the operation information of the items, the first operation information is used to filter N1 items from the N items;
  • the device also includes:
  • the third prediction module is used to predict the user's fifth operation information for some or all of the N1 items through a third recommendation model based on the attribute information of the user and some or all of the N1 items; the The fifth operation information and the sixth operation information are used to determine the third loss.
  • the sixth operation information includes information obtained according to the user's operation log; the third loss is used to update the third recommendation model to obtain the second Recommended model.
  • the first recommendation model is a rough ranking model
  • the second recommendation model is a fine ranking model
  • the first recommendation model is a recall model
  • the second recommendation model is a refinement model
  • the first recommendation model is a recall model
  • the second recommendation model is a rough ranking model
  • the first recommendation model is a fine ranking model
  • the second recommendation model is a rearrangement model
  • the first recommendation model is a rough ranking model
  • the second recommendation model is a rearrangement model
  • the first recommendation model is a recall model
  • the second recommendation model is a rearrangement model
  • the attribute information includes user attributes
  • the user attributes include at least one of the following:
  • Gender age, occupation, income, hobbies, education level.
  • the attribute information includes item attributes
  • the item attributes include at least one of the following:
  • Item name developer, installation package size, category, and rating.
  • embodiments of the present application provide a data processing device, which may include a memory, a processor, and a bus system.
  • the memory is used to store programs
  • the processor is used to execute programs in the memory to perform the above-mentioned first aspect. Any optional method.
  • embodiments of the present application provide a computer-readable storage medium that stores a computer program that, when run on a computer, causes the computer to execute the above-mentioned first aspect and any optional Methods.
  • embodiments of the present application provide a computer program product, which includes code, and when the code is executed, is used to implement the above first aspect and any optional method.
  • the present application provides a chip system, which includes a processor to support an execution device or a training device to implement the functions involved in the above aspects, for example, sending or processing data involved in the above methods; Or, information.
  • the chip system also includes a memory, which is used to store necessary program instructions and data for executing the device or training the device.
  • the chip system may be composed of chips, or may include chips and other discrete devices.
  • the embodiment of the present application provides a data processing method, which method includes: predicting the user's first operation information on the item through the first recommendation model based on the first training sample; the first training sample is the attributes of the user and the item Information, the first operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model; according to the Two training samples are used to predict the user's third operation information and fourth operation information on the item through the second recommendation model and the updated first recommendation model respectively; the second training sample is the attribute information of the user and the item,
  • the first recommendation model and the second recommendation model are ranking models at different stages in the multi-stage cascade recommendation system.
  • the third operation information and the fourth operation information are used to determine the second loss; the second loss is used to update The updated No. 1 recommended model.
  • the recommendation model at each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
  • the present invention adopts a joint training model, allowing each stage model to focus on fitting the data of its own stage, while using the upstream and downstream stages to assist training, thereby improving the prediction effect.
  • the multi-stage joint optimization proposed in the embodiments of this application is implemented in the form of data exchange between different models without changing the training process of each model. Therefore, it is more suitable for the deployment of industrial systems and achieves better prediction results. .
  • Figure 1 is a structural schematic diagram of the main framework of artificial intelligence
  • Figure 2 is a schematic diagram of a system architecture provided by an embodiment of the present application.
  • Figure 3 is a schematic diagram of an information recommendation process provided by an embodiment of the present application.
  • Figure 4 is a schematic flow chart of a data processing method provided by an embodiment of the present application.
  • Figure 5 is a schematic flow chart of model training provided by an embodiment of the present application.
  • Figure 6 is a schematic diagram of a data processing device provided by an embodiment of the present application.
  • Figure 7 is a schematic diagram of an execution device provided by an embodiment of the present application.
  • Figure 8 is a schematic diagram of a training device provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of a chip provided by an embodiment of the present application.
  • Figure 1 shows a structural schematic diagram of the artificial intelligence main framework.
  • the following is from the “intelligent information chain” (horizontal axis) and “IT value chain” ( The above artificial intelligence theme framework is elaborated on the two dimensions of vertical axis).
  • the "intelligent information chain” reflects a series of processes from data acquisition to processing. For example, it can be the general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, intelligent execution and output. In this process, the data has gone through the condensation process of "data-information-knowledge-wisdom".
  • the "IT value chain” reflects the value that artificial intelligence brings to the information technology industry, from the underlying infrastructure of human intelligence and information (providing and processing technology implementation) to the systematic industrial ecological process.
  • Infrastructure provides computing power support for artificial intelligence systems, enables communication with the external world, and supports it through basic platforms.
  • computing power is provided by smart chips (hardware acceleration chips such as CPU, NPU, GPU, ASIC, FPGA, etc.);
  • the basic platform includes distributed computing framework and network and other related platform guarantees and support, which can include cloud storage and Computing, interconnection networks, etc.
  • sensors communicate with the outside world to obtain data, which are provided to smart chips in the distributed computing system provided by the basic platform for calculation.
  • Data from the upper layer of the infrastructure is used to represent data sources in the field of artificial intelligence.
  • the data involves graphics, images, voice, and text, as well as IoT data of traditional devices, including business data of existing systems and sensory data such as force, displacement, liquid level, temperature, and humidity.
  • Data processing usually includes data training, machine learning, deep learning, search, reasoning, decision-making and other methods.
  • machine learning and deep learning can perform symbolic and formal intelligent information modeling, extraction, preprocessing, training, etc. on data.
  • Reasoning refers to the process of simulating human intelligent reasoning in computers or intelligent systems, using formalized information to perform machine thinking and problem solving based on reasoning control strategies. Typical functions are search and matching.
  • Decision-making refers to the process of decision-making after intelligent information is reasoned, and usually provides functions such as classification, sorting, and prediction.
  • some general capabilities can be formed based on the results of further data processing, such as algorithms or a general system, such as translation, text analysis, computer vision processing, speech recognition, and image processing. identification, etc.
  • Intelligent products and industry applications refer to the products and applications of artificial intelligence systems in various fields. They are the encapsulation of overall artificial intelligence solutions, productizing intelligent information decision-making and realizing practical applications. Its application fields mainly include: intelligent terminals, intelligent transportation, Smart healthcare, autonomous driving, smart cities, etc.
  • Embodiments of the present application can be applied to the field of information recommendation. Specifically, they can be applied to application markets, music playback recommendations, video playback recommendations, reading recommendations, news information recommendations, and information recommendations in web pages.
  • This application can be applied to a recommendation system.
  • the recommendation system can determine the recommended objects based on the recommendation model obtained by the data processing method provided by this application.
  • the recommended objects can be, for example, but are not limited to applications (APPs), audio and video, web pages, and news. Information and other items.
  • information recommendation can include processes such as prediction and recommendation.
  • prediction needs to solve the problem of predicting the user's preference for each item, which can be reflected by the probability of the user selecting the item.
  • Recommendation can be to sort the recommended objects according to the predicted results, for example, according to the predicted degree of preference, sort the objects in order from high to low degree of preference, and recommend information to the user based on the sorting results.
  • the recommendation system can recommend applications to users based on the sorting results.
  • the recommendation system can recommend music to users based on the sorting results.
  • the recommendation system can recommend videos to users based on the sorting results.
  • FIG. 2 is a schematic diagram of the system architecture provided by an embodiment of the present application.
  • the system architecture 500 includes an execution device 510, a training device 520, a database 530, a client device 540, a data storage system 550 and a data collection system 560.
  • the execution device 510 includes a computing module 511, an I/O interface 512, a preprocessing module 513 and a preprocessing module 514.
  • the target model/rule 501 may be included in the calculation module 511, and the preprocessing module 513 and the preprocessing module 514 are optional.
  • the training sample may be the user's historical operation record, which may be the user's behavior logs (logs).
  • the historical operation record may include the user's operation information on items, where the operation information may be Including operation type, user identification, item identification.
  • the operation type may include but is not limited to click, purchase, return, add to shopping cart, etc.
  • the operation type may include but not limited to click, purchase, return, add to shopping cart, etc.
  • the training samples are the data used to train the initialized recommendation model. After collecting the training samples, the data collection device 560 stores the training samples into the database 530 .
  • the training device 520 can train the initialized recommendation model based on the training samples maintained in the database 530 to obtain the target model/rule 501.
  • the target model/rule 501 can be a multi-stage ranking model.
  • the multi-stage ranking model can predict the user's operation information for the item based on the user and item information.
  • the operation information can be used for information recommendation.
  • the training samples maintained in the database 530 are not necessarily collected by the data collection device 560 , and may also be received from other devices, or based on the data collected by the data collection device 560 . Obtained by data expansion (for example, the second operation type of the target user on the first item in the embodiment of the present application).
  • the training device 520 may not necessarily train the target model/rules 501 based entirely on the training samples maintained by the database 530. It may also obtain training samples from the cloud or other places for model training. The above description should not be used as a guarantee for this application. Limitations of Examples.
  • the target model/rules 501 trained according to the training device 520 can be applied to different systems or devices, such as to the execution device 510 shown in Figure 2.
  • the execution device 510 can be a terminal, such as a mobile phone terminal, a tablet computer, Laptops, augmented reality (AR)/virtual reality (VR) devices, vehicle-mounted terminals, etc., or servers or clouds, etc.
  • AR augmented reality
  • VR virtual reality
  • the execution device 510 is configured with an input/output (I/O) interface 512 for data interaction with external devices.
  • the user can input data to the I/O interface 512 through the client device 540 .
  • the preprocessing module 513 and the preprocessing module 514 are used to perform preprocessing according to the input data received by the I/O interface 512. It should be understood that there may be no preprocessing module 513 and 514 or only one preprocessing module. When the preprocessing module 513 and the preprocessing module 514 do not exist, the computing module 511 can be directly used to process the input data.
  • the execution device 510 When the execution device 510 preprocesses input data, or when the calculation module 511 of the execution device 510 performs calculations and other related processes, the execution device 510 can call data, codes, etc. in the data storage system 550 for corresponding processing. , the data, instructions, etc. obtained by corresponding processing can also be stored in the data storage system 550.
  • the I/O interface 512 presents the processing results to the client device 540, thereby providing them to the user.
  • the execution device 510 may include hardware circuits (such as application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), general-purpose processors, digital signal processors (digital signal processing, DSP, microprocessor or microcontroller, etc.), or a combination of these hardware circuits.
  • ASICs application specific integrated circuits
  • FPGAs field-programmable gate arrays
  • DSP digital signal processors
  • the execution device 510 can be a hardware system with the function of executing instructions, such as a CPU, DSP, etc., or it can be a combination of other hardware circuits.
  • a hardware system with the function of executing instructions such as ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without the function of executing instructions and a hardware system with the function of executing instructions.
  • the execution device 510 can be a combination of a hardware system that does not have the function of executing instructions and a hardware system that has the function of executing instructions. Some steps of the data processing method provided by the embodiment of the present application can also be implemented by the execution device 510 that does not have the function of executing instructions.
  • the hardware system to realize the function is not limited here.
  • the user can manually set input data, and the "manually given input data" can be operated through the interface provided by the I/O interface 512 .
  • the client device 540 can automatically send input data to the I/O interface 512. If requiring the client device 540 to automatically send the input data requires the user's authorization, the user can set corresponding permissions in the client device 540. The user can view the results output by the execution device 510 on the client device 540, and the specific presentation form may be display, sound, action, etc.
  • the client device 540 can also be used as a data collection terminal to collect the input data of the input I/O interface 512 and the output results of the output I/O interface 512 as new sample data, and store them in the database 530.
  • the I/O interface 512 directly uses the input data input to the I/O interface 512 and the output result of the output I/O interface 512 as a new sample as shown in the figure.
  • the data is stored in database 530.
  • Figure 2 is only a schematic diagram of a system architecture provided by an embodiment of the present application.
  • the positional relationship between the devices, devices, modules, etc. shown in the figure does not constitute any limitation.
  • the data The storage system 550 is an external memory relative to the execution device 510. In other cases, the data storage system 550 can also be placed in the execution device 510. It should be understood that the above execution device 510 may be deployed in the client device 540.
  • CTR Click-throughrate
  • Click probability also known as click-through rate
  • Click-through rate refers to the ratio of the number of clicks and the number of exposures to recommended information (for example, recommended items) on a website or application. Click-through rate is usually an important indicator for measuring recommendation systems in recommendation systems.
  • a personalized recommendation system refers to a system that uses machine learning algorithms to analyze based on the user's historical data (such as the operation information in the embodiment of this application), and uses this to predict new requests and provide personalized recommendation results.
  • Offline training refers to a module in the personalized recommendation system that iteratively updates the recommendation model parameters according to the machine learning algorithm based on the user's historical data (such as the operation information in the embodiments of this application) until the set requirements are met.
  • Online prediction refers to predicting the user's preference for recommended items in the current context based on the characteristics of users, items and context based on offline trained models, and predicting the probability of users choosing recommended items.
  • FIG. 3 is a schematic diagram of a recommendation system provided by an embodiment of the present application.
  • the recommendation system will input the request and its related information (such as the operation information in the embodiment of this application) into the recommendation model, and then predict the user's response to the system.
  • the items are arranged in descending order according to the predicted selection rate or a function based on the selection rate, that is, the recommendation system can display the items in different locations in order as a recommendation result to the user.
  • Users browse different located items and perform user actions such as browsing, selection, and downloading.
  • the user's actual behavior will be stored in the log as training data, and the parameters of the recommended model will be continuously updated through the offline training module to improve the prediction effect of the model.
  • the recommendation system in the application market can be triggered.
  • the recommendation system of the application market will be based on the user's historical behavior logs, such as the user's historical download records, user selection records, and the application market's own characteristics. Characteristics, such as time, location and other environmental feature information, are used to predict the probability of users downloading each recommended candidate APP. Based on the calculation results, the recommendation system of the application market can display the candidate APPs in descending order according to the predicted probability value, thereby increasing the download probability of the candidate APPs.
  • APPs with a higher predicted user selection rate may be displayed in the front recommendation position
  • APPs with a lower predicted user selection rate may be displayed in the lower recommendation position
  • the multi-stage cascade sorting system can also be called a multi-stage sorting system in the embodiment of this application. Due to the large number of items in the commercial system, and the user request response time needs to be strictly controlled within tens of milliseconds, the current stage of commercial sorting The system is generally divided into multiple cascaded independent sorting systems. The output of the upstream system is used as the input of the downstream system, thereby filtering layer by layer, reducing the scale of scored items at each stage, and taking into account the final prediction effect and response delay.
  • the above recommendation model may be a neural network model.
  • the relevant terms and concepts of neural networks that may be involved in the embodiments of this application are introduced below.
  • the neural network can be composed of neural units.
  • the neural unit can refer to an operation unit that takes xs (ie, input data) and intercept 1 as input.
  • the output of the operation unit can be:
  • s 1, 2,...n, n is a natural number greater than 1
  • Ws is the weight of xs
  • b is the bias of the neural unit.
  • f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into an output signal.
  • the output signal of this activation function can be used as the input of the next convolutional layer, and the activation function can be a sigmoid function.
  • a neural network is a network formed by connecting multiple above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit.
  • the input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field.
  • the local receptive field can be an area composed of several neural units.
  • Deep Neural Network also known as multi-layer neural network
  • DNN Deep Neural Network
  • the neural network inside DNN can be divided into three categories: input layer, hidden layer, and output layer.
  • the first layer is the input layer
  • the last layer is the output layer
  • the layers in between are hidden layers.
  • the layers are fully connected, that is to say, any neuron in the i-th layer must be connected to any neuron in the i+1-th layer.
  • the coefficient from the k-th neuron in layer L-1 to the j-th neuron in layer L is defined as It should be noted that the input layer has no W parameter.
  • more hidden layers make the network more capable of describing complex situations in the real world. Theoretically, a model with more parameters has higher complexity and greater "capacity", which means it can complete more complex learning tasks.
  • Training a deep neural network is the process of learning the weight matrix. The ultimate goal is to obtain the weight matrix of all layers of the trained deep neural network (a weight matrix formed by the vectors W of many layers).
  • the error back propagation (BP) algorithm can be used to correct the size of the parameters in the initial model during the training process, so that the error loss of the model becomes smaller and smaller. Specifically, forward propagation of the input signal until the output will produce an error loss, and backward propagation of the error loss information is used to update the parameters in the initial model, so that the error loss converges.
  • the backpropagation algorithm is a backpropagation movement dominated by error loss, aiming to obtain optimal model parameters, such as weight matrices.
  • Industrial information retrieval systems such as recommendation systems, search engines or advertising platforms
  • massive amounts of data such as items, information, advertisements
  • major platforms generate millions of new information every day, which brings great challenges to the information retrieval system.
  • system response time acceptable to users is very short (tens of milliseconds)
  • retrieving the most interesting data for users in such a short period of time has become the primary task of the information retrieval system.
  • complex machine learning models can better model the relationship between users and items, and therefore have better prediction accuracy, but often also lead to inefficiencies and, therefore, are limited by the latency of online inference. Requirements, becomes more difficult when deployed, and only a small number of items can be scored. On the contrary, due to the relatively low complexity of simple models, it is feasible to score a large number of items in terms of efficiency. However, due to the low capacity of the model, the prediction effect is often unsatisfactory. Therefore, building a multi-stage ranking system is a common solution for industrial information retrieval systems to balance prediction efficiency and effectiveness.
  • the multi-stage ranking system divides the original single system into multiple stages. Simple models can be deployed in the early stages of the system to quickly filter out a large number of irrelevant candidate items, while complex models are usually placed in the later stages of retrieval to be more relevant. users, thereby ranking candidate items more accurately.
  • the common multi-stage cascade sorting system in the industry includes subsystems for multiple stages of recall, rough sorting, fine sorting and rearrangement.
  • the recall system in the earliest stage needs to score tens of thousands of items each time a user requests it, while the rough sorting and fine sorting stages only need to score thousands or hundreds of items, and the rearrangement stage closest to the user even only needs to score Consider the scoring problem of dozens of items. Therefore, the complexity of the models in different stages increases from front to back. Models in the early stages are generally relatively simple, while models in the later stages are very complex. Through this multi-stage cascade sorting system, the prediction effect and prediction delay can be effectively weighed, thereby bringing a good experience to users.
  • Independently training each subsystem in the multi-stage cascade sorting system is the mainstream method in the industry at this stage. Independently train a machine learning model for different stages of recall, rough sorting, fine sorting and rearrangement, and use the trained model separately Deployed to each stage for service.
  • the advantage of the multi-stage independent training system is that models at different stages are independently trained and deployed, so the operation is simple. At the same time, it is convenient to deploy models suitable for corresponding complexity and prediction capabilities at different stages.
  • the recommendation model in each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
  • Figure 4 is a schematic diagram of an embodiment of a data processing method provided by an embodiment of the present application.
  • a data processing method provided by an embodiment of the present application includes:
  • the first training sample predict the user's first operation information on the item through the first recommendation model; the first training sample is the attribute information of the user and the item, the first operation information and the second operation The information is used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model.
  • the execution subject of step 401 may be a terminal device, and the terminal device may be a portable mobile device, such as but not limited to a mobile or portable computing device (such as a smart phone), a personal computer, a server computer, a handheld device (e.g., tablets) or laptop devices, multiprocessor systems, gaming consoles or controllers, microprocessor-based systems, set-top boxes, programmable consumer electronics, mobile phones, devices with wearable or accessory form factors (e.g., watches, glasses, headsets or earbuds), network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices etc.
  • a mobile or portable computing device such as a smart phone
  • a personal computer such as a server computer
  • a handheld device e.g., tablets
  • microprocessor-based systems e.g., set-top boxes
  • programmable consumer electronics e.g., mobile phones, devices with wearable or accessory form factors (e.g., watches, glasses, headsets or ear
  • the execution subject of step 401 may be a server on the cloud side.
  • the first recommendation model and the second recommendation model can be two ranking models in a multi-stage ranking system.
  • the multi-stage ranking system is divided into multiple cascaded independent recommendation models.
  • the upstream recommendation model The output is used as the input of the downstream system (each recommendation model can predict the user's operation of each item based on the attribute information of the user and the item.
  • the prediction results can be used to filter items, and the downstream recommendation model can be based on the user and filter.
  • the information of the items after the filtering is used to predict the user's operation on each filtered item), thereby filtering layer by layer, reducing the scale of scored items at each stage, and taking into account the final prediction effect and response delay.
  • the architecture of a multi-stage recommendation system often adopts the architecture of recall (or can be called matching), rough ranking, fine ranking, and rearrangement (or only includes recall, rough ranking, and fine ranking, or The combination of at least two of them is not limited by this application).
  • rough sorting can be located between recall and fine sorting.
  • the main goal of the rough sorting layer is to select the best candidate recall sub-sets of hundreds of magnitude from tens of thousands of candidate recall sets to enter fine sorting, which is carried out by fine sorting. Further sort the output.
  • the first recommendation model may be a rough ranking model, and the second recommendation model may be a fine ranking model; or, the first recommendation model may be a recall model, and the second recommendation model may be a recall model.
  • the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operational information for some or all of the items.
  • the converged second recommendation model is used to predict the user's operation information for all items in the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model. platoon model).
  • the converged second recommendation model is used to predict the user's operation information for some of the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a heavy ranking model.
  • Ranking model based on the prediction results obtained by the first recommendation model, one-time item screening can be performed, the fine ranking model needs to perform further screening, and the second recommendation model can make predictions based on the items screened by the fine ranking model).
  • the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following: the number of parameters included in the model, the number of parameters included in the model, The depth of the network layer, the width of the network layers included in the model, and the number of feature dimensions of the input data.
  • the first training sample can be processed according to the first recommendation model, that is, the first operation information of the item by the user is predicted through the first recommendation model; the first training sample Attribute information for users and items.
  • the items in the first training sample may be items filtered by the recommendation model in the upstream stage.
  • the first training sample can be attribute information of users and items.
  • the user's attribute information may be attributes related to the user's preference characteristics, including at least one of gender, age, occupation, income, hobbies, and educational level.
  • the gender may be male or female, and the age may be 0-100.
  • the number between them, the profession can be teachers, programmers, chefs, etc., the hobbies can be basketball, tennis, running, etc., and the education level can be elementary school, junior high school, high school, university, etc.; this application does not limit the target users The specific type of attribute information.
  • the items can be physical items or virtual items, such as APP, audio and video, web pages, news information, etc.
  • the attribute information of the item can be the item name, developer, installation package size, category, and praise rating. At least one.
  • the category of the item can be chatting, parkour games, office, etc., and the favorable rating can be ratings, comments, etc. for the item; this application is not limited to The specific type of attribute information for the item.
  • the first operation information predicted by the first recommendation model can be the user's behavioral operation type for the item, or whether a certain operation type has been performed.
  • the above operation type can be browsing and clicking in the e-commerce platform behavior. , add to shopping cart, purchase and other operation types.
  • the second operation information can be used as the ground truth when training the first recommendation model.
  • the items in the first training sample can include exposed items (that is, items that have been presented to the user) and unexposed items ( That is, items that have not yet been presented to the user).
  • the first recommendation model can predict the user's operation information for the exposed items.
  • the second operation information is used as the This part of the information about the true value of the user's operation information on the exposed items can be obtained based on the interaction records between the user and the items (such as the user's operation log).
  • the behavior log can include the user's real operation records on each item.
  • the first training sample includes attribute information of the user, exposed items, and unexposed items
  • the second operation information includes the user's predicted operation information on the unexposed items, and the user's predicted operation information on the unexposed items.
  • the actual operation information of the exposed items is obtained according to the user's operation log.
  • the first recommendation model can predict the user's operation information for unexposed items.
  • the part of the second operation information that is the true value of the user's operation information for unexposed items can be predicted (also It is the prediction operation information).
  • the predicted operation information indicates that the user has not performed any operation on the unexposed items (that is, the unexposed samples are regarded as negatively correlated samples), or is obtained through other prediction models.
  • the recommendation model is trained using exposure data; during inference, the model needs to sort a large amount of unseen data. This means that the data distribution during training is very different from the data distribution during inference, which will cause the system to be in a suboptimal state.
  • by predicting (or directly) unexposed data, and using unexposed data Training the recommendation model in a multi-stage ranking system can improve the performance of the model.
  • the first operation information and the second operation information are used to determine the first loss; the first loss can be used to update the first recommendation model.
  • the above training based on real operation logs can be called a self-learning flow.
  • the label Y corresponding to the exposed sample in the training data of the self-learning flow can be provided by real user behavior. If it is an unexposed sample, it can as a negative correlation sample. Therefore, the training loss function can remain the same as in the independent training stage, using the cross-entropy loss function for training.
  • the self-learning flow aims to use the data generated in the previous stage to learn and fit on its own and improve the prediction ability of the scoring data in the current stage.
  • the loss function of the self-learning flow can be:
  • the above formula is the cross-entropy loss function of the i-th stage model, which is a common binary classification loss function in the field of click-through rate prediction, where R i (x j ) is the prediction score of the i-th stage model for the j-th sample, y j is the true label of this sample.
  • the first recommendation model can be trained iteratively for multiple times in the above manner to obtain the trained first recommendation model.
  • the second recommendation model can be trained.
  • the first training sample is the attribute information of the user and N items
  • the first operation information is the user's response to the Operation information of N items
  • the first operation information is used to filter N1 items from the N items
  • the user and the attribute information of some or all of the N1 items can be used to filter through the third
  • a recommendation model predicts the user's fifth operation information for some or all of the N1 items
  • the fifth operation information and the sixth operation information are used to determine the third loss
  • the sixth operation information includes Information obtained from the user's operation log
  • the third loss is used to update the third recommendation model to obtain the second recommendation model.
  • the second training sample predict the third operation information and the fourth operation information of the item by the user through the second recommendation model and the updated first recommendation model respectively;
  • the second training sample is the attribute information of users and items, the first recommendation model and the second recommendation model are ranking models of different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to A second loss is determined; the second loss is used to update the updated first recommendation model.
  • the user's third operation information on the item can be predicted through the second recommendation model based on the second training sample, and the updated first recommendation model can be used to predict the user's third operation information based on the second training sample. Describes the fourth operation information of the user on the item.
  • the tutor-coaching flow can be trained. Specifically, the label Y corresponding to the training data of the tutor-coaching flow is provided by the model in the subsequent stage.
  • the sequential stage model (relatively complex model) plays the role of a teacher, passing interactive information to the current stage model (relatively simple model) in this way.
  • the updated first recommendation model obtained through the self-learning flow can process the second training sample to obtain the fourth operation information, which serves as the supervision signal of the third operation information (that is, the true value of the second training sample) , can be obtained by prediction as a higher-order recommendation model (that is, based on the second training sample, the user's third operation information on the item is predicted by the second recommendation model).
  • the guidance of the fine ranking model is added, and the interactive information between different stages is used without changing Better performance can be achieved by modifying the system architecture or sacrificing inference efficiency.
  • the training loss function can be composed of two parts. For example, as shown in the following formula, mse loss is the predicted value of the post-order model for point-to-point learning; and ranking loss is the list of preferences for the post-order model (composed of top K top-ranked candidate items).
  • L mse is a common loss function for regression tasks, so that the score R i (x j ) of the i-th stage model for the sample is close to the score of the i+1-th stage model.
  • L ranking is a list loss function for learning post-order model preferences. For each request q, maximize the average score of the K i items that win in the current stage. and the average score of the eliminated (K i-1 -K i ) items the distance between.
  • the models for each of the 4 stages are trained independently, and the model for each stage is trained on the original data set using a loss function (such as the cross-entropy loss function).
  • a loss function such as the cross-entropy loss function
  • stage 1-4 For each stage (stage 1-4) model, train through self-learning flow
  • stage 1-3 For each stage (stage 1-3), the model is trained through the mentor coaching stream.
  • Figure 5 is a schematic diagram of a training process of the multi-stage ranking model in the embodiment of the present application:
  • the whole process can be divided into two stages: independent training and joint training.
  • the model in each phase is trained on the original exposure data set using a loss function (such as the cross-entropy loss function).
  • the independent training process is essentially a model warm-up stage, which enables both upstream and downstream models to have basic sorting capabilities. This process is consistent with the traditional process of independent training of multi-stage systems, as shown in the leftmost subfigure in Figure 5.
  • the first step is to generate data X (excluding label Y) for each stage that is suitable for the current stage.
  • the data X of each stage is generated by the model of the previous stage.
  • the data In the first stage since there is no preceding stage, the data X and independent training stages remain the same.
  • two different streams are designed for iterative joint training: self-learning stream and tutor-coaching stream.
  • Self-learning flow (self-learning): The label Y corresponding to the training data The light gray data flow is shown.
  • An embodiment of the present application provides a data processing method, which method includes: predicting the user's first operation information on items through a first recommendation model based on a first training sample; the first training sample is a user and a Attribute information of the item, the first operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the The first recommendation model; according to the second training sample, predict the third operation information and the fourth operation information of the item by the user through the second recommendation model and the updated first recommendation model respectively;
  • the second training sample is the user and Attribute information of items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to determine the second Loss; the second loss is used to update the updated first recommendation model.
  • the recommendation model at each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
  • the present invention adopts a joint training model, allowing each stage model to focus on fitting the data of its own stage, while using the upstream and downstream stages to assist training, thereby improving the prediction effect.
  • the multi-stage joint optimization proposed in the embodiments of this application is implemented in the form of data exchange between different models without changing the training process of each model. Therefore, it is more suitable for the deployment of industrial systems and achieves better prediction results. .
  • Figure 6 shows a data processing device 600 provided by an embodiment of the present application.
  • the device includes:
  • the first prediction module 601 is used to predict the user's first operation information on the item through the first recommendation model according to the first training sample; the first training sample is the attribute information of the user and the item, and the first The operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model;
  • step 401 For a specific description of the first prediction module 601, reference may be made to the description of step 401 in the above embodiment, which will not be described again here.
  • the second prediction module 602 is configured to predict the third operation information and the fourth operation information of the user on the item through the second recommendation model and the updated first recommendation model respectively according to the second training sample;
  • the second training sample is attribute information of users and items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the The fourth operation information is used to determine a second loss; the second loss is used to update the updated first recommendation model.
  • step 402 For a specific description of the second prediction module 602, reference may be made to the description of step 402 in the above embodiment, which will not be described again here.
  • the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operational information for some or all of the items.
  • the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following:
  • the number of parameters included in the model the depth of the network layers included in the model, the width of the network layers included in the model, and the number of feature dimensions of the input data.
  • the first training sample includes attribute information of the user, exposed items, and unexposed items
  • the second operation information includes the user's predicted operation information on the unexposed items, and the user's predicted operation information on the unexposed items.
  • the actual operation information of the exposed items, the actual operation information is obtained according to the user's operation log; or,
  • the second training sample is attribute information of users, exposed items, and unexposed items.
  • the predicted operation information indicates that the user has not performed any operation on the unexposed items.
  • the first training sample is the attribute information of the user and items, including: the first training sample is the attribute information of the user and N items, and the first operation information is the user For the operation information of the N items, the first operation information is used to filter N1 items from the N items;
  • the device also includes:
  • a third prediction module configured to predict the user's fifth preference for some or all of the N1 items through a third recommendation model based on the attribute information of the user and some or all of the N1 items. Operation information; the fifth operation information and the sixth operation information are used to determine the third loss, the sixth operation information includes information obtained according to the user's operation log; the third loss is used to update the third loss three recommendation models to obtain the second recommendation model.
  • the first recommendation model is a rough ranking model
  • the second recommendation model is a fine ranking model
  • the first recommendation model is a recall model
  • the second recommendation model is a fine ranking model
  • the first recommendation model is a recall model
  • the second recommendation model is a coarse ranking model
  • the first recommendation model is a fine ranking model
  • the second recommendation model is a rearrangement model
  • the first recommendation model is a rough ranking model
  • the second recommendation model is a rearrangement model
  • the first recommendation model is a recall model
  • the second recommendation model is a rearrangement model
  • the attribute information includes user attributes
  • the user attributes include at least one of the following:
  • Gender age, occupation, income, hobbies, education level.
  • the attribute information includes item attributes
  • the item attributes include at least one of the following:
  • Item name developer, installation package size, category, and rating.
  • FIG. 7 is a schematic structural diagram of an execution device provided by an embodiment of the present application.
  • the execution device 700 can be embodied as a mobile phone, a tablet, a notebook computer, Smart wearable devices, servers, etc. are not limited here.
  • the data processing device described in the corresponding embodiment of FIG. 6 may be deployed on the execution device 700 to implement the data processing function in the corresponding embodiment of FIG. 4 .
  • the execution device 700 includes: a receiver 701, a transmitter 702, a processor 703, and a memory 704 (the number of processors 703 in the execution device 700 may be one or more), where the processor 703 may include application processing processor 7031 and communication processor 7032.
  • the receiver 701, the transmitter 702, the processor 703, and the memory 704 may be connected through a bus or other means.
  • Memory 704 may include read-only memory and random access memory and provides instructions and data to processor 703 .
  • a portion of memory 704 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 704 stores processor and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, where the operating instructions may include various operating instructions for implementing various operations.
  • Processor 703 controls execution of operations of the device.
  • various components of the execution device are coupled together through a bus system.
  • the bus system may also include a power bus, a control bus, a status signal bus, etc.
  • various buses are called bus systems in the figure.
  • the methods disclosed in the above embodiments of the present application can be applied to the processor 703 or implemented by the processor 703 .
  • the processor 703 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 703 .
  • the above-mentioned processor 703 can be a general-purpose processor, a digital signal processor (DSP), a microprocessor or a microcontroller, a vision processing unit (VPU), or a tensor processing unit.
  • TPU and other processors suitable for AI computing, may further include application specific integrated circuits (ASICs), field-programmable gate arrays (field-programmable gate arrays, FPGAs) or other programmable logic devices, Discrete gate or transistor logic devices, discrete hardware components.
  • ASICs application specific integrated circuits
  • FPGAs field-programmable gate arrays
  • Discrete gate or transistor logic devices discrete hardware components.
  • the processor 703 can implement or execute each method, step and logical block diagram disclosed in the embodiment of this application.
  • a general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
  • the steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field.
  • the storage medium is located in the memory 704.
  • the processor 703 reads the information in the memory 704 and completes steps 401 to 402 in the above embodiment in combination with its hardware.
  • the receiver 701 may be configured to receive input numeric or character information and generate signal inputs related to performing relevant settings and functional controls of the device.
  • the transmitter 702 can be used to output numeric or character information through the first interface; the transmitter 702 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 702 can also include a display device such as a display screen .
  • FIG. 8 is a schematic structural diagram of the training device provided by the embodiment of the present application.
  • the training device 800 is implemented by one or more servers.
  • the training device 800 There may be relatively large differences due to different configurations or performance, and may include one or more central processing units (CPU) 88 (for example, one or more processors) and memory 832, one or more storage applications Storage medium 830 for program 842 or data 844 (eg, one or more mass storage devices).
  • the memory 832 and the storage medium 830 may be short-term storage or persistent storage.
  • the program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the training device.
  • the central processor 88 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the training device 800 .
  • Training device 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, a One or more input and output interfaces 858; or, one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the training device can perform steps 401 to 402 in the above embodiment.
  • An embodiment of the present application also provides a computer program product that, when run on a computer, causes the computer to perform the steps performed by the foregoing execution device, or causes the computer to perform the steps performed by the foregoing training device.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the computer-readable storage medium stores a program for performing signal processing.
  • the program When the program is run on a computer, it causes the computer to perform the steps performed by the aforementioned execution device. , or, causing the computer to perform the steps performed by the aforementioned training device.
  • the execution device, training device or terminal device provided by the embodiment of the present application may specifically be a chip.
  • the chip includes: a processing unit and a communication unit.
  • the processing unit may be, for example, a processor.
  • the communication unit may be, for example, an input/output interface. Pins or circuits, etc.
  • the processing unit can execute the computer execution instructions stored in the storage unit, so that the chip in the execution device executes the data processing method described in the above embodiment, or so that the chip in the training device executes the data processing method described in the above embodiment.
  • the storage unit is a storage unit within the chip, such as a register, cache, etc.
  • the storage unit may also be a storage unit located outside the chip in the wireless access device, such as Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.
  • ROM Read-only memory
  • RAM random access memory
  • Figure 9 is a schematic structural diagram of a chip provided by an embodiment of the present application.
  • the chip can be represented as a neural network processor NPU 900.
  • the NPU 900 serves as a co-processor and is mounted to the host CPU. ), tasks are allocated by the Host CPU.
  • the core part of the NPU is the arithmetic circuit 903.
  • the arithmetic circuit 903 is controlled by the controller 904 to extract the matrix data in the memory and perform multiplication operations.
  • NPU 900 can implement the data processing method provided in the embodiment described in Figure 4 through the cooperation between various internal devices.
  • the computing circuit 903 in the NPU 900 includes multiple processing units (Process Engine, PE).
  • arithmetic circuit 903 is a two-dimensional systolic array.
  • the arithmetic circuit 903 may also be a one-dimensional systolic array or other electronic circuit capable of performing mathematical operations such as multiplication and addition.
  • arithmetic circuit 903 is a general-purpose matrix processor.
  • the arithmetic circuit obtains the corresponding data of matrix B from the weight memory 902 and caches it on each PE in the arithmetic circuit.
  • the operation circuit takes matrix A data and matrix B from the input memory 901 to perform matrix operations, and the partial result or final result of the obtained matrix is stored in an accumulator (accumulator) 908 .
  • the unified memory 906 is used to store input data and output data.
  • the weight data directly passes through the storage unit access controller (Direct Memory Access Controller, DMAC) 905, and the DMAC is transferred to the weight memory 902.
  • the input data is also transferred to unified memory 906 via DMAC.
  • DMAC Direct Memory Access Controller
  • BIU is the Bus Interface Unit, that is, the bus interface unit 910, which is used for the interaction between the AXI bus and the DMAC and the Instruction Fetch Buffer (IFB) 909.
  • IFB Instruction Fetch Buffer
  • the bus interface unit 910 (Bus Interface Unit, BIU for short) is used to fetch the memory 909 to obtain instructions from the external memory, and is also used for the storage unit access controller 905 to obtain the original data of the input matrix A or the weight matrix B from the external memory.
  • BIU Bus Interface Unit
  • DMAC is mainly used to transfer the input data in the external memory DDR to the unified memory 906 or the weight data to the weight memory 902 or the input data to the input memory 901 .
  • the vector calculation unit 907 includes multiple arithmetic processing units, and if necessary, further processes the output of the arithmetic circuit 903, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc.
  • vector calculation unit 907 can store the processed output vectors to unified memory 906 .
  • the vector calculation unit 907 can apply a linear function; or a nonlinear function to the output of the operation circuit 903, such as linear interpolation on the feature plane extracted by the convolution layer, or a vector of accumulated values, to generate an activation value.
  • vector calculation unit 907 generates normalized values, pixel-wise summed values, or both.
  • the processed output vector can be used as an activation input to the arithmetic circuit 903, such as for use in a subsequent layer in a neural network.
  • the instruction fetch buffer 909 connected to the controller 904 is used to store instructions used by the controller 904;
  • the unified memory 906, the input memory 901, the weight memory 902 and the fetch memory 909 are all On-Chip memories. External memory is private to the NPU hardware architecture.
  • the processor mentioned in any of the above places can be a general central processing unit, a microprocessor, an ASIC, or one or more integrated circuits used to control the execution of the above programs.
  • the device embodiments described above are only illustrative.
  • the units described as separate components may or may not be physically separated, and the components shown as units may or may not be physically separate.
  • the physical unit can be located in one place, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
  • the connection relationship between modules indicates that there are communication connections between them, which can be specifically implemented as one or more communication buses or signal lines.
  • the present application can be implemented by software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions performed by computer programs can be easily implemented with corresponding hardware. Moreover, the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special-purpose circuits. circuit etc. However, for this application, software program implementation is a better implementation in most cases. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology.
  • the computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to cause a computer device (which can be a personal computer, training device, or network device, etc.) to execute the steps described in various embodiments of this application. method.
  • a computer device which can be a personal computer, training device, or network device, etc.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transferred from a website, computer, training device, or data
  • the center transmits to another website site, computer, training equipment or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means.
  • wired such as coaxial cable, optical fiber, digital subscriber line (DSL)
  • wireless such as infrared, wireless, microwave, etc.
  • the computer-readable storage medium may be any available medium that a computer can store, or a data storage device such as a training device or a data center integrated with one or more available media.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (Solid State Disk, SSD)), etc.

Abstract

A data processing method, which can be applied to the field of artificial intelligence. The method comprises: predicting, according to a first training sample, first operation information of a user for an item by means of a first recommendation model, wherein the first operation information and second operation information are used for determining a first loss, the second operation information comprises information obtained according to an operation log of the user, and the first loss is used for updating the first recommendation model; and predicting, according to a second training sample, third operation information and fourth operation information of the user for the item by means of a second recommendation model and the updated first recommendation model, respectively, wherein the third operation information and the fourth operation information are used for determining a second loss, and the first recommendation model and the second recommendation model are sorting models in different stages of a multi-stage cascade recommendation system. In the present application, a joint training mode is used, such that a model in each stage focuses on the fitting of data of the respective stage thereof, and upstream and downstream stages are also used to assist with training, thereby improving the prediction effect.

Description

一种数据处理方法及相关装置A data processing method and related device
本申请要求于2022年7月11日提交中国专利局、申请号为202210810008.9、发明名称为“一种数据处理方法及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application filed with the China Patent Office on July 11, 2022, with the application number 202210810008.9 and the invention title "A data processing method and related devices", the entire content of which is incorporated into this application by reference. middle.
技术领域Technical field
本申请涉及人工智能领域,尤其涉及一种数据处理方法及相关装置。This application relates to the field of artificial intelligence, and in particular, to a data processing method and related devices.
背景技术Background technique
人工智能(artificial intelligence,AI)是利用数字计算机或者数字计算机控制的机器模拟、延伸和扩展人的智能,感知环境、获取知识并使用知识获得最佳结果的理论、方法、技术及应用系统。换句话说,人工智能是计算机科学的一个分支,它企图了解智能的实质,并生产出一种新的能以人类智能相似的方式作出反应的智能机器。人工智能也就是研究各种智能机器的设计原理与实现方法,使机器具有感知、推理与决策的功能。Artificial intelligence (AI) is a theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a branch of computer science that attempts to understand the nature of intelligence and produce a new class of intelligent machines that can respond in a manner similar to human intelligence. Artificial intelligence is the study of the design principles and implementation methods of various intelligent machines, so that the machines have the functions of perception, reasoning and decision-making.
工业信息检索系统(如推荐系统、搜索引擎或广告平台)旨在为用户从海量数据(如物品、资讯、广告)中检索出用户最感兴趣的数据,从而提供给用户。然而,由于互联网的信息爆炸,各大平台每天都产生数以百万计的新信息,给信息检索系统带来极大的挑战。此外,由于用户可接受的系统响应时间是非常短(几十毫妙),因此在如此短的时间内为用户检索出最感兴趣的数据,成为信息检索系统的首要任务。Industrial information retrieval systems (such as recommendation systems, search engines or advertising platforms) are designed to retrieve the data that users are most interested in from massive amounts of data (such as items, information, advertisements) and provide it to users. However, due to the information explosion on the Internet, major platforms generate millions of new information every day, which brings great challenges to the information retrieval system. In addition, since the system response time acceptable to users is very short (tens of milliseconds), retrieving the most interesting data for users in such a short period of time has become the primary task of the information retrieval system.
一般来说,复杂的机器学习模型可以更好地建模用户和物品之间的关系,因此具有更好的预测准确性,但通常也会导致效率低下,因此,受限于在线推理的时延要求,部署时会变得更加困难,只能对少量物品进行打分。相反,简单模型由于复杂度比较低,因此对大量物品进行打分在效率上是可行的,但是受限于模型容量低的原因,预测效果往往不尽如人意。因此,构建多阶段排序系统是工业界信息检索系统用来平衡预测效率和效果的常用解决方案。多阶段排序系统将原本单一系统划分成多个阶段,简单模型可以部署在系统的早期阶段,旨在快速过滤掉大量不相关的候选物品,而复杂的模型通常放置在检索的后期阶段,更加贴近用户,从而更准确地对候选物品进行排序。Generally speaking, complex machine learning models can better model the relationship between users and items, and therefore have better prediction accuracy, but often also lead to inefficiencies and, therefore, are limited by the latency of online inference. Requirements, becomes more difficult when deployed, and only a small number of items can be scored. On the contrary, due to the relatively low complexity of simple models, it is feasible to score a large number of items in terms of efficiency. However, due to the low capacity of the model, the prediction effect is often unsatisfactory. Therefore, building a multi-stage ranking system is a common solution for industrial information retrieval systems to balance prediction efficiency and effectiveness. The multi-stage ranking system divides the original single system into multiple stages. Simple models can be deployed in the early stages of the system to quickly filter out a large number of irrelevant candidate items, while complex models are usually placed in the later stages of retrieval to be more relevant. users, thereby ranking candidate items more accurately.
然而,现有技术中对多阶段排序模型进行训练的过程中,每一个阶段的推荐模型只关注于当前阶段的训练,训练时无法拟合推理空间的数据,因此具有较差的预测能力。However, in the process of training multi-stage ranking models in the existing technology, the recommendation model in each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
发明内容Contents of the invention
本申请提供了一种数据处理方法,采用联合训练的模式,让每个阶段模型关注于拟合各自阶段的数据,同时利用上下游阶段来辅助训练,进而提升预测效果。This application provides a data processing method that uses a joint training model to allow each stage model to focus on fitting the data of its own stage, while using the upstream and downstream stages to assist training, thereby improving the prediction effect.
第一方面,本申请提供了一种数据处理方法,该方法包括:根据第一训练样本,通过第一推荐模型,预测该用户对物品的第一操作信息;该第一训练样本为用户和物品的属性信息,该第一操作信息和第二操作信息用于确定第一损失;该第二操作信息包括根据该用户的操作日志得到的信息;该第一损失用于更新该第一推荐模型;根据第二训练样本,分别通过第二推荐模型以及该更新后的该第一推荐模型,预测该用户对物品的第三操作信息以及第四操作信息;该第二训练样本为用户和物品的属性信息,该第一推荐模型和该第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,该第三操作信息和该第四操作信息用于确定第二损失;该第二损失用于更新该更新后的该第一推荐模型。In a first aspect, this application provides a data processing method, which method includes: predicting the user's first operation information on the item through the first recommendation model based on the first training sample; the first training sample is the user and the item Attribute information, the first operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model; According to the second training sample, the third operation information and the fourth operation information of the user on the item are predicted through the second recommendation model and the updated first recommendation model respectively; the second training sample is the attributes of the user and the item information, the first recommendation model and the second recommendation model are ranking models at different stages in the multi-stage cascade recommendation system, the third operation information and the fourth operation information are used to determine the second loss; the second loss is used After updating the updated first recommended model.
具体的,通过自我学习流得到的更新后的第一推荐模型可以处理第二训练样本,以得到第四操作信息,而作为第三操作信息的监督信号(也就是第二训练样本的真值),可以通过作为更高阶的推荐模型进行预测得到(也就是根据第二训练样本,通过第二推荐模型预测该用户对物品的第三操作信息)。在对低阶推荐模型进行训练的过程中加入了精排模型的指导,利用不同阶段之间的交互信息,在不改变系统架构或牺牲推理效率的情况下可以获得更好的性能。Specifically, the updated first recommendation model obtained through the self-learning flow can process the second training sample to obtain the fourth operation information, which serves as the supervision signal of the third operation information (that is, the true value of the second training sample) , can be predicted as a higher-order recommendation model (that is, based on the second training sample, the user's third operation information on the item is predicted by the second recommendation model). In the process of training the low-order recommendation model, the guidance of the fine-ranking model is added, and the interactive information between different stages is used to obtain better performance without changing the system architecture or sacrificing reasoning efficiency.
相比于现有技术中,每一个阶段的推荐模型只关注于当前阶段的训练,训练时无法拟合推理空间的数据,因此具有较差的预测能力。本发明采用联合训练的模式,让每个阶段模型关注于拟合各自阶段的 数据,同时利用上下游阶段来辅助训练,进而提升预测效果。此外,本申请实施例中提出的多阶段联合优化是在不同模型之间以数据交流的形式实现的,不改变各自模型的训练流程,因此更加契合工业系统的部署,同时取得更好的预测效果。Compared with the existing technology, the recommendation model at each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability. This invention adopts a joint training model, allowing each stage model to focus on fitting the parameters of each stage. Data, while using the upstream and downstream stages to assist training, thereby improving the prediction effect. In addition, the multi-stage joint optimization proposed in the embodiments of this application is implemented in the form of data exchange between different models without changing the training process of each model. Therefore, it is more suitable for the deployment of industrial systems and achieves better prediction results. .
在一种可能的实现中,多阶段推荐系统的架构往往采用召回(或者可以称之为匹配)、粗排、精排、重排的架构(或者仅包括召回、粗排和精排,或者是其中的至少两个的组合,本申请并不限定)。其中,粗排可以位于召回和精排之间,粗排层的主要目标是从上万数量级的候选召回集合中选择出最好的上百数量级的候选召回子集合进入精排,由精排进行进一步排序输出。In a possible implementation, the architecture of a multi-stage recommendation system often adopts the architecture of recall (or can be called matching), rough ranking, fine ranking, and rearrangement (or only includes recall, rough ranking, and fine ranking, or The combination of at least two of them is not limited by this application). Among them, rough sorting can be located between recall and fine sorting. The main goal of the rough sorting layer is to select the best candidate recall sub-sets of hundreds of magnitude from tens of thousands of candidate recall sets to enter fine sorting, which is carried out by fine sorting. Further sort the output.
在一种可能的实现中,该第一推荐模型可以为粗排模型,该第二推荐模型可以为精排模型;或者,该第一推荐模型为召回模型,该第二推荐模型为精排模型;或者,该第一推荐模型为召回模型,该第二推荐模型为粗排模型;或者,该第一推荐模型为精排模型,该第二推荐模型为重排模型;或者,该第一推荐模型为粗排模型,该第二推荐模型为重排模型;或者,该第一推荐模型为召回模型,该第二推荐模型为重排模型。In a possible implementation, the first recommendation model may be a rough ranking model, and the second recommendation model may be a fine ranking model; or, the first recommendation model may be a recall model, and the second recommendation model may be a fine ranking model. ; Or, the first recommendation model is a recall model, and the second recommendation model is a rough ranking model; or, the first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model; or, the first recommendation model The model is a coarse ranking model, and the second recommendation model is a rearrangement model; or the first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
在一种可能的实现中,在进行模型推理时,收敛后的该第一推荐模型输出的操作信息用于进行物品的筛选,收敛后的该第二推荐模型用于预测用户对筛选后的物品中部分或全部物品的操作信息。In one possible implementation, during model inference, the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operating information for some or all of the items in.
在一种可能的实现中,收敛后的该第二推荐模型用于预测用户对筛选后的物品中全部物品的操作信息(例如,第一推荐模型为粗排模型,第二推荐模型为精排模型)。In one possible implementation, the converged second recommendation model is used to predict the user's operation information for all items in the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model. Model).
在一种可能的实现中,收敛后的该第二推荐模型用于预测用户对筛选后的物品中部分物品的操作信息(例如,第一推荐模型为粗排模型,第二推荐模型为重排模型,基于第一推荐模型得到的预测结果可以进行一次的物品筛选,精排模型需要进行进一步的筛选,第二推荐模型可以根据精排模型筛选得到的物品进行预测)。In one possible implementation, the converged second recommendation model is used to predict the user's operation information for some of the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a rearrangement model. Model, based on the prediction results obtained by the first recommendation model, one item screening can be performed, the fine ranking model needs to perform further screening, and the second recommendation model can make predictions based on the items screened by the fine ranking model).
在一种可能的实现中,该第二推荐模型的复杂度大于该第一推荐模型的复杂度;该复杂度与如下的至少一种有关:模型包括的参数的数量、模型包括的网络层的深度、模型包括的网络层的宽度、输入数据的特征维度数量。In a possible implementation, the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following: the number of parameters included in the model, the number of network layers included in the model Depth, the width of the network layers included in the model, and the number of feature dimensions of the input data.
在对第一推荐模型进行训练时,可以根据第一推荐模型对第一训练样本进行处理,也就是通过第一推荐模型,预测该用户对物品的第一操作信息;该第一训练样本为用户和物品的属性信息。When training the first recommendation model, the first training sample can be processed according to the first recommendation model, that is, the first operation information of the user on the item can be predicted through the first recommendation model; the first training sample is the user and item attribute information.
其中,在第一推荐模型为多阶段排序系统的中间阶段的模型时,第一训练样本中的物品可以为通过上游阶段的推荐模型筛选得到的物品。第一训练样本可以为用户和物品的属性信息。Wherein, when the first recommendation model is a model in an intermediate stage of a multi-stage ranking system, the items in the first training sample may be items filtered by the recommendation model in the upstream stage. The first training sample can be attribute information of users and items.
其中,用户的属性信息可以为与用户喜好特征相关的属性,性别、年龄、职业、收入、爱好以及受教育程度中的至少一种,其中,性别可以为男或者女,年龄可以为0-100之间的数字,职业可以为教师、程序员、厨师等等,爱好可以为篮球、网球、跑步等等,受教育程度可以为小学、初中、高中、大学等等;本申请并不限定目标用户的属性信息的具体类型。The user's attribute information may be attributes related to the user's preference characteristics, including at least one of gender, age, occupation, income, hobbies, and educational level. The gender may be male or female, and the age may be 0-100. The number in between, the occupation can be teachers, programmers, chefs, etc., the hobbies can be basketball, tennis, running, etc., and the education level can be elementary school, junior high school, high school, university, etc.; this application does not limit the target users The specific type of attribute information.
其中,物品可以为实体物品,或者是虚拟物品,例如可以为APP、音视频、网页以及新闻资讯等物品,物品的属性信息可以为物品名称、开发者、安装包大小、品类以及好评度中的至少一种,其中,以物品为应用程序为例,物品的品类可以为聊天类、跑酷类游戏、办公类等等,好评度可以为针对于物品的打分、评论等;本申请并不限定物品的属性信息的具体类型。Among them, the items can be physical items or virtual items, such as APP, audio and video, web pages, news information, etc. The attribute information of the item can be the item name, developer, installation package size, category, and praise rating. At least one. Taking the item as an application as an example, the category of the item can be chatting, parkour games, office, etc., and the favorable rating can be ratings, comments, etc. for the item; this application is not limited to The specific type of attribute information for the item.
其中,第一推荐模型预测得到的第一操作信息可以为用户针对于物品的行为操作类型,或者是是否进行了某一个操作类型的操作,上述操作类型可以为电商平台行为中的浏览、点击、加入购物车、购买等操作类型。Among them, the first operation information predicted by the first recommendation model can be the user's behavioral operation type for the item, or whether a certain operation type has been performed. The above operation type can be browsing and clicking in the e-commerce platform behavior. , add to shopping cart, purchase and other operation types.
其中,第二操作信息可以用于作为训练第一推荐模型时的真值(ground truth),第一训练样本中的物品可以包括曝光物品(也就是已经呈现给用户的物品)和未曝光物品(也就是还未呈现给用户的物品),针对于曝光物品,第一推荐模型可以预测用户对曝光物品的操作信息,相应的,第二操作信息中作为用户对曝光物品的操作信息的真值的这部分信息可以基于用户与物品之间的交互记录(例如用户的操作日志)得到,该行为日志可以包括用户对各个物品的真实操作记录。Among them, the second operation information can be used as the ground truth when training the first recommendation model. The items in the first training sample can include exposed items (that is, items that have been presented to the user) and unexposed items ( That is, items that have not yet been presented to the user). For exposed items, the first recommendation model can predict the user's operation information on the exposed items. Correspondingly, the second operation information is the true value of the user's operation information on the exposed items. This part of the information can be obtained based on the interaction records between the user and the items (such as the user's operation log). The behavior log can include the user's actual operation records on each item.
在一种可能的实现中,该第一训练样本为用户、曝光物品以及未曝光物品的属性信息,该第二操作 信息包括用户对该未曝光物品的预测操作信息、以及用户对该曝光物品的实际操作信息,该实际操作信息为根据该用户的操作日志得到。In a possible implementation, the first training sample is attribute information of users, exposed items, and unexposed items, and the second operation The information includes the user's predicted operation information for the unexposed item and the user's actual operation information for the exposed item. The actual operation information is obtained based on the user's operation log.
针对于未曝光物品,第一推荐模型可以预测用户对未曝光物品的操作信息,相应的,第二操作信息中作为用户对未曝光物品的操作信息的真值的这部分信息可以预测得到(也就是预测操作信息)。可选的,该预测操作信息指示该用户对该未曝光物品未进行操作(也就是将未曝光样本作为负相关样本),或者是通过其他预测模型得到。For unexposed items, the first recommendation model can predict the user's operation information for unexposed items. Correspondingly, the part of the second operation information that is the true value of the user's operation information for unexposed items can be predicted (also It is the prediction operation information). Optionally, the predicted operation information indicates that the user has not performed any operation on the unexposed item (that is, the unexposed sample is regarded as a negative correlation sample), or is obtained through other prediction models.
在现有的实现中,推荐模型是利用曝光数据来训练的;在推理时,模型需要对大量没见过的数据进行排序。这意味着训练期间的数据分布与推理期间的数据分布有很大不同,将导致系统处于次优状态,本申请实施例中,通过对未曝光数据进行预测(或者直接),并利用未曝光数据进行多阶段排序系统中推荐模型的训练,可以提升模型的性能。In existing implementations, the recommendation model is trained using exposure data; during inference, the model needs to sort a large amount of unseen data. This means that the data distribution during training is very different from the data distribution during inference, which will cause the system to be in a suboptimal state. In the embodiment of this application, by predicting (or directly) unexposed data, and using unexposed data Training the recommendation model in a multi-stage ranking system can improve the performance of the model.
在一种可能的实现中,该第一训练样本为用户和物品的属性信息,包括:该第一训练样本为用户和N个物品的属性信息,该第一操作信息为该用户对该N个物品的操作信息,该第一操作信息用于从该N个物品中筛选N1个物品;该方法还包括:根据该用户和该N1个物品中部分或全部物品的属性信息,通过第三推荐模型,预测该用户对该N1个物品中部分或全部物品的第五操作信息;该第五操作信息和第六操作信息用于确定第三损失,该第六操作信息包括根据该用户的操作日志得到的信息;该第三损失用于更新该第三推荐模型,以得到该第二推荐模型。In a possible implementation, the first training sample is attribute information of the user and items, including: the first training sample is attribute information of the user and N items, and the first operation information is the user's response to the N items. Operation information of items, the first operation information is used to filter N1 items from the N items; the method also includes: based on the attribute information of the user and some or all of the N1 items, through a third recommendation model , predict the user's fifth operation information for some or all of the N1 items; the fifth operation information and the sixth operation information are used to determine the third loss, and the sixth operation information includes information obtained according to the user's operation log information; the third loss is used to update the third recommendation model to obtain the second recommendation model.
第二方面,本申请提供了一种数据处理装置,该装置包括:In a second aspect, this application provides a data processing device, which includes:
第一预测模块,用于根据第一训练样本,通过第一推荐模型,预测该用户对物品的第一操作信息;该第一训练样本为用户和物品的属性信息,该第一操作信息和第二操作信息用于确定第一损失;该第二操作信息包括根据该用户的操作日志得到的信息;该第一损失用于更新该第一推荐模型;The first prediction module is used to predict the user's first operation information on the item through the first recommendation model based on the first training sample; the first training sample is the attribute information of the user and the item, and the first operation information and the third The second operation information is used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model;
第二预测模块,用于根据第二训练样本,分别通过第二推荐模型以及该更新后的该第一推荐模型,预测该用户对物品的第三操作信息以及第四操作信息;该第二训练样本为用户和物品的属性信息,该第一推荐模型和该第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,该第三操作信息和该第四操作信息用于确定第二损失;该第二损失用于更新该更新后的该第一推荐模型。The second prediction module is used to predict the third operation information and the fourth operation information of the user on the item through the second recommendation model and the updated first recommendation model respectively according to the second training sample; the second training The samples are attribute information of users and items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to determine the second Loss; the second loss is used to update the updated first recommendation model.
在一种可能的实现中,在进行模型推理时,收敛后的该第一推荐模型输出的操作信息用于进行物品的筛选,收敛后的该第二推荐模型用于预测用户对筛选后的物品中部分或全部物品的操作信息。In one possible implementation, during model inference, the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operating information for some or all of the items in.
在一种可能的实现中,该第二推荐模型的复杂度大于该第一推荐模型的复杂度;该复杂度与如下的至少一种有关:In a possible implementation, the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following:
模型包括的参数的数量、模型包括的网络层的深度、模型包括的网络层的宽度、输入数据的特征维度数量。The number of parameters included in the model, the depth of the network layers included in the model, the width of the network layers included in the model, and the number of feature dimensions of the input data.
在一种可能的实现中,该第一训练样本为用户、曝光物品以及未曝光物品的属性信息,该第二操作信息包括用户对该未曝光物品的预测操作信息、以及用户对该曝光物品的实际操作信息,该实际操作信息为根据该用户的操作日志得到;或者,In a possible implementation, the first training sample is attribute information of the user, exposed items, and unexposed items, and the second operation information includes the user's predicted operation information for the unexposed items, and the user's predicted operation information for the exposed items. Actual operation information, which is obtained based on the user's operation log; or,
该第二训练样本为用户、曝光物品以及未曝光物品的属性信息。The second training sample is attribute information of users, exposed items, and unexposed items.
在一种可能的实现中,该预测操作信息指示该用户对该未曝光物品未进行操作。In a possible implementation, the predicted operation information indicates that the user has not performed any operation on the unexposed item.
在一种可能的实现中,该第一训练样本为用户和物品的属性信息,包括:该第一训练样本为用户和N个物品的属性信息,该第一操作信息为该用户对该N个物品的操作信息,该第一操作信息用于从该N个物品中筛选N1个物品; In a possible implementation, the first training sample is attribute information of the user and items, including: the first training sample is attribute information of the user and N items, and the first operation information is the user's response to the N items. The operation information of the items, the first operation information is used to filter N1 items from the N items;
该装置还包括:The device also includes:
第三预测模块,用于根据该用户和该N1个物品中部分或全部物品的属性信息,通过第三推荐模型,预测该用户对该N1个物品中部分或全部物品的第五操作信息;该第五操作信息和第六操作信息用于确定第三损失,该第六操作信息包括根据该用户的操作日志得到的信息;该第三损失用于更新该第三推荐模型,以得到该第二推荐模型。The third prediction module is used to predict the user's fifth operation information for some or all of the N1 items through a third recommendation model based on the attribute information of the user and some or all of the N1 items; the The fifth operation information and the sixth operation information are used to determine the third loss. The sixth operation information includes information obtained according to the user's operation log; the third loss is used to update the third recommendation model to obtain the second Recommended model.
在一种可能的实现中,该第一推荐模型为粗排模型,该第二推荐模型为精排模型;或者,In a possible implementation, the first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model; or,
该第一推荐模型为召回模型,该第二推荐模型为精排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a refinement model; or,
该第一推荐模型为召回模型,该第二推荐模型为粗排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a rough ranking model; or,
该第一推荐模型为精排模型,该第二推荐模型为重排模型;或者,The first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model; or,
该第一推荐模型为粗排模型,该第二推荐模型为重排模型;或者,The first recommendation model is a rough ranking model, and the second recommendation model is a rearrangement model; or,
该第一推荐模型为召回模型,该第二推荐模型为重排模型。The first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
在一种可能的实现中,该属性信息包括用户属性,该用户属性包括如下的至少一种:In a possible implementation, the attribute information includes user attributes, and the user attributes include at least one of the following:
性别,年龄,职业,收入,爱好,教育程度。Gender, age, occupation, income, hobbies, education level.
在一种可能的实现中,该属性信息包括物品属性,该物品属性包括如下的至少一种:In a possible implementation, the attribute information includes item attributes, and the item attributes include at least one of the following:
物品名称,开发者,安装包大小,品类,好评度。Item name, developer, installation package size, category, and rating.
第三方面,本申请实施例提供了一种数据处理装置,可以包括存储器、处理器以及总线系统,其中,存储器用于存储程序,处理器用于执行存储器中的程序,以执行如上述第一方面任一可选的方法。In a third aspect, embodiments of the present application provide a data processing device, which may include a memory, a processor, and a bus system. The memory is used to store programs, and the processor is used to execute programs in the memory to perform the above-mentioned first aspect. Any optional method.
第四方面,本申请实施例提供了一种计算机可读存储介质,该计算机可读存储介质中存储有计算机程序,当其在计算机上运行时,使得计算机执行上述第一方面及任一可选的方法。In a fourth aspect, embodiments of the present application provide a computer-readable storage medium that stores a computer program that, when run on a computer, causes the computer to execute the above-mentioned first aspect and any optional Methods.
第五方面,本申请实施例提供了一种计算机程序产品,包括代码,当代码被执行时,用于实现上述第一方面及任一可选的方法。In a fifth aspect, embodiments of the present application provide a computer program product, which includes code, and when the code is executed, is used to implement the above first aspect and any optional method.
第六方面,本申请提供了一种芯片系统,该芯片系统包括处理器,用于支持执行设备或训练设备实现上述方面中所涉及的功能,例如,发送或处理上述方法中所涉及的数据;或,信息。在一种可能的设计中,该芯片系统还包括存储器,该存储器,用于保存执行设备或训练设备必要的程序指令和数据。该芯片系统,可以由芯片构成,也可以包括芯片和其他分立器件。In a sixth aspect, the present application provides a chip system, which includes a processor to support an execution device or a training device to implement the functions involved in the above aspects, for example, sending or processing data involved in the above methods; Or, information. In a possible design, the chip system also includes a memory, which is used to store necessary program instructions and data for executing the device or training the device. The chip system may be composed of chips, or may include chips and other discrete devices.
本申请实施例提供了一种数据处理方法,该方法包括:根据第一训练样本,通过第一推荐模型,预测该用户对物品的第一操作信息;该第一训练样本为用户和物品的属性信息,该第一操作信息和第二操作信息用于确定第一损失;该第二操作信息包括根据该用户的操作日志得到的信息;该第一损失用于更新该第一推荐模型;根据第二训练样本,分别通过第二推荐模型以及该更新后的该第一推荐模型,预测该用户对物品的第三操作信息以及第四操作信息;该第二训练样本为用户和物品的属性信息,该第一推荐模型和该第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,该第三操作信息和该第四操作信息用于确定第二损失;该第二损失用于更新该更新后的该第一推荐模型。相比于现有技术中,每一个阶段的推荐模型只关注于当前阶段的训练,训练时无法拟合推理空间的数据,因此具有较差的预测能力。本发明采用联合训练的模式,让每个阶段模型关注于拟合各自阶段的数据,同时利用上下游阶段来辅助训练,进而提升预测效果。此外,本申请实施例中提出的多阶段联合优化是在不同模型之间以数据交流的形式实现的,不改变各自模型的训练流程,因此更加契合工业系统的部署,同时取得更好的预测效果。The embodiment of the present application provides a data processing method, which method includes: predicting the user's first operation information on the item through the first recommendation model based on the first training sample; the first training sample is the attributes of the user and the item Information, the first operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model; according to the Two training samples are used to predict the user's third operation information and fourth operation information on the item through the second recommendation model and the updated first recommendation model respectively; the second training sample is the attribute information of the user and the item, The first recommendation model and the second recommendation model are ranking models at different stages in the multi-stage cascade recommendation system. The third operation information and the fourth operation information are used to determine the second loss; the second loss is used to update The updated No. 1 recommended model. Compared with the existing technology, the recommendation model at each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability. The present invention adopts a joint training model, allowing each stage model to focus on fitting the data of its own stage, while using the upstream and downstream stages to assist training, thereby improving the prediction effect. In addition, the multi-stage joint optimization proposed in the embodiments of this application is implemented in the form of data exchange between different models without changing the training process of each model. Therefore, it is more suitable for the deployment of industrial systems and achieves better prediction results. .
附图说明Description of drawings
图1为人工智能主体框架的一种结构示意图;Figure 1 is a structural schematic diagram of the main framework of artificial intelligence;
图2为本申请实施例提供的一种系统架构的示意图;Figure 2 is a schematic diagram of a system architecture provided by an embodiment of the present application;
图3为本申请实施例提供的一种信息推荐流程的示意图; Figure 3 is a schematic diagram of an information recommendation process provided by an embodiment of the present application;
图4为本申请实施例提供的一种数据处理方法的流程示意图;Figure 4 is a schematic flow chart of a data processing method provided by an embodiment of the present application;
图5为本申请实施例提供的一种模型训练的流程示意图;Figure 5 is a schematic flow chart of model training provided by an embodiment of the present application;
图6为本申请实施例提供的一种数据处理装置的示意图;Figure 6 is a schematic diagram of a data processing device provided by an embodiment of the present application;
图7为本申请实施例提供的一种执行设备的示意图;Figure 7 is a schematic diagram of an execution device provided by an embodiment of the present application;
图8为本申请实施例提供的一种训练设备的示意图;Figure 8 is a schematic diagram of a training device provided by an embodiment of the present application;
图9为本申请实施例提供的一种芯片的示意图。FIG. 9 is a schematic diagram of a chip provided by an embodiment of the present application.
具体实施方式Detailed ways
下面结合本发明实施例中的附图对本发明实施例进行描述。本发明的实施方式部分使用的术语仅用于对本发明的具体实施例进行解释,而非旨在限定本发明。The embodiments of the present invention will be described below with reference to the drawings in the embodiments of the present invention. The terms used in the embodiments of the present invention are only used to explain specific embodiments of the present invention and are not intended to limit the present invention.
下面结合附图,对本申请的实施例进行描述。本领域普通技术人员可知,随着技术的发展和新场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。The embodiments of the present application are described below with reference to the accompanying drawings. Persons of ordinary skill in the art know that with the development of technology and the emergence of new scenarios, the technical solutions provided in the embodiments of this application are also applicable to similar technical problems.
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的术语在适当情况下可以互换,这仅仅是描述本申请的实施例中对相同属性的对象在描述时所采用的区分方式。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,以便包含一系列单元的过程、方法、系统、产品或设备不必限于那些单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它单元。The terms "first", "second", etc. in the description and claims of this application and the above-mentioned drawings are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that the terms so used are interchangeable under appropriate circumstances, and are merely a way of distinguishing objects with the same attributes in describing the embodiments of the present application. Furthermore, the terms "include" and "having" and any variations thereof, are intended to cover non-exclusive inclusions, such that a process, method, system, product or apparatus comprising a series of elements need not be limited to those elements, but may include not explicitly other elements specifically listed or inherent to such processes, methods, products or equipment.
首先对人工智能系统总体工作流程进行描述,请参见图1,图1示出的为人工智能主体框架的一种结构示意图,下面从“智能信息链”(水平轴)和“IT价值链”(垂直轴)两个维度对上述人工智能主题框架进行阐述。其中,“智能信息链”反映从数据的获取到处理的一列过程。举例来说,可以是智能信息感知、智能信息表示与形成、智能推理、智能决策、智能执行与输出的一般过程。在这个过程中,数据经历了“数据—信息—知识—智慧”的凝练过程。“IT价值链”从人智能的底层基础设施、信息(提供和处理技术实现)到系统的产业生态过程,反映人工智能为信息技术产业带来的价值。First, the overall workflow of the artificial intelligence system is described. Please refer to Figure 1. Figure 1 shows a structural schematic diagram of the artificial intelligence main framework. The following is from the "intelligent information chain" (horizontal axis) and "IT value chain" ( The above artificial intelligence theme framework is elaborated on the two dimensions of vertical axis). Among them, the "intelligent information chain" reflects a series of processes from data acquisition to processing. For example, it can be the general process of intelligent information perception, intelligent information representation and formation, intelligent reasoning, intelligent decision-making, intelligent execution and output. In this process, the data has gone through the condensation process of "data-information-knowledge-wisdom". The "IT value chain" reflects the value that artificial intelligence brings to the information technology industry, from the underlying infrastructure of human intelligence and information (providing and processing technology implementation) to the systematic industrial ecological process.
(1)基础设施(1)Infrastructure
基础设施为人工智能系统提供计算能力支持,实现与外部世界的沟通,并通过基础平台实现支撑。通过传感器与外部沟通;计算能力由智能芯片(CPU、NPU、GPU、ASIC、FPGA等硬件加速芯片)提供;基础平台包括分布式计算框架及网络等相关的平台保障和支持,可以包括云存储和计算、互联互通网络等。举例来说,传感器和外部沟通获取数据,这些数据提供给基础平台提供的分布式计算系统中的智能芯片进行计算。Infrastructure provides computing power support for artificial intelligence systems, enables communication with the external world, and supports it through basic platforms. Communicate with the outside through sensors; computing power is provided by smart chips (hardware acceleration chips such as CPU, NPU, GPU, ASIC, FPGA, etc.); the basic platform includes distributed computing framework and network and other related platform guarantees and support, which can include cloud storage and Computing, interconnection networks, etc. For example, sensors communicate with the outside world to obtain data, which are provided to smart chips in the distributed computing system provided by the basic platform for calculation.
(2)数据(2)Data
基础设施的上一层的数据用于表示人工智能领域的数据来源。数据涉及到图形、图像、语音、文本,还涉及到传统设备的物联网数据,包括已有系统的业务数据以及力、位移、液位、温度、湿度等感知数据。Data from the upper layer of the infrastructure is used to represent data sources in the field of artificial intelligence. The data involves graphics, images, voice, and text, as well as IoT data of traditional devices, including business data of existing systems and sensory data such as force, displacement, liquid level, temperature, and humidity.
(3)数据处理(3)Data processing
数据处理通常包括数据训练,机器学习,深度学习,搜索,推理,决策等方式。Data processing usually includes data training, machine learning, deep learning, search, reasoning, decision-making and other methods.
其中,机器学习和深度学习可以对数据进行符号化和形式化的智能信息建模、抽取、预处理、训练等。Among them, machine learning and deep learning can perform symbolic and formal intelligent information modeling, extraction, preprocessing, training, etc. on data.
推理是指在计算机或智能系统中,模拟人类的智能推理方式,依据推理控制策略,利用形式化的信息进行机器思维和求解问题的过程,典型的功能是搜索与匹配。Reasoning refers to the process of simulating human intelligent reasoning in computers or intelligent systems, using formalized information to perform machine thinking and problem solving based on reasoning control strategies. Typical functions are search and matching.
决策是指智能信息经过推理后进行决策的过程,通常提供分类、排序、预测等功能。Decision-making refers to the process of decision-making after intelligent information is reasoned, and usually provides functions such as classification, sorting, and prediction.
(4)通用能力(4) General ability
对数据经过上面提到的数据处理后,进一步基于数据处理的结果可以形成一些通用的能力,比如可以是算法或者一个通用系统,例如,翻译,文本的分析,计算机视觉的处理,语音识别,图像的识别等等。After the data is processed as mentioned above, some general capabilities can be formed based on the results of further data processing, such as algorithms or a general system, such as translation, text analysis, computer vision processing, speech recognition, and image processing. identification, etc.
(5)智能产品及行业应用 (5) Intelligent products and industry applications
智能产品及行业应用指人工智能系统在各领域的产品和应用,是对人工智能整体解决方案的封装,将智能信息决策产品化、实现落地应用,其应用领域主要包括:智能终端、智能交通、智能医疗、自动驾驶、智慧城市等。Intelligent products and industry applications refer to the products and applications of artificial intelligence systems in various fields. They are the encapsulation of overall artificial intelligence solutions, productizing intelligent information decision-making and realizing practical applications. Its application fields mainly include: intelligent terminals, intelligent transportation, Smart healthcare, autonomous driving, smart cities, etc.
本申请实施例可以应用于信息推荐领域,具体的,可以应用于应用市场、音乐播放推荐、视频播放推荐、阅读类推荐、新闻资讯推荐以及网页中的信息推荐等。本申请可以应用于推荐系统,推荐系统可以基于本申请提供的数据处理方法得到的推荐模型来确定推荐对象,推荐对象例如可以但不限于是应用程序(application,APP)、音视频、网页以及新闻资讯等物品。Embodiments of the present application can be applied to the field of information recommendation. Specifically, they can be applied to application markets, music playback recommendations, video playback recommendations, reading recommendations, news information recommendations, and information recommendations in web pages. This application can be applied to a recommendation system. The recommendation system can determine the recommended objects based on the recommendation model obtained by the data processing method provided by this application. The recommended objects can be, for example, but are not limited to applications (APPs), audio and video, web pages, and news. Information and other items.
在推荐系统中,信息推荐可以包括预测和推荐等过程。其中,预测所需要解决的是预测用户对每个物品的喜好程度,可以通过用户选择该物品的概率来反映上述喜好程度。推荐可以是根据预测的结果将推荐对象进行排序,例如根据预测的喜好程度,按照喜好程度高到低的顺序进行排序,并基于排序的结果对用户进行信息推荐。In recommendation systems, information recommendation can include processes such as prediction and recommendation. Among them, prediction needs to solve the problem of predicting the user's preference for each item, which can be reflected by the probability of the user selecting the item. Recommendation can be to sort the recommended objects according to the predicted results, for example, according to the predicted degree of preference, sort the objects in order from high to low degree of preference, and recommend information to the user based on the sorting results.
例如,在应用市场的场景中,推荐系统可以基于排序的结果对用户进行应用程序的推荐,在音乐推荐的场景中,推荐系统可以基于排序的结果对用户进行音乐的推荐,在视频推荐的场景中,推荐系统可以基于排序的结果对用户进行视频的推荐。For example, in the application market scenario, the recommendation system can recommend applications to users based on the sorting results. In the music recommendation scenario, the recommendation system can recommend music to users based on the sorting results. In the video recommendation scenario, , the recommendation system can recommend videos to users based on the sorting results.
接下来介绍本申请实施例的应用架构。Next, the application architecture of the embodiment of this application is introduced.
下面结合图2对本申请实施例提供的系统架构进行详细的介绍。图2为本申请一实施例提供的系统架构示意图。如图2所示,系统架构500包括执行设备510、训练设备520、数据库530、客户设备540、数据存储系统550以及数据采集系统560。The system architecture provided by the embodiment of the present application will be introduced in detail below with reference to Figure 2. Figure 2 is a schematic diagram of the system architecture provided by an embodiment of the present application. As shown in Figure 2, the system architecture 500 includes an execution device 510, a training device 520, a database 530, a client device 540, a data storage system 550 and a data collection system 560.
执行设备510包括计算模块511、I/O接口512、预处理模块513和预处理模块514。计算模块511中可以包括目标模型/规则501,预处理模块513和预处理模块514是可选的。The execution device 510 includes a computing module 511, an I/O interface 512, a preprocessing module 513 and a preprocessing module 514. The target model/rule 501 may be included in the calculation module 511, and the preprocessing module 513 and the preprocessing module 514 are optional.
数据采集设备560用于采集训练样本。在本申请实施例中,训练样本可以为用户的历史操作记录,该历史操作记录可以为用户的行为日志(logs),该历史操作记录可以包括用户针对于物品的操作信息,其中,操作信息可以包括操作类型、用户的标识、物品的标识,在物品为电商产品时,操作类型可以包括但不限于点击、购买、退货、加入购物车等等,在物品为应用程序时,操作类型可以但不限于为点击、下载等等,训练样本为对初始化的推荐模型进行训练时所采用的数据。在采集到训练样本之后,数据采集设备560将这些训练样本存入数据库530。Data collection device 560 is used to collect training samples. In this embodiment of the present application, the training sample may be the user's historical operation record, which may be the user's behavior logs (logs). The historical operation record may include the user's operation information on items, where the operation information may be Including operation type, user identification, item identification. When the item is an e-commerce product, the operation type may include but is not limited to click, purchase, return, add to shopping cart, etc. When the item is an application, the operation type may include but not limited to click, purchase, return, add to shopping cart, etc. Not limited to clicks, downloads, etc., the training samples are the data used to train the initialized recommendation model. After collecting the training samples, the data collection device 560 stores the training samples into the database 530 .
训练设备520可以基于数据库530中维护的训练样本对初始化的推荐模型进行训练,以得到目标模型/规则501。本申请实施例中,目标模型/规则501可以为多阶段排序模型,多阶段排序模型可以基于用户以及物品的信息来预测用户针对于物品的操作信息,该操作信息可以用于进行信息推荐。The training device 520 can train the initialized recommendation model based on the training samples maintained in the database 530 to obtain the target model/rule 501. In the embodiment of this application, the target model/rule 501 can be a multi-stage ranking model. The multi-stage ranking model can predict the user's operation information for the item based on the user and item information. The operation information can be used for information recommendation.
需要说明的是,在实际应用中,数据库530中维护的训练样本不一定都来自于数据采集设备560的采集,也有可能是从其他设备接收得到的,或者是基于数据采集设备560采集的数据进行数据扩展得到的(例如本申请实施例中的目标用户对所述第一物品的第二操作类型)。另外需要说明的是,训练设备520也不一定完全基于数据库530维护的训练样本进行目标模型/规则501的训练,也有可能从云端或其他地方获取训练样本进行模型训练,上述描述不应该作为对本申请实施例的限定。It should be noted that in actual applications, the training samples maintained in the database 530 are not necessarily collected by the data collection device 560 , and may also be received from other devices, or based on the data collected by the data collection device 560 . Obtained by data expansion (for example, the second operation type of the target user on the first item in the embodiment of the present application). In addition, it should be noted that the training device 520 may not necessarily train the target model/rules 501 based entirely on the training samples maintained by the database 530. It may also obtain training samples from the cloud or other places for model training. The above description should not be used as a guarantee for this application. Limitations of Examples.
根据训练设备520训练得到的目标模型/规则501可以应用于不同的系统或设备中,如应用于图2所示的执行设备510,所述执行设备510可以是终端,如手机终端,平板电脑,笔记本电脑,增强现实(augmented reality,AR)/虚拟现实(virtual reality,VR)设备,车载终端等,还可以是服务器或者云端等。The target model/rules 501 trained according to the training device 520 can be applied to different systems or devices, such as to the execution device 510 shown in Figure 2. The execution device 510 can be a terminal, such as a mobile phone terminal, a tablet computer, Laptops, augmented reality (AR)/virtual reality (VR) devices, vehicle-mounted terminals, etc., or servers or clouds, etc.
在图2中,执行设备510配置输入/输出(input/output,I/O)接口512,用于与外部设备进行数据交互,用户可以通过客户设备540向I/O接口512输入数据。In FIG. 2 , the execution device 510 is configured with an input/output (I/O) interface 512 for data interaction with external devices. The user can input data to the I/O interface 512 through the client device 540 .
预处理模块513和预处理模块514用于根据I/O接口512接收到的输入数据进行预处理。应理解,可以没有预处理模块513和预处理模块514或者只有的一个预处理模块。当不存在预处理模块513和预处理模块514时,可以直接采用计算模块511对输入数据进行处理。The preprocessing module 513 and the preprocessing module 514 are used to perform preprocessing according to the input data received by the I/O interface 512. It should be understood that there may be no preprocessing module 513 and 514 or only one preprocessing module. When the preprocessing module 513 and the preprocessing module 514 do not exist, the computing module 511 can be directly used to process the input data.
在执行设备510对输入数据进行预处理,或者在执行设备510的计算模块511执行计算等相关的处理过程中,执行设备510可以调用数据存储系统550中的数据、代码等以用于相应的处理,也可以将相应处理得到的数据、指令等存入数据存储系统550中。 When the execution device 510 preprocesses input data, or when the calculation module 511 of the execution device 510 performs calculations and other related processes, the execution device 510 can call data, codes, etc. in the data storage system 550 for corresponding processing. , the data, instructions, etc. obtained by corresponding processing can also be stored in the data storage system 550.
最后,I/O接口512将处理结果呈现给客户设备540,从而提供给用户。Finally, the I/O interface 512 presents the processing results to the client device 540, thereby providing them to the user.
本申请实施例中,执行设备510可以包括硬件电路(如专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)、通用处理器、数字信号处理器(digital signal processing,DSP)、微处理器或微控制器等等)、或这些硬件电路的组合,例如,执行设备510可以为具有执行指令功能的硬件系统,如CPU、DSP等,或者为不具有执行指令功能的硬件系统,如ASIC、FPGA等,或者为上述不具有执行指令功能的硬件系统以及具有执行指令功能的硬件系统的组合。In the embodiment of the present application, the execution device 510 may include hardware circuits (such as application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), general-purpose processors, digital signal processors (digital signal processing, DSP, microprocessor or microcontroller, etc.), or a combination of these hardware circuits. For example, the execution device 510 can be a hardware system with the function of executing instructions, such as a CPU, DSP, etc., or it can be a combination of other hardware circuits. A hardware system with the function of executing instructions, such as ASIC, FPGA, etc., or a combination of the above-mentioned hardware systems without the function of executing instructions and a hardware system with the function of executing instructions.
应理解,执行设备510可以为不具有执行指令功能的硬件系统以及具有执行指令功能的硬件系统的组合,本申请实施例提供的数据处理方法的部分步骤还可以通过执行设备510中不具有执行指令功能的硬件系统来实现,这里并不限定。It should be understood that the execution device 510 can be a combination of a hardware system that does not have the function of executing instructions and a hardware system that has the function of executing instructions. Some steps of the data processing method provided by the embodiment of the present application can also be implemented by the execution device 510 that does not have the function of executing instructions. The hardware system to realize the function is not limited here.
在图2所示情况下,用户可以手动给定输入数据,该“手动给定输入数据”可以通过I/O接口512提供的界面进行操作。另一种情况下,客户设备540可以自动地向I/O接口512发送输入数据,如果要求客户设备540自动发送输入数据需要获得用户的授权,则用户可以在客户设备540中设置相应权限。用户可以在客户设备540查看执行设备510输出的结果,具体的呈现形式可以是显示、声音、动作等具体方式。客户设备540也可以作为数据采集端,采集如图所示输入I/O接口512的输入数据及输出I/O接口512的输出结果作为新的样本数据,并存入数据库530。当然,也可以不经过客户设备540进行采集,而是由I/O接口512直接将如图所示输入I/O接口512的输入数据及输出I/O接口512的输出结果,作为新的样本数据存入数据库530。In the situation shown in FIG. 2 , the user can manually set input data, and the "manually given input data" can be operated through the interface provided by the I/O interface 512 . In another case, the client device 540 can automatically send input data to the I/O interface 512. If requiring the client device 540 to automatically send the input data requires the user's authorization, the user can set corresponding permissions in the client device 540. The user can view the results output by the execution device 510 on the client device 540, and the specific presentation form may be display, sound, action, etc. The client device 540 can also be used as a data collection terminal to collect the input data of the input I/O interface 512 and the output results of the output I/O interface 512 as new sample data, and store them in the database 530. Of course, it is also possible to collect without going through the client device 540. Instead, the I/O interface 512 directly uses the input data input to the I/O interface 512 and the output result of the output I/O interface 512 as a new sample as shown in the figure. The data is stored in database 530.
值得注意的是,图2仅是本申请实施例提供的一种系统架构的示意图,图中所示设备、器件、模块等之间的位置关系不构成任何限制,例如,在图2中,数据存储系统550相对执行设备510是外部存储器,在其它情况下,也可以将数据存储系统550置于执行设备510中。应理解,上述执行设备510可以部署于客户设备540中。It is worth noting that Figure 2 is only a schematic diagram of a system architecture provided by an embodiment of the present application. The positional relationship between the devices, devices, modules, etc. shown in the figure does not constitute any limitation. For example, in Figure 2, the data The storage system 550 is an external memory relative to the execution device 510. In other cases, the data storage system 550 can also be placed in the execution device 510. It should be understood that the above execution device 510 may be deployed in the client device 540.
由于本申请实施例涉及大量神经网络的应用,为了便于理解,下面先对本申请实施例涉及的相关术语及神经网络等相关概念进行介绍。Since the embodiments of the present application involve the application of a large number of neural networks, in order to facilitate understanding, the relevant terms involved in the embodiments of the present application and related concepts such as neural networks are first introduced below.
1、点击概率(click-throughrate,CTR)1. Click-throughrate (CTR)
点击概率又可以称为点击率,是指网站或者应用程序上推荐信息(例如,推荐物品)被点击次数和曝光次数之比,点击率通常是推荐系统中衡量推荐系统的重要指标。Click probability, also known as click-through rate, refers to the ratio of the number of clicks and the number of exposures to recommended information (for example, recommended items) on a website or application. Click-through rate is usually an important indicator for measuring recommendation systems in recommendation systems.
2、个性化推荐系统2. Personalized recommendation system
个性化推荐系统是指根据用户的历史数据(例如本申请实施例中的操作信息),利用机器学习算法进行分析,并以此对新请求进行预测,给出个性化的推荐结果的系统。A personalized recommendation system refers to a system that uses machine learning algorithms to analyze based on the user's historical data (such as the operation information in the embodiment of this application), and uses this to predict new requests and provide personalized recommendation results.
3、离线训练(offlinetraining)3. Offline training (offline training)
离线训练是指在个性化推荐系统中,根据用户的历史数据(例如本申请实施例中的操作信息),对推荐模型参数按照机器学习的算法进行迭代更新直至达到设定要求的模块。Offline training refers to a module in the personalized recommendation system that iteratively updates the recommendation model parameters according to the machine learning algorithm based on the user's historical data (such as the operation information in the embodiments of this application) until the set requirements are met.
4、在线预测(onlineinference)4. Online prediction (onlineinference)
在线预测是指基于离线训练好的模型,根据用户、物品和上下文的特征预测该用户在当前上下文环境下对推荐物品的喜好程度,预测用户选择推荐物品的概率。Online prediction refers to predicting the user's preference for recommended items in the current context based on the characteristics of users, items and context based on offline trained models, and predicting the probability of users choosing recommended items.
例如,图3是本申请实施例提供的推荐系统的示意图。如图3所示,当一个用户进入统,会触发一个推荐的请求,推荐系统会将该请求及其相关信息(例如本申请实施例中的操作信息)输入到推荐模型,然后预测用户对系统内的物品的选择率。进一步,根据预测的选择率或基于该选择率的某个函数将物品降序排列,即推荐系统可以按顺序将物品展示在不同的位置作为对用户的推荐结果。用户浏览不同的处于位置的物品并发生用户行为,如浏览、选择以及下载等。同时,用户的实际行为会存入日志中作为训练数据,通过离线训练模块不断更新推荐模型的参数,提高模型的预测效果。For example, FIG. 3 is a schematic diagram of a recommendation system provided by an embodiment of the present application. As shown in Figure 3, when a user enters the system, a recommendation request will be triggered. The recommendation system will input the request and its related information (such as the operation information in the embodiment of this application) into the recommendation model, and then predict the user's response to the system. The selection rate of items within. Furthermore, the items are arranged in descending order according to the predicted selection rate or a function based on the selection rate, that is, the recommendation system can display the items in different locations in order as a recommendation result to the user. Users browse different located items and perform user actions such as browsing, selection, and downloading. At the same time, the user's actual behavior will be stored in the log as training data, and the parameters of the recommended model will be continuously updated through the offline training module to improve the prediction effect of the model.
例如,用户打开智能终端(例如,手机)中的应用市场即可触发应用市场中的推荐系统。应用市场的推荐系统会根据用户的历史行为日志,例如,用户的历史下载记录、用户选择记录,应用市场的自身特 征,比如时间、地点等环境特征信息,预测用户下载推荐的各个候选APP的概率。根据计算的结果,应用市场的推荐系统可以按照预测的概率值大小降序展示候选APP,从而提高候选APP的下载概率。For example, when a user opens the application market in a smart terminal (for example, a mobile phone), the recommendation system in the application market can be triggered. The recommendation system of the application market will be based on the user's historical behavior logs, such as the user's historical download records, user selection records, and the application market's own characteristics. Characteristics, such as time, location and other environmental feature information, are used to predict the probability of users downloading each recommended candidate APP. Based on the calculation results, the recommendation system of the application market can display the candidate APPs in descending order according to the predicted probability value, thereby increasing the download probability of the candidate APPs.
示例性地,可以将预测的用户选择率较高的APP展示在靠前的推荐位置,将预测的用户选择率较低的APP展示在靠后的推荐位置。For example, APPs with a higher predicted user selection rate may be displayed in the front recommendation position, and APPs with a lower predicted user selection rate may be displayed in the lower recommendation position.
5、多阶段级联排序系统5. Multi-stage cascade sorting system
多阶段级联排序系统在本申请实施例中也可以称之为多阶段排序系统,由于商业系统中物品规模数量庞大,同时用户请求响应时间需要严格控制在几十毫秒内,现阶段的商业排序系统一般都是分割为多个级联的独立排序系统,上游系统的输出作为下游系统的输入,从而逐层过滤,减少每一个阶段打分物品规模,兼顾最终预测的效果和响应时延。The multi-stage cascade sorting system can also be called a multi-stage sorting system in the embodiment of this application. Due to the large number of items in the commercial system, and the user request response time needs to be strictly controlled within tens of milliseconds, the current stage of commercial sorting The system is generally divided into multiple cascaded independent sorting systems. The output of the upstream system is used as the input of the downstream system, thereby filtering layer by layer, reducing the scale of scored items at each stage, and taking into account the final prediction effect and response delay.
上述推荐模型可以是神经网络模型,下面对本申请实施例可能涉及的神经网络的相关术语和概念进行介绍。The above recommendation model may be a neural network model. The relevant terms and concepts of neural networks that may be involved in the embodiments of this application are introduced below.
(1)神经网络(1)Neural network
神经网络可以是由神经单元组成的,神经单元可以是指以xs(即输入数据)和截距1为输入的运算单元,该运算单元的输出可以为:
The neural network can be composed of neural units. The neural unit can refer to an operation unit that takes xs (ie, input data) and intercept 1 as input. The output of the operation unit can be:
其中,s=1、2、……n,n为大于1的自然数,Ws为xs的权重,b为神经单元的偏置。f为神经单元的激活函数(activation functions),用于将非线性特性引入神经网络中,来将神经单元中的输入信号转换为输出信号。该激活函数的输出信号可以作为下一层卷积层的输入,激活函数可以是sigmoid函数。神经网络是将多个上述单一的神经单元联结在一起形成的网络,即一个神经单元的输出可以是另一个神经单元的输入。每个神经单元的输入可以与前一层的局部接受域相连,来提取局部接受域的特征,局部接受域可以是由若干个神经单元组成的区域。Among them, s=1, 2,...n, n is a natural number greater than 1, Ws is the weight of xs, and b is the bias of the neural unit. f is the activation function of the neural unit, which is used to introduce nonlinear characteristics into the neural network to convert the input signal in the neural unit into an output signal. The output signal of this activation function can be used as the input of the next convolutional layer, and the activation function can be a sigmoid function. A neural network is a network formed by connecting multiple above-mentioned single neural units together, that is, the output of one neural unit can be the input of another neural unit. The input of each neural unit can be connected to the local receptive field of the previous layer to extract the features of the local receptive field. The local receptive field can be an area composed of several neural units.
(2)深度神经网络(2) Deep neural network
深度神经网络(Deep Neural Network,DNN),也称多层神经网络,可以理解为具有很多层隐含层的神经网络,这里的“很多”并没有特别的度量标准。从DNN按不同层的位置划分,DNN内部的神经网络可以分为三类:输入层,隐含层,输出层。一般来说第一层是输入层,最后一层是输出层,中间的层数都是隐含层。层与层之间是全连接的,也就是说,第i层的任意一个神经元一定与第i+1层的任意一个神经元相连。虽然DNN看起来很复杂,但是就每一层的工作来说,其实并不复杂,简单来说就是如下线性关系表达式:其中,是输入向量,是输出向量,是偏移向量,W是权重矩阵(也称系数),α()是激活函数。每一层仅仅是对输入向量经过如此简单的操作得到输出向量由于DNN层数多,则系数W和偏移向量的数量也就很多了。这些参数在DNN中的定义如下所述:以系数W为例:假设在一个三层的DNN中,第二层的第4个神经元到第三层的第2个神经元的线性系数定义为上标3代表系数W所在的层数,而下标对应的是输出的第三层索引2和输入的第二层索引4。总结就是:第L-1层的第k个神经元到第L层的第j个神经元的系数定义为需要注意的是,输入层是没有W参数的。在深度神经网络中,更多的隐含层让网络更能够刻画现实世界中的复杂情形。理论上而言,参数越多的模型复杂度越高,“容量”也就越大,也就意味着它能完成更复杂的学习任务。训练深度神经网络的也就是学习权重矩阵的过程,其最终目的是得到训练好的深度神经网络的所有层的权重矩阵(由很多层的向量W形成的权重矩阵)。Deep Neural Network (DNN), also known as multi-layer neural network, can be understood as a neural network with many hidden layers. There is no special metric for "many" here. From the division of DNN according to the position of different layers, the neural network inside DNN can be divided into three categories: input layer, hidden layer, and output layer. Generally speaking, the first layer is the input layer, the last layer is the output layer, and the layers in between are hidden layers. The layers are fully connected, that is to say, any neuron in the i-th layer must be connected to any neuron in the i+1-th layer. Although DNN looks very complicated, the work of each layer is actually not complicated. Simply put, it is the following linear relationship expression: in, is the input vector, is the output vector, is the offset vector, W is the weight matrix (also called coefficient), and α() is the activation function. Each layer is just a pair of input vectors After such a simple operation, the output vector is obtained Since there are many DNN layers, the coefficient W and offset vector The number is also very large. The definitions of these parameters in DNN are as follows: Taking the coefficient W as an example: Assume that in a three-layer DNN, the linear coefficient from the 4th neuron in the second layer to the 2nd neuron in the third layer is defined as The superscript 3 represents the number of layers where the coefficient W is located, and the subscript corresponds to the output third layer index 2 and the input second layer index 4. The summary is: the coefficient from the k-th neuron in layer L-1 to the j-th neuron in layer L is defined as It should be noted that the input layer has no W parameter. In deep neural networks, more hidden layers make the network more capable of describing complex situations in the real world. Theoretically, a model with more parameters has higher complexity and greater "capacity", which means it can complete more complex learning tasks. Training a deep neural network is the process of learning the weight matrix. The ultimate goal is to obtain the weight matrix of all layers of the trained deep neural network (a weight matrix formed by the vectors W of many layers).
(3)损失函数(3)Loss function
在训练深度神经网络的过程中,因为希望深度神经网络的输出尽可能的接近真正想要预测的值,所以可以通过比较当前网络的预测值和真正想要的目标值,再根据两者之间的差异情况来更新每一层神经网络的权重向量(当然,在第一次更新之前通常会有初始化的过程,即为深度神经网络中的各层预先配置参数),比如,如果网络的预测值高了,就调整权重向量让它预测低一些,不断的调整,直到深度神 经网络能够预测出真正想要的目标值或与真正想要的目标值非常接近的值。因此,就需要预先定义“如何比较预测值和目标值之间的差异”,这便是损失函数(loss function)或目标函数(objective function),它们是用于衡量预测值和目标值的差异的重要方程。其中,以损失函数举例,损失函数的输出值(loss)越高表示差异越大,那么深度神经网络的训练就变成了尽可能缩小这个loss的过程。In the process of training a deep neural network, because we hope that the output of the deep neural network is as close as possible to the value that we really want to predict, we can compare the predicted value of the current network with the really desired target value, and then based on the difference between the two to update the weight vector of each layer of the neural network according to the difference (of course, there is usually an initialization process before the first update, that is, preconfiguring parameters for each layer in the deep neural network). For example, if the predicted value of the network If it is high, adjust the weight vector to make its prediction lower, and continue to adjust until the depth is amazing. The network can predict the truly desired target value or a value that is very close to the truly desired target value. Therefore, it is necessary to define in advance "how to compare the difference between the predicted value and the target value". This is the loss function (loss function) or objective function (objective function), which is used to measure the difference between the predicted value and the target value. Important equations. Among them, taking the loss function as an example, the higher the output value (loss) of the loss function, the greater the difference. Then the training of the deep neural network becomes a process of reducing this loss as much as possible.
(4)反向传播算法(4)Back propagation algorithm
可以采用误差反向传播(back propagation,BP)算法在训练过程中修正初始模型中参数的大小,使得模型的误差损失越来越小。具体地,前向传递输入信号直至输出会产生误差损失,通过反向传播误差损失信息来更新初始模型中的参数,从而使误差损失收敛。反向传播算法是以误差损失为主导的反向传播运动,旨在得到最优的模型参数,例如权重矩阵。The error back propagation (BP) algorithm can be used to correct the size of the parameters in the initial model during the training process, so that the error loss of the model becomes smaller and smaller. Specifically, forward propagation of the input signal until the output will produce an error loss, and backward propagation of the error loss information is used to update the parameters in the initial model, so that the error loss converges. The backpropagation algorithm is a backpropagation movement dominated by error loss, aiming to obtain optimal model parameters, such as weight matrices.
工业信息检索系统(如推荐系统、搜索引擎或广告平台)旨在为用户从海量数据(如物品、资讯、广告)中检索出用户最感兴趣的数据,从而提供给用户。然而,由于互联网的信息爆炸,各大平台每天都产生数以百万计的新信息,给信息检索系统带来极大的挑战。此外,由于用户可接受的系统响应时间是非常短(几十毫妙),因此在如此短的时间内为用户检索出最感兴趣的数据,成为信息检索系统的首要任务。Industrial information retrieval systems (such as recommendation systems, search engines or advertising platforms) are designed to retrieve the data that users are most interested in from massive amounts of data (such as items, information, advertisements) and provide it to users. However, due to the information explosion on the Internet, major platforms generate millions of new information every day, which brings great challenges to the information retrieval system. In addition, since the system response time acceptable to users is very short (tens of milliseconds), retrieving the most interesting data for users in such a short period of time has become the primary task of the information retrieval system.
一般来说,复杂的机器学习模型可以更好地建模用户和物品之间的关系,因此具有更好的预测准确性,但通常也会导致效率低下,因此,受限于在线推理的时延要求,部署时会变得更加困难,只能对少量物品进行打分。相反,简单模型由于复杂度比较低,因此对大量物品进行打分在效率上是可行的,但是受限于模型容量低的原因,预测效果往往不尽如人意。因此,构建多阶段排序系统是工业界信息检索系统用来平衡预测效率和效果的常用解决方案。多阶段排序系统将原本单一系统划分成多个阶段,简单模型可以部署在系统的早期阶段,旨在快速过滤掉大量不相关的候选物品,而复杂的模型通常放置在检索的后期阶段,更加贴近用户,从而更准确地对候选物品进行排序。Generally speaking, complex machine learning models can better model the relationship between users and items, and therefore have better prediction accuracy, but often also lead to inefficiencies and, therefore, are limited by the latency of online inference. Requirements, becomes more difficult when deployed, and only a small number of items can be scored. On the contrary, due to the relatively low complexity of simple models, it is feasible to score a large number of items in terms of efficiency. However, due to the low capacity of the model, the prediction effect is often unsatisfactory. Therefore, building a multi-stage ranking system is a common solution for industrial information retrieval systems to balance prediction efficiency and effectiveness. The multi-stage ranking system divides the original single system into multiple stages. Simple models can be deployed in the early stages of the system to quickly filter out a large number of irrelevant candidate items, while complex models are usually placed in the later stages of retrieval to be more relevant. users, thereby ranking candidate items more accurately.
工业界常见的多阶段级联排序系统包括了召回、粗排、精排以及重排多个阶段的子系统。其中,最前阶段的召回系统每次用户请求时需要对数万规模物品进行打分,而粗排和精排阶段只需要为数千或数百物品进行打分,最靠近用户的重排阶段甚至只需要考虑几十个物品的打分问题。因此,不同阶段的模型,自前至后,模型的复杂度依次递增,前面阶段的模型一般比较简单,而后面阶段的模型则是非常复杂。通过这种多阶段级联排序系统,可以有效地权衡预测效果和预测时延两方面,进而为用户带来好的体验。The common multi-stage cascade sorting system in the industry includes subsystems for multiple stages of recall, rough sorting, fine sorting and rearrangement. Among them, the recall system in the earliest stage needs to score tens of thousands of items each time a user requests it, while the rough sorting and fine sorting stages only need to score thousands or hundreds of items, and the rearrangement stage closest to the user even only needs to score Consider the scoring problem of dozens of items. Therefore, the complexity of the models in different stages increases from front to back. Models in the early stages are generally relatively simple, while models in the later stages are very complex. Through this multi-stage cascade sorting system, the prediction effect and prediction delay can be effectively weighed, thereby bringing a good experience to users.
独立训练多阶段级联排序系统中的每一个子系统是现阶段工业界主流的方式,为召回、粗排、精排和重排不同阶段独立训练一个机器学习模型,并且将训练好的模型单独部署到每个阶段进行服务。多阶段独立训练系统的优势在于,不同阶段的模型独立训练、独立部署,因此操作简单,同时,方便在不同阶段部署适合对应复杂度和预测能力的模型。Independently training each subsystem in the multi-stage cascade sorting system is the mainstream method in the industry at this stage. Independently train a machine learning model for different stages of recall, rough sorting, fine sorting and rearrangement, and use the trained model separately Deployed to each stage for service. The advantage of the multi-stage independent training system is that models at different stages are independently trained and deployed, so the operation is simple. At the same time, it is convenient to deploy models suitable for corresponding complexity and prediction capabilities at different stages.
然而,现有技术中对多阶段排序模型进行训练的过程中,每一个阶段的推荐模型只关注于当前阶段的训练,训练时无法拟合推理空间的数据,因此具有较差的预测能力。However, in the process of training multi-stage ranking models in the existing technology, the recommendation model in each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability.
接下来以模型训练阶段为例对本申请实施例提供的数据处理方法进行说明。Next, the data processing method provided by the embodiment of the present application will be described by taking the model training stage as an example.
参照图4,图4为本申请实施例提供的一种数据处理方法的实施例示意,如图4示出的那样,本申请实施例提供的一种数据处理方法,包括:Referring to Figure 4, Figure 4 is a schematic diagram of an embodiment of a data processing method provided by an embodiment of the present application. As shown in Figure 4, a data processing method provided by an embodiment of the present application includes:
401、根据第一训练样本,通过第一推荐模型,预测所述用户对物品的第一操作信息;所述第一训练样本为用户和物品的属性信息,所述第一操作信息和第二操作信息用于确定第一损失;所述第二操作信息包括根据所述用户的操作日志得到的信息;所述第一损失用于更新所述第一推荐模型。401. According to the first training sample, predict the user's first operation information on the item through the first recommendation model; the first training sample is the attribute information of the user and the item, the first operation information and the second operation The information is used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model.
在一种可能的实现中,步骤401的执行主体可以为终端设备,终端设备可以为便携式移动设备,例如但不限于移动或便携式计算设备(如智能手机)、个人计算机、服务器计算机、手持式设备(例如平板)或膝上型设备、多处理器系统、游戏控制台或控制器、基于微处理器的系统、机顶盒、可编程消费电子产品、移动电话、具有可穿戴或配件形状因子(例如,手表、眼镜、头戴式耳机或耳塞)的移动计算和/或通信设备、网络PC、小型计算机、大型计算机、包括上面的系统或设备中的任何一种的分布式计算环境 等等。In a possible implementation, the execution subject of step 401 may be a terminal device, and the terminal device may be a portable mobile device, such as but not limited to a mobile or portable computing device (such as a smart phone), a personal computer, a server computer, a handheld device (e.g., tablets) or laptop devices, multiprocessor systems, gaming consoles or controllers, microprocessor-based systems, set-top boxes, programmable consumer electronics, mobile phones, devices with wearable or accessory form factors (e.g., watches, glasses, headsets or earbuds), network PCs, minicomputers, mainframe computers, distributed computing environments including any of the above systems or devices etc.
在一种可能的实现中,步骤401的执行主体可以为云侧的服务器。In a possible implementation, the execution subject of step 401 may be a server on the cloud side.
在一种可能的实现中,第一推荐模型和第二推荐模型可以为多阶段排序系统中的两个排序模型,多阶段排序系统中分割为多个级联的独立推荐模型,上游的推荐模型的输出作为下游系统的输入(每个推荐模型可以基于用户和物品的属性信息,对用户对于各个物品的操作进行预测,预测结果可以用于进行物品的筛选,下游的推荐模型可以基于用户和筛选后的物品的信息,对用户对于各个筛选后的物品的操作进行预测)从而逐层过滤,减少每一个阶段打分物品规模,兼顾最终预测的效果和响应时延。In a possible implementation, the first recommendation model and the second recommendation model can be two ranking models in a multi-stage ranking system. The multi-stage ranking system is divided into multiple cascaded independent recommendation models. The upstream recommendation model The output is used as the input of the downstream system (each recommendation model can predict the user's operation of each item based on the attribute information of the user and the item. The prediction results can be used to filter items, and the downstream recommendation model can be based on the user and filter. The information of the items after the filtering is used to predict the user's operation on each filtered item), thereby filtering layer by layer, reducing the scale of scored items at each stage, and taking into account the final prediction effect and response delay.
在一种可能的实现中,多阶段推荐系统的架构往往采用召回(或者可以称之为匹配)、粗排、精排、重排的架构(或者仅包括召回、粗排和精排,或者是其中的至少两个的组合,本申请并不限定)。其中,粗排可以位于召回和精排之间,粗排层的主要目标是从上万数量级的候选召回集合中选择出最好的上百数量级的候选召回子集合进入精排,由精排进行进一步排序输出。In a possible implementation, the architecture of a multi-stage recommendation system often adopts the architecture of recall (or can be called matching), rough ranking, fine ranking, and rearrangement (or only includes recall, rough ranking, and fine ranking, or The combination of at least two of them is not limited by this application). Among them, rough sorting can be located between recall and fine sorting. The main goal of the rough sorting layer is to select the best candidate recall sub-sets of hundreds of magnitude from tens of thousands of candidate recall sets to enter fine sorting, which is carried out by fine sorting. Further sort the output.
在一种可能的实现中,所述第一推荐模型可以为粗排模型,所述第二推荐模型可以为精排模型;或者,所述第一推荐模型为召回模型,所述第二推荐模型为精排模型;或者,所述第一推荐模型为召回模型,所述第二推荐模型为粗排模型;或者,所述第一推荐模型为精排模型,所述第二推荐模型为重排模型;或者,所述第一推荐模型为粗排模型,所述第二推荐模型为重排模型;或者,所述第一推荐模型为召回模型,所述第二推荐模型为重排模型。In a possible implementation, the first recommendation model may be a rough ranking model, and the second recommendation model may be a fine ranking model; or, the first recommendation model may be a recall model, and the second recommendation model may be a recall model. is a fine ranking model; or the first recommendation model is a recall model, and the second recommendation model is a rough ranking model; or the first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model. model; or, the first recommendation model is a coarse ranking model, and the second recommendation model is a rearrangement model; or, the first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
在一种可能的实现中,在进行模型推理时,收敛后的所述第一推荐模型输出的操作信息用于进行物品的筛选,收敛后的所述第二推荐模型用于预测用户对筛选后的物品中部分或全部物品的操作信息。In one possible implementation, when performing model inference, the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operational information for some or all of the items.
在一种可能的实现中,收敛后的所述第二推荐模型用于预测用户对筛选后的物品中全部物品的操作信息(例如,第一推荐模型为粗排模型,第二推荐模型为精排模型)。In one possible implementation, the converged second recommendation model is used to predict the user's operation information for all items in the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model. platoon model).
在一种可能的实现中,收敛后的所述第二推荐模型用于预测用户对筛选后的物品中部分物品的操作信息(例如,第一推荐模型为粗排模型,第二推荐模型为重排模型,基于第一推荐模型得到的预测结果可以进行一次的物品筛选,精排模型需要进行进一步的筛选,第二推荐模型可以根据精排模型筛选得到的物品进行预测)。In a possible implementation, the converged second recommendation model is used to predict the user's operation information for some of the filtered items (for example, the first recommendation model is a rough ranking model, and the second recommendation model is a heavy ranking model. Ranking model, based on the prediction results obtained by the first recommendation model, one-time item screening can be performed, the fine ranking model needs to perform further screening, and the second recommendation model can make predictions based on the items screened by the fine ranking model).
在一种可能的实现中,所述第二推荐模型的复杂度大于所述第一推荐模型的复杂度;所述复杂度与如下的至少一种有关:模型包括的参数的数量、模型包括的网络层的深度、模型包括的网络层的宽度、输入数据的特征维度数量。In a possible implementation, the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following: the number of parameters included in the model, the number of parameters included in the model, The depth of the network layer, the width of the network layers included in the model, and the number of feature dimensions of the input data.
在对第一推荐模型进行训练时,可以根据第一推荐模型对第一训练样本进行处理,也就是通过第一推荐模型,预测所述用户对物品的第一操作信息;所述第一训练样本为用户和物品的属性信息。When training the first recommendation model, the first training sample can be processed according to the first recommendation model, that is, the first operation information of the item by the user is predicted through the first recommendation model; the first training sample Attribute information for users and items.
其中,在第一推荐模型为多阶段排序系统的中间阶段的模型时,第一训练样本中的物品可以为通过上游阶段的推荐模型筛选得到的物品。第一训练样本可以为用户和物品的属性信息。Wherein, when the first recommendation model is a model in an intermediate stage of a multi-stage ranking system, the items in the first training sample may be items filtered by the recommendation model in the upstream stage. The first training sample can be attribute information of users and items.
其中,用户的属性信息可以为与用户喜好特征相关的属性,性别、年龄、职业、收入、爱好以及受教育程度中的至少一种,其中,性别可以为男或者女,年龄可以为0-100之间的数字,职业可以为教师、程序员、厨师等等,爱好可以为篮球、网球、跑步等等,受教育程度可以为小学、初中、高中、大学等等;本申请并不限定目标用户的属性信息的具体类型。The user's attribute information may be attributes related to the user's preference characteristics, including at least one of gender, age, occupation, income, hobbies, and educational level. The gender may be male or female, and the age may be 0-100. The number between them, the profession can be teachers, programmers, chefs, etc., the hobbies can be basketball, tennis, running, etc., and the education level can be elementary school, junior high school, high school, university, etc.; this application does not limit the target users The specific type of attribute information.
其中,物品可以为实体物品,或者是虚拟物品,例如可以为APP、音视频、网页以及新闻资讯等物品,物品的属性信息可以为物品名称、开发者、安装包大小、品类以及好评度中的至少一种,其中,以物品为应用程序为例,物品的品类可以为聊天类、跑酷类游戏、办公类等等,好评度可以为针对于物品的打分、评论等;本申请并不限定物品的属性信息的具体类型。Among them, the items can be physical items or virtual items, such as APP, audio and video, web pages, news information, etc. The attribute information of the item can be the item name, developer, installation package size, category, and praise rating. At least one. Taking the item as an application as an example, the category of the item can be chatting, parkour games, office, etc., and the favorable rating can be ratings, comments, etc. for the item; this application is not limited to The specific type of attribute information for the item.
其中,第一推荐模型预测得到的第一操作信息可以为用户针对于物品的行为操作类型,或者是是否进行了某一个操作类型的操作,上述操作类型可以为电商平台行为中的浏览、点击、加入购物车、购买等操作类型。Among them, the first operation information predicted by the first recommendation model can be the user's behavioral operation type for the item, or whether a certain operation type has been performed. The above operation type can be browsing and clicking in the e-commerce platform behavior. , add to shopping cart, purchase and other operation types.
其中,第二操作信息可以用于作为训练第一推荐模型时的真值(ground truth),第一训练样本中的物品可以包括曝光物品(也就是已经呈现给用户的物品)和未曝光物品(也就是还未呈现给用户的物品),针对于曝光物品,第一推荐模型可以预测用户对曝光物品的操作信息,相应的,第二操作信息中作为用 户对曝光物品的操作信息的真值的这部分信息可以基于用户与物品之间的交互记录(例如用户的操作日志)得到,该行为日志可以包括用户对各个物品的真实操作记录。Among them, the second operation information can be used as the ground truth when training the first recommendation model. The items in the first training sample can include exposed items (that is, items that have been presented to the user) and unexposed items ( That is, items that have not yet been presented to the user). For exposed items, the first recommendation model can predict the user's operation information for the exposed items. Correspondingly, the second operation information is used as the This part of the information about the true value of the user's operation information on the exposed items can be obtained based on the interaction records between the user and the items (such as the user's operation log). The behavior log can include the user's real operation records on each item.
在一种可能的实现中,所述第一训练样本包括用户、曝光物品以及未曝光物品的属性信息,所述第二操作信息包括用户对所述未曝光物品的预测操作信息、以及用户对所述曝光物品的实际操作信息,所述实际操作信息为根据所述用户的操作日志得到。In a possible implementation, the first training sample includes attribute information of the user, exposed items, and unexposed items, and the second operation information includes the user's predicted operation information on the unexposed items, and the user's predicted operation information on the unexposed items. The actual operation information of the exposed items is obtained according to the user's operation log.
针对于未曝光物品,第一推荐模型可以预测用户对未曝光物品的操作信息,相应的,第二操作信息中作为用户对未曝光物品的操作信息的真值的这部分信息可以预测得到(也就是预测操作信息)。可选的,所述预测操作信息指示所述用户对所述未曝光物品未进行操作(也就是将未曝光样本作为负相关样本),或者是通过其他预测模型得到。For unexposed items, the first recommendation model can predict the user's operation information for unexposed items. Correspondingly, the part of the second operation information that is the true value of the user's operation information for unexposed items can be predicted (also It is the prediction operation information). Optionally, the predicted operation information indicates that the user has not performed any operation on the unexposed items (that is, the unexposed samples are regarded as negatively correlated samples), or is obtained through other prediction models.
在现有的实现中,推荐模型是利用曝光数据来训练的;在推理时,模型需要对大量没见过的数据进行排序。这意味着训练期间的数据分布与推理期间的数据分布有很大不同,将导致系统处于次优状态,本申请实施例中,通过对未曝光数据进行预测(或者直接),并利用未曝光数据进行多阶段排序系统中推荐模型的训练,可以提升模型的性能。In existing implementations, the recommendation model is trained using exposure data; during inference, the model needs to sort a large amount of unseen data. This means that the data distribution during training is very different from the data distribution during inference, which will cause the system to be in a suboptimal state. In the embodiment of this application, by predicting (or directly) unexposed data, and using unexposed data Training the recommendation model in a multi-stage ranking system can improve the performance of the model.
其中,所述第一操作信息和第二操作信息用于确定第一损失;所述第一损失可以用于更新所述第一推荐模型。Wherein, the first operation information and the second operation information are used to determine the first loss; the first loss can be used to update the first recommendation model.
上述基于真实操作日志进行的训练可以称之为自我学习流,在自我学习流中,自我学习流的训练数据中曝光样本对应的标签Y可以是由真实用户行为提供,如果是未曝光样本则可以作为负相关样本。因此,训练的损失函数可以和独立训练阶段保持相同,利用交叉熵损失函数进行训练。自我学习流旨在利用前序阶段产生的数据来自行学习拟合,提升对于当前阶段打分数据的预测能力。自我学习流的损失函数可以为:
The above training based on real operation logs can be called a self-learning flow. In the self-learning flow, the label Y corresponding to the exposed sample in the training data of the self-learning flow can be provided by real user behavior. If it is an unexposed sample, it can as a negative correlation sample. Therefore, the training loss function can remain the same as in the independent training stage, using the cross-entropy loss function for training. The self-learning flow aims to use the data generated in the previous stage to learn and fit on its own and improve the prediction ability of the scoring data in the current stage. The loss function of the self-learning flow can be:
上述公式为第i个阶段模型的交叉熵损失函数,是点击率预估领域常见的二分类损失函数,其中Ri(xj)是第i个阶段模型对于第j个样本的预测分数,yj是该样本的真实标签。The above formula is the cross-entropy loss function of the i-th stage model, which is a common binary classification loss function in the field of click-through rate prediction, where R i (x j ) is the prediction score of the i-th stage model for the j-th sample, y j is the true label of this sample.
可以通过上述方式,对第一推荐模型进行多次迭代训练,以得到训练后的第一推荐模型。The first recommendation model can be trained iteratively for multiple times in the above manner to obtain the trained first recommendation model.
类似的,在自我学习流中,可以对第二推荐模型进行训练,具体的,所述第一训练样本为用户和N个物品的属性信息,所述第一操作信息为所述用户对所述N个物品的操作信息,所述第一操作信息用于从所述N个物品中筛选N1个物品;可以根据所述用户和所述N1个物品中部分或全部物品的属性信息,通过第三推荐模型,预测所述用户对所述N1个物品中部分或全部物品的第五操作信息;所述第五操作信息和第六操作信息用于确定第三损失,所述第六操作信息包括根据所述用户的操作日志得到的信息;所述第三损失用于更新所述第三推荐模型,以得到所述第二推荐模型。Similarly, in the self-learning flow, the second recommendation model can be trained. Specifically, the first training sample is the attribute information of the user and N items, and the first operation information is the user's response to the Operation information of N items, the first operation information is used to filter N1 items from the N items; the user and the attribute information of some or all of the N1 items can be used to filter through the third A recommendation model predicts the user's fifth operation information for some or all of the N1 items; the fifth operation information and the sixth operation information are used to determine the third loss, and the sixth operation information includes Information obtained from the user's operation log; the third loss is used to update the third recommendation model to obtain the second recommendation model.
402、根据第二训练样本,分别通过第二推荐模型以及所述更新后的所述第一推荐模型,预测所述用户对物品的第三操作信息以及第四操作信息;所述第二训练样本为用户和物品的属性信息,所述第一推荐模型和所述第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,所述第三操作信息和所述第四操作信息用于确定第二损失;所述第二损失用于更新所述更新后的所述第一推荐模型。402. According to the second training sample, predict the third operation information and the fourth operation information of the item by the user through the second recommendation model and the updated first recommendation model respectively; the second training sample is the attribute information of users and items, the first recommendation model and the second recommendation model are ranking models of different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to A second loss is determined; the second loss is used to update the updated first recommendation model.
在一种可能的实现中,可以根据第二训练样本,通过第二推荐模型预测所述用户对物品的第三操作信息,根据第二训练样本,通过更新后的所述第一推荐模型预测所述用户对物品的第四操作信息。In a possible implementation, the user's third operation information on the item can be predicted through the second recommendation model based on the second training sample, and the updated first recommendation model can be used to predict the user's third operation information based on the second training sample. Describes the fourth operation information of the user on the item.
在一种可能的实现中,在完成一阶段的自我学习流之后,可以进行导师辅导流的训练,具体的,导师辅导流的训练数据对应的标签Y是由后续阶段的模型提供,此时后序阶段模型(相对复杂的模型)充当了老师的角色,通过这种方式将交互信息传递给当前阶段模型(相对简单的模型)。In one possible implementation, after completing the first stage of the self-learning flow, the tutor-coaching flow can be trained. Specifically, the label Y corresponding to the training data of the tutor-coaching flow is provided by the model in the subsequent stage. At this time, The sequential stage model (relatively complex model) plays the role of a teacher, passing interactive information to the current stage model (relatively simple model) in this way.
具体的,通过自我学习流得到的更新后的第一推荐模型可以处理第二训练样本,以得到第四操作信息,而作为第三操作信息的监督信号(也就是第二训练样本的真值),可以通过作为更高阶的推荐模型进行预测得到(也就是根据第二训练样本,通过第二推荐模型预测所述用户对物品的第三操作信息)。在对低阶推荐模型进行训练的过程中加入了精排模型的指导,利用不同阶段之间的交互信息,在不改变 系统架构或牺牲推理效率的情况下可以获得更好的性能。Specifically, the updated first recommendation model obtained through the self-learning flow can process the second training sample to obtain the fourth operation information, which serves as the supervision signal of the third operation information (that is, the true value of the second training sample) , can be obtained by prediction as a higher-order recommendation model (that is, based on the second training sample, the user's third operation information on the item is predicted by the second recommendation model). In the process of training the low-order recommendation model, the guidance of the fine ranking model is added, and the interactive information between different stages is used without changing Better performance can be achieved by modifying the system architecture or sacrificing inference efficiency.
由于后序模型提供的是一种软标签,因此训练的损失函数可以由两部分组成。示例性的,如下公式所示,其中mse loss是用于点对点学习后序模型的预测值;而ranking loss是用于学习后序模型偏好的列表(top K个排序靠前的候选物品组成)。
Since the post-order model provides a soft label, the training loss function can be composed of two parts. For example, as shown in the following formula, mse loss is the predicted value of the post-order model for point-to-point learning; and ranking loss is the list of preferences for the post-order model (composed of top K top-ranked candidate items).
上述公式由两部分组成,即Lranking和Lmse,Lmse是回归任务常见的损失函数,使得第i个阶段模型对于样本的打分Ri(xj)接近第i+1个阶段模型的打分Ri+1(xj);Lranking是学习后序模型偏好的列表损失函数,对于每一次请求q,最大化当前阶段胜出的Ki个物品平均得分与淘汰的(Ki-1-Ki)个物品平均得分之间的距离。The above formula consists of two parts, namely L ranking and L mse . L mse is a common loss function for regression tasks, so that the score R i (x j ) of the i-th stage model for the sample is close to the score of the i+1-th stage model. R i+1 (x j ); L ranking is a list loss function for learning post-order model preferences. For each request q, maximize the average score of the K i items that win in the current stage. and the average score of the eliminated (K i-1 -K i ) items the distance between.
以多阶段排序系统包括召回、粗排、精排、重排4阶段为例,介绍本申请实施例中的一个数据处理方法的流程示意:Taking the multi-stage sorting system including the four stages of recall, rough sorting, fine sorting and rearrangement as an example, the flow chart of a data processing method in the embodiment of this application is introduced:
首先,为4个阶段各自的模型进行独立训练,每个阶段的模型都在原始数据集上使用损失函数(如交叉熵损失函数)进行训练。First, the models for each of the 4 stages are trained independently, and the model for each stage is trained on the original data set using a loss function (such as the cross-entropy loss function).
重复以下联合训练阶段,直到重排阶段(最后一个阶段)模型性能收敛:Repeat the following joint training stages until model performance converges in the rearrangement stage (the last stage):
a)为每一个阶段模型产生训练数据X,标签Y由用户真实点击行为产生(未曝光数据视为负相关行为)a) Generate training data
b)对于每一个阶段(1-4阶段)模型,通过自我学习流进行训练b) For each stage (stage 1-4) model, train through self-learning flow
c)重新为每一个阶段模型产生训练数据X,软标签Y由下一个阶段模型产生c) Regenerate training data X for each stage model, and soft label Y is generated by the next stage model
d)对于每一个阶段(1-3阶段)模型,通过导师辅导流进行训练。d) For each stage (stage 1-3), the model is trained through the mentor coaching stream.
参照图5,图5为本申请实施例中的多阶段排序模型的一个训练过程示意:Referring to Figure 5, Figure 5 is a schematic diagram of a training process of the multi-stage ranking model in the embodiment of the present application:
整个过程可以分为两个阶段:独立训练和联合训练。The whole process can be divided into two stages: independent training and joint training.
在独立训练阶段(PhaseⅠ),每个阶段的模型都在原始曝光数据集上使用损失函数(如交叉熵损失函数)进行训练。独立训练过程本质上是一个模型热身阶段,可以使得上下游模型都具有基本的排序能力。该过程与传统的独立训练多阶段系统的流程一致,如图5中最左子图所示。In the independent training phase (Phase I), the model in each phase is trained on the original exposure data set using a loss function (such as the cross-entropy loss function). The independent training process is essentially a model warm-up stage, which enables both upstream and downstream models to have basic sorting capabilities. This process is consistent with the traditional process of independent training of multi-stage systems, as shown in the leftmost subfigure in Figure 5.
在联合训练阶段(PhaseⅡ),第一步是为每个阶段生成适合当前阶段的数据X(不包含标签Y)。每个阶段的数据X是由前序阶段的模型来产生的,根据级联系统的特性,由排序前K个候选构成数据X。第一个阶段由于没有前序阶段,因此数据X和独立训练阶段保持相同。接着,根据标签Y的不同,设计了两个不同的流进行迭代联合训练:自我学习流和导师辅导流。In the joint training phase (Phase II), the first step is to generate data X (excluding label Y) for each stage that is suitable for the current stage. The data X of each stage is generated by the model of the previous stage. According to the characteristics of the cascade system, the data In the first stage, since there is no preceding stage, the data X and independent training stages remain the same. Then, according to the different labels Y, two different streams are designed for iterative joint training: self-learning stream and tutor-coaching stream.
自我学习流(self-learning):训练数据X对应的标签Y是由真实用户点击行为提供,如果是未曝光样本则作为负相关样本,从前往后每一个阶段依次训练,如图5中间子图的浅灰色数据流所示。Self-learning flow (self-learning): The label Y corresponding to the training data The light gray data flow is shown.
导师辅导流(tutor-learning):训练数据X对应的标签Y是由后续阶段的模型提供,从前往后每一个阶段依次训练,如图5中间子图的深灰色数据流所示。Tutor-learning flow: The label Y corresponding to the training data
接下来通过实验介绍本申请实施例的有益效果:Next, the beneficial effects of the embodiments of this application are introduced through experiments:
在三个公开数据集上进行了离线实验:Offline experiments were conducted on three public datasets:
以下是在推荐和搜索任务上是实验结果: The following are experimental results on recommendation and search tasks:
Table 1:Performance on ML-1M.
Table 1: Performance on ML-1M.
Table 2:Performance on TianGong-ST.
Table 2: Performance on TianGong-ST.
Table 3:Performance on Tmall.
Table 3: Performance on Tmall.
以下是在广告任务上的结果:Here are the results on the advertising task:
Table 4:Ads Performance on TianGong-ST(w/Bid).
Table 4: Ads Performance on TianGong-ST(w/Bid).
Table 5:Ads Performance on Tmall(w/Bid).
Table 5: Ads Performance on Tmall(w/Bid).
经过实验,从几个不同任务上的结果可以看出,本发明(RankFlow)相对于工业界独立训练方式(Independent)以及联合训练方式(ICC),各项指标都取得显著提升,并且可以和不同阶段的不同模型想结合,具有良好的兼容性。After experiments, it can be seen from the results on several different tasks that compared with the independent training method (Independent) and the combined training method (ICC) in the industry, various indicators of the present invention (RankFlow) have been significantly improved, and can be compared with different training methods. Different models of stages want to be combined and have good compatibility.
本申请实施例提供了一种数据处理方法,所述方法包括:根据第一训练样本,通过第一推荐模型,预测所述用户对物品的第一操作信息;所述第一训练样本为用户和物品的属性信息,所述第一操作信息和第二操作信息用于确定第一损失;所述第二操作信息包括根据所述用户的操作日志得到的信息;所述第一损失用于更新所述第一推荐模型;根据第二训练样本,分别通过第二推荐模型以及所述更新后的所述第一推荐模型,预测所述用户对物品的第三操作信息以及第四操作信息;所述第二训练样本为用户和 物品的属性信息,所述第一推荐模型和所述第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,所述第三操作信息和所述第四操作信息用于确定第二损失;所述第二损失用于更新所述更新后的所述第一推荐模型。相比于现有技术中,每一个阶段的推荐模型只关注于当前阶段的训练,训练时无法拟合推理空间的数据,因此具有较差的预测能力。本发明采用联合训练的模式,让每个阶段模型关注于拟合各自阶段的数据,同时利用上下游阶段来辅助训练,进而提升预测效果。此外,本申请实施例中提出的多阶段联合优化是在不同模型之间以数据交流的形式实现的,不改变各自模型的训练流程,因此更加契合工业系统的部署,同时取得更好的预测效果。An embodiment of the present application provides a data processing method, which method includes: predicting the user's first operation information on items through a first recommendation model based on a first training sample; the first training sample is a user and a Attribute information of the item, the first operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the The first recommendation model; according to the second training sample, predict the third operation information and the fourth operation information of the item by the user through the second recommendation model and the updated first recommendation model respectively; The second training sample is the user and Attribute information of items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to determine the second Loss; the second loss is used to update the updated first recommendation model. Compared with the existing technology, the recommendation model at each stage only focuses on the training of the current stage, and cannot fit the data in the inference space during training, so it has poor prediction ability. The present invention adopts a joint training model, allowing each stage model to focus on fitting the data of its own stage, while using the upstream and downstream stages to assist training, thereby improving the prediction effect. In addition, the multi-stage joint optimization proposed in the embodiments of this application is implemented in the form of data exchange between different models without changing the training process of each model. Therefore, it is more suitable for the deployment of industrial systems and achieves better prediction results. .
参照图6,图6为本申请实施例提供的一种数据处理装置600,所述装置包括:Referring to Figure 6, Figure 6 shows a data processing device 600 provided by an embodiment of the present application. The device includes:
第一预测模块601,用于根据第一训练样本,通过第一推荐模型,预测所述用户对物品的第一操作信息;所述第一训练样本为用户和物品的属性信息,所述第一操作信息和第二操作信息用于确定第一损失;所述第二操作信息包括根据所述用户的操作日志得到的信息;所述第一损失用于更新所述第一推荐模型;The first prediction module 601 is used to predict the user's first operation information on the item through the first recommendation model according to the first training sample; the first training sample is the attribute information of the user and the item, and the first The operation information and the second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model;
关于第一预测模块601的具体描述,可以参照上述实施例中步骤401的描述,这里不再赘述。For a specific description of the first prediction module 601, reference may be made to the description of step 401 in the above embodiment, which will not be described again here.
第二预测模块602,用于根据第二训练样本,分别通过第二推荐模型以及所述更新后的所述第一推荐模型,预测所述用户对物品的第三操作信息以及第四操作信息;所述第二训练样本为用户和物品的属性信息,所述第一推荐模型和所述第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,所述第三操作信息和所述第四操作信息用于确定第二损失;所述第二损失用于更新所述更新后的所述第一推荐模型。The second prediction module 602 is configured to predict the third operation information and the fourth operation information of the user on the item through the second recommendation model and the updated first recommendation model respectively according to the second training sample; The second training sample is attribute information of users and items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the The fourth operation information is used to determine a second loss; the second loss is used to update the updated first recommendation model.
关于第二预测模块602的具体描述,可以参照上述实施例中步骤402的描述,这里不再赘述。For a specific description of the second prediction module 602, reference may be made to the description of step 402 in the above embodiment, which will not be described again here.
在一种可能的实现中,在进行模型推理时,收敛后的所述第一推荐模型输出的操作信息用于进行物品的筛选,收敛后的所述第二推荐模型用于预测用户对筛选后的物品中部分或全部物品的操作信息。In one possible implementation, when performing model inference, the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used to predict the user's response to the screened items. Operational information for some or all of the items.
在一种可能的实现中,所述第二推荐模型的复杂度大于所述第一推荐模型的复杂度;所述复杂度与如下的至少一种有关:In a possible implementation, the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following:
模型包括的参数的数量、模型包括的网络层的深度、模型包括的网络层的宽度、输入数据的特征维度数量。The number of parameters included in the model, the depth of the network layers included in the model, the width of the network layers included in the model, and the number of feature dimensions of the input data.
在一种可能的实现中,所述第一训练样本包括用户、曝光物品以及未曝光物品的属性信息,所述第二操作信息包括用户对所述未曝光物品的预测操作信息、以及用户对所述曝光物品的实际操作信息,所述实际操作信息为根据所述用户的操作日志得到;或者,In a possible implementation, the first training sample includes attribute information of the user, exposed items, and unexposed items, and the second operation information includes the user's predicted operation information on the unexposed items, and the user's predicted operation information on the unexposed items. The actual operation information of the exposed items, the actual operation information is obtained according to the user's operation log; or,
所述第二训练样本为用户、曝光物品以及未曝光物品的属性信息。The second training sample is attribute information of users, exposed items, and unexposed items.
在一种可能的实现中,所述预测操作信息指示所述用户对所述未曝光物品未进行操作。In a possible implementation, the predicted operation information indicates that the user has not performed any operation on the unexposed items.
在一种可能的实现中,所述第一训练样本为用户和物品的属性信息,包括:所述第一训练样本为用户和N个物品的属性信息,所述第一操作信息为所述用户对所述N个物品的操作信息,所述第一操作信息用于从所述N个物品中筛选N1个物品;In a possible implementation, the first training sample is the attribute information of the user and items, including: the first training sample is the attribute information of the user and N items, and the first operation information is the user For the operation information of the N items, the first operation information is used to filter N1 items from the N items;
所述装置还包括:The device also includes:
第三预测模块,用于根据所述用户和所述N1个物品中部分或全部物品的属性信息,通过第三推荐模型,预测所述用户对所述N1个物品中部分或全部物品的第五操作信息;所述第五操作信息和第六操作信息用于确定第三损失,所述第六操作信息包括根据所述用户的操作日志得到的信息;所述第三损失用于更新所述第三推荐模型,以得到所述第二推荐模型。A third prediction module, configured to predict the user's fifth preference for some or all of the N1 items through a third recommendation model based on the attribute information of the user and some or all of the N1 items. Operation information; the fifth operation information and the sixth operation information are used to determine the third loss, the sixth operation information includes information obtained according to the user's operation log; the third loss is used to update the third loss three recommendation models to obtain the second recommendation model.
在一种可能的实现中,所述第一推荐模型为粗排模型,所述第二推荐模型为精排模型;或者,In a possible implementation, the first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model; or,
所述第一推荐模型为召回模型,所述第二推荐模型为精排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a fine ranking model; or,
所述第一推荐模型为召回模型,所述第二推荐模型为粗排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a coarse ranking model; or,
所述第一推荐模型为精排模型,所述第二推荐模型为重排模型;或者,The first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model; or,
所述第一推荐模型为粗排模型,所述第二推荐模型为重排模型;或者,The first recommendation model is a rough ranking model, and the second recommendation model is a rearrangement model; or,
所述第一推荐模型为召回模型,所述第二推荐模型为重排模型。 The first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
在一种可能的实现中,所述属性信息包括用户属性,所述用户属性包括如下的至少一种:In a possible implementation, the attribute information includes user attributes, and the user attributes include at least one of the following:
性别,年龄,职业,收入,爱好,教育程度。Gender, age, occupation, income, hobbies, education level.
在一种可能的实现中,所述属性信息包括物品属性,所述物品属性包括如下的至少一种:In a possible implementation, the attribute information includes item attributes, and the item attributes include at least one of the following:
物品名称,开发者,安装包大小,品类,好评度。Item name, developer, installation package size, category, and rating.
接下来介绍本申请实施例提供的一种执行设备,请参阅图7,图7为本申请实施例提供的执行设备的一种结构示意图,执行设备700具体可以表现为手机、平板、笔记本电脑、智能穿戴设备、服务器等,此处不做限定。其中,执行设备700上可以部署有图6对应实施例中所描述的数据处理装置,用于实现图4对应实施例中数据处理的功能。具体的,执行设备700包括:接收器701、发射器702、处理器703和存储器704(其中执行设备700中的处理器703的数量可以一个或多个),其中,处理器703可以包括应用处理器7031和通信处理器7032。在本申请的一些实施例中,接收器701、发射器702、处理器703和存储器704可通过总线或其它方式连接。Next, an execution device provided by an embodiment of the present application is introduced. Please refer to Figure 7. Figure 7 is a schematic structural diagram of an execution device provided by an embodiment of the present application. The execution device 700 can be embodied as a mobile phone, a tablet, a notebook computer, Smart wearable devices, servers, etc. are not limited here. The data processing device described in the corresponding embodiment of FIG. 6 may be deployed on the execution device 700 to implement the data processing function in the corresponding embodiment of FIG. 4 . Specifically, the execution device 700 includes: a receiver 701, a transmitter 702, a processor 703, and a memory 704 (the number of processors 703 in the execution device 700 may be one or more), where the processor 703 may include application processing processor 7031 and communication processor 7032. In some embodiments of the present application, the receiver 701, the transmitter 702, the processor 703, and the memory 704 may be connected through a bus or other means.
存储器704可以包括只读存储器和随机存取存储器,并向处理器703提供指令和数据。存储器704的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。存储器704存储有处理器和操作指令、可执行模块或者数据结构,或者它们的子集,或者它们的扩展集,其中,操作指令可包括各种操作指令,用于实现各种操作。Memory 704 may include read-only memory and random access memory and provides instructions and data to processor 703 . A portion of memory 704 may also include non-volatile random access memory (NVRAM). The memory 704 stores processor and operating instructions, executable modules or data structures, or a subset thereof, or an extended set thereof, where the operating instructions may include various operating instructions for implementing various operations.
处理器703控制执行设备的操作。具体的应用中,执行设备的各个组件通过总线系统耦合在一起,其中总线系统除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。但是为了清楚说明起见,在图中将各种总线都称为总线系统。Processor 703 controls execution of operations of the device. In specific applications, various components of the execution device are coupled together through a bus system. In addition to the data bus, the bus system may also include a power bus, a control bus, a status signal bus, etc. However, for the sake of clarity, various buses are called bus systems in the figure.
上述本申请实施例揭示的方法可以应用于处理器703中,或者由处理器703实现。处理器703可以是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器703中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器703可以是通用处理器、数字信号处理器(digital signal processing,DSP)、微处理器或微控制器、以及视觉处理器(vision processing unit,VPU)、张量处理器(tensor processing unit,TPU)等适用于AI运算的处理器,还可进一步包括专用集成电路(application specific integrated circuit,ASIC)、现场可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。该处理器703可以实现或者执行本申请实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器704,处理器703读取存储器704中的信息,结合其硬件完成上述实施例中步骤401至步骤402的步骤。The methods disclosed in the above embodiments of the present application can be applied to the processor 703 or implemented by the processor 703 . The processor 703 may be an integrated circuit chip with signal processing capabilities. During the implementation process, each step of the above method can be completed by instructions in the form of hardware integrated logic circuits or software in the processor 703 . The above-mentioned processor 703 can be a general-purpose processor, a digital signal processor (DSP), a microprocessor or a microcontroller, a vision processing unit (VPU), or a tensor processing unit. Unit, TPU) and other processors suitable for AI computing, may further include application specific integrated circuits (ASICs), field-programmable gate arrays (field-programmable gate arrays, FPGAs) or other programmable logic devices, Discrete gate or transistor logic devices, discrete hardware components. The processor 703 can implement or execute each method, step and logical block diagram disclosed in the embodiment of this application. A general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc. The steps of the method disclosed in conjunction with the embodiments of the present application can be directly implemented by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor. The software module can be located in random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, registers and other mature storage media in this field. The storage medium is located in the memory 704. The processor 703 reads the information in the memory 704 and completes steps 401 to 402 in the above embodiment in combination with its hardware.
接收器701可用于接收输入的数字或字符信息,以及产生与执行设备的相关设置以及功能控制有关的信号输入。发射器702可用于通过第一接口输出数字或字符信息;发射器702还可用于通过第一接口向磁盘组发送指令,以修改磁盘组中的数据;发射器702还可以包括显示屏等显示设备。The receiver 701 may be configured to receive input numeric or character information and generate signal inputs related to performing relevant settings and functional controls of the device. The transmitter 702 can be used to output numeric or character information through the first interface; the transmitter 702 can also be used to send instructions to the disk group through the first interface to modify the data in the disk group; the transmitter 702 can also include a display device such as a display screen .
本申请实施例还提供了一种训练设备,请参阅图8,图8是本申请实施例提供的训练设备一种结构示意图,具体的,训练设备800由一个或多个服务器实现,训练设备800可因配置或性能不同而产生比较大的差异,可以包括一个或一个以上中央处理器(central processing units,CPU)88(例如,一个或一个以上处理器)和存储器832,一个或一个以上存储应用程序842或数据844的存储介质830(例如一个或一个以上海量存储设备)。其中,存储器832和存储介质830可以是短暂存储或持久存储。存储在存储介质830的程序可以包括一个或一个以上模块(图示没标出),每个模块可以包括对训练设备中的一系列指令操作。更进一步地,中央处理器88可以设置为与存储介质830通信,在训练设备800上执行存储介质830中的一系列指令操作。The embodiment of the present application also provides a training device. Please refer to Figure 8. Figure 8 is a schematic structural diagram of the training device provided by the embodiment of the present application. Specifically, the training device 800 is implemented by one or more servers. The training device 800 There may be relatively large differences due to different configurations or performance, and may include one or more central processing units (CPU) 88 (for example, one or more processors) and memory 832, one or more storage applications Storage medium 830 for program 842 or data 844 (eg, one or more mass storage devices). Among them, the memory 832 and the storage medium 830 may be short-term storage or persistent storage. The program stored in the storage medium 830 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the training device. Furthermore, the central processor 88 may be configured to communicate with the storage medium 830 and execute a series of instruction operations in the storage medium 830 on the training device 800 .
训练设备800还可以包括一个或一个以上电源826,一个或一个以上有线或无线网络接口850,一 个或一个以上输入输出接口858;或,一个或一个以上操作系统841,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等等。Training device 800 may also include one or more power supplies 826, one or more wired or wireless network interfaces 850, a One or more input and output interfaces 858; or, one or more operating systems 841, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
具体的,训练设备可以进行上述实施例中步骤401至步骤402的步骤。Specifically, the training device can perform steps 401 to 402 in the above embodiment.
本申请实施例中还提供一种包括计算机程序产品,当其在计算机上运行时,使得计算机执行如前述执行设备所执行的步骤,或者,使得计算机执行如前述训练设备所执行的步骤。An embodiment of the present application also provides a computer program product that, when run on a computer, causes the computer to perform the steps performed by the foregoing execution device, or causes the computer to perform the steps performed by the foregoing training device.
本申请实施例中还提供一种计算机可读存储介质,该计算机可读存储介质中存储有用于进行信号处理的程序,当其在计算机上运行时,使得计算机执行如前述执行设备所执行的步骤,或者,使得计算机执行如前述训练设备所执行的步骤。Embodiments of the present application also provide a computer-readable storage medium. The computer-readable storage medium stores a program for performing signal processing. When the program is run on a computer, it causes the computer to perform the steps performed by the aforementioned execution device. , or, causing the computer to perform the steps performed by the aforementioned training device.
本申请实施例提供的执行设备、训练设备或终端设备具体可以为芯片,芯片包括:处理单元和通信单元,所述处理单元例如可以是处理器,所述通信单元例如可以是输入/输出接口、管脚或电路等。该处理单元可执行存储单元存储的计算机执行指令,以使执行设备内的芯片执行上述实施例描述的数据处理方法,或者,以使训练设备内的芯片执行上述实施例描述的数据处理方法。可选地,所述存储单元为所述芯片内的存储单元,如寄存器、缓存等,所述存储单元还可以是所述无线接入设备端内的位于所述芯片外部的存储单元,如只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)等。The execution device, training device or terminal device provided by the embodiment of the present application may specifically be a chip. The chip includes: a processing unit and a communication unit. The processing unit may be, for example, a processor. The communication unit may be, for example, an input/output interface. Pins or circuits, etc. The processing unit can execute the computer execution instructions stored in the storage unit, so that the chip in the execution device executes the data processing method described in the above embodiment, or so that the chip in the training device executes the data processing method described in the above embodiment. Optionally, the storage unit is a storage unit within the chip, such as a register, cache, etc. The storage unit may also be a storage unit located outside the chip in the wireless access device, such as Read-only memory (ROM) or other types of static storage devices that can store static information and instructions, random access memory (random access memory, RAM), etc.
具体的,请参阅图9,图9为本申请实施例提供的芯片的一种结构示意图,所述芯片可以表现为神经网络处理器NPU900,NPU 900作为协处理器挂载到主CPU(Host CPU)上,由Host CPU分配任务。NPU的核心部分为运算电路903,通过控制器904控制运算电路903提取存储器中的矩阵数据并进行乘法运算。Specifically, please refer to Figure 9. Figure 9 is a schematic structural diagram of a chip provided by an embodiment of the present application. The chip can be represented as a neural network processor NPU 900. The NPU 900 serves as a co-processor and is mounted to the host CPU. ), tasks are allocated by the Host CPU. The core part of the NPU is the arithmetic circuit 903. The arithmetic circuit 903 is controlled by the controller 904 to extract the matrix data in the memory and perform multiplication operations.
NPU 900可以通过内部的各个器件之间的相互配合,来实现图4所描述的实施例中提供的数据处理方法。NPU 900 can implement the data processing method provided in the embodiment described in Figure 4 through the cooperation between various internal devices.
更具体的,在一些实现中,NPU 900中的运算电路903内部包括多个处理单元(Process Engine,PE)。在一些实现中,运算电路903是二维脉动阵列。运算电路903还可以是一维脉动阵列或者能够执行例如乘法和加法这样的数学运算的其它电子线路。在一些实现中,运算电路903是通用的矩阵处理器。More specifically, in some implementations, the computing circuit 903 in the NPU 900 includes multiple processing units (Process Engine, PE). In some implementations, arithmetic circuit 903 is a two-dimensional systolic array. The arithmetic circuit 903 may also be a one-dimensional systolic array or other electronic circuit capable of performing mathematical operations such as multiplication and addition. In some implementations, arithmetic circuit 903 is a general-purpose matrix processor.
举例来说,假设有输入矩阵A,权重矩阵B,输出矩阵C。运算电路从权重存储器902中取矩阵B相应的数据,并缓存在运算电路中每一个PE上。运算电路从输入存储器901中取矩阵A数据与矩阵B进行矩阵运算,得到的矩阵的部分结果或最终结果,保存在累加器(accumulator)908中。For example, assume there is an input matrix A, a weight matrix B, and an output matrix C. The arithmetic circuit obtains the corresponding data of matrix B from the weight memory 902 and caches it on each PE in the arithmetic circuit. The operation circuit takes matrix A data and matrix B from the input memory 901 to perform matrix operations, and the partial result or final result of the obtained matrix is stored in an accumulator (accumulator) 908 .
统一存储器906用于存放输入数据以及输出数据。权重数据直接通过存储单元访问控制器(Direct Memory Access Controller,DMAC)905,DMAC被搬运到权重存储器902中。输入数据也通过DMAC被搬运到统一存储器906中。The unified memory 906 is used to store input data and output data. The weight data directly passes through the storage unit access controller (Direct Memory Access Controller, DMAC) 905, and the DMAC is transferred to the weight memory 902. The input data is also transferred to unified memory 906 via DMAC.
BIU为Bus Interface Unit即,总线接口单元910,用于AXI总线与DMAC和取指存储器(Instruction Fetch Buffer,IFB)909的交互。BIU is the Bus Interface Unit, that is, the bus interface unit 910, which is used for the interaction between the AXI bus and the DMAC and the Instruction Fetch Buffer (IFB) 909.
总线接口单元910(Bus Interface Unit,简称BIU),用于取指存储器909从外部存储器获取指令,还用于存储单元访问控制器905从外部存储器获取输入矩阵A或者权重矩阵B的原数据。The bus interface unit 910 (Bus Interface Unit, BIU for short) is used to fetch the memory 909 to obtain instructions from the external memory, and is also used for the storage unit access controller 905 to obtain the original data of the input matrix A or the weight matrix B from the external memory.
DMAC主要用于将外部存储器DDR中的输入数据搬运到统一存储器906或将权重数据搬运到权重存储器902中或将输入数据数据搬运到输入存储器901中。DMAC is mainly used to transfer the input data in the external memory DDR to the unified memory 906 or the weight data to the weight memory 902 or the input data to the input memory 901 .
向量计算单元907包括多个运算处理单元,在需要的情况下,对运算电路903的输出做进一步处理,如向量乘,向量加,指数运算,对数运算,大小比较等等。主要用于神经网络中非卷积/全连接层网络计算,如Batch Normalization(批归一化),像素级求和,对特征平面进行上采样等。The vector calculation unit 907 includes multiple arithmetic processing units, and if necessary, further processes the output of the arithmetic circuit 903, such as vector multiplication, vector addition, exponential operation, logarithmic operation, size comparison, etc. Mainly used for non-convolutional/fully connected layer network calculations in neural networks, such as Batch Normalization, pixel-level summation, upsampling of feature planes, etc.
在一些实现中,向量计算单元907能将经处理的输出的向量存储到统一存储器906。例如,向量计算单元907可以将线性函数;或,非线性函数应用到运算电路903的输出,例如对卷积层提取的特征平面进行线性插值,再例如累加值的向量,用以生成激活值。在一些实现中,向量计算单元907生成归一化的值、像素级求和的值,或二者均有。在一些实现中,处理过的输出的向量能够用作到运算电路903的激活输入,例如用于在神经网络中的后续层中的使用。 In some implementations, vector calculation unit 907 can store the processed output vectors to unified memory 906 . For example, the vector calculation unit 907 can apply a linear function; or a nonlinear function to the output of the operation circuit 903, such as linear interpolation on the feature plane extracted by the convolution layer, or a vector of accumulated values, to generate an activation value. In some implementations, vector calculation unit 907 generates normalized values, pixel-wise summed values, or both. In some implementations, the processed output vector can be used as an activation input to the arithmetic circuit 903, such as for use in a subsequent layer in a neural network.
控制器904连接的取指存储器(instruction fetch buffer)909,用于存储控制器904使用的指令;The instruction fetch buffer 909 connected to the controller 904 is used to store instructions used by the controller 904;
统一存储器906,输入存储器901,权重存储器902以及取指存储器909均为On-Chip存储器。外部存储器私有于该NPU硬件架构。The unified memory 906, the input memory 901, the weight memory 902 and the fetch memory 909 are all On-Chip memories. External memory is private to the NPU hardware architecture.
其中,上述任一处提到的处理器,可以是一个通用中央处理器,微处理器,ASIC,或一个或多个用于控制上述程序执行的集成电路。The processor mentioned in any of the above places can be a general central processing unit, a microprocessor, an ASIC, or one or more integrated circuits used to control the execution of the above programs.
另外需说明的是,以上所描述的装置实施例仅仅是示意性的,其中所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。另外,本申请提供的装置实施例附图中,模块之间的连接关系表示它们之间具有通信连接,具体可以实现为一条或多条通信总线或信号线。In addition, it should be noted that the device embodiments described above are only illustrative. The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physically separate. The physical unit can be located in one place, or it can be distributed across multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment. In addition, in the drawings of the device embodiments provided in this application, the connection relationship between modules indicates that there are communication connections between them, which can be specifically implemented as one or more communication buses or signal lines.
通过以上的实施方式的描述,所属领域的技术人员可以清楚地了解到本申请可借助软件加必需的通用硬件的方式来实现,当然也可以通过专用硬件包括专用集成电路、专用CPU、专用存储器、专用元器件等来实现。一般情况下,凡由计算机程序完成的功能都可以很容易地用相应的硬件来实现,而且,用来实现同一功能的具体硬件结构也可以是多种多样的,例如模拟电路、数字电路或专用电路等。但是,对本申请而言更多情况下软件程序实现是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在可读取的存储介质中,如计算机的软盘、U盘、移动硬盘、ROM、RAM、磁碟或者光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,训练设备,或者网络设备等)执行本申请各个实施例所述的方法。Through the above description of the embodiments, those skilled in the art can clearly understand that the present application can be implemented by software plus necessary general hardware. Of course, it can also be implemented by dedicated hardware including dedicated integrated circuits, dedicated CPUs, dedicated memories, Special components, etc. to achieve. In general, all functions performed by computer programs can be easily implemented with corresponding hardware. Moreover, the specific hardware structures used to implement the same function can also be diverse, such as analog circuits, digital circuits or special-purpose circuits. circuit etc. However, for this application, software program implementation is a better implementation in most cases. Based on this understanding, the technical solution of the present application can be embodied in the form of a software product in essence or that contributes to the existing technology. The computer software product is stored in a readable storage medium, such as a computer floppy disk. , U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk, etc., including several instructions to cause a computer device (which can be a personal computer, training device, or network device, etc.) to execute the steps described in various embodiments of this application. method.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product.
所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、训练设备或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、训练设备或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包含一个或多个可用介质集成的训练设备、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(Solid State Disk,SSD))等。 The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in the embodiments of the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, for example, the computer instructions may be transferred from a website, computer, training device, or data The center transmits to another website site, computer, training equipment or data center through wired (such as coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store, or a data storage device such as a training device or a data center integrated with one or more available media. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (Solid State Disk, SSD)), etc.

Claims (21)

  1. 一种数据处理方法,其特征在于,所述方法包括:A data processing method, characterized in that the method includes:
    根据第一训练样本,通过第一推荐模型,预测所述用户对物品的第一操作信息;所述第一训练样本为用户和物品的属性信息,所述第一操作信息和第二操作信息用于确定第一损失;所述第二操作信息包括根据所述用户的操作日志得到的信息;所述第一损失用于更新所述第一推荐模型;According to the first training sample, the first operation information of the item by the user is predicted through the first recommendation model; the first training sample is the attribute information of the user and the item, and the first operation information and the second operation information are To determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model;
    根据第二训练样本,分别通过第二推荐模型以及所述更新后的所述第一推荐模型,预测所述用户对物品的第三操作信息以及第四操作信息;所述第二训练样本为用户和物品的属性信息,所述第一推荐模型和所述第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,所述第三操作信息和所述第四操作信息用于确定第二损失;所述第二损失用于更新所述更新后的所述第一推荐模型。According to the second training sample, the third operation information and the fourth operation information of the item by the user are predicted through the second recommendation model and the updated first recommendation model respectively; the second training sample is the user and attribute information of items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the fourth operation information are used to determine the third Two losses; the second loss is used to update the updated first recommendation model.
  2. 根据权利要求1所述的方法,其特征在于,在进行模型推理时,收敛后的所述第一推荐模型输出的操作信息用于进行物品的筛选,收敛后的所述第二推荐模型用于预测用户对筛选后的物品中部分或全部物品的操作信息。The method according to claim 1, characterized in that when performing model inference, the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used for Predict user operation information for some or all of the filtered items.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第二推荐模型的复杂度大于所述第一推荐模型的复杂度;所述复杂度与如下的至少一种有关:The method according to claim 1 or 2, characterized in that the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following:
    模型包括的参数的数量、模型包括的网络层的深度、模型包括的网络层的宽度、输入数据的特征维度数量。The number of parameters included in the model, the depth of the network layers included in the model, the width of the network layers included in the model, and the number of feature dimensions of the input data.
  4. 根据权利要求1至3任一所述的方法,其特征在于,The method according to any one of claims 1 to 3, characterized in that,
    所述第一训练样本包括用户、曝光物品以及未曝光物品的属性信息,所述第二操作信息包括用户对所述未曝光物品的预测操作信息、以及用户对所述曝光物品的实际操作信息,所述实际操作信息为根据所述用户的操作日志得到;或者,The first training sample includes attribute information of the user, exposed items, and unexposed items, and the second operation information includes the user's predicted operation information on the unexposed items, and the user's actual operation information on the exposed items, The actual operation information is obtained based on the user's operation log; or,
    所述第二训练样本为用户、曝光物品以及未曝光物品的属性信息。The second training sample is attribute information of users, exposed items, and unexposed items.
  5. 根据权利要求4所述的方法,其特征在于,所述预测操作信息指示所述用户对所述未曝光物品未进行操作。The method of claim 4, wherein the predicted operation information indicates that the user has not performed any operation on the unexposed items.
  6. 根据权利要求1至5任一所述的方法,其特征在于,所述第一训练样本为用户和物品的属性信息,包括:所述第一训练样本为用户和N个物品的属性信息,所述第一操作信息为所述用户对所述N个物品的操作信息,所述第一操作信息用于从所述N个物品中筛选N1个物品;The method according to any one of claims 1 to 5, characterized in that the first training sample is attribute information of a user and items, including: the first training sample is attribute information of a user and N items, so The first operation information is the user's operation information on the N items, and the first operation information is used to filter N1 items from the N items;
    所述方法还包括:The method also includes:
    根据所述用户和所述N1个物品中部分或全部物品的属性信息,通过第三推荐模型,预测所述用户对所述N1个物品中部分或全部物品的第五操作信息;所述第五操作信息和第六操作信息用于确定第三损失,所述第六操作信息包括根据所述用户的操作日志得到的信息;所述第三损失用于更新所述第三推荐模型,以得到所述第二推荐模型。According to the attribute information of the user and some or all of the N1 items, the fifth operation information of the user on some or all of the N1 items is predicted through a third recommendation model; the fifth The operation information and the sixth operation information are used to determine the third loss. The sixth operation information includes information obtained according to the user's operation log; the third loss is used to update the third recommendation model to obtain the Describe the second recommendation model.
  7. 根据权利要求1至6任一所述的方法,其特征在于,The method according to any one of claims 1 to 6, characterized in that,
    所述第一推荐模型为粗排模型,所述第二推荐模型为精排模型;或者,The first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model; or,
    所述第一推荐模型为召回模型,所述第二推荐模型为精排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a fine ranking model; or,
    所述第一推荐模型为召回模型,所述第二推荐模型为粗排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a coarse ranking model; or,
    所述第一推荐模型为精排模型,所述第二推荐模型为重排模型;或者,The first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model; or,
    所述第一推荐模型为粗排模型,所述第二推荐模型为重排模型;或者,The first recommendation model is a rough ranking model, and the second recommendation model is a rearrangement model; or,
    所述第一推荐模型为召回模型,所述第二推荐模型为重排模型。 The first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
  8. 根据权利要求1至7任一所述的方法,其特征在于,所述属性信息包括用户属性,所述用户属性包括如下的至少一种:The method according to any one of claims 1 to 7, characterized in that the attribute information includes user attributes, and the user attributes include at least one of the following:
    性别,年龄,职业,收入,爱好,教育程度。Gender, age, occupation, income, hobbies, education level.
  9. 根据权利要求1至8任一所述的方法,其特征在于,所述属性信息包括物品属性,所述物品属性包括如下的至少一种:The method according to any one of claims 1 to 8, characterized in that the attribute information includes item attributes, and the item attributes include at least one of the following:
    物品名称,开发者,安装包大小,品类,好评度。Item name, developer, installation package size, category, and rating.
  10. 一种数据处理装置,其特征在于,所述装置包括:A data processing device, characterized in that the device includes:
    第一预测模块,用于根据第一训练样本,通过第一推荐模型,预测所述用户对物品的第一操作信息;所述第一训练样本为用户和物品的属性信息,所述第一操作信息和第二操作信息用于确定第一损失;所述第二操作信息包括根据所述用户的操作日志得到的信息;所述第一损失用于更新所述第一推荐模型;The first prediction module is used to predict the user's first operation information on the item based on the first training sample through the first recommendation model; the first training sample is the attribute information of the user and the item, and the first operation Information and second operation information are used to determine the first loss; the second operation information includes information obtained according to the user's operation log; the first loss is used to update the first recommendation model;
    第二预测模块,用于根据第二训练样本,分别通过第二推荐模型以及所述更新后的所述第一推荐模型,预测所述用户对物品的第三操作信息以及第四操作信息;所述第二训练样本为用户和物品的属性信息,所述第一推荐模型和所述第二推荐模型为多阶段级联推荐系统中不同阶段的排序模型,所述第三操作信息和所述第四操作信息用于确定第二损失;所述第二损失用于更新所述更新后的所述第一推荐模型。The second prediction module is configured to predict the third operation information and the fourth operation information of the user on the item through the second recommendation model and the updated first recommendation model respectively according to the second training sample; The second training sample is attribute information of users and items, the first recommendation model and the second recommendation model are ranking models at different stages in a multi-stage cascade recommendation system, and the third operation information and the third The four operation information is used to determine the second loss; the second loss is used to update the updated first recommendation model.
  11. 根据权利要求10所述的装置,其特征在于,在进行模型推理时,收敛后的所述第一推荐模型输出的操作信息用于进行物品的筛选,收敛后的所述第二推荐模型用于预测用户对筛选后的物品中部分或全部物品的操作信息。The device according to claim 10, wherein when performing model inference, the operation information output by the converged first recommendation model is used to screen items, and the converged second recommendation model is used for Predict user operation information for some or all of the filtered items.
  12. 根据权利要求10或11所述的装置,其特征在于,所述第二推荐模型的复杂度大于所述第一推荐模型的复杂度;所述复杂度与如下的至少一种有关:The device according to claim 10 or 11, characterized in that the complexity of the second recommendation model is greater than the complexity of the first recommendation model; the complexity is related to at least one of the following:
    模型包括的参数的数量、模型包括的网络层的深度、模型包括的网络层的宽度、输入数据的特征维度数量。The number of parameters included in the model, the depth of the network layers included in the model, the width of the network layers included in the model, and the number of feature dimensions of the input data.
  13. 根据权利要求10至12任一所述的装置,其特征在于,The device according to any one of claims 10 to 12, characterized in that:
    所述第一训练样本包括用户、曝光物品以及未曝光物品的属性信息,所述第二操作信息包括用户对所述未曝光物品的预测操作信息、以及用户对所述曝光物品的实际操作信息,所述实际操作信息为根据所述用户的操作日志得到;或者,The first training sample includes attribute information of the user, exposed items, and unexposed items, and the second operation information includes the user's predicted operation information on the unexposed items, and the user's actual operation information on the exposed items, The actual operation information is obtained based on the user's operation log; or,
    所述第二训练样本为用户、曝光物品以及未曝光物品的属性信息。The second training sample is attribute information of users, exposed items, and unexposed items.
  14. 根据权利要求13所述的装置,其特征在于,所述预测操作信息指示所述用户对所述未曝光物品未进行操作。The device according to claim 13, wherein the predicted operation information indicates that the user has not performed any operation on the unexposed items.
  15. 根据权利要求10至14任一所述的装置,其特征在于,所述第一训练样本为用户和物品的属性信息,包括:所述第一训练样本为用户和N个物品的属性信息,所述第一操作信息为所述用户对所述N个物品的操作信息,所述第一操作信息用于从所述N个物品中筛选N1个物品;The device according to any one of claims 10 to 14, wherein the first training sample is attribute information of a user and items, including: the first training sample is attribute information of a user and N items, so The first operation information is the user's operation information on the N items, and the first operation information is used to filter N1 items from the N items;
    所述装置还包括:The device also includes:
    第三预测模块,用于根据所述用户和所述N1个物品中部分或全部物品的属性信息,通过第三推荐模型,预测所述用户对所述N1个物品中部分或全部物品的第五操作信息;所述第五操作信息和第六操作信息用于确定第三损失,所述第六操作信息包括根据所述用户的操作日志得到的信息;所述第三损失用于更新所述第三推荐模型,以得到所述第二推荐模型。A third prediction module, configured to predict the user's fifth preference for some or all of the N1 items through a third recommendation model based on the attribute information of the user and some or all of the N1 items. Operation information; the fifth operation information and the sixth operation information are used to determine the third loss, the sixth operation information includes information obtained according to the user's operation log; the third loss is used to update the third loss three recommendation models to obtain the second recommendation model.
  16. 根据权利要求10至15任一所述的装置,其特征在于, The device according to any one of claims 10 to 15, characterized in that:
    所述第一推荐模型为粗排模型,所述第二推荐模型为精排模型;或者,The first recommendation model is a rough ranking model, and the second recommendation model is a fine ranking model; or,
    所述第一推荐模型为召回模型,所述第二推荐模型为精排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a fine ranking model; or,
    所述第一推荐模型为召回模型,所述第二推荐模型为粗排模型;或者,The first recommendation model is a recall model, and the second recommendation model is a coarse ranking model; or,
    所述第一推荐模型为精排模型,所述第二推荐模型为重排模型;或者,The first recommendation model is a fine ranking model, and the second recommendation model is a rearrangement model; or,
    所述第一推荐模型为粗排模型,所述第二推荐模型为重排模型;或者,The first recommendation model is a rough ranking model, and the second recommendation model is a rearrangement model; or,
    所述第一推荐模型为召回模型,所述第二推荐模型为重排模型。The first recommendation model is a recall model, and the second recommendation model is a rearrangement model.
  17. 根据权利要求10至16任一所述的装置,其特征在于,所述属性信息包括用户属性,所述用户属性包括如下的至少一种:The device according to any one of claims 10 to 16, characterized in that the attribute information includes user attributes, and the user attributes include at least one of the following:
    性别,年龄,职业,收入,爱好,教育程度。Gender, age, occupation, income, hobbies, education level.
  18. 根据权利要求10至17任一所述的装置,其特征在于,所述属性信息包括物品属性,所述物品属性包括如下的至少一种:The device according to any one of claims 10 to 17, wherein the attribute information includes item attributes, and the item attributes include at least one of the following:
    物品名称,开发者,安装包大小,品类,好评度。Item name, developer, installation package size, category, and rating.
  19. 一种计算设备,其特征在于,所述计算设备包括存储器和处理器;所述存储器存储有代码,所述处理器被配置为获取所述代码,并执行如权利要求1至9任一所述的方法。A computing device, characterized in that the computing device includes a memory and a processor; the memory stores code, and the processor is configured to obtain the code and execute as described in any one of claims 1 to 9 Methods.
  20. 一种计算机存储介质,其特征在于,所述计算机存储介质存储有一个或多个指令,所述指令在由一个或多个计算机执行时使得所述一个或多个计算机实施权利要求1至9任一所述的方法。A computer storage medium, characterized in that the computer storage medium stores one or more instructions, which when executed by one or more computers cause the one or more computers to implement any of claims 1 to 9. The method described in 1.
  21. 一种计算机程序产品,包括代码,其特征在于,在所述代码被执行时用于实现如权利要求1至9任一所述的方法。 A computer program product comprising code, characterized in that when the code is executed, it is used to implement the method according to any one of claims 1 to 9.
PCT/CN2023/106278 2022-07-11 2023-07-07 Data processing method and related apparatus WO2024012360A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210810008.9A CN115293359A (en) 2022-07-11 2022-07-11 Data processing method and related device
CN202210810008.9 2022-07-11

Publications (1)

Publication Number Publication Date
WO2024012360A1 true WO2024012360A1 (en) 2024-01-18

Family

ID=83823251

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/106278 WO2024012360A1 (en) 2022-07-11 2023-07-07 Data processing method and related apparatus

Country Status (2)

Country Link
CN (1) CN115293359A (en)
WO (1) WO2024012360A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115293359A (en) * 2022-07-11 2022-11-04 华为技术有限公司 Data processing method and related device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113850654A (en) * 2021-10-26 2021-12-28 北京沃东天骏信息技术有限公司 Training method of item recommendation model, item screening method, device and equipment
CN113869377A (en) * 2021-09-13 2021-12-31 维沃移动通信有限公司 Training method and device and electronic equipment
CN114330654A (en) * 2021-12-23 2022-04-12 咪咕文化科技有限公司 Recommendation model training method, device, equipment and storage medium
CN114461871A (en) * 2021-12-21 2022-05-10 北京达佳互联信息技术有限公司 Recommendation model training method, object recommendation device and storage medium
US20220198289A1 (en) * 2019-09-11 2022-06-23 Huawei Technologies Co., Ltd. Recommendation model training method, selection probability prediction method, and apparatus
CN115293359A (en) * 2022-07-11 2022-11-04 华为技术有限公司 Data processing method and related device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20220198289A1 (en) * 2019-09-11 2022-06-23 Huawei Technologies Co., Ltd. Recommendation model training method, selection probability prediction method, and apparatus
CN113869377A (en) * 2021-09-13 2021-12-31 维沃移动通信有限公司 Training method and device and electronic equipment
CN113850654A (en) * 2021-10-26 2021-12-28 北京沃东天骏信息技术有限公司 Training method of item recommendation model, item screening method, device and equipment
CN114461871A (en) * 2021-12-21 2022-05-10 北京达佳互联信息技术有限公司 Recommendation model training method, object recommendation device and storage medium
CN114330654A (en) * 2021-12-23 2022-04-12 咪咕文化科技有限公司 Recommendation model training method, device, equipment and storage medium
CN115293359A (en) * 2022-07-11 2022-11-04 华为技术有限公司 Data processing method and related device

Also Published As

Publication number Publication date
CN115293359A (en) 2022-11-04

Similar Documents

Publication Publication Date Title
WO2021047593A1 (en) Method for training recommendation model, and method and apparatus for predicting selection probability
US20230088171A1 (en) Method and apparatus for training search recommendation model, and method and apparatus for sorting search results
WO2023221928A1 (en) Recommendation method and apparatus, and training method and apparatus
WO2022016556A1 (en) Neural network distillation method and apparatus
WO2024041483A1 (en) Recommendation method and related device
WO2024002167A1 (en) Operation prediction method and related apparatus
WO2023185925A1 (en) Data processing method and related apparatus
WO2024067373A1 (en) Data processing method and related apparatus
WO2024012360A1 (en) Data processing method and related apparatus
WO2024067779A1 (en) Data processing method and related apparatus
WO2023246735A1 (en) Item recommendation method and related device therefor
CN116910357A (en) Data processing method and related device
CN117217284A (en) Data processing method and device
CN116843022A (en) Data processing method and related device
CN117251619A (en) Data processing method and related device
CN117057855A (en) Data processing method and related device
WO2023050143A1 (en) Recommendation model training method and apparatus
CN116204709A (en) Data processing method and related device
CN116308640A (en) Recommendation method and related device
CN115641490A (en) Data processing method and device
CN115545738A (en) Recommendation method and related device
CN114707070A (en) User behavior prediction method and related equipment thereof
WO2023051678A1 (en) Recommendation method and related device
CN117009649A (en) Data processing method and related device
CN116523587A (en) Data processing method and related device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23838852

Country of ref document: EP

Kind code of ref document: A1