Training method of click estimation model, information recommendation method, device and equipment
Through the click prediction model training method based on the consistency constraint loss value, the problems of high manual weight adjustment cost and poor user experience in the existing technology are solved, and efficient and accurate information recommendation and user experience improvement are achieved.
Patent Information
- Application Number
- CN202310256264.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-07
- Publication Date
- 2024-09-10
AI Technical Summary
The existing technology relies on manual weight adjustment and multiple rounds of online testing in information recommendation, resulting in high labor costs, poor user experience, and difficulty in evaluating the quality of the algorithm, making it impossible to push information that meets business expectations.
A click prediction model training method based on consistency constraint loss value is adopted to automatically adjust model parameters. Through feature processing and multi-model training, labor costs are reduced, click rate prediction accuracy is improved, and business expected information push is achieved.
It reduces labor costs and trial and error costs, improves the accuracy of information recommendations and user experience, and achieves information push that meets business expectations.
Smart Images

Figure CN118626706A
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of data processing technology, and in particular to a training method for a click prediction model, an information recommendation method, a device, and an apparatus. Background Art
[0002] With the rapid development of Internet technology, information can be pushed to people by subscribing to message push or following some authors of interest. Information push can reduce the time spent on searching on the Internet by automatically transmitting information to users. It searches and filters information according to users' interests and pushes it to users regularly, helping users to discover valuable information efficiently.
[0003] In the process of recommendation, the amount of users entering and the consumption habits of users are relatively fixed, so the total exposure of various forms of content tends to be stable. However, when faced with different sorting algorithms, for example, algorithm b increases the exposure of video content compared to algorithm a, without changing the click-through rate of video content, so that the consumption of video content is increased. In addition, algorithm b also increases the click-through rate of article content compared to algorithm a, but due to the phenomenon of exposure preemption, the exposure of article content decreases by more than the increase in click-through rate, causing the consumption of articles to decrease. At this point, it is difficult to evaluate the advantages and disadvantages of algorithms a and b online.
[0004] At present, the existing technology usually involves relevant staff adjusting the weights of each form of content by estimating the scores in the downstream links of the sorting algorithm, such as the rule strategy selection link, to find an exposure ratio of each form that meets business expectations, and then evaluating the algorithm's pros and cons based on the algorithm's click-through rate at this time.
[0005] However, this method is too dependent on the search for manually adjusted weights and multiple rounds of online testing, such as AB experiments, which requires high labor costs and trial-and-error costs. In addition, this method relies on the adjusted weights after the rule strategy takes effect, and it is difficult to measure the pros and cons of the algorithm's scoring ability, resulting in an algorithm that is difficult to meet business expectations, and thus it is impossible to push information to users based on an algorithm that meets business expectations, resulting in a poor user experience. Summary of the invention
[0006] The embodiments of the present application provide a training method, information recommendation method, device, and equipment for a click prediction model, which are used to automatically adjust the model parameters of the consistency constraint during training based on the first constraint loss value, and can avoid relying on the search of weights that require manual weighting and multiple rounds of online testing, thereby reducing labor costs and trial-and-error costs. It can also use information from cross-modal content to improve the accuracy of the mixed click prediction model in estimating click rates, so as to obtain a mixed click prediction model that meets business expectations, so that information can be pushed to users based on an algorithm that meets business expectations, thereby improving the user experience.
[0007] On the one hand, an embodiment of the present application provides a method for training a click prediction model, including:
[0008] Perform feature processing on each sample behavior data of the N sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data, wherein each sample feature sequence corresponds to a sample label, and N is an integer greater than or equal to 1;
[0009] Based on the click prediction threshold, M mixed sample feature sequences are selected from N sample feature sequences, where M is an integer greater than or equal to 1 and less than or equal to N;
[0010] Input the M mixed sample feature sequences into the mixed click prediction model respectively, and output M mixed click prediction scores through the mixed click prediction model;
[0011] Input the M mixed sample feature sequences into the auxiliary click prediction model respectively, and output M auxiliary click prediction scores through the auxiliary click prediction model;
[0012] Based on the consistency constraint condition, the loss value of the M mixed click estimation scores and the M auxiliary click estimation scores is calculated to obtain the first constraint loss value;
[0013] Based on the first constraint loss value, the model parameters of the mixed click prediction model are updated.
[0014] On the one hand, an embodiment of the present application provides an information recommendation method based on a click prediction model, including:
[0015] Perform feature processing on the N behavior data to be processed corresponding to the N information to be recommended, and obtain a target feature sequence corresponding to each behavior data to be processed;
[0016] Based on the click prediction threshold, M target mixed feature sequences are selected from N target feature sequences, where M is an integer greater than or equal to 1 and less than or equal to N;
[0017] Input the M target shuffle feature sequences into the above shuffle click prediction model respectively, and output M candidate shuffle click prediction scores through the shuffle click prediction model;
[0018] Based on the mixed order click estimation threshold, K target mixed order click estimation scores are selected from the M candidate mixed order click estimation scores, where K is an integer greater than or equal to 1 and less than or equal to M;
[0019] The to-be-recommended information corresponding to the estimated click scores of the K targets are mixed and determined as K target recommendation information, and the K target recommendation information is pushed to the to-be-recommended objects.
[0020] On the other hand, the present application provides a method and apparatus for training a click prediction model, comprising:
[0021] A processing unit, used to perform feature processing on each sample behavior data of the N sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data, wherein each sample feature sequence corresponds to a sample label, and N is an integer greater than or equal to 1;
[0022] An acquisition unit, used to select M mixed sample feature sequences from N sample feature sequences based on a click estimation threshold, where M is an integer greater than or equal to 1 and less than or equal to N;
[0023] The processing unit is further used to input the M mixed sample feature sequences into the mixed click prediction model respectively, and output M mixed click prediction scores through the mixed click prediction model;
[0024] The processing unit is further used to input the M mixed sample feature sequences into the auxiliary click prediction model respectively, and output M auxiliary click prediction scores through the auxiliary click prediction model;
[0025] The processing unit is further used to calculate the loss value of the M mixed click estimation scores and the M auxiliary click estimation scores based on the consistency constraint condition to obtain a first constraint loss value;
[0026] An updating unit is used to update the model parameters of the mixed click prediction model based on the first constraint loss value.
[0027] In a possible design, in an implementation of another aspect of the embodiment of the present application,
[0028] The processing unit is further used to calculate the loss value of the M mixed click estimated scores based on the difference constraint condition to obtain the difference loss value;
[0029] The updating unit may be specifically configured to update the model parameters of the mixed click prediction model based on the first constraint loss value and the difference loss value.
[0030] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:
[0031] Based on the sample labels, a content click prediction model is determined, and the sample feature sequence corresponding to the sample label is input into the content click prediction model, and the content click prediction model outputs the click prediction score corresponding to the sample feature sequence;
[0032] From the N sample feature sequences, sample feature sequences whose click prediction scores are greater than or equal to the click prediction threshold are screened to obtain M mixed sample feature sequences.
[0033] In a possible design, in an implementation of another aspect of the embodiment of the present application,
[0034] The processing unit is further used to calculate the loss value of the M mixed click estimated scores and the click estimated score based on the consistency constraint condition to obtain a second constraint loss value;
[0035] The updating unit is further used to update the model parameters of the mixed click prediction model based on the second constraint loss value.
[0036] In a possible design, in an implementation of another aspect of the embodiment of the present application,
[0037] The acquisition unit is also used to obtain the sample click rate corresponding to each sample behavior data;
[0038] The processing unit is further used to calculate the loss value of the M mixed click estimation scores and the sample click rate based on the consistency constraint condition to obtain a third constraint loss value;
[0039] The updating unit is further used to update the model parameters of the mixed click prediction model based on the third constraint loss value.
[0040] In a possible design, in an implementation of another aspect of the embodiment of the present application, the acquisition unit may be specifically used to:
[0041] When the sample label is a picture and text label, determine the picture and text content click estimation model, and input the sample feature sequence corresponding to the picture and text label into the picture and text content click estimation model, and output the picture and text click estimation score corresponding to the sample feature sequence through the picture and text content click estimation model;
[0042] When the sample label is an audio or video label, determine the audio or video content click prediction model, and input the sample feature sequence corresponding to the audio or video label into the audio or video content click prediction model, and output the audio or video click prediction score corresponding to the sample feature sequence through the audio or video content click prediction model;
[0043] The acquisition unit can be specifically used to: select sample feature sequences whose image and text click prediction scores and audio and video click prediction scores are greater than or equal to the click prediction threshold from N sample feature sequences to obtain M mixed sample feature sequences.
[0044] In a possible design, in an implementation of another aspect of the embodiment of the present application,
[0045] The updating unit is further used to calculate the image and text loss value based on the image and text label and the image and text click prediction score, and update the model parameters of the image and text content click prediction model based on the image and text loss value;
[0046] The updating unit is also used to calculate the audio and video loss value based on the audio and video tags and the audio and video click prediction score, and update the model parameters of the audio and video content click prediction model based on the audio and video loss value.
[0047] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:
[0048] Acquire a sample feature field of the information source object corresponding to the sample behavior data, wherein the sample feature field is used to describe the attribute features between each information source object and the sample recommendation information;
[0049] Based on the information source object and the sample feature field, feature processing is performed on the sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data.
[0050] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:
[0051] Based on the sample labels, determine the text-and-picture mixed click estimated score corresponding to the text-and-picture sample label, the number of text-and-picture mixed click estimated scores corresponding to the text-and-picture mixed click estimated scores, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated scores corresponding to the audio-and-video mixed click estimated scores from the M mixed click estimated scores;
[0052] Based on the sample labels, determine the estimated image and text assisted click score corresponding to the image and text sample label, the number of image and text assisted clicks corresponding to the estimated image and text assisted click score, the estimated audio and video assisted click score corresponding to the audio and video sample label, and the number of audio and video assisted clicks corresponding to the estimated audio and video assisted click score from the M estimated assisted click scores;
[0053] Based on the estimated click score of mixed text and image and the number of mixed text and image, the average of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the average of mixed audio and video is calculated;
[0054] Based on the estimated click score of the image and text assistance and the number of image and text assistance, the mean of the image and text assistance is calculated, and based on the estimated click score of the audio and video assistance and the number of audio and video assistance, the mean of the audio and video assistance is calculated;
[0055] The loss values are calculated for the image and text mixed mean, the audio and video mixed mean, the image and text auxiliary mean, and the audio and video auxiliary mean to obtain the first constrained loss value.
[0056] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:
[0057] Based on the estimated click score of mixed text and image and the number of mixed text and image, the standard deviation of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the standard deviation of mixed audio and video is calculated;
[0058] Based on the estimated click score of the image and text assistance and the number of image and text assistance, the standard deviation of the image and text assistance is calculated, and based on the estimated click score of the audio and video assistance and the number of audio and video assistance, the standard deviation of the audio and video assistance is calculated;
[0059] The loss values are calculated for the standard deviation of image and text mixing, the mean of image and text mixing, the standard deviation of audio and video mixing, the mean of audio and video mixing, the standard deviation of image and text auxiliary, the mean of image and text auxiliary, the standard deviation of audio and video auxiliary, and the mean of audio and video auxiliary to obtain the difference loss value.
[0060] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:
[0061] Based on the sample labels, determine the text-and-picture mixed click estimated score corresponding to the text-and-picture sample label, the number of text-and-picture mixed click estimated scores corresponding to the text-and-picture mixed click estimated scores, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated scores corresponding to the audio-and-video mixed click estimated scores from the M mixed click estimated scores;
[0062] Based on the sample labels, determine the estimated click score of the image and text corresponding to the image and text sample label, the number of images and texts corresponding to the estimated click score of the image and text, the estimated click score of the audio and video corresponding to the audio and video sample label, and the number of audio and video corresponding to the estimated click score of the audio and video;
[0063] Based on the estimated click score of mixed text and image and the number of mixed text and image, the average of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the average of mixed audio and video is calculated;
[0064] Calculate the average of images and texts based on the estimated click scores of images and texts and the number of images and texts, and calculate the average of audio and video based on the estimated click scores of audio and video and the number of audio and video;
[0065] When the consistency constraint condition is a consistency constraint of the mean score of the image and text, the loss value is calculated for the mixed image and text mean, the mixed audio and video mean, and the image and text mean to obtain a second constraint loss value;
[0066] When the consistency constraint condition is the consistency constraint of the mean audio and video score, the loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the audio and video mean to obtain a second constraint loss value.
[0067] In a possible design, in an implementation of another aspect of the embodiment of the present application, the processing unit may be specifically used for:
[0068] Based on the sample labels, determine the text-and-picture mixed click estimated score corresponding to the text-and-picture sample label, the number of text-and-picture mixed click estimated scores corresponding to the text-and-picture mixed click estimated scores, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated scores corresponding to the audio-and-video mixed click estimated scores from the M mixed click estimated scores;
[0069] Based on the sample labels, determine the image and text sample click rate corresponding to the image and text sample label, the number of image and text samples corresponding to the image and text sample click rate, the audio and video sample click rate corresponding to the audio and video sample label, and the number of audio and video samples corresponding to the audio and video sample click rate from the N sample click rates;
[0070] Based on the estimated click score of mixed text and image and the number of mixed text and image, the average of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the average of mixed audio and video is calculated;
[0071] Calculate the average of image and text clicks based on the image and text sample click rate and the number of image and text samples, and calculate the average of audio and video clicks based on the audio and video sample click rate and the number of audio and video samples;
[0072] When the consistency constraint condition is the consistency constraint of the mean score of the image and text, the loss value is calculated for the mean of the mixed arrangement of images and texts, the mean of the mixed arrangement of audio and video, and the mean of the clicks of images and texts to obtain the third constraint loss value;
[0073] When the consistency constraint condition is the consistency constraint of the mean audio and video score, the loss value is calculated for the mean of mixed text and image, the mean of mixed audio and video, and the mean of audio and video clicks to obtain the third constraint loss value.
[0074] On the other hand, the present application provides an information recommendation device based on a ranking model, comprising:
[0075] A processing unit, used to perform feature processing on the N behavior data to be processed corresponding to the N information to be recommended, to obtain a target feature sequence corresponding to each behavior data to be processed;
[0076] An acquisition unit, configured to select M target shuffle feature sequences from N target feature sequences based on a click estimation threshold, wherein M is an integer greater than or equal to 1 and less than or equal to N;
[0077] The processing unit is further used to input the M target shuffle feature sequences into the shuffle click prediction model, respectively, and output M candidate shuffle click prediction scores through the shuffle click prediction model;
[0078] The acquisition unit is further used to select K target mixed order click estimation scores from the M candidate mixed order click estimation scores based on the mixed order click estimation threshold, where K is an integer greater than or equal to 1 and less than or equal to M;
[0079] The push unit is used to determine the to-be-recommended information corresponding to the K target mixed click estimated scores as K target recommendation information, and push the K target recommendation information to the to-be-recommended objects.
[0080] On the other hand, the present application provides a computer device, including: a memory, a processor, and a bus system;
[0081] Wherein, the memory is used to store programs;
[0082] The processor is used to implement the above-mentioned methods when executing the program in the memory;
[0083] The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.
[0084] Another aspect of the present application provides a computer-readable storage medium, in which instructions are stored. When the computer-readable storage medium is run on a computer, the computer is enabled to execute the above-mentioned methods.
[0085] It can be seen from the above technical solutions that the embodiments of the present application have the following beneficial effects:
[0086] By performing feature processing on N sample behavior data, a sample feature sequence corresponding to each sample behavior data can be obtained. Then, based on the click prediction threshold, M mixed sample feature sequences can be selected from the N sample feature sequences, and then the M mixed sample feature sequences are respectively input into the mixed click prediction model, and M mixed click prediction scores are output through the mixed click prediction model. At the same time, the M mixed sample feature sequences are respectively input into the auxiliary click prediction model, and M auxiliary click prediction scores are output through the auxiliary click prediction model. Then, based on the consistency constraint condition, the loss value of the M mixed click prediction scores and the M auxiliary click prediction scores can be calculated to obtain the first constraint loss value, and based on the first constraint loss value, the model parameters of the mixed click prediction model are updated. Through the above method, M mixed sample feature sequences can be screened first and used as feature inputs for model training of the mixed click prediction model and the auxiliary click prediction model, respectively, which can reduce the computational overhead of the mixed click prediction model and reduce the time cost. Furthermore, based on the consistency constraint condition, the mixed click prediction score of each content of the image, text and audio and video sharing model to be trained, i.e., the mixed click prediction model, can be fitted with an auxiliary click model for each content, in which the score size of each content is relatively balanced and the exposure of each content meets business expectations. The auxiliary click prediction score of each content can be automatically adjusted based on the first constraint loss value during training. The model parameters of the consistency constraint can be avoided, and the search for weights that rely on manual weighting and multiple rounds of online testing can be avoided, thereby reducing labor costs and trial and error costs. The information of cross-modal content can also be used to improve the accuracy of the estimated click rate of the mixed click prediction model, so as to obtain a mixed click prediction model that meets business expectations, so that information can be pushed to users based on an algorithm that meets business expectations in the future, thereby improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0087] Figure 1 This is a schematic diagram of the architecture of a data object control system in an embodiment of the present application;
[0088] Figure 2 is a flow chart of an embodiment of a training method for a click prediction model in an embodiment of the present application;
[0089] Figure 3 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0090] Figure 4 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0091] Figure 5 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0092] Figure 6 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0093] Figure 7 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0094] Figure 8 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0095] Fig. 9 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0096] Fig.10 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0097] Fig.11 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0098] Fig.12 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0099] Fig.13 is another embodiment flow chart of the training method of the click prediction model in the embodiment of the present application;
[0100] Fig.14 This is a flow chart of an embodiment of the information recommendation method based on the click prediction model in the embodiment of the present application;
[0101] Fig.15 It is a schematic diagram of a principle flow chart of a training method for a click prediction model in an embodiment of the present application;
[0102] Fig.16 It is a training process diagram of a click prediction model training method based on an auxiliary click prediction model in an embodiment of the present application;
[0103] Fig.17 It is another principle flow chart of the training method of the click prediction model in the embodiment of the present application;
[0104] Fig.18 is a schematic diagram of an embodiment of a training device for a click prediction model in an embodiment of the present application;
[0105] Fig.19 is a schematic diagram of an embodiment of an information recommendation device based on a ranking model in an embodiment of the present application;
[0106] Fig. 20It is a schematic diagram of an embodiment of a computer device in an embodiment of the present application. DETAILED DESCRIPTION
[0107] The embodiments of the present application provide a training method, information recommendation method, device, and equipment for a click prediction model, which are used to automatically adjust the model parameters of the consistency constraint during training based on the first constraint loss value, and can avoid relying on the search of weights that require manual weighting and multiple rounds of online testing, thereby reducing labor costs and trial-and-error costs. It can also use information from cross-modal content to improve the accuracy of the mixed click prediction model in estimating click rates, so as to obtain a mixed click prediction model that meets business expectations, so that information can be pushed to users based on an algorithm that meets business expectations, thereby improving the user experience.
[0108] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the 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 data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein, for example. In addition, the terms "including" and "corresponding to" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0109] It is understandable that in the specific implementation of this application, related data such as sample behavior data are involved. When the above embodiments of this application are applied to specific products or technologies, user permission or consent is required, and the collection, use and processing of relevant data need to comply with relevant laws, regulations and standards of relevant countries and regions.
[0110] It can be understood that the training method of the click prediction model disclosed in the present application specifically involves an Intelligent Vehicle Infrastructure Cooperative System (IVICS), and the Intelligent Vehicle Infrastructure Cooperative System is further introduced below. The Intelligent Vehicle Infrastructure Cooperative System is referred to as the Vehicle Infrastructure Cooperative System, which is a development direction of the Intelligent Transportation System (ITS). The vehicle-road cooperative system adopts advanced wireless communications and new generation Internet technologies to implement dynamic real-time information interaction between vehicles and roads in all directions, and carries out active vehicle safety control and road cooperative management based on the collection and integration of dynamic traffic information in all time and space, fully realizing the effective coordination of people, vehicles and roads, ensuring traffic safety, and improving traffic efficiency, thereby forming a safe, efficient and environmentally friendly road traffic system.
[0111] It is understandable that the training method of the click prediction model disclosed in the present application also involves artificial intelligence (AI) technology, which is further introduced below. Artificial intelligence is the 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 comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that the machines have the functions of perception, reasoning and decision-making.
[0112] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. The basic technologies of artificial intelligence generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operation / interaction systems, mechatronics and other technologies. Artificial intelligence software technology mainly includes computer vision technology, speech processing technology, natural language processing technology, and machine learning / deep learning.
[0113] Secondly, natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.
[0114] Secondly, Machine Learning (ML) is a multi-disciplinary interdisciplinary subject, involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.
[0115] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.
[0116] It should be understood that the training method of the click prediction model provided in the present application can be applied to various scenarios, including but not limited to artificial intelligence, cloud technology, maps, smart transportation, etc., and is used for consistency constraints so that the mixed click prediction model can fit the auxiliary click prediction score of each content for the mixed click prediction model, and automatically adjust the model parameters of the consistency constraint during training to complete the optimization of the mixed click prediction model, so as to better push information to users, and apply it to scenarios such as picture and text message push scenarios, audio and video message push scenarios, advertising recommendation scenarios, map recommendation scenarios, and the like.
[0117] In order to solve the above problems, this application proposes a training method for a click prediction model. Figure 1 The data object control system shown is shown in Figure 1 , Figure 1 FIG. 1 is a schematic diagram of an architecture of a data object control system in an embodiment of the present application. Figure 1As shown, the sample behavior data provided by the terminal device is obtained through the server, and the server performs feature processing on N sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data. Then, based on the click prediction threshold, M mixed sample feature sequences can be selected from the N sample feature sequences, and then the M mixed sample feature sequences are respectively input into the mixed click prediction model, and M mixed click prediction scores are output through the mixed click prediction model. At the same time, the M mixed sample feature sequences are respectively input into the auxiliary click prediction model, and M auxiliary click prediction scores are output through the auxiliary click prediction model. Then, based on the consistency constraint condition, the loss value calculation can be performed on the M mixed click prediction scores and the M auxiliary click prediction scores to obtain the first constraint loss value, and based on the first constraint loss value, the model parameters of the mixed click prediction model are updated. Through the above method, M mixed sample feature sequences can be screened first and used as feature inputs for model training of the mixed click prediction model and the auxiliary click prediction model, respectively, which can reduce the computational overhead of the mixed click prediction model and reduce the time cost. Furthermore, based on the consistency constraint condition, the mixed click prediction score of each content by the image, text and audio and video sharing model to be trained, i.e., the mixed click prediction model, can be fitted with an auxiliary click model for each content, in which the score size of each content is relatively balanced and the exposure of each content meets business expectations. The auxiliary click prediction score of each content can be automatically adjusted based on the first constraint loss value during training. The model parameters of the consistency constraint can be avoided, and the search for weights that rely on manual weighting and multiple rounds of online testing can be avoided, thereby reducing labor costs and trial and error costs. The information of cross-modal content can also be used to improve the accuracy of the mixed click prediction model for the estimated click rate, so as to obtain a mixed click prediction model that meets business expectations, so that information can be pushed to users based on an algorithm that meets business expectations in the future, thereby improving the user experience.
[0118] Understandably, Figure 1 Only one type of terminal device is shown in the figure. In actual scenarios, more types of terminal devices may participate in the data processing process. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, car terminals, etc. The specific number and type depend on the actual scenario and are not limited here. Figure 1 One server is shown in the figure, but in actual scenarios, multiple servers may also be involved, especially in the scenario of multi-model training interaction. The number of servers depends on the actual scenario and is not limited here.
[0119] It should be noted that in this embodiment, the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms. The terminal device and the server can be directly or indirectly connected through wired or wireless communication, and the terminal device and the server can be connected to form a blockchain network, which is not limited in this application.
[0120] Combined with the above introduction, the following will introduce the training method of the click estimation model in this application. Please refer to Figure 2 In one embodiment of the present application, a method for training a click prediction model includes:
[0121] In step S101, feature processing is performed on each sample behavior data of N sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data, wherein each sample feature sequence corresponds to a sample label, and N is an integer greater than or equal to 1;
[0122] In an embodiment of the present application, if a sample object follows or subscribes to a work creator account (such as a basketball sharing blogger), or follows or subscribes to a message push account (such as a public account or a video account, etc.), or after the sample object uses an application that supports functions such as information push or information retrieval, then sample recommendation information such as original works, film and television works, applications or products that are suitable for the sample object or that the sample object may be interested in can be regularly recommended to the sample object. Therefore, N sample behavior data about the sample recommendation information of the sample object can be obtained first, and then, each of the N sample behavior data can be feature processed to obtain a sample feature sequence corresponding to each sample behavior data that is convenient for model learning and computer recognition.
[0123] The sample behavior data may come from two different information sources, for example, text advertisements or product posters from public accounts, or promotional videos from video accounts, etc. Each sample feature sequence may correspond to a sample label, wherein the sample label includes graphic labels (for example, whether the user clicks on the article), audio and video labels (for example, whether the user clicks on the video), etc.
[0124] Specifically, Fig.15As shown, if a sample object follows or subscribes to a work creator account (such as a basketball sharing blogger) through a multimedia information sharing platform, or follows or subscribes to a message push account (such as a public account or video account, etc.), or the sample object uses an application that supports functions such as information push or information retrieval, then sample recommendation information such as original works, film and television works, applications or products that are suitable for the sample object or that the sample object may be interested in can be regularly recommended to the sample object. Furthermore, N sample behavior data about the sample recommendation information within a historical time period (such as the past week) can be extracted from the behavior log generated by the operation behavior of the sample object recorded by the multimedia information sharing platform. For example, the number of times the sample object S clicked, browsed or watched the sample recommendation information W, such as a promotional video of a sweeping robot, and the number of times the sample recommendation information S, such as two graphic promotional advertisements of a smart speaker, in the past week, can obtain 3 sample behavior data corresponding to the sample object S.
[0125] For example, a sample object X is exposed to the following two pieces of sample behavior data of public accounts and one piece of sample behavior data of video accounts, that is, three pieces of sample behavior data:
[0126] 1)(user id = 100, sample recommendation information ID = 01, sample object interest = news, sample object weekly click rate = 0.05, public account weekly click rate = 0.07, video account weekly click rate = 0);
[0127] 2)(user id = 100, sample recommendation information ID = 02, sample object interest = news, sample object weekly click rate = 0.05, public account weekly click rate = 0.02, video account weekly click rate = 0);
[0128] 3)(user id = 100, sample recommendation information ID = 03, sample object interest = news, sample object weekly click rate = 0.05, public account weekly click rate = 0, video account weekly click rate = 0.2).
[0129] Furthermore, after obtaining N sample behavior data, feature processing can be performed on each of the N sample behavior data. Specifically, feature grouping and feature extraction can be performed on each sample behavior data based on the information object described by the feature (such as sample object, graphic information, audio and video information, behavior sequence, etc.) and the sample feature field of the information source object corresponding to the sample behavior data (for example, sample object ID, sample recommendation information ID, sample object interest category, exposure click rate of the sample object in the past week, exposure click rate of the public account in the past week, and exposure click rate of the video account in the past week, etc.). Then, the feature extracted from the grouping, such as Fig.15The object features, i.e., sample object features, article item features, i.e., image and text sample features, and video item features, i.e., audio and video sample features, are respectively vectorized to obtain feature sequences corresponding to each feature, so as to obtain sample feature sequences corresponding to each sample behavior data.
[0130] It is understandable that for a given sample recommendation information and sample object, the relevant features of the sample recommendation information and the sample object always have values. Since all content needs to be sorted uniformly, for example, when the "sample recommendation information" is a public account article, the public account related features are as follows: Fig.15 The article item features indicated have values, and the video account related features are as follows Fig.15 The video item features shown are all default values (usually 0); or, when the "sample recommendation information" is video information, the video number features are as follows Fig.15 The video item features shown have values, and the public account related features are as follows Fig.15 The article item features shown are all default values (usually 0).
[0131] In step S102, based on the click prediction threshold, M mixed sample feature sequences are selected from N sample feature sequences, where M is an integer greater than or equal to 1 and less than or equal to N;
[0132] In an embodiment of the present application, after obtaining N sample feature sequences, M mixed sample feature sequences can be selected from the N sample feature sequences based on the click estimation threshold, so that the M mixed sample feature sequences can be used as feature inputs of the model to be trained, which can reduce the computational overhead of the model to be trained and reduce the time cost.
[0133] The click prediction threshold is set according to actual application requirements and is not specifically limited here.
[0134] Specifically, Fig.15 As shown, after obtaining N sample feature sequences, a suitable content click prediction model can be selected for each sample feature sequence based on the sample label, and then the sample feature sequence corresponding to the sample label can be input into the corresponding content click prediction model. The click prediction score corresponding to the sample feature sequence can be output by the content click prediction model, and then the N click prediction scores can be compared with the click prediction threshold respectively. Then, from the N sample feature sequences, the sample feature sequences with click prediction scores greater than or equal to the click prediction threshold are screened as mixed sample feature sequences, so that M mixed sample feature sequences can be obtained.
[0135] In step S103, the M mixed sample feature sequences are respectively input into the mixed click prediction model, and the mixed click prediction model outputs M mixed click prediction scores;
[0136] In an embodiment of the present application, after obtaining M mixed sample feature sequences, the M mixed sample feature sequences can be respectively input into a mixed click prediction model, and then, M mixed click prediction scores are output through the mixed click prediction model, so that the first constraint loss value can be calculated based on the mixed click prediction scores to optimize the mixed click prediction model and improve the accuracy of the mixed click prediction model in estimating the click rate.
[0137] The mixed click prediction model may specifically be composed of an embedding layer and a plurality of multi-layer perceptron MLP layers, or may be other network structures, which are not specifically limited here.
[0138] Specifically, Fig.15 as well as Fig.16 As shown, after obtaining M mixed sample feature sequences, the M mixed sample feature sequences can be respectively input into the mixed click prediction model, wherein the M mixed sample feature sequences are respectively used as input features and are mapped through the Embedding layer, and a low-dimensional feature (denseembeddings) in the real number domain can be learned, and then, can be used as the input of a multi-hidden layer (hidden layers) neural network model, and then, a scalar value (output units) with a value of 0-1 corresponding to each mixed sample feature sequence is output through the multi-hidden layer model, that is, the mixed click prediction score, which is used to estimate the mixed click probability of the sample object for the given sample recommendation information.
[0139] In step S104, the M mixed sample feature sequences are respectively input into the auxiliary click prediction model, and the auxiliary click prediction model outputs M auxiliary click prediction scores;
[0140] In an embodiment of the present application, after obtaining M mixed sample feature sequences, the M mixed sample feature sequences can be respectively input into the auxiliary click prediction model, and then, the M mixed click prediction scores are output through the auxiliary click prediction model, so that the first constraint loss value can be calculated based on the auxiliary click prediction scores to optimize the mixed click prediction model and improve the accuracy of the mixed click prediction model in estimating the click rate.
[0141] Among them, the auxiliary click prediction model is a click prediction model that ensures that the exposure of each content meets business expectations, that is, a relatively balanced score for each content. It can also be composed of an embedding layer and multiple multi-layer perceptron MLP layers, or other network structures, and there is no specific restriction here.
[0142] It is understandable that, assuming there is content A corresponding to a mixed sample feature sequence and content B corresponding to another mixed sample feature sequence, the relative change in the exposure of content A relative to the other content B depends on the change in the overall score value of the mixed sample feature sequence corresponding to content A by the mixed click prediction model relative to the overall score value of the mixed sample feature sequence corresponding to content B by the mixed click prediction model. For example, if a new mixed click prediction model to be trained, while improving the click-through rate of videos, in order to increase the estimated score of video content (in an overall sense), thus preempting the exposure of graphic content, resulting in a decrease in the consumption of graphic content, it will make it difficult to subsequently evaluate whether the mixed click prediction model is better than the existing historical click prediction model in terms of full content prediction.
[0143] Therefore, this embodiment introduces a click prediction model in which the exposure of each content meets business expectations, namely, an auxiliary click prediction model, to assist in training the mixed click prediction model, and output an additional score for auxiliary training, namely, an auxiliary click prediction score.
[0144] Specifically, Fig.16 As shown, after obtaining M mixed sample feature sequences, the M mixed sample feature sequences can be respectively input into the auxiliary click prediction model, wherein the M mixed sample feature sequences are respectively used as input features and are mapped through the Embedding layer, and a low-dimensional feature (dense embeddings) in the real number domain can be learned, and then, can be used as the input of a multi-hidden layer (hidden layers) neural network model, and then, a scalar value (output units) with a value of 0-1 corresponding to each mixed sample feature sequence is output through the multi-hidden layer model, that is, the auxiliary click prediction score, which is used to estimate the auxiliary click probability of the sample object for the given sample recommendation information.
[0145] In step S105, based on the consistency constraint condition, the loss value of the M mixed click estimation scores and the M auxiliary click estimation scores is calculated to obtain a first constraint loss value;
[0146] In an embodiment of the present application, after obtaining M mixed click estimation scores and M auxiliary click estimation scores, in order to be able to better optimize the mixed click estimation model, the loss values of the M mixed click estimation scores and the M auxiliary click estimation scores can be calculated based on the consistency constraint condition to obtain the first constraint loss value, so that the mixed click estimation model can be optimized based on the first constraint loss value in the future to improve the accuracy of the mixed click estimation model in estimating the click rate, and to obtain a mixed click estimation model that better meets the expected business requirements, so as to be able to better meet the expected business requirements and recommend information to users.
[0147] The consistency constraint condition may be specifically expressed as a consistency constraint on the mean score, or may be expressed as other consistency constraints, which are not specifically limited here.
[0148] It can be understood that both the mixed click prediction model and the auxiliary click prediction model can accept sample labels as the target of fitting learning, and use the conventional cross entropy loss function for optimization. And because the auxiliary click prediction model meets business expectations for the exposure of each content, it means that the auxiliary click prediction model's estimated click scores for each content (such as graphic information, audio and video information, etc.) are relatively balanced, and because the mean can be used as a statistic to describe the overall size of the score. Therefore, this embodiment can require the mixed click prediction model to have a mean score for the graphic content in an input sample batch, fit the auxiliary click prediction model to have a mean score for the graphic content in an input sample batch, and require the mixed click prediction model to have a mean score for the audio and video content in an input sample batch, and fit the auxiliary click prediction model to have a mean score for the audio and video content in an input sample batch. Specifically, it can be based on sample labels, first from M mixed click prediction scores. , determine the text-image mixed click estimated score corresponding to the text-image mixed click estimated score, the text-image mixed number corresponding to the text-image mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed number corresponding to the audio-video mixed click estimated score. At the same time, based on the sample label, from the M auxiliary click estimated scores, the text-image auxiliary click estimated score corresponding to the text-image sample label, the text-image auxiliary number corresponding to the text-image auxiliary click estimated score, the audio-video auxiliary click estimated score corresponding to the audio-video sample label, and the audio-video auxiliary number corresponding to the audio-video auxiliary click estimated score can be determined.
[0149] Furthermore, the image-text mixed mean can be calculated based on the image-text mixed click prediction score and the number of image-text mixed, and the audio-video mixed mean can be calculated based on the audio-video mixed click prediction score and the number of audio-video mixed. At the same time, the image-text auxiliary mean can be calculated based on the image-text auxiliary click prediction score and the number of image-text auxiliary, and the audio-video auxiliary mean can be calculated based on the audio-video auxiliary click prediction score and the number of audio-video auxiliary. Then, based on the consistency constraint on the score mean, the loss value of the image-text mixed mean, the audio-video mixed mean, the image-text auxiliary mean and the audio-video auxiliary mean can be calculated to obtain the first constraint loss value, so that the model parameters of the mixed click prediction model can be optimized based on the first constraint loss value. This can not only make the optimized mixed click prediction model more in line with business requirements and expectations, but also better evaluate whether the optimized mixed click prediction model is better than the existing historical click prediction model in full content prediction.
[0150] In step S106, based on the first constraint loss value, the model parameters of the mixed click prediction model are updated.
[0151] In an embodiment of the present application, after obtaining the first constraint loss value, the model parameters of the mixed arrangement click prediction model can be optimized based on the first constraint loss value. Not only can the relative size of the average score of each content by the mixed arrangement auxiliary model be controlled through consistency constraints to keep it similar or consistent with the auxiliary click prediction model to obtain similar online exposure performance, thereby better meeting the expectations of business requirements, but it can also better evaluate whether the optimized mixed arrangement click prediction model is better than the existing historical click prediction model in full content prediction.
[0152] Specifically, after obtaining the first constraint loss value, the model parameters of the mixed click prediction model can be optimized based on the first constraint loss value. Specifically, based on the first constraint loss value, the model parameters of the mixed click prediction model can be iteratively updated using a back propagation algorithm until the model parameter update tends to be stable and the mixed click prediction model converges. Other algorithms can also be used to optimize the model parameters of the mixed click prediction model, and no specific restrictions are made here.
[0153] In an embodiment of the present application, a training method for a click prediction model is provided. Through the above-mentioned method, M mixed sample feature sequences can be first screened and used as feature inputs for model training of a mixed click prediction model and an auxiliary click prediction model, respectively, so as to reduce the computational overhead of the mixed click prediction model and reduce the time cost. Furthermore, based on the consistency constraint condition, the mixed click prediction score of each content of the image, text and audio and video sharing model to be trained, i.e., the mixed click prediction model, can be fitted with an auxiliary click model for each content, in which the score size of each content is relatively balanced and the exposure of each content meets business expectations. The auxiliary click prediction score of each content can be automatically adjusted based on the first constraint loss value during training, and the search for weights that rely on manual weighting and multiple rounds of online testing can be avoided, thereby reducing labor costs and trial and error costs. The accuracy of the mixed click prediction model for the estimated click rate can also be improved by using information from cross-modal content, so as to obtain a mixed click prediction model that meets business expectations, so that information can be pushed to users based on an algorithm that meets business expectations in the future, thereby improving the user experience.
[0154] Optionally, in the above Figure 2 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Figure 3 As shown, step S105 calculates the loss value of M mixed click estimated scores and M auxiliary click estimated scores based on the consistency constraint condition, and after obtaining the first constraint loss value, the method further includes: step S301; and step S106 includes: step S302;
[0155] In step S301, based on the difference constraint condition, the loss value of M mixed click estimation scores is calculated to obtain the difference loss value;
[0156] In step S302, based on the first constraint loss value and the difference loss value, the model parameters of the mixed click prediction model are updated.
[0157] In an embodiment of the present application, after obtaining the first constraint loss value, the loss value of M mixed click prediction scores can be calculated based on the difference constraint condition to obtain the difference loss value. Then, the model parameters of the mixed click prediction model can be updated based on the first constraint loss value and the difference loss value. Not only can the relative size of the mean score of each content by the mixed auxiliary model be controlled through consistency constraints to keep it similar or consistent with the auxiliary click prediction model to obtain similar online exposure performance, thereby better meeting the expectations of business requirements, but the difference constraints can also be used to control the mixed click prediction model so that it will not lose its own discrimination ability due to overfitting the auxiliary click prediction model.
[0158] The difference constraint condition may be specifically expressed as a difference constraint on score distribution, or may be expressed as other difference constraints, which are not specifically limited here.
[0159] It is understandable that under the consistency constraint of the average score that can distinguish between graphic content and audio and video content, over-optimization can easily cause the mixed click prediction model's score for each content (i.e., information to be recommended) to completely tend towards the auxiliary click prediction model, thereby reducing the discrimination ability of the mixed click prediction model.
[0160] Furthermore, since the coefficient of variation is a statistic that can be used to describe the discriminative ability of the score distribution, the coefficient of variation can be obtained by dividing the standard deviation by the mean, and is used to measure the degree of discreteness of random variables of different magnitudes. Therefore, this embodiment introduces constraints on the difference constraints on the score distribution, and requires the mixed click prediction model to calculate the standard deviation of the scores of the text and image content in an input sample batch, and to fit the auxiliary click prediction model to calculate the standard deviation of the scores of the text and image content in an input sample batch, and requires the mixed click prediction model to calculate the standard deviation of the scores of the audio and video content in an input sample batch, and to fit the auxiliary click prediction model to calculate the standard deviation of the scores of the audio and video content in an input sample batch. Specifically, the standard deviation of the mixed text and image click prediction score and the number of mixed text and image can be calculated, and the standard deviation of the mixed text and image click prediction score can be calculated based on the audio and video content. The video mixing click estimation score and the audio and video mixing number are used to calculate the audio and video mixing standard deviation. At the same time, based on the image and text auxiliary click estimation score and the image and text auxiliary number, the image and text auxiliary standard deviation is calculated, and based on the audio and video auxiliary click estimation score and the audio and video auxiliary number, the audio and video auxiliary standard deviation is calculated. Then, based on the difference constraint on the score distribution, the image and text mixing standard deviation, image and text mixing mean, audio and video mixing standard deviation, audio and video mixing mean, image and text auxiliary standard deviation, image and text auxiliary mean, audio and video auxiliary standard deviation and audio and video auxiliary mean are calculated for loss values to obtain the difference loss value, so that the model parameters of the mixed click estimation model can be optimized based on the first constraint loss value and the difference loss value. This can not only make the optimized mixed click estimation model more in line with business requirements and expectations, but also avoid overfitting of the model.
[0161] Optionally, in the above Figure 2 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Figure 4 As shown, step S102 selects M mixed sample feature sequences from N sample feature sequences based on the click estimation threshold, including:
[0162] In step S401, based on the sample label, a content click prediction model is determined, and a sample feature sequence corresponding to the sample label is input into the content click prediction model, and the content click prediction model outputs a click prediction score corresponding to the sample feature sequence;
[0163] In step S402, sample feature sequences whose click prediction scores are greater than or equal to the click prediction threshold are screened from the N sample feature sequences to obtain M mixed sample feature sequences.
[0164] In an embodiment of the present application, after obtaining N sample feature sequences, a content click prediction model can be determined based on the sample labels, and the sample feature sequences corresponding to the sample labels can be input into the corresponding content click prediction model. The click prediction score corresponding to each sample feature sequence is output by the content click prediction model. Then, sample feature sequences whose click prediction scores are greater than or equal to the click prediction threshold can be screened from the N sample feature sequences to obtain M mixed sample feature sequences, so that the features of the model to be trained can be input into the M mixed sample feature sequences later, which can reduce the computational overhead of the model to be trained and reduce the time cost.
[0165] Among them, the content click prediction model is a model for scoring the estimated click rate of individual content (for example, graphic content or audio and video content, etc.), and can also be composed of an embedding layer Embedding and multiple multi-layer perceptron MLP layers, or other network structures, which are not specifically limited here.
[0166] Specifically, Fig.15 As shown, after obtaining N sample feature sequences, a suitable content click prediction model can be selected for each sample feature sequence based on the sample label. Specifically, when the sample label is a picture and text label, the picture and text content click prediction model (such as Fig.15 Click on the estimated sub-model for the article you want to see) and change the image and text labels (such as Fig.15 The sample feature sequence corresponding to the user’s click on the article is input into the image and text content click prediction model (such as Fig.15 The article click prediction sub-model shown in the figure) is used to output the image and text click prediction score corresponding to the sample feature sequence through the image and text content click prediction model. Similarly, when the sample label is an audio and video label, the audio and video content click prediction model (such as Fig.15 The video click prediction sub-model shown in the figure) and the audio and video tags (such as Fig.15 The sample feature sequence corresponding to the video is input into the audio and video content click prediction model (such as Fig.15 The video click prediction sub-model shown in the figure) outputs the audio and video click prediction score corresponding to the sample feature sequence through the audio and video content click prediction model.
[0167] Furthermore, based on the click prediction threshold, sample feature sequences with text and image click prediction scores and audio and video click prediction scores greater than or equal to the click prediction threshold can be screened out from N sample feature sequences as mixed sample feature sequences, thereby obtaining M mixed sample feature sequences.
[0168] Optionally, in the above Figure 4 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Figure 5 As shown, in step S103, M mixed sample feature sequences are respectively input into the mixed click prediction model, and after the mixed click prediction model outputs M mixed click prediction scores, the method further includes:
[0169] In step S501, based on the consistency constraint condition, the loss value of M mixed click estimation scores and the click estimation score is calculated to obtain a second constraint loss value;
[0170] In step S502, based on the second constraint loss value, the model parameters of the mixed click prediction model are updated.
[0171] In an embodiment of the present application, after M mixed sample feature sequences are respectively input into the mixed click prediction model and M mixed click prediction scores are output through the mixed click prediction model, the present embodiment can also calculate the loss values of the M mixed click prediction scores and the click prediction scores based on the consistency constraint condition to obtain a second constraint loss value. Then, the model parameters of the mixed click prediction model can be updated based on the second constraint loss value. The mixed click prediction model can be controlled through the consistency constraint to maintain or tend to the estimated click rate accuracy of the refined ranking sub-model, i.e., the content click prediction model, so as to improve the estimated click rate accuracy of the mixed click prediction model.
[0172] Specifically, since the refined ranking sub-model, namely the content click prediction model, only needs to use the mixed sample feature sequence corresponding to one type of content for training, there is no situation in which the mixed click prediction model needs to combine the mixed sample feature sequences corresponding to different contents for prediction, resulting in deviation in the estimated click score. Therefore, the estimated click rate accuracy of the content click prediction model is higher.
[0173] Therefore, if Fig.17As shown, this embodiment can require the mixed sorting score to be the average score of the text and image content in an input sample batch, and the fitted content click prediction model to be the average score of the text and image content in an input sample batch, or require the mixed sorting click prediction model to be the average score of the audio and video content in an input sample batch, and the fitted content click prediction model to be the average score of the audio and video content in an input sample batch. Specifically, it can be based on sample labels, first from Among the M mixed click estimation scores, determine the mixed text and picture click estimation score corresponding to the picture and text sample label, the number of mixed texts and pictures corresponding to the mixed text and picture click estimation score, the audio and video mixed click estimation score corresponding to the audio and video sample label, and the number of mixed audio and video corresponding to the audio and video mixed click estimation score. At the same time, based on the sample label, from the N click estimation scores, determine the picture and text click estimation score corresponding to the picture and text sample label, the number of pictures and texts corresponding to the picture and text click estimation score, the audio and video click estimation score corresponding to the audio and video sample label, and the number of audio and video corresponding to the audio and video click estimation score.
[0174] Furthermore, the average of mixed text and image can be calculated based on the estimated click score of mixed text and image and the number of mixed text and image, and the average of audio and video can be calculated based on the estimated click score of mixed audio and video and the number of mixed audio and video. At the same time, the average of text and image can be calculated based on the estimated click score of text and image and the number of text and image, and the average of audio and video can be calculated based on the estimated click score of audio and video and the number of audio and video.
[0175] Furthermore, when the consistency constraint condition is the consistency constraint of the mean score of the image and text, it can be understood that the business requires a relatively higher exposure rate or click rate of the image and text content. Therefore, the loss value of the mixed image and text mean, the mixed audio and video mean, and the image and text mean can be calculated to obtain the second constraint loss value, so that the model parameters of the mixed click prediction model can be updated based on the second constraint loss value.
[0176] Alternatively, when the consistency constraint is the consistency constraint of the mean audio and video score, it can be understood that the business requires a relatively higher exposure rate or click rate of audio and video content. Therefore, the loss value can be calculated for the mixed text and image mean, the mixed audio and video mean, and the audio and video mean to obtain the second constraint loss value, so that the model parameters of the mixed click prediction model can be updated based on the second constraint loss value.
[0177] Optionally, in the above Figure 2 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Figure 6As shown, in step S103, M mixed sample feature sequences are respectively input into the mixed click prediction model, and after the mixed click prediction model outputs M mixed click prediction scores, the method further includes:
[0178] In step S601, the sample click rate corresponding to each sample behavior data is obtained;
[0179] In step S602, based on the consistency constraint condition, the loss value is calculated for the M mixed click estimation scores and the sample click rate to obtain a third constraint loss value;
[0180] In step S603, based on the third constraint loss value, the model parameters of the mixed click prediction model are updated.
[0181] In an embodiment of the present application, after M mixed sample feature sequences are respectively input into the mixed click prediction model and M mixed click estimation scores are output through the mixed click estimation model, the present embodiment can also obtain the sample click rate corresponding to each sample behavior data, and based on the consistency constraint condition, perform loss value calculation on the M mixed click estimation scores and the sample click rate to obtain the third constraint loss value, and can control the estimated click rate of the mixed click estimation model through the consistency constraint to maintain or tend to the actual click rate of the sample behavior data, that is, the sample click rate, so as to improve the estimated click rate accuracy of the mixed click estimation model.
[0182] Specifically, the real click rate of sample behavior data, namely the sample click rate, can provide a more accurate fitting target for the mixed click prediction model, where the real click rate can be obtained by dividing the number of clicks by the number of exposures. Fig.17As shown, this embodiment can require the mixed order click prediction model to fit the real CTR, i.e., the sample click rate, of the graphic content in an input sample batch batch by the score mean of the real click rate of the sample behavior data, i.e., the sample click rate, and require the mixed order click prediction model to fit the real CTR, i.e., the sample click rate, of the audio and video content in an input sample batch batch by the score mean of the real click rate of the audio and video content in an input sample batch batch, i.e., the sample click rate, which can be based on the sample. Label, first determine the text and picture mixed click estimated score corresponding to the text and picture sample label, the number of text and picture mixed click estimated score corresponding to the text and picture mixed click estimated score, the audio and video mixed click estimated score corresponding to the audio and video sample label, and the number of audio and video mixed click estimated score corresponding to the audio and video mixed click estimated score from the M mixed click estimated scores. At the same time, based on the sample labels, from the N sample click rates, determine the text and picture sample click rate corresponding to the text and picture sample label, the number of text and picture samples corresponding to the text and picture sample click rate, the audio and video sample click rate corresponding to the audio and video sample label, and the number of audio and video samples corresponding to the audio and video sample click rate.
[0183] Furthermore, the mean of mixed text and image can be calculated based on the estimated click score of mixed text and image and the number of mixed text and image, and the mean of audio and video can be calculated based on the estimated click score of mixed audio and video and the number of mixed audio and video. At the same time, the mean of text and image clicks can be calculated based on the click rate of text and image samples and the number of text and image samples, and the mean of audio and video clicks can be calculated based on the click rate of audio and video samples and the number of audio and video samples.
[0184] Furthermore, when the consistency constraint is the consistency constraint of the mean image and text score, it can be understood that the business requires a relatively higher exposure rate or click rate of the image and text content. Therefore, the loss value of the mixed image and text mean, the mixed audio and video mean, and the image and text click mean can be calculated to obtain the third constraint loss value and update the model parameters of the mixed click prediction model.
[0185] Alternatively, when the consistency constraint is the consistency constraint of the mean audio and video score, it can be understood that the business requires a relatively higher exposure rate or click rate of audio and video content. Therefore, the loss value can be calculated for the mixed text and image mean, the mixed audio and video mean, and the audio and video click mean to obtain the third constraint loss value and update the model parameters of the mixed click prediction model.
[0186] Optionally, in the above Figure 4 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Figure 7As shown, the content click prediction model includes a picture and text content click prediction model and an audio and video content click prediction model, and the click prediction score includes a picture and text click prediction score and an audio and video click prediction score; step S401 determines the content click prediction model based on the sample label, and inputs the sample feature sequence corresponding to the sample label into the content click prediction model, and outputs the click prediction score corresponding to the sample feature sequence through the content click prediction model, including: steps S701 to S702; and step S402 includes: step S703;
[0187] In step S701, when the sample label is a picture and text label, a picture and text content click prediction model is determined, and a sample feature sequence corresponding to the picture and text label is input into the picture and text content click prediction model, and the picture and text content click prediction model outputs a picture and text click prediction score corresponding to the sample feature sequence;
[0188] In step S702, when the sample tag is an audio or video tag, an audio or video content click prediction model is determined, and a sample feature sequence corresponding to the audio or video tag is input into the audio or video content click prediction model, and the audio or video content click prediction model outputs an audio or video click prediction score corresponding to the sample feature sequence;
[0189] In step S703, sample feature sequences whose text and image click prediction scores and audio and video click prediction scores are greater than or equal to the click prediction threshold are screened from the N sample feature sequences to obtain M mixed sample feature sequences.
[0190] In an embodiment of the present application, after obtaining N sample feature sequences, a content click prediction model can be determined based on the sample label, that is, when the sample label is a picture and text label, the picture and text content click prediction model is determined, and the sample feature sequence corresponding to the picture and text label is input into the picture and text content click prediction model, and the picture and text content click prediction model outputs the picture and text click prediction score corresponding to the sample feature sequence. Similarly, when the sample label is an audio and video label, an audio and video content click prediction model is determined, and the sample feature sequence corresponding to the audio and video label is input into the audio and video content click prediction model, and the audio and video content click prediction model outputs the audio and video click prediction score corresponding to the sample feature sequence. Then, from the N sample feature sequences, sample feature sequences whose picture and text click prediction scores and audio and video click prediction scores are greater than or equal to the click prediction threshold are screened to obtain M mixed sample feature sequences, so that the features of the model to be trained can be input into the M mixed sample feature sequences later, which can reduce the computational overhead of the model to be trained and reduce the time cost.
[0191] The content click prediction model is a model that scores the estimated click rate of individual content (e.g., graphic content or audio and video content, etc.), including graphic content click prediction models (e.g., Fig.15 The article click prediction sub-model shown in the figure) and the audio and video content click prediction model (such as Fig.15 The video click prediction sub-model shown in the figure) can also be composed of an embedding layer and a plurality of multi-layer perceptron MLP layers, or other network structures, which are not specifically limited here.
[0192] Specifically, Fig.15 As shown, after obtaining N sample feature sequences, a suitable content click prediction model can be selected for each sample feature sequence based on the sample label. Specifically, when the sample label is a picture and text label, the picture and text content click prediction model (such as Fig.15 Click on the estimated sub-model for the article you want to see) and change the image and text labels (such as Fig.15 The sample feature sequence corresponding to the user’s click on the article is input into the image and text content click prediction model (such as Fig.15 The article click prediction sub-model shown in the figure) is used to output the image and text click prediction score corresponding to the sample feature sequence through the image and text content click prediction model. Similarly, when the sample label is an audio and video label, the audio and video content click prediction model (such as Fig.15 The video click prediction sub-model shown in the figure) and the audio and video tags (such as Fig.15 The sample feature sequence corresponding to the video is input into the audio and video content click prediction model (such as Fig.15 The video click prediction sub-model shown in the figure) outputs the audio and video click prediction score corresponding to the sample feature sequence through the audio and video content click prediction model.
[0193] Furthermore, the text and image click prediction scores and the audio and video click prediction scores can be compared with the click prediction threshold respectively. Therefore, from the N sample feature sequences, the sample feature sequences whose text and image click prediction scores and the audio and video click prediction scores are greater than or equal to the click prediction threshold can be screened out as mixed sample feature sequences, so that M mixed sample feature sequences can be obtained.
[0194] Optionally, in the above Figure 7 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Figure 8 As shown, in step S702, when the sample tag is an audio or video tag, an audio or video content click prediction model is determined, and a sample feature sequence corresponding to the audio or video tag is input into the audio or video content click prediction model. After the audio or video content click prediction model outputs an audio or video click prediction score corresponding to the sample feature sequence, the method further includes:
[0195] In step S801, the image and text loss value is calculated based on the image and text label and the image and text click prediction score, and the model parameters of the image and text content click prediction model are updated based on the image and text loss value;
[0196] In step S802, the audio and video loss value is calculated based on the audio and video tags and the audio and video click prediction score, and the model parameters of the audio and video content click prediction model are updated based on the audio and video loss value.
[0197] In an embodiment of the present application, after obtaining the estimated click score of the image and text and the estimated click score of the audio and video, the present embodiment can also calculate the image and text loss value based on the image and text label and the estimated click score of the image and text, and update the model parameters of the image and text content click prediction model based on the image and text loss value to improve the accuracy of the image and text content click prediction model for the estimated click rate of the image and text content. Similarly, the audio and video loss value can be calculated based on the audio and video label and the estimated click score of the audio and video, and the model parameters of the audio and video content click prediction model can be updated based on the audio and video loss value to improve the accuracy of the audio and video content click prediction model for the estimated click rate of the audio and video content.
[0198] Specifically, the image and text content click prediction model and the audio and video content click prediction model both accept sample labels as the target of fitting learning and use the conventional cross-entropy loss function for optimization. Therefore, after obtaining the image and text click prediction scores and the audio and video click prediction scores, the image and text loss values can be calculated based on the image and text labels and the image and text click prediction scores using the conventional cross-entropy loss function, and the model parameters of the image and text content click prediction model can be updated based on the image and text loss values. Similarly, the audio and video loss values can be calculated based on the audio and video labels and the audio and video click prediction scores using the conventional cross-entropy loss function, and the model parameters of the audio and video content click prediction model can be updated based on the audio and video loss values.
[0199] Optionally, in the above Figure 2 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Fig. 9 As shown, step S101 performs feature processing on each sample behavior data in N sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data, including:
[0200] In step S901, a sample feature field of an information source object corresponding to the sample behavior data is obtained, wherein the sample feature field is used to describe the attribute features between each information source object and the sample recommendation information;
[0201] In step S902, feature processing is performed on the sample behavior data based on the information source object and the sample feature field to obtain a sample feature sequence corresponding to each sample behavior data.
[0202] In an embodiment of the present application, if a sample object follows or subscribes to a work creator account (such as a basketball sharing blogger), or follows or subscribes to a message push account (such as a public account or a video account, etc.), or after the sample object uses an application that supports functions such as information push or information retrieval, then sample recommendation information such as original works, film and television works, applications or products that are suitable for the sample object or that the sample object may be interested in can be regularly recommended to the sample object. Therefore, N sample behavior data about the sample recommendation information of the sample object can be obtained first, and then, each of the N sample behavior data can be feature processed to obtain a sample feature sequence corresponding to each sample behavior data that is convenient for model learning and computer recognition.
[0203] It is understandable that this embodiment can set a uniformly maintained feature field for each sample recommendation information, that is, a sample feature field, which is used to describe the various attributes of the "sample object" and the "sample recommendation information", such as "(sample object ID, sample recommendation information ID, sample object interest category, sample object exposure click rate in the past week, public account exposure click rate in the past week, video account exposure click rate in the past week, etc.)", where the feature field includes multiple categories of sparse fields and numerical continuous fields, etc., which are not specifically limited here. Information source objects include public accounts that recommend graphic information, and video accounts that recommend audio and video information.
[0204] Specifically, Fig.15 As shown, if a sample object follows or subscribes to a work creator account (such as a basketball sharing blogger) through a multimedia information sharing platform, or follows or subscribes to a message push account (such as a public account or video account, etc.), or the sample object uses an application that supports functions such as information push or information retrieval, then sample recommendation information such as original works, film and television works, applications or products that are suitable for the sample object or that the sample object may be interested in can be regularly recommended to the sample object. Furthermore, N sample behavior data about the sample recommendation information within a historical time period (such as the past week) can be extracted from the behavior log generated by the operation behavior of the sample object recorded by the multimedia information sharing platform. For example, the number of times the sample object S clicked, browsed or watched the sample recommendation information W, such as a promotional video of a sweeping robot, and the number of times the sample recommendation information S, such as two graphic promotional advertisements of a smart speaker, in the past week, can obtain 3 sample behavior data corresponding to the sample object S.
[0205] Furthermore, after obtaining N sample behavior data, the sample feature fields of the information source objects corresponding to the sample behavior data can be obtained (for example, the sample object ID, the sample recommendation information ID, the sample object interest category, the exposure click rate of the sample object in the past week, the exposure click rate of the public account in the past week, and the exposure click rate of the video account in the past week, etc.), and then, the N sample behavior data can be firstly grouped based on the information source objects (for example, the sample object, the public account for recommending graphic information, and the video account for recommending audio and video information, etc.), and feature extraction can be performed based on the sample feature fields to obtain the following: Fig.15 The object features, article item features, video item features, and behavior sequence features shown in the figure can then be transformed into vectors, i.e., Embedding, to obtain the sample feature sequence corresponding to each sample behavior data. The behavior sequence can be specifically represented by a set of sample recommendation information IDs clicked by the sample object in the past period of time, such as Fig.15 The ID sequence of the historical clicked items is shown.
[0206] Optionally, in the above Figure 3 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Fig.10 As shown, when the consistency constraint condition is the consistency constraint of the score mean; step S105 calculates the loss value of the M mixed click estimated scores and the M auxiliary click estimated scores based on the consistency constraint condition to obtain the first constraint loss value, including:
[0207] In step S1001, based on the sample label, from the M mixed click estimated scores, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed number corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed number corresponding to the audio-video mixed click estimated score are determined;
[0208] In step S1002, based on the sample label, the estimated image and text auxiliary click score corresponding to the image and text sample label, the number of image and text auxiliary clicks corresponding to the estimated image and text auxiliary click score, the estimated audio and video auxiliary click score corresponding to the audio and video sample label, and the number of audio and video auxiliary clicks corresponding to the estimated audio and video auxiliary click score are determined from the M estimated auxiliary click scores;
[0209] In step S1003, the text-image mixing mean is calculated based on the text-image mixing click prediction score and the text-image mixing number, and the audio-video mixing mean is calculated based on the audio-video mixing click prediction score and the audio-video mixing number;
[0210] In step S1004, the mean value of image-text assistance is calculated based on the estimated click score of image-text assistance and the number of image-text assistance, and the mean value of audio-video assistance is calculated based on the estimated click score of audio-video assistance and the number of audio-video assistance;
[0211] In step S1005, loss values are calculated for the image-text mixing mean, the audio-video mixing mean, the image-text auxiliary mean, and the audio-video auxiliary mean to obtain a first constrained loss value.
[0212] In an embodiment of the present application, after obtaining the first constraint loss value, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed click estimated score corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed number corresponding to the audio-video mixed click estimated score can be determined from M mixed click estimated scores based on the sample label. At the same time, the image-text auxiliary click estimated score corresponding to the image-text sample label, the image-text auxiliary number corresponding to the image-text auxiliary click estimated score, the audio-video auxiliary click estimated score corresponding to the audio-video sample label, and the audio-video auxiliary number corresponding to the audio-video auxiliary click estimated score can be determined from M auxiliary click estimated scores based on the sample label. Furthermore, based on the image-text mixed click estimated score and the image-text mixed number, the image-text mixed mean is calculated, and based on the audio-video mixed click estimated score and the audio-video mixed number, the audio-video mixed click estimated score is calculated. At the same time, based on the estimated click score of the image and text auxiliary and the number of image and text auxiliary, the image and text auxiliary mean is calculated, and based on the estimated click score of the audio and video auxiliary and the number of audio and video auxiliary, the audio and video auxiliary mean is calculated. Then, based on the difference constraint condition, the loss value of the image and text mixed mean, the audio and video mixed mean, the image and text auxiliary mean and the audio and video auxiliary mean is calculated to obtain the first constraint loss value, so that the model parameters of the mixed click prediction model can be updated based on the first constraint loss value and the difference loss value. Not only can the consistency constraint be used to control the relative size of the mean score of each content by the mixed auxiliary model, so as to keep it similar or consistent with the auxiliary click prediction model to obtain similar online exposure performance, so as to better meet the expectations of business requirements, but also the difference constraint can be used to control the mixed click prediction model so that it will not lose its own discrimination ability due to overfitting the auxiliary click prediction model.
[0213] Specifically, assuming that the mixed click prediction model is model T, and the auxiliary click prediction model is model A, through the constraint condition of the consistency constraint on the mean score, the mixed click prediction model can be required to fit the mean score of the image and text content in an input sample batch batch, and the auxiliary click prediction model can be required to fit the mean score of the image and text content in an input sample batch batch, and the mixed click prediction model can be required to fit the mean score of the audio and video content in an input sample batch batch, and the auxiliary click prediction model can be required to fit the mean score of the audio and video content in an input sample batch batch. Specifically, it can be based on the sample label. First, determine the text-and-image mixed click estimated score corresponding to the text-and-image sample label, the text-and-image mixed number corresponding to the text-and-image mixed click estimated score, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the audio-and-video mixed number corresponding to the audio-and-video mixed click estimated score from the M mixed click estimated scores. At the same time, based on the sample label, determine the text-and-image auxiliary click estimated score corresponding to the text-and-image sample label, the text-and-image auxiliary number corresponding to the text-and-image auxiliary click estimated score, the audio-and-video auxiliary click estimated score corresponding to the audio-and-video sample label, and the audio-and-video auxiliary number corresponding to the audio-and-video auxiliary click estimated score from the M auxiliary click estimated scores.
[0214] Furthermore, based on the estimated click score of mixed text and images and the number of mixed text and images, the sum of the estimated click scores of all mixed text and images can be calculated, and the sum can be divided by the number of mixed text and images to obtain the average value of mixed text and images (i.e. E[X; T, article]). Also, based on the estimated click score of mixed audio and video and the number of mixed audio and video, the sum of the estimated click scores of all mixed audio and video can be calculated, and the sum can be divided by the number of mixed audio and video to obtain the average value of mixed audio and video (i.e. E[X; T, video]).
[0215] At the same time, based on the estimated score of image and text assisted clicks and the number of image and text assistance, the sum of all image and text assisted click estimates is calculated, and the sum is divided by the number of image and text assistance to obtain the image and text assistance mean (ie E[X; A, article]); and based on the estimated score of audio and video assisted clicks and the number of audio and video assistance, the sum of all audio and video assisted click estimates is calculated, and the sum is divided by the number of audio and video assistance to obtain the audio and video assistance mean (ie E[X; A, video]).
[0216] Furthermore, based on the consistency constraint on the score mean, the mean square error function of the following formula (1) can be used to calculate the loss value of the mixed text and image mean, the mixed audio and video mean, the auxiliary text and image mean, and the auxiliary audio and video mean, so as to obtain the first constraint loss value:
[0217] α*MSE(E[X;T,Article],E[X;A,Article])+β*MSE(E[X;T,Video],E[X;A,Video])(1);
[0218] Among them, α and β are the hyperparameters of the model.
[0219] Optionally, in the above Fig.10 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Fig.11 As shown, when the difference constraint condition is a difference constraint of score distribution; step S301 calculates the loss value of M mixed click estimated scores based on the difference constraint condition to obtain the difference loss value, including:
[0220] In step S1101, the standard deviation of the mixed text and image is calculated based on the estimated click score of the mixed text and image and the number of the mixed text and image, and the standard deviation of the mixed audio and video is calculated based on the estimated click score of the mixed audio and video and the number of the mixed audio and video;
[0221] In step S1102, the standard deviation of the text-image assistance is calculated based on the estimated click score of the text-image assistance and the number of text-image assistance, and the standard deviation of the audio-video assistance is calculated based on the estimated click score of the audio-video assistance and the number of audio-video assistance;
[0222] In step S1103, loss values are calculated for the standard deviation of mixed text and image, the mean of mixed text and image, the standard deviation of mixed audio and video, the mean of mixed audio and video, the standard deviation of auxiliary text and image, the mean of auxiliary text and image, the standard deviation of auxiliary audio and video, and the mean of auxiliary audio and video to obtain a difference loss value.
[0223] In an embodiment of the present application, after obtaining the first constraint loss value, the standard deviation of the text-image mixing can be calculated based on the estimated click score of the text-image mixing and the number of text-image mixing, and the standard deviation of the audio-video mixing can be calculated based on the estimated click score of the audio-video mixing and the number of audio-video mixing. At the same time, the text-image auxiliary standard deviation is calculated based on the estimated click score of the text-image auxiliary and the number of text-image auxiliary, and the audio-video auxiliary standard deviation is calculated based on the estimated click score of the audio-video auxiliary and the number of audio-video auxiliary. Then, the text-image mixing standard deviation, the text-image mixing mean, the audio-video mixing standard deviation, the audio-video mixing mean, the text-image auxiliary standard deviation, and the text-image auxiliary are calculated. The loss values are calculated based on the mean, audio and video auxiliary standard deviation, and audio and video auxiliary mean to obtain the difference loss value, so that the model parameters of the mixed arrangement click prediction model can be updated based on the first constraint loss value and the difference loss value. Not only can the relative size of the mean score of each content of the mixed arrangement auxiliary model be controlled through consistency constraints to keep it similar or consistent with the auxiliary click prediction model to obtain similar online exposure performance, thereby better meeting the expectations of business requirements, but the difference constraints can also be used to control the mixed arrangement click prediction model so that it will not lose its own discrimination ability due to overfitting the auxiliary click prediction model.
[0224] Specifically, assuming that the mixed click prediction model is model T, and the auxiliary click prediction model is model A, by introducing constraints on the difference of score distribution, it is possible to require the mixed click prediction model to fit the auxiliary click prediction model to the standard deviation of the scores of the image and text content in an input sample batch batch, and to require the mixed click prediction model to fit the auxiliary click prediction model to the standard deviation of the scores of the image and text content in an input sample batch batch, and to fit the auxiliary click prediction model to the standard deviation of the scores of the audio and video content in an input sample batch batch. The method can be based on the estimated click score of mixed text and images and the number of mixed text and images, by calculating the sum of all the estimated click scores of mixed text and images, dividing the sum by the number of mixed text and images to obtain the average value, and then calculating the square root of the variance through the average value to obtain the standard deviation of the mixed text and images (i.e., σ[X; T, article]); and based on the estimated click score of mixed audio and video and the number of mixed audio and video, by calculating the sum of all the estimated click scores of mixed audio and video, dividing the sum by the number of mixed audio and video to obtain the average value, and then calculating the square root of the variance through the average value to obtain the standard deviation of the mixed audio and video (i.e., σ[X; T, video]).
[0225] At the same time, based on the estimated click score of the image and text assistance and the number of image and text assistance, the sum of all the estimated click scores of the image and text assistance is calculated, and the sum is divided by the number of image and text assistance to obtain the average value, and then the arithmetic square root of the variance is calculated through the average value to obtain the image and text assistance standard deviation (i.e. σ[X; A, article]), and based on the estimated click score of the audio and video assistance and the number of audio and video assistance, the sum of all the estimated click scores of the audio and video assistance is calculated, and the sum is divided by the number of audio and video assistance to obtain the average value, and then the arithmetic square root of the variance is calculated through the average value to obtain the audio and video assistance standard deviation (i.e. σ[X; A, video]).
[0226] Furthermore, since the coefficient of variation is obtained by dividing the standard deviation by the mean, the mean square error function of the following formula (2) can be used. Based on the difference constraint on the score distribution, the loss value of the mixed text and image standard deviation, the mixed text and image mean, the mixed audio and video standard deviation, the mixed audio and video mean, the auxiliary text and image standard deviation, the auxiliary text and image mean, the auxiliary audio and video standard deviation and the auxiliary audio and video mean are calculated to obtain the difference loss value:
[0227] γ*MSE(σ[X;A, article] / E[X;A, article],σ[X;T, article] / E[X;T, article])+Ω*MSE(σ[X;A,
[0228] frequency] / E[X;A, video],σ[X;T, video] / E[X;T, video])(2);
[0229] Among them, γ and Ω are the hyperparameters of the model.
[0230] Optionally, in the above Figure 5 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Fig.12 As shown, step S501 calculates the loss value of M mixed click estimation scores and click estimation scores based on the consistency constraint condition to obtain a second constraint loss value, including:
[0231] In step S1201, based on the sample label, from the M mixed click estimated scores, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed number corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed number corresponding to the audio-video mixed click estimated score are determined;
[0232] In step S1202, based on the sample label, from the N estimated click scores, the estimated click score of the image and text corresponding to the image and text sample label, the number of images and texts corresponding to the estimated click score of the image and text, the estimated click score of the audio and video corresponding to the audio and video sample label, and the number of audio and video corresponding to the estimated click score of the audio and video;
[0233] In step S1203, the text-image mixing mean is calculated based on the text-image mixing click prediction score and the text-image mixing number, and the audio-video mixing mean is calculated based on the audio-video mixing click prediction score and the audio-video mixing number;
[0234] In step S1204, the image and text mean is calculated based on the estimated click score of the image and text and the number of images and texts, and the audio and video mean is calculated based on the estimated click score of the audio and video and the number of audio and video;
[0235] In step S1205, when the consistency constraint condition is a consistency constraint of the mean score of the image and text, a loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the image and text mean to obtain a second constraint loss value;
[0236] In step S1206, when the consistency constraint condition is the consistency constraint of the mean audio and video score, the loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the audio and video mean to obtain a second constraint loss value.
[0237] In an embodiment of the present application, after M mixed sample feature sequences are respectively input into the mixed click prediction model and M mixed click prediction scores are outputted through the mixed click prediction model, the present embodiment can also determine, based on consistency constraints and based on sample labels, the image-text mixed click prediction score corresponding to the image-text sample label, the number of mixed images and texts corresponding to the image-text mixed click prediction score, the audio-video mixed click prediction score corresponding to the audio-video sample label, and the number of audio and video mixed click prediction score corresponding to the audio-video mixed click prediction score from the M mixed click prediction scores. At the same time, based on the sample labels, the image-text click prediction score corresponding to the image-text sample label, the number of images and texts corresponding to the image-text click prediction score, the audio-video click prediction score corresponding to the audio-video sample label, and the number of audio and video corresponding to the audio-video click prediction score are determined from the N click prediction scores. Furthermore, based on the image-text mixed click prediction score and the number of mixed images and texts, the image-text mixed mean is calculated, and based on the audio-video mixed click prediction score and the number of mixed audio and video, the audio-video mixed click prediction score is calculated. Calculate the audio and video mixed average, and at the same time, calculate the image and text average based on the image and text click estimation score and the number of images and texts, and calculate the audio and video average based on the audio and video click estimation score and the number of audio and video. Then, when the consistency constraint condition is the consistency constraint of the image and text score average, the loss value of the image and text mixed average, the audio and video mixed average and the image and text average are calculated to obtain the second constraint loss value, so that the model parameters of the mixed click estimation model can be updated based on the second constraint loss value later, or, when the consistency constraint condition is the consistency constraint of the audio and video score average, the loss value of the image and text mixed average, the audio and video mixed average and the audio and video average are calculated to obtain the second constraint loss value, so that the model parameters of the mixed click estimation model can be updated based on the second constraint loss value later, and the mixed click estimation model can be controlled through the consistency constraint to maintain or tend to the estimated click rate accuracy of the refined sorting sub-model, that is, the content click estimation model, so as to improve the estimated click rate accuracy of the mixed click estimation model.
[0238] Specifically, assuming that the mixed sorting click prediction model is model T, the text content click prediction model is model C, and the audio and video content click prediction model is model D, the mixed sorting score is aligned with a score mean consistency constraint of the fine sorting score, and the mixed sorting click prediction model can be required to have the average score of the text and image content in an input sample batch, and the fitted content click prediction model can be required to have the average score of the text and image content in an input sample batch, or the mixed sorting click prediction model can be required to have the average score of the audio and video content in an input sample batch, and the fitted content click prediction model can be required to have the average score of the audio and video content in an input sample batch. The mean score of the content can be specifically determined based on the sample label, first determining the text and picture mixed click estimated score corresponding to the text and picture sample label, the number of mixed texts and pictures corresponding to the text and picture mixed click estimated score, the audio and video mixed click estimated score corresponding to the audio and video sample label, and the number of mixed audio and video corresponding to the audio and video mixed click estimated score from M mixed click estimated scores. At the same time, based on the sample label, determining the text and picture click estimated score corresponding to the text and picture sample label, the number of texts and pictures corresponding to the text and picture click estimated score, the audio and video click estimated score corresponding to the audio and video sample label, and the number of audio and video corresponding to the audio and video click estimated score from N click estimated scores.
[0239] Furthermore, based on the estimated click score of mixed text and images and the number of mixed text and images, the sum of the estimated click scores of all mixed text and images can be calculated, and the sum can be divided by the number of mixed text and images to obtain the average value of mixed text and images (i.e. E[X; T, article]). Also, based on the estimated click score of mixed audio and video and the number of mixed audio and video, the sum of the estimated click scores of all mixed audio and video can be calculated, and the sum can be divided by the number of mixed audio and video to obtain the average value of mixed audio and video (i.e. E[X; T, video]).
[0240] At the same time, based on the estimated click scores of pictures and texts and the number of pictures and texts, the sum of the estimated click scores of all pictures and texts can be calculated, and the sum can be divided by the number of pictures and texts to obtain the average of pictures and texts (i.e. E[X; C, article]). Based on the estimated click scores of audio and video and the number of audio and video, the sum of the estimated click scores of all audio and video can be calculated, and the sum can be divided by the number of audio and video to obtain the average of audio and video (i.e. E[X; D, video]).
[0241] Furthermore, when the consistency constraint condition is the consistency constraint of the mean score of the image and text, it can be understood that the business needs to increase the exposure rate or click rate of the image and text content relatively. Therefore, the mean square error function of the following formula (3) can be used to calculate the loss value of the image and text mixed mean, the audio and video mixed mean, and the image and text mean to obtain the second constraint loss value: λ1*MSE(E[X;T, article], E[X;C, article])+λ2*MSE(E[X;T, video], E[X;C, article])(3);
[0242] Among them, λ1 and λ2 are the hyperparameters of the model.
[0243] Alternatively, when the consistency constraint condition is the consistency constraint of the mean audio and video score, it can be understood that the business requires the exposure rate or click rate of the audio and video content to be relatively improved. Therefore, the mean square error function of the following formula (4) can be used to calculate the loss value of the mixed text and picture mean, the mixed audio and video mean, and the audio and video mean to obtain the second constraint loss value:
[0244] λ3*MSE(E[X;T,article],E[X;D,video])+λ4*MSE(E[X;T,video],E[X;D,video])(4);
[0245] Among them, λ3 and λ4 are the hyperparameters of the model.
[0246] Optionally, in the above Figure 6 Based on the corresponding embodiment, in another optional embodiment of the training method of the click prediction model provided in the embodiment of the present application, as Fig.13 As shown, step S602 calculates the loss value of M mixed click estimation scores and sample click rates based on the consistency constraint condition to obtain a third constraint loss value, including:
[0247] In step S1301, based on the sample label, from the M mixed click estimated scores, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed number corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed number corresponding to the audio-video mixed click estimated score are determined;
[0248] In step S1302, based on the sample labels, from the N sample click rates, the image and text sample click rates corresponding to the image and text sample labels, the number of image and text samples corresponding to the image and text sample click rates, the audio and video sample click rates corresponding to the audio and video sample labels, and the number of audio and video samples corresponding to the audio and video sample click rates are determined;
[0249] In step S1303, the text-image mixing mean is calculated based on the text-image mixing click prediction score and the text-image mixing number, and the audio-video mixing mean is calculated based on the audio-video mixing click prediction score and the audio-video mixing number;
[0250] In step S1304, the average of the image and text clicks is calculated based on the image and text sample click rate and the number of image and text samples, and the average of the audio and video clicks is calculated based on the audio and video sample click rate and the number of audio and video samples;
[0251] In step S1305, when the consistency constraint condition is the consistency constraint of the mean score of the image and text, the loss value of the mixed image and text, the mixed audio and video, and the mean image and text clicks is calculated to obtain a third constraint loss value;
[0252] In step S1306, when the consistency constraint condition is the consistency constraint of the mean audio and video score, the loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the audio and video click mean to obtain a third constraint loss value.
[0253] In an embodiment of the present application, after M mixed sample feature sequences are respectively input into the mixed click prediction model and M mixed click prediction scores are output through the mixed click prediction model, the present embodiment can also obtain the sample click rate corresponding to each sample behavior data, and then based on the sample label, determine the image-text mixed click prediction score corresponding to the image-text sample label, the number of images and texts corresponding to the image-text mixed click prediction score, the audio-video mixed click prediction score corresponding to the audio-video sample label, and the number of audio-video mixed click prediction score corresponding to the audio-video mixed click prediction score from the M mixed click prediction scores. At the same time, based on the sample label, determine the image-text sample click rate corresponding to the image-text sample label, the number of image-text samples corresponding to the image-text sample click rate, the audio-video sample click rate corresponding to the audio-video sample label, and the number of audio-video samples corresponding to the audio-video sample click rate from the N sample click rates. Then, based on the image-text mixed click prediction score and the image-text mixed number, calculate the image-text mixed mean, and based on the audio-video mixed click prediction score and the audio-video mixed number, calculate the audio-video mixed click prediction score. The video mixed arrangement mean, at the same time, based on the click rate of the picture and text samples and the number of picture and text samples, the picture and text click mean is calculated, and based on the click rate of the audio and video samples and the number of audio and video samples, the audio and video click mean is calculated. Then, when the consistency constraint condition is the consistency constraint of the picture and text score mean, the loss value of the picture and text mixed arrangement mean, the audio and video mixed arrangement mean and the picture and text click mean can be calculated to obtain the third constraint loss value, so that the model parameters of the mixed arrangement click prediction model can be updated based on the third constraint loss value in the future, or, when the consistency constraint condition is the consistency constraint of the audio and video score mean, the loss value of the picture and text mixed arrangement mean, the audio and video mixed arrangement mean and the audio and video click mean are calculated to obtain the third constraint loss value, so that the model parameters of the mixed arrangement click prediction model can be updated based on the third constraint loss value in the future, and the estimated click rate of the mixed arrangement click prediction model can be controlled through the consistency constraint to maintain or tend to the real click rate of the sample behavior data, that is, the sample click rate, so as to improve the estimated click rate accuracy of the mixed arrangement click prediction model.
[0254] Specifically, the real click-through rate of the sample behavior data, namely the sample click-through rate, can provide a more accurate fitting target for the mixed click prediction model, where the real click-through rate can be obtained by dividing the number of clicks by the number of exposures. Therefore, the mixed scoring can be used to align the real click-through rate of the sample behavior data, namely the sample click-through rate, to impose a consistency constraint on the score mean of the sample click-through rate, to require the mixed click prediction model to fit the real CTR, namely the sample click-through rate, of the image and text content in an input sample batch batch using the score mean of the image and text content in an input sample batch batch, and to require the mixed click prediction model to fit the real CTR, namely the sample click-through rate, of the audio and video content in an input sample batch batch using the score mean of the audio and video content in an input sample batch batch, which can be based on the sample label. First, determine the text-and-image mixed click estimated score corresponding to the text-and-image sample label, the number of text-and-image mixed click estimated score corresponding to the text-and-image mixed click estimated score, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated score corresponding to the audio-and-video mixed click estimated score from the M mixed click estimated scores. At the same time, based on the sample labels, determine the text-and-image sample click rate corresponding to the text-and-image sample label, the number of text-and-image samples corresponding to the text-and-image sample click rate, the audio-and-video sample click rate corresponding to the audio-and-video sample label, and the number of audio-and-video samples corresponding to the audio-and-video sample click rate from the N sample click rates.
[0255] Furthermore, based on the estimated click score of mixed text and images and the number of mixed text and images, the sum of the estimated click scores of all mixed text and images can be calculated, and the sum can be divided by the number of mixed text and images to obtain the average value of mixed text and images (i.e. E[X; T, article]). Also, based on the estimated click score of mixed audio and video and the number of mixed audio and video, the sum of the estimated click scores of all mixed audio and video can be calculated, and the sum can be divided by the number of mixed audio and video to obtain the average value of mixed audio and video (i.e. E[X; T, video]).
[0256] At the same time, the average click value of the picture and text is obtained by dividing the click rate of the picture and text samples by the number of picture and text samples, and the average click value of the audio and video is calculated by dividing the click rate of the audio and video samples by the number of audio and video samples.
[0257] Furthermore, when the consistency constraint condition is the consistency constraint of the mean score of the image and text, it can be understood that the business needs to increase the exposure rate or click rate of the image and text content. Therefore, the mean square error function of the following formula (5) can be used to calculate the loss value of the image and text mixed mean, the audio and video mixed mean, and the image and text click mean to obtain the third constraint loss value:
[0258] θ1*MSE(E[X;T,article],mean number of image and text clicks)+θ2*MSE(E[X;T,video],mean number of image and text clicks)(5);
[0259] Among them, θ1 and θ2 are the hyperparameters of the model.
[0260] Alternatively, when the consistency constraint condition is the consistency constraint of the mean audio and video score, it can be understood that the business requires the exposure rate or click rate of the audio and video content to be relatively improved. Therefore, the mean square error function of the following formula (6) can be used to calculate the loss value of the mixed text and picture mean, the mixed audio and video mean, and the audio and video click mean to obtain the third constraint loss value:
[0261] θ3*MSE(E[X;T,article],mean of audio and video clicks)+θ2*MSE(E[X;T,video],mean of audio and video clicks)(6);
[0262] Among them, θ3 and θ4 are the hyperparameters of the model.
[0263] Combined with the above introduction, the following will introduce the information recommendation method based on the click prediction model in this application. Please refer to Fig.14 In an embodiment of the present application, an information recommendation method based on a click prediction model includes:
[0264] In step S1401, feature processing is performed on N pieces of behavior data to be processed corresponding to N pieces of information to be recommended, to obtain a target feature sequence corresponding to each piece of behavior data to be processed;
[0265] In an embodiment of the present application, if it is necessary to recommend to the target object original works, film and television works, applications or products that are suitable for the target object or that the target object would be interested in, N pieces of behavior data to be processed of the N pieces of information to be recommended can be obtained first, and then, feature processing can be performed on each of the N pieces of behavior data to be processed to obtain a target feature sequence corresponding to each piece of behavior data to be processed that is convenient for model learning and computer recognition.
[0266] Among them, the N pieces of behavior data to be processed can come from two different information sources, for example, text advertisements and product posters from a public account, or promotional videos from a video account.
[0267] Specifically, if a multimedia information sharing platform needs to recommend original works, film and television works, applications or products that are suitable for or of interest to a target object, it can first obtain N unprocessed behavior data corresponding to the N unrecommended information, for example, the number of times the target object S clicked, browsed or watched the unrecommended information P, such as a promotional video of a smart speaker, in the past week.
[0268] Furthermore, after obtaining N pieces of behavior data to be processed, feature processing can be performed on each sample behavior data in the N pieces of behavior data to be processed. Specifically, feature grouping and feature extraction can be performed on each piece of behavior data to be processed based on the information object described by the feature (such as target object, graphic information, audio and video information, behavior sequence, etc.) and the feature field of the information source object corresponding to the behavior data to be processed (for example, target object ID, information ID to be recommended, target object interest category, exposure click rate of the target object in the past week, exposure click rate of the public account in the past week, and exposure click rate of the video account in the past week, etc.). Then, the features extracted from the grouping such as Fig.15 The object features indicated, i.e., sample object features, article item features, i.e., graphic sample features, and video item features, i.e., audio and video sample features, are respectively vectorized to obtain feature sequences corresponding to each feature, so as to obtain target feature sequences corresponding to each behavior data to be processed, so that target recommendation information can be determined based on the target feature sequence through a mixed click prediction model. Then, the target object can be recommended target recommendation information if the target object follows or subscribes to the work creator account (such as a basketball sharing blogger), or follows or subscribes to a message push account (such as a public account or a video account), or the sample object is using an application that supports information push or information retrieval functions.
[0269] In step S1402, based on the click estimation threshold, M target shuffle feature sequences are selected from N target feature sequences, where M is an integer greater than or equal to 1 and less than or equal to N;
[0270] In an embodiment of the present application, after obtaining N target feature sequences, M target mixed feature sequences can be selected from the N target feature sequences based on the click estimation threshold, so that the M target mixed feature sequences can be used as feature inputs of the model subsequently, which can reduce the computational overhead of the model and reduce time costs.
[0271] The click prediction threshold is set according to actual application requirements and is not specifically limited here.
[0272] Specifically, Fig.15 As shown, after obtaining N target feature sequences, a suitable content click prediction model can be selected for each target feature sequence based on the ID of the information to be recommended. Specifically, when the ID of the information to be recommended is image and text information, a click prediction model for the image and text content can be determined (such as Fig.15 The target feature sequence is input into the picture and text content click prediction model (such as Fig.15The article click prediction sub-model shown in the figure) is used to output the image and text click prediction score corresponding to the target feature sequence through the image and text content click prediction model. Similarly, when the information ID to be recommended is audio and video information, the audio and video content click prediction model (such as Fig.15 The target feature sequence is input into the audio and video content click prediction model (such as Fig.15 The video click prediction sub-model shown in the figure) outputs the audio and video click prediction score corresponding to the target feature sequence through the audio and video content click prediction model.
[0273] Furthermore, the text and image click prediction scores and the audio and video click prediction scores can be compared with the click prediction threshold respectively. Therefore, from the N target feature sequences, the target feature sequences whose text and image click prediction scores and the audio and video click prediction scores are greater than or equal to the click prediction threshold can be screened out as the target mixed feature sequences, so that M target mixed feature sequences can be sorted out.
[0274] In step S1403, the M target shuffle feature sequences are respectively input into the shuffle click prediction model, and the shuffle click prediction model outputs M candidate shuffle click prediction scores;
[0275] In an embodiment of the present application, after obtaining M target mixed feature sequences, the M target mixed feature sequences can be respectively input into the mixed click prediction model, and then, M candidate mixed click prediction scores are output through the mixed click prediction model, so that the target recommendation information can be quickly screened out based on the M candidate mixed click prediction scores.
[0276] Specifically, Fig.15 As shown, after obtaining M target mixed feature sequences, the M target mixed feature sequences can be respectively input into the above Figures 2 to 13 In the corresponding mixed click prediction model, the M target mixed feature sequences are respectively used as input features and mapped by the Embedding layer, and a low-dimensional feature (dense embeddings) in the real number domain can be learned, and then, it can be used as the input of the multi-hidden layer (hidden layers) neural network model. Then, the multi-hidden layer model outputs a scalar value (output units) with a value of 0-1 corresponding to each target mixed feature sequence, that is, the candidate mixed click prediction score.
[0277] In step S1404, based on the mixed order click estimation threshold, K target mixed order click estimation scores are selected from the M candidate mixed order click estimation scores, where K is an integer greater than or equal to 1 and less than or equal to M;
[0278] In an embodiment of the present application, after obtaining M candidate mixed click estimation scores, K target mixed click estimation scores can be selected from the M candidate mixed click estimation scores based on the mixed click estimation threshold, so that the K target recommendation information corresponding to the K target mixed click estimation scores can be better pushed to the recommended objects.
[0279] The mixed click estimation threshold is set according to actual application requirements and is not specifically limited here.
[0280] Specifically, after obtaining M candidate mixed click estimation scores, the M candidate mixed click estimation scores can be compared with the mixed click estimation threshold respectively. Then, the mixed click estimation score greater than or equal to the mixed click estimation threshold can be selected from the M candidate mixed click estimation scores as the target mixed click estimation score to obtain K target mixed click estimation scores.
[0281] In step S1405, the to-be-recommended information corresponding to the estimated click scores of the K targets are determined as K target recommendation information, and the K target recommendation information is pushed to the to-be-recommended object.
[0282] In an embodiment of the present application, after obtaining K target mixed click estimated scores, the recommended information corresponding to the K target mixed click estimated scores can be determined as K target recommendation information, and then the K target recommendation information can be pushed to the object to be recommended, that is, the target object.
[0283] Specifically, after obtaining the estimated click scores of K targets in a mixed order, the to-be-recommended information corresponding to the estimated click scores of the K targets can be determined as K target recommendation information. Then, the K target recommendation information can be recommended to the target object because the target object follows or subscribes to the work creator account (such as a basketball sharing blogger), or follows or subscribes to a message push account (such as a public account or a video account, etc.), or the sample object is using an application that supports functions such as information push or information retrieval.
[0284] The following is a detailed description of the training device of the click prediction model in this application. Fig.18 , Fig.18 This is a schematic diagram of an embodiment of a training device for a click prediction model in an embodiment of the present application. The training device 20 for a click prediction model includes:
[0285] The processing unit 201 is used to perform feature processing on each sample behavior data of the N sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data, wherein each sample feature sequence corresponds to a sample label, and N is an integer greater than or equal to 1;
[0286] An acquisition unit 202 is used to select M mixed sample feature sequences from N sample feature sequences based on a click estimation threshold, where M is an integer greater than or equal to 1 and less than or equal to N;
[0287] The processing unit 201 is further configured to input the M mixed sample feature sequences into the mixed click prediction model respectively, and output M mixed click prediction scores through the mixed click prediction model;
[0288] The processing unit 201 is further configured to input the M mixed sample feature sequences into the auxiliary click prediction model respectively, and output M auxiliary click prediction scores through the auxiliary click prediction model;
[0289] The processing unit 201 is further configured to calculate a loss value for the M mixed click estimation scores and the M auxiliary click estimation scores based on the consistency constraint condition to obtain a first constraint loss value;
[0290] The updating unit 203 is used to update the model parameters of the mixed click prediction model based on the first constraint loss value.
[0291] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application,
[0292] The processing unit 201 is further configured to calculate the loss value of the M mixed click estimation scores based on the difference constraint condition to obtain the difference loss value;
[0293] The updating unit 203 may be specifically configured to update the model parameters of the mixed click prediction model based on the first constraint loss value and the difference loss value.
[0294] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the acquisition unit 202 can be specifically used for:
[0295] Based on the sample labels, a content click prediction model is determined, and the sample feature sequence corresponding to the sample label is input into the content click prediction model, and the content click prediction model outputs the click prediction score corresponding to the sample feature sequence;
[0296] From the N sample feature sequences, sample feature sequences whose click prediction scores are greater than or equal to the click prediction threshold are screened to obtain M mixed sample feature sequences.
[0297] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application,
[0298] The processing unit 201 is further configured to calculate a loss value for the M mixed click estimated scores and the click estimated scores based on the consistency constraint condition to obtain a second constraint loss value;
[0299] The updating unit 203 is further configured to update the model parameters of the mixed click prediction model based on the second constraint loss value.
[0300] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application,
[0301] The acquisition unit 202 is further used to acquire the sample click rate corresponding to each sample behavior data;
[0302] The processing unit 201 is further configured to calculate a loss value for the M mixed click estimation scores and the sample click rates based on the consistency constraint condition to obtain a third constraint loss value;
[0303] The updating unit 203 is further configured to update the model parameters of the mixed click prediction model based on the third constraint loss value.
[0304] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the acquisition unit 202 can be specifically used for:
[0305] When the sample label is a picture and text label, determine the picture and text content click estimation model, and input the sample feature sequence corresponding to the picture and text label into the picture and text content click estimation model, and output the picture and text click estimation score corresponding to the sample feature sequence through the picture and text content click estimation model;
[0306] When the sample label is an audio or video label, determine the audio or video content click prediction model, and input the sample feature sequence corresponding to the audio or video label into the audio or video content click prediction model, and output the audio or video click prediction score corresponding to the sample feature sequence through the audio or video content click prediction model;
[0307] The acquisition unit 202 can be specifically used to: select sample feature sequences whose text and image click prediction scores and audio and video click prediction scores are greater than or equal to the click prediction threshold from N sample feature sequences, so as to acquire M mixed sample feature sequences.
[0308] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application,
[0309] The updating unit 203 is further used to calculate the image and text loss value based on the image and text label and the image and text click prediction score, and update the model parameters of the image and text content click prediction model based on the image and text loss value;
[0310] The updating unit 203 is also used to calculate the audio and video loss value based on the audio and video tags and the audio and video click prediction score, and update the model parameters of the audio and video content click prediction model based on the audio and video loss value.
[0311] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the processing unit 201 can be specifically used for:
[0312] Acquire a sample feature field of the information source object corresponding to the sample behavior data, wherein the sample feature field is used to describe the attribute features between each information source object and the sample recommendation information;
[0313] Based on the information source object and the sample feature field, feature processing is performed on the sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data.
[0314] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the processing unit 201 can be specifically used for:
[0315] Based on the sample labels, determine the text-and-picture mixed click estimated score corresponding to the text-and-picture sample label, the number of text-and-picture mixed click estimated scores corresponding to the text-and-picture mixed click estimated scores, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated scores corresponding to the audio-and-video mixed click estimated scores from the M mixed click estimated scores;
[0316] Based on the sample labels, determine the estimated image and text assisted click score corresponding to the image and text sample label, the number of image and text assisted clicks corresponding to the estimated image and text assisted click score, the estimated audio and video assisted click score corresponding to the audio and video sample label, and the number of audio and video assisted clicks corresponding to the estimated audio and video assisted click score from the M estimated assisted click scores;
[0317] Based on the estimated click score of mixed text and image and the number of mixed text and image, the average of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the average of mixed audio and video is calculated;
[0318] Based on the estimated click score of the image and text assistance and the number of image and text assistance, the mean of the image and text assistance is calculated, and based on the estimated click score of the audio and video assistance and the number of audio and video assistance, the mean of the audio and video assistance is calculated;
[0319] The loss values are calculated for the image and text mixed mean, the audio and video mixed mean, the image and text auxiliary mean, and the audio and video auxiliary mean to obtain the first constrained loss value.
[0320] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the processing unit 201 can be specifically used for:
[0321] Based on the estimated click score of mixed text and image and the number of mixed text and image, the standard deviation of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the standard deviation of mixed audio and video is calculated;
[0322] Based on the estimated click score of the image and text assistance and the number of image and text assistance, the standard deviation of the image and text assistance is calculated, and based on the estimated click score of the audio and video assistance and the number of audio and video assistance, the standard deviation of the audio and video assistance is calculated;
[0323] The loss values are calculated for the standard deviation of image and text mixing, the mean of image and text mixing, the standard deviation of audio and video mixing, the mean of audio and video mixing, the standard deviation of image and text auxiliary, the mean of image and text auxiliary, the standard deviation of audio and video auxiliary, and the mean of audio and video auxiliary to obtain the difference loss value.
[0324] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the processing unit 201 can be specifically used for:
[0325] Based on the sample labels, determine the text-and-picture mixed click estimated score corresponding to the text-and-picture sample label, the number of text-and-picture mixed click estimated scores corresponding to the text-and-picture mixed click estimated scores, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated scores corresponding to the audio-and-video mixed click estimated scores from the M mixed click estimated scores;
[0326] Based on the sample labels, determine the estimated click score of the image and text corresponding to the image and text sample label, the number of images and texts corresponding to the estimated click score of the image and text, the estimated click score of the audio and video corresponding to the audio and video sample label, and the number of audio and video corresponding to the estimated click score of the audio and video;
[0327] Based on the estimated click score of mixed text and image and the number of mixed text and image, the average of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the average of mixed audio and video is calculated;
[0328] Calculate the average of images and texts based on the estimated click scores of images and texts and the number of images and texts, and calculate the average of audio and video based on the estimated click scores of audio and video and the number of audio and video;
[0329] When the consistency constraint condition is a consistency constraint of the mean score of the image and text, the loss value is calculated for the mixed image and text mean, the mixed audio and video mean, and the image and text mean to obtain a second constraint loss value;
[0330] When the consistency constraint condition is the consistency constraint of the mean audio and video score, the loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the audio and video mean to obtain a second constraint loss value.
[0331] Optionally, in the above Fig.18 On the basis of the corresponding embodiment, in another embodiment of the training device for the click prediction model provided by the embodiment of the present application, the processing unit 201 can be specifically used for:
[0332] Based on the sample labels, determine the text-and-picture mixed click estimated score corresponding to the text-and-picture sample label, the number of text-and-picture mixed click estimated scores corresponding to the text-and-picture mixed click estimated scores, the audio-and-video mixed click estimated score corresponding to the audio-and-video sample label, and the number of audio-and-video mixed click estimated scores corresponding to the audio-and-video mixed click estimated scores from the M mixed click estimated scores;
[0333] Based on the sample labels, determine the image and text sample click rate corresponding to the image and text sample label, the number of image and text samples corresponding to the image and text sample click rate, the audio and video sample click rate corresponding to the audio and video sample label, and the number of audio and video samples corresponding to the audio and video sample click rate from the N sample click rates;
[0334] Based on the estimated click score of mixed text and image and the number of mixed text and image, the average of mixed text and image is calculated, and based on the estimated click score of mixed audio and video and the number of mixed audio and video, the average of mixed audio and video is calculated;
[0335] Calculate the average of image and text clicks based on the image and text sample click rate and the number of image and text samples, and calculate the average of audio and video clicks based on the audio and video sample click rate and the number of audio and video samples;
[0336] When the consistency constraint condition is the consistency constraint of the mean score of the image and text, the loss value is calculated for the mean of the mixed arrangement of images and texts, the mean of the mixed arrangement of audio and video, and the mean of the clicks of images and texts to obtain the third constraint loss value;
[0337] When the consistency constraint condition is the consistency constraint of the mean audio and video score, the loss value is calculated for the mean of mixed text and image, the mean of mixed audio and video, and the mean of audio and video clicks to obtain the third constraint loss value.
[0338] The following is a detailed description of the information recommendation device based on the click prediction model in this application. Fig.19 , Fig.19 This is a schematic diagram of an embodiment of an information recommendation device based on a click prediction model in an embodiment of the present application. The information recommendation device 30 based on a click prediction model includes:
[0339] The processing unit 301 is used to perform feature processing on N pieces of behavior data to be processed corresponding to the N pieces of information to be recommended, and obtain a target feature sequence corresponding to each piece of behavior data to be processed;
[0340] An acquisition unit 302 is used to select M target shuffle feature sequences from N target feature sequences based on a click estimation threshold, where M is an integer greater than or equal to 1 and less than or equal to N;
[0341] The processing unit 301 is further configured to input the M target shuffle feature sequences into the shuffle click prediction model, respectively, and output M candidate shuffle click prediction scores through the shuffle click prediction model;
[0342] The acquisition unit 302 is further configured to select K target mixed order click estimation scores from the M candidate mixed order click estimation scores based on the mixed order click estimation threshold, where K is an integer greater than or equal to 1 and less than or equal to M;
[0343] The push unit 303 is used to determine the to-be-recommended information corresponding to the K target mixed click estimated scores as K target recommendation information, and push the K target recommendation information to the to-be-recommended object.
[0344] On the other hand, the present application provides another schematic diagram of a computer device, such as Fig. 20 As shown, Fig. 20 3 is a schematic diagram of a computer device structure provided in an embodiment of the present application. The computer device 300 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 310 (for example, one or more processors) and a memory 320, and one or more storage media 330 (for example, one or more mass storage devices) storing application programs 331 or data 332. Among them, the memory 320 and the storage medium 330 may be temporary storage or permanent storage. The program stored in the storage medium 330 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the computer device 300. Furthermore, the central processing unit 310 may be configured to communicate with the storage medium 330 to execute a series of instruction operations in the storage medium 330 on the computer device 300.
[0345] The computer device 300 may also include one or more power supplies 340, one or more wired or wireless network interfaces 350, one or more input and output interfaces 360, and / or one or more operating systems 333, such as Windows Server 2000, Windows Server 2003, Windows Server 2003E, Windows Server 2003R ... TM , Mac OS XTM , Unix TM ,Linux TM , FreeBSD TM etc.
[0346] The computer device 300 is also used to execute the following steps: Figures 2 to 13 The steps in the corresponding embodiments, and Fig.14 The steps in the corresponding embodiments.
[0347] Another aspect of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the following Figures 2 to 13 The steps in the method described in the illustrated embodiment, and Fig.14 The steps in the corresponding embodiments.
[0348] Another aspect of the present application provides a computer program product comprising a computer program, which, when executed by a processor, implements the following Figures 2 to 13 The steps in the method described in the illustrated embodiment, and Fig.14 The steps in the corresponding embodiments.
[0349] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0350] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be an indirect coupling or communication connection through some interfaces, devices or units, which can be electrical, mechanical or other forms.
[0351] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0352] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0353] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
Claims
1. A method for training a click prediction model, characterized in that: include: Performing feature processing on each of the N sample behavior data to obtain a sample feature sequence corresponding to each of the sample behavior data, wherein each of the sample feature sequences corresponds to a sample label, and N is an integer greater than or equal to 1; Based on the click estimation threshold, M mixed sample feature sequences are selected from the N sample feature sequences, wherein M is an integer greater than or equal to 1 and less than or equal to N; Inputting the M shuffled sample feature sequences into the shuffled click prediction model respectively, and outputting M shuffled click prediction scores through the shuffled click prediction model; Inputting the M mixed sample feature sequences into auxiliary click prediction models respectively, and outputting M auxiliary click prediction scores through the auxiliary click prediction model; Based on the consistency constraint condition, a loss value is calculated for the M mixed click estimated scores and the M auxiliary click estimated scores to obtain a first constraint loss value; Based on the first constraint loss value, the model parameters of the mixed click prediction model are updated.
2. The method according to claim 1, characterized in that After calculating the loss value of the M mixed click estimated scores and the M auxiliary click estimated scores based on the consistency constraint condition to obtain the first constraint loss value, the method further includes: Based on the difference constraint condition, the loss value of the M mixed click estimated scores is calculated to obtain a difference loss value; The updating of the model parameters of the mixed click prediction model based on the first constraint loss value includes: Based on the first constraint loss value and the difference loss value, the model parameters of the mixed click prediction model are updated.
3. The method according to claim 1, characterized in that The selecting M mixed sample feature sequences from the N sample feature sequences based on the click estimation threshold comprises: Based on the sample labels, a content click prediction model is determined, and a sample feature sequence corresponding to the sample labels is input into the content click prediction model, and a click prediction score corresponding to the sample feature sequence is output through the content click prediction model; From the N sample feature sequences, sample feature sequences whose click prediction scores are greater than or equal to the click prediction threshold are screened to obtain M mixed sample feature sequences.
4. The method according to claim 3, characterized in that: After inputting the M shuffled sample feature sequences into the shuffled click prediction model respectively and outputting M shuffled click prediction scores through the shuffled click prediction model, the method further includes: Based on the consistency constraint condition, a loss value is calculated for the M mixed click estimated scores and the click estimated score to obtain a second constraint loss value; Based on the second constraint loss value, the model parameters of the mixed click prediction model are updated.
5. The method according to claim 1, characterized in that After inputting the M shuffled sample feature sequences into the shuffled click prediction model respectively and outputting M shuffled click prediction scores through the shuffled click prediction model, the method further includes: Obtaining a sample click rate corresponding to each of the sample behavior data; Based on the consistency constraint condition, a loss value is calculated for the M mixed click estimation scores and the sample click rate to obtain a third constraint loss value; Based on the third constraint loss value, the model parameters of the mixed click prediction model are updated.
6. The method according to claim 3, characterized in that The content click prediction model includes a picture and text content click prediction model and an audio and video content click prediction model, and the click prediction score includes the picture and text click prediction score and the audio and video click prediction score; The method of determining a content click prediction model based on the sample label, inputting a sample feature sequence corresponding to the sample label into the content click prediction model, and outputting a click prediction score corresponding to the sample feature sequence through the content click prediction model includes: When the sample label is a picture and text label, determining the picture and text content click prediction model, and inputting the sample feature sequence corresponding to the picture and text label into the picture and text content click prediction model, and outputting the picture and text click prediction score corresponding to the sample feature sequence through the picture and text content click prediction model; When the sample label is an audio or video label, determining the audio or video content click prediction model, and inputting the sample feature sequence corresponding to the audio or video label into the audio or video content click prediction model, and outputting the audio or video click prediction score corresponding to the sample feature sequence through the audio or video content click prediction model; The step of screening the sample feature sequences whose click prediction scores are greater than or equal to the click prediction threshold from the N sample feature sequences to obtain the M mixed sample feature sequences includes: From the N sample feature sequences, sample feature sequences whose image and text click prediction scores and audio and video click prediction scores are greater than or equal to the click prediction threshold are screened to obtain M mixed sample feature sequences.
7. The method according to claim 6, characterized in that When the sample label is an audio or video label, the audio or video content click prediction model is determined, and the sample feature sequence corresponding to the audio or video label is input into the audio or video content click prediction model, and after the audio or video content click prediction model outputs the audio or video click prediction score corresponding to the sample feature sequence, the method further includes: Calculate the image and text loss value based on the image and text label and the image and text click prediction score, and update the model parameters of the image and text content click prediction model based on the image and text loss value; Based on the audio and video tags and the audio and video click prediction scores, the audio and video loss values are calculated, and based on the audio and video loss values, the model parameters of the audio and video content click prediction model are updated.
8. The method according to any one of claims 1 to 3, characterized in that The performing feature processing on each of the N sample behavior data to obtain a sample feature sequence corresponding to each of the sample behavior data includes: Acquire a sample feature field of the information source object corresponding to the sample behavior data, wherein the sample feature field is used to describe the attribute features between each of the information source objects and the sample recommendation information; Based on the information source object and the sample feature field, feature processing is performed on the sample behavior data to obtain a sample feature sequence corresponding to each sample behavior data.
9. The method according to claim 2, characterized in that: When the consistency constraint condition is a consistency constraint of the score mean; based on the consistency constraint condition, the loss value calculation is performed on the M mixed click estimated scores and the M auxiliary click estimated scores to obtain a first constraint loss value, including: Based on the sample label, determine, from the M mixed click estimated scores, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed click estimated score corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed click estimated score corresponding to the audio-video mixed click estimated score; Based on the sample label, determine the image-text auxiliary click estimated score corresponding to the image-text sample label, the image-text auxiliary number corresponding to the image-text auxiliary click estimated score, the audio-video auxiliary click estimated score corresponding to the audio-video sample label, and the audio-video auxiliary number corresponding to the audio-video auxiliary click estimated score from the M auxiliary click estimated scores; Calculate the mean of the mixed text and image based on the estimated click score of the mixed text and image and the number of the mixed text and image, and calculate the mean of the mixed audio and video based on the estimated click score of the mixed audio and video and the number of the mixed audio and video; Based on the estimated click score of the image-text assistance and the number of image-text assistance, the image-text assistance mean is calculated, and based on the estimated click score of the audio-video assistance and the number of audio-video assistance, the audio-video assistance mean is calculated; The loss value is calculated for the image-text mixing mean, the audio-video mixing mean, the image-text auxiliary mean, and the audio-video auxiliary mean to obtain the first constraint loss value.
10. The method according to claim 9, characterized in that When the difference constraint condition is a difference constraint of score distribution; based on the difference constraint condition, the loss value is calculated for the M estimated scores of the mixed clicks to obtain the difference loss value, including: Calculate the standard deviation of text-image mixing based on the estimated click score of the text-image mixing and the number of text-image mixing, and calculate the standard deviation of audio-video mixing based on the estimated click score of the audio-video mixing and the number of audio-video mixing; Based on the estimated click score of the image-text assistance and the number of image-text assistance, calculate the image-text assistance standard deviation, and based on the estimated click score of the audio-video assistance and the number of audio-video assistance, calculate the audio-video assistance standard deviation; The loss value is calculated for the image-text mixing standard deviation, the image-text mixing mean, the audio-video mixing standard deviation, the audio-video mixing mean, the image-text auxiliary standard deviation, the image-text auxiliary mean, the audio-video auxiliary standard deviation and the audio-video auxiliary mean to obtain the difference loss value.
11. The method according to claim 4, characterized in that The method of calculating the loss value of the M mixed click estimated scores and the click estimated score based on the consistency constraint condition to obtain a second constraint loss value includes: Based on the sample label, determine, from the M mixed click estimated scores, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed click estimated score corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed click estimated score corresponding to the audio-video mixed click estimated score; Based on the sample label, determine, from the N estimated click scores, the estimated picture and text click score corresponding to the picture and text sample label, the number of pictures and texts corresponding to the estimated picture and text click score, the estimated audio and video click score corresponding to the audio and video sample label, and the number of audio and video corresponding to the estimated audio and video click score; Calculate the mean of the mixed text and image based on the estimated click score of the mixed text and image and the number of the mixed text and image, and calculate the mean of the mixed audio and video based on the estimated click score of the mixed audio and video and the number of the mixed audio and video; Calculate the image and text mean based on the estimated image and text click score and the number of images and texts, and calculate the audio and video mean based on the estimated audio and video click score and the number of audio and video; When the consistency constraint condition is a consistency constraint of the mean score of the image and text, a loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the image and text mean to obtain the second constraint loss value; When the consistency constraint condition is a consistency constraint of the mean audio and video score, loss values are calculated for the text-image mixed mean, the audio and video mixed mean, and the audio and video mean to obtain the second constraint loss value.
12. The method according to claim 5, characterized in that The loss value is calculated based on the consistency constraint condition for the M mixed click estimation scores and the sample click rate to obtain a third constraint loss value, including: Based on the sample label, determine, from the M mixed click estimated scores, the image-text mixed click estimated score corresponding to the image-text sample label, the image-text mixed click estimated score corresponding to the image-text mixed click estimated score, the audio-video mixed click estimated score corresponding to the audio-video sample label, and the audio-video mixed click estimated score corresponding to the audio-video mixed click estimated score; Based on the sample labels, determining, from the N sample click rates, the image and text sample click rate corresponding to the image and text sample labels, the number of image and text samples corresponding to the image and text sample click rate, the audio and video sample click rate corresponding to the audio and video sample labels, and the number of audio and video samples corresponding to the audio and video sample click rate; Calculate the mean of the mixed text and image based on the estimated click score of the mixed text and image and the number of the mixed text and image, and calculate the mean of the mixed audio and video based on the estimated click score of the mixed audio and video and the number of the mixed audio and video; Calculate the average of image and text clicks based on the image and text sample click rate and the number of image and text samples, and calculate the average of audio and video clicks based on the audio and video sample click rate and the number of audio and video samples; When the consistency constraint condition is a consistency constraint of the mean score of the image and text, a loss value is calculated for the image and text mixed mean, the audio and video mixed mean, and the image and text click mean to obtain the third constraint loss value; When the consistency constraint condition is a consistency constraint of the mean audio and video score, loss values are calculated for the image and text mixed mean, the audio and video mixed mean, and the audio and video click mean to obtain the third constraint loss value.
13. An information recommendation method based on a click prediction model, characterized in that: include: Performing feature processing on N pieces of behavior data to be processed corresponding to the N pieces of information to be recommended, respectively, to obtain a target feature sequence corresponding to each piece of behavior data to be processed; Based on the click estimation threshold, M target shuffle feature sequences are selected from the N target feature sequences, wherein M is an integer greater than or equal to 1 and less than or equal to N; Inputting the M target shuffle feature sequences into the shuffle click prediction model according to any one of claims 1 to 12 respectively, and outputting M candidate shuffle click prediction scores through the shuffle click prediction model; Based on the mixed order click estimation threshold, K target mixed order click estimation scores are selected from the M candidate mixed order click estimation scores, where K is an integer greater than or equal to 1 and less than or equal to M; The K pieces of to-be-recommended information corresponding to the estimated click scores of the target mixed arrangement are determined as K target recommendation information, and the K pieces of the target recommendation information are pushed to the to-be-recommended objects.
14. A method and device for training a click prediction model, characterized in that: include: A processing unit, configured to perform feature processing on each of the N sample behavior data to obtain a sample feature sequence corresponding to each of the sample behavior data, wherein each of the sample feature sequences corresponds to a sample label, and N is an integer greater than or equal to 1; An acquisition unit, configured to select M mixed sample feature sequences from the N sample feature sequences based on a click estimation threshold, wherein M is an integer greater than or equal to 1 and less than or equal to N; The processing unit is further used to input the M mixed sample feature sequences into the mixed click prediction model respectively, and output M mixed click prediction scores through the mixed click prediction model; The processing unit is further used to input the M mixed sample feature sequences into the auxiliary click prediction model respectively, and output M auxiliary click prediction scores through the auxiliary click prediction model; The processing unit is further configured to calculate a loss value for the M mixed click estimated scores and the M auxiliary click estimated scores based on a consistency constraint condition to obtain a first constraint loss value; An updating unit is used to update the model parameters of the mixed click prediction model based on the first constraint loss value.
15. An information recommendation method and device based on a click prediction model, characterized in that: include: A processing unit, used to perform feature processing on N pieces of behavior data to be processed corresponding to the N pieces of information to be recommended, to obtain a target feature sequence corresponding to each piece of behavior data to be processed; An acquisition unit, configured to select M target shuffle feature sequences from the N target feature sequences based on a click estimation threshold, wherein M is an integer greater than or equal to 1 and less than or equal to N; The processing unit is further used to input the M target shuffle feature sequences into the shuffle click prediction model according to any one of claims 1 to 12, respectively, and output M candidate shuffle click prediction scores through the shuffle click prediction model; The acquisition unit is further configured to select K target mixed order click estimation scores from the M candidate mixed order click estimation scores based on the mixed order click estimation threshold, wherein K is an integer greater than or equal to 1 and less than or equal to M; The push unit is used to determine the to-be-recommended information corresponding to the K target mixed click estimated scores as K target recommendation information, and push the K target recommendation information to the to-be-recommended objects.
16. A computer device comprising a memory, a processor and a bus system, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 12 and the steps of the method according to claim 13 are implemented; The bus system is used to connect the memory and the processor so that the memory and the processor can communicate with each other.
17. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 12 and the steps of the method according to claim 13 are implemented.
18. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the steps of the method according to any one of claims 1 to 12 and the steps of the method according to claim 13.
