A model processing method and related products

By obtaining the user's real object information and the predicted probability of feedback behavior of candidate recommendation items, and using the fusion weight model to generate training samples, it solves the problem of data deviation in the existing recommendation system, improves the training and use effects of the model, and achieves higher Recommended accuracy.

CN114328993BActive Publication Date: 2024-09-13TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202111535874.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-12-15
Publication Date
2024-09-13
Estimated Expiration
2041-12-15

AI Technical Summary

Technical Problem

Existing recommendation systems have data bias when generating training samples, resulting in poor model training and usage effects.

Method used

By obtaining the user's real object information and the predicted probability of feedback behavior of candidate recommendation items, the fusion weight model is used to generate training samples, reducing data deviation and improving the training and use effects of the model.

Benefits of technology

The generated training samples are more realistic, reducing data errors, improving the accuracy of the recommendation model, and restoring the real recommendation environment to the greatest extent.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114328993B
    Figure CN114328993B
Patent Text Reader

Abstract

The embodiment of the present invention discloses a model processing method and related products, wherein the method includes obtaining first object information and a candidate set of recommended items of a sample object; calling a fusion weight model to process the first object information and determine a fusion weight set of feedback behavior; determining a target recommended item according to the fusion weight set and the predicted probability; respectively determining the predicted feedback behavior of each target recommended item, and determining a feedback reward according to the predicted feedback behavior; obtaining second object information of the sample object; wherein a training sample consisting of the first object information, the fusion weight set, the feedback reward and the second object information is used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation. The present application can improve the authenticity of the generated training samples, reduce the data error of the training samples, and improve the training effect and use effect of the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence technology, and in particular to a model processing method and related products. Background Art

[0002] With the rapid growth of information on the Internet, it is difficult for users to obtain truly valuable information from a large amount of information, resulting in information overload. One way to solve the problem of information overload is the recommendation system, which recommends products, articles, pictures, short videos, etc. that users are interested in to users based on their information needs and interests.

[0003] When a large number of items to be recommended are input into the recommendation system, they are recalled, sorted, and re-sorted in sequence to obtain a recommendation list. Among them, re-sorting is the last link in the interaction between the recommendation system and the user, and the recommended items can be further sorted according to the user's satisfaction. In order to improve the accuracy of the re-sorting results, an artificial intelligence model can be used for re-sorting. However, in the training process of these models, a large number of training samples are often required. The current technical solution is to generate training samples through a simulator. The generated training samples have data bias, which leads to poor training and use effects of the model. Summary of the invention

[0004] The present application provides a model processing method and related products, which can improve the authenticity of generated training samples, reduce the data deviation of training samples, and thus improve the training effect and usage effect of the model.

[0005] The present application provides a model processing method, which comprises:

[0006] Acquire first object information and a candidate set of recommended items of the sample object; the candidate set of recommended items includes L candidate recommended items and predicted probabilities of N feedback behaviors corresponding to each candidate recommended item, where L and N are both positive integers, and the first object information is acquired according to the first online request data of the sample object;

[0007] Calling the fusion weight model to process the first object information and determine a fusion weight set of N feedback behaviors;

[0008] According to the fusion weight set and prediction probability, M target recommendation items are selected from L candidate recommendation items, M≤L;

[0009] Determine the predicted feedback behavior for each target recommendation item, and determine the feedback reward based on the M predicted feedback behaviors;

[0010] Acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and time information corresponding to the first online request data and the second online request data are different;

[0011] The training samples consisting of the first object information, the fusion weight set, the feedback reward and the second object information are used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation.

[0012] Among them, according to the target prediction strategy, the method of determining the prediction feedback behavior of the target recommendation item to be processed includes:

[0013] When the target prediction strategy is the first prediction strategy, online feedback probabilities of multiple objects for N kinds of feedback behaviors on the target recommendation items to be processed, and predicted feedback probabilities of multiple objects for N kinds of feedback behaviors on the target recommendation items to be processed are obtained; the predicted probability of the target recommendation items to be processed is corrected according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain the target probabilities of the N kinds of feedback behaviors on the target recommendation items to be processed; the N target probabilities are combined into the predicted feedback behavior of the target recommendation items to be processed;

[0014] Alternatively, when the target prediction strategy is the second prediction strategy, the feedback probability threshold of each feedback behavior of the target recommendation item to be processed is determined respectively; the feedback probability intervals of N feedback behaviors of the target recommendation item to be processed are determined respectively according to the feedback probability thresholds; random sampling is performed in the N feedback probability intervals to determine the target probability of the N feedback behaviors of the target recommendation item to be processed; and the N target probabilities are combined into the predicted feedback behavior of the target recommendation item to be processed.

[0015] The present application provides a model processing device, which includes:

[0016] an acquisition module, configured to acquire first object information and a candidate set of recommended items of a sample object; the candidate set of recommended items includes L candidate recommended items and predicted probabilities of N types of feedback behaviors corresponding to each candidate recommended item, where L and N are both positive integers, and the first object information is acquired based on the first online request data of the sample object;

[0017] A processing module, used for invoking a fusion weight model to process the first object information and determine a fusion weight set of N feedback behaviors;

[0018] The processing module is further used to select M target recommendation items from L candidate recommendation items according to the fusion weight set and the prediction probability, where M≤L;

[0019] The processing module is further used to determine the predicted feedback behavior of each target recommendation item respectively, and determine the feedback reward according to the M predicted feedback behaviors;

[0020] The acquisition module is further used to acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and the time information corresponding to the first online request data and the second online request data are different;

[0021] The training samples consisting of the first object information, the fusion weight set, the feedback reward and the second object information are used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation.

[0022] The present application provides an electronic device, which includes a memory and a processor, wherein the memory stores a model processing program, and when the model processing program is executed by the processor, the steps of the model processing method are implemented.

[0023] The present application provides a computer-readable storage medium, in which a computer program is stored. The computer program includes program instructions. When the program instructions are executed by a processor, the steps of the above-mentioned model processing method are implemented.

[0024] The present application provides a computer program product, which includes a computer program or computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer program or computer instructions from the computer-readable storage medium, and the processor executes the computer program or computer instructions, so that the computer device executes the above-mentioned model processing method.

[0025] This application can obtain the real object information of the sample object through online request, and then generate the training sample of the model applied to multimedia data recommendation from the real object information. Since the training sample retains the real information of the sample object, compared with the training sample generated completely by the simulator, the training sample of this application is more authentic, which can reduce data errors and restore the real recommendation environment to the greatest extent. The recommendation model trained by the real training sample has higher recommendation accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the following briefly introduces the drawings required for describing the embodiments.

[0027] Figure 1 is a schematic diagram of a communication system provided in an embodiment of the present application;

[0028] Figure 2 It is a flow chart of a model processing method provided in an embodiment of the present application;

[0029] Figure 3 This is a schematic diagram of a batch constrained deep reinforcement learning network architecture provided in an embodiment of the present application;

[0030] Figure 4 It is a schematic diagram of an application flow for generating training samples provided in an embodiment of the present application;

[0031] Figure 5 It is a flowchart of determining predicted feedback behavior and feedback reward provided by an embodiment of the present application;

[0032] Figure 6 is a structural schematic diagram of a model processing device provided in an embodiment of the present application;

[0033] Figure 7 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0034] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0035] It can be understood that in the specific implementation of the present application, related data such as user static information, user historical behavior information, user online feedback probability, user predicted feedback probability, etc. are involved. When the above embodiments of the present 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.

[0036] In order to better understand the solution of this application, the following first introduces the technical fields and professional terms involved in this application:

[0037] Artificial intelligence (AI) 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. Artificial intelligence technology is a comprehensive discipline that involves a wide range of fields, including both hardware-level technology and software-level technology. Basic artificial intelligence technologies generally include technologies such as sensors, cloud computing, distributed storage, big data processing technology, operation / interaction systems, and mechatronics. Artificial intelligence software technology mainly includes several major directions such as computer vision technology, machine learning / deep learning, etc. The solution provided in the embodiment of the present application involves technologies such as machine learning under artificial intelligence technology, and machine learning technology will be described below.

[0038] Machine learning (ML) is a multi-disciplinary cross-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithmic complexity theory and other disciplines. Machine learning specifically studies 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 usually includes deep learning, reinforcement learning, transfer learning, inductive learning, and teaching learning. This application mainly relates to reinforcement learning (RL) in machine learning technology. Reinforcement learning is used to describe and solve the problem of an agent learning strategy to maximize returns or achieve specific goals during the interaction process with the environment. In this application, the ranked recommendations can be reordered through reinforcement learning so that the reordered results can obtain the maximum feedback return or reward from the user. Reinforcement learning can be combined with deep learning, and then the learning effect can be improved with the help of the powerful feature expression ability in deep learning.

[0039] The communication system of the embodiment of the present application is introduced below:

[0040] See also Figure 1 , Figure 1 Schematic diagram of a communication system provided by an embodiment of the present application. Figure 1As shown, the communication system includes a terminal device 101 and a model processing device 102. The terminal device 101 is a device for users to view, listen to, and play multimedia data, including but not limited to: smart phones, tablet computers, laptops and other devices. The model processing device 102 is a background device or a chip in the background device that recommends multimedia data that may be of interest to users. Exemplarily, the model processing device 102 can be installed on a server, which can be an independent physical server, a server cluster or a 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, CDN, and big data and artificial intelligence platforms.

[0041] The terminal device 101 generates an online recommendation system request according to the operation of the sample user or the target user. The online recommendation system can generate recommendation data for the sample user or the target user. The specific process includes recall, sorting (coarse sorting, fine sorting), re-sorting, and recommendation. The model processing device 102 is mainly used in the re-sorting link in the process. By sampling and counting the online recommendation system requests of the sample users, the real information of the sample users and the behavior prediction probability of the candidate recommendation items (the probability is determined by the sorting link) are obtained, and training samples are generated based on the real information and probability. The generated training samples can be used to train the model. When the model processing device 102 receives the online recommendation system request of the target user in the terminal device 101, the sorted data to be recommended is re-sorted according to the trained model to generate the final recommendation data. After the terminal device 101 receives the recommendation data sent by the model processing device 102, it outputs it through output devices such as a display screen and a speaker. The terminal device 101 and the model processing device 102 can be directly or indirectly connected through wired communication or wireless communication, and this application does not limit this. It should be noted that, Figure 1 The number of terminal devices 101 and model processing devices in the communication system shown can be one or more, and this application does not impose any limitation on this.

[0042] See also Figure 2 , is a flow chart of a model processing method provided in an embodiment of the present application, the method includes steps 201 to 206. It should be noted that, Figure 2 The execution subject of the described method takes the above-mentioned model processing device 202 as an example. Among them:

[0043] 201. Obtain first object information and a candidate set of recommended items of a sample object; the candidate set of recommended items includes L candidate recommended items and predicted probabilities of N feedback behaviors corresponding to each candidate recommended item, where L and N are both positive integers, and the first object information is obtained based on the first online request data of the sample object.

[0044] The sample objects may be real users who have performed various interactions or feedbacks with the recommendation items online within a historical period of time.

[0045] In a possible implementation, the first object information includes static identity information and first historical behavior information of the sample object. The static identity information includes, but is not limited to, the age, gender, city, occupation, etc. of the sample object. The static identity information can be represented by a multi-hot vector. Exemplarily, the multi-hot vector representation format of the static identity information is (x1, x2, x3, x4, ....). Wherein, x1 is the age value of the sample object, x2 is the gender value of the sample object, when the gender is male, the value is 1, when the gender is female, the value is 2, x3 is the residential city code value of the sample object, and x4 represents the occupation code value of the sample object. For a male chef aged 20 living in Beijing, the city code of Beijing is preset to 1, and the occupation code of the chef is preset to 5, then its static identity information is (20, 1, 1, 5). It should be noted that the value of each type of information in the static identity information can be set according to the actual situation, and this application does not limit this.

[0046] In a possible implementation, the first historical behavior information is the amount of historical feedback behavior of the sample object on the L candidate recommendation items in the first historical time period. The time period in which the first historical time period is located is within the first historical time period, and the time corresponding to the first online request is within the first historical time period. The historical feedback behavior includes, but is not limited to, historical likes, historical comments, historical viewing behaviors, etc. in the first historical time period, and the amount of historical feedback behavior is the number of historical likes, the number of historical comments, the number of historical views, or the length of historical viewing. Exemplarily, the first historical behavior information can be represented by a one-dimensional multi-hot vector, for example, it can be represented as (5, 2, 2), where 5 means that the sample object liked the L candidate recommendation items a total of 5 times in the first historical time period, the first 2 means that the L candidate recommendation items were commented on a total of 2 times, and the second 2 means that the L candidate recommendation items were watched a total of 2 times; or, it can be represented as (5, 2, 30), where 5 and 2 have the same meaning as above, and 30 means that the L candidate recommendation items were watched for a total of 30 minutes.

[0047] For the candidate set of recommended items, the N types of feedback behaviors corresponding to each candidate recommended item can be the same as the types of the above historical feedback behaviors, and the predicted probabilities of the N types of feedback behaviors are the probability of liking, the probability of commenting, the probability of watching, etc. For example, the predicted probabilities of the N types of feedback behaviors for the i-th candidate recommended item can be expressed as

[0048] o i =(o i,1 , o i,2 ,... i,j,... i,N )

[0049] Among them, 1<<j<<N, o i,j It represents the predicted probability of the i-th candidate recommendation item in the j-th feedback behavior. The predicted probability of the N feedback behaviors of each candidate recommendation item can be obtained by the recommendation system through multi-task prediction of the feedback behavior of each candidate recommendation item in the real recommendation candidate set through online recall and sorting links.

[0050] 202. Call a fusion weight model to process the first object information and determine a fusion weight set of N feedback behaviors.

[0051] Corresponding to the above-mentioned N feedback behaviors, the fusion weight set includes N weight components, each weight component is used to indicate the fusion weight that needs to be optimized for the predicted probability of each feedback behavior. Exemplarily, the fusion weight set can be expressed as

[0052] a=(a1,a2,a3,...,a j , ..., a N )

[0053] Among them, a j Represents the jth weight component. By calling the fusion weight model to process the first object information of different sample objects, different fusion weight sets can be obtained. For example, if the sample object is a user who often likes and watches videos but rarely comments on them, then after the first object information of the sample object is input into the fusion weight model, the output weight component of likes and the weight component of views will be higher than the weight component of comments. If the sample object is a user who often watches videos but rarely likes and comments on them, then after the first object information of the sample object is input into the fusion weight model, the output weight component of views will be higher than the weight component of likes and the weight component of comments.

[0054] It should be noted that the parameters in the fusion weight model are synchronized with the parameters in the online fusion weight model (the trained fusion weight model) to ensure that the fusion weight set generated by the fusion weight model can restore the real recommendation environment to the greatest extent. Exemplarily, the frequency of synchronization updates can be set to synchronize once a day, that is, the parameters determined by the training in the fusion weight model of the previous day are synchronized to the online fusion weight model of the day, and the parameters determined by the training in the fusion weight model of the day are synchronized to the online fusion weight model of the next day. The fusion weight model can be a reinforcement learning model or a deep reinforcement learning model, etc., which is not limited in this application.

[0055] Exemplarily, the embodiment of the present application takes batch-constrained deep q-learning (BCQ) as an example to illustrate the process of obtaining a fusion weight set. Figure 3 This is a schematic diagram of a BCQ network architecture provided by this application. Figure 3 As shown in the figure, the first object information of the sample object is input into the BCQ network, and the output is a fusion weight set of N feedback behaviors. Specifically, after the first object information s is given, the Decoder network in the variational autoencoder model is called to generate Z initial fusion weight sets that conform to the distribution of the training data. Each initial fusion weight set includes weight components on N feedback behaviors. Next, the first object information s, Z initial fusion weight sets Noise φ is input into the Actor network, and Z sets of fusion weights after adding disturbance are output. Each set of fusion weights after adding disturbance can be expressed as a p =a h +ξ φ (s,a h , φ). Then the first object information s and the Z perturbed fusion weight sets are input into the Critic network, and Q θ Calculate the value of each fusion weight set after adding disturbance, and select the set with the maximum value as the final fusion weight set a. This process can be expressed as a=π(s)=argmax a Q θ (s,a p ).

[0056] 203. According to the fusion weight set and the predicted probability, M target recommendation items are selected from the L candidate recommendation items, M≤L.

[0057] In one possible implementation, the specific implementation process of step 203 is: performing a weighted sum operation on the predicted probabilities of N types of feedback behaviors of the candidate recommendation item to be processed and the fusion weight set to obtain the recommendation score of the candidate recommendation item to be processed, where the candidate recommendation item to be processed is one of the L candidate recommendation items, and the corresponding recommendation scores of the remaining candidate recommendation items are determined in the same manner; the recommendation scores of the L candidate recommendation items are sorted in descending order, and the M candidate recommendation items corresponding to the first M recommendation scores are used as the M target recommendation items.

[0058] When the candidate recommendation item to be processed is the i-th candidate recommendation item, the recommendation score of the candidate recommendation item to be processed can be calculated according to the following expression:

[0059] score i =a1*o i,1 +a2*oi,2 +...+a j *o i,j +...+a N *o i,N

[0060] For example, if L is 3, N is 4, M is 2, and the fusion weight set a=(a1, a2, a3, a4)=(0.1, 0.2, 0.3, 0.4), the predicted probabilities of the three candidate recommendation items are o1=(o 1,1 , o 1,2 , o 1,3 , o 1,4 )=(0.2, 0.25, 0.25, 0.3), o2=(o 2,1 , o 2,2 , o 2,3 , o 2,4 )=(0.3, 0.1, 0.3, 0.3), o3=(o 3,1 , o 3,2 , o 3,3 , o 3,4 )=(0.16, 0.24, 0.25, 0.35), then according to the above expression, the recommendation scores of the three candidate recommendation items are score1=0.265, score2=0.3, score3=0.279 respectively, and the rankings of the candidate recommendation items corresponding to the three recommendation scores are candidate recommendation item 2, candidate recommendation item 3, candidate recommendation item 1, and the target recommendation items are candidate recommendation item 2 and candidate recommendation item 3.

[0061] It can be understood that the values ​​of L, M, and N are based on actual conditions, and this application does not impose any restrictions on this. For example, for the service recommendation of video multimedia data, if multiple video data can be displayed simultaneously on the same page each time (for example, multiple videos are displayed on the homepage of the video application software each time), then the value of M for each service recommendation is the number of multiple video data that can be displayed on the same page; if only one video data can be displayed on the same page each time (for example, the short video application software only displays one video on a page each time), then the value of M for each service recommendation is 1; or, although only one video data can be displayed on the same page each time, but the user browses the video data displayed each time too fast (that is, the user will soon need to browse the next video data), then multiple target recommended videos can be selected each time (that is, the value of M is greater than 1) and stored in the video buffer of the user's terminal device, so that the terminal device can render and output in sequence according to the recommendation scores of multiple target recommended videos.

[0062] 204. Determine the predicted feedback behavior of each target recommendation item respectively, and determine the feedback reward according to the M predicted feedback behaviors.

[0063] Among them, the predicted feedback behavior simulates the feedback or interactive behavior of the sample object to each of the M target recommendation items. The predicted feedback behavior is a target probability including N feedback behaviors. For example, the predicted feedback behavior of a target recommendation item is (0.2, 0.3, 0.4, 0.1), which means that the sample object has a probability of 0.2 to perform the first feedback behavior on the target recommendation item, a probability of 0.3 to perform the second feedback behavior on the target recommendation item, a probability of 0.4 to perform the third feedback behavior on the target recommendation item, and a probability of 0.1 to perform the fourth feedback behavior on the target recommendation item. After the sample object's M predicted feedback behaviors on the M target recommendation items, the feedback reward r for this recommendation can be determined. The specific implementation of step 204 can be found in the description of the remaining embodiments below.

[0064] 205. Acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and time information corresponding to the first online request data and the second online request data are different;

[0065] The second object information includes the static identity information and the second historical behavior information of the sample object. The second historical behavior information is the historical feedback behavior of the sample object on the L candidate recommendation items in the second historical time period, and the first historical time period is before the second historical time period on the time axis. The specific manifestation of the static identity information and the second historical behavior information can be found in the relevant description in step 201, which will not be repeated here.

[0066] In a possible implementation manner, a training sample consisting of first object information, a fusion weight set, a feedback reward, and second object information is used to train a fusion weight model, and the trained fusion weight model is used for multimedia data recommendation.

[0067] The following takes the Critic network in the BCQ network as an example to briefly explain the process of training the fusion weight model. The update method of the parameter θ of the Critic network can be seen in the following expression:

[0068] θ←argmin θ ∑ (s,a)∈B (yQ θ (s,a)) 2

[0069] Wherein, B is a set based on training samples, each training sample is represented by (s, a, r, s′), and s′ is the second object information. In this application, a training method based on a training sample set is adopted, and each training sample generated according to the above steps is stored in the set B. During the model training process, a random small batch {(s, a, r, s′)} is extracted from B each time for model training. ∑(s,a)∈B (yQ θ (s,a)) 2 is the loss function of the Critic network. By minimizing the value of the loss function, the parameters θ of the Critic network are updated.

[0070] Update the expression

[0071]

[0072] It is used to represent the target Q value obtained according to the target Critic network, where γ is the future reward discount attenuation parameter, 0<γ<1. The larger the γ, the greater the value of the future reward at present. In particular, if the discount factor is equal to 1, it means that the future reward is equal to the current value. If the discount factor is 0, it means that the future reward is worthless at present, which means that the model recommendation effect is inaccurate. a′ p is the fusion weight set after adding disturbance corresponding to s′, λ is the dual network balance weight, is the target Critic network, and the current Critic network Have the same network structure.

[0073] In one possible implementation, the training sample also includes an exit flag, which includes a first flag and a second flag. The exit flag is determined based on the historical exit rate and exit prediction rate of the M target recommendation items. If the exit flag of the training sample is the first flag, then stop generating the next training sample about the sample object; if the exit flag of the training sample is the second flag, then continue generating the next training sample about the sample object.

[0074] For example, the exit flag can be represented by D, where D is composed of {d1, d2, d3, ..., d M}Determine, d1, d2, d3, ..., d M True and False can be determined by the historical exit rate and exit prediction rate of each target recommendation item. For the specific determination method, please refer to the determination method of d in the following method embodiment. M If True is present in , then D is the first flag, indicating that the sample object has exited the current session. The new target recommendation item generated based on the sample object will not get the predicted feedback behavior of the sample object, that is, no new training sample can be obtained. At this time, the generation of the next training sample for the sample object is stopped; when d1, d2, d3, ..., d MIf there is no True and all are False, then D is the second flag, indicating that the sample object has not exited the current session. The new target recommendation item generated based on the sample object will obtain the predicted feedback behavior of the sample object, which means that the next training sample about the sample object can be generated.

[0075] For the above scheme of generating training samples for model training, Figure 4 Taking the example of the actual application process, Figure 4 The figure shows an application flow diagram for generating training samples provided by the present application. Specifically, after obtaining the online recommendation system request of the sample object, the model processing device obtains the first object information and the candidate set of recommended items of the sample object from the online recommendation system through the online traffic control module, and then reorders the candidate recommended items through the recommended item reordering module to determine a number of target recommended items (a fusion weight set is determined in this process), and finally determines the predicted feedback behavior of the sample object, the feedback reward of the predicted feedback behavior, and the second object information of the sample object through the user behavior simulation module. The user training trajectory (first object information, fusion weight set, feedback reward, second object information) determined by the above process is the training sample.

[0076] The above describes how to generate training samples for model training and the model training method. Next, we briefly describe how to apply the model to multimedia data recommendation:

[0077] In one possible implementation, the application of the model to the recommendation of multimedia data specifically includes: obtaining object information and a multimedia data set of a target object; the multimedia data set includes S multimedia data and an initial predicted probability of N feedback behaviors corresponding to each multimedia data, where S is a positive integer, and the object information is obtained based on the online request data of the target object, and the object information includes the static identity information and historical behavior information of the object; calling the trained fusion weight model to process the object information and determine a target fusion weight set of N feedback behaviors; performing a weighted sum operation on the initial predicted probability of each multimedia data and the target fusion weight set respectively to obtain a target recommendation score for each multimedia data; selecting K multimedia data to be recommended from the S multimedia data according to the target recommendation score of each multimedia data, where K≤S; and sending the K multimedia data to be recommended to the terminal device where the target object is located.

[0078] In this method, the initial prediction probability of N feedback behaviors corresponding to each multimedia data can be obtained by the remaining recommendation systems through multi-task prediction of the feedback behavior of each multimedia data in the multimedia data set through online recall and sorting links. For determining the K multimedia data to be recommended, please refer to the corresponding description in the above-mentioned method of obtaining training samples, and this application does not limit this. It should be noted that this method can be mainly applied to single recommendation tasks and multiple recommendation tasks. When applied to a single recommendation task, K multimedia data to be recommended can be determined from S multimedia data for recommendation; when applied to multiple recommendation tasks, K multimedia data to be recommended can be determined from S multimedia data for recommendation in the first time, and K new multimedia data to be recommended can be determined from SK multimedia data for recommendation in the second time, and so on.

[0079] based on Figure 2 In the embodiment shown, the real object information of the sample object can be obtained through an online request, and then the training sample of the model applied to multimedia data recommendation can be generated from the real object information. Since the training sample retains the real information of the sample object, compared with the training sample generated completely by the simulator, the training sample of the present application is more authentic, which can reduce data errors and restore the real recommendation environment to the greatest extent. The recommendation model trained by the real training sample has higher recommendation accuracy.

[0080] See also Figure 5 , is a flow chart of determining predicted feedback behavior and feedback reward provided by an embodiment of the present application, the method includes steps 501 to 505. Steps 501 to 505 are the above Figure 2 Specific implementation of step 205 in the corresponding embodiment:

[0081] 501. Obtain a first prediction strategy and a first probability of being selected for the first prediction strategy, and obtain a second prediction strategy and a second probability of being selected for the second prediction strategy; the first prediction strategy and the second prediction strategy are different.

[0082] The first prediction strategy is used to predict the probability of feedback behavior of the target recommendation item to be processed (the prediction probability can be found in Figure 2 The prediction probability in the illustrated embodiment) is used to simulate the feedback behavior of the sample object for the target recommendation item, and the second prediction strategy is used to randomly trigger the sample object's feedback on the target recommendation item.

[0083] 502. Select a target prediction strategy from the first prediction strategy and the second prediction strategy for the target recommendation item to be processed according to the first selection probability and the second selection probability.

[0084] Among them, the target recommendation item to be processed is a target recommendation item among the M target recommendation items. Choosing to use the first prediction strategy or the second prediction strategy to predict the feedback behavior with a certain probability can make the determined feedback reward more accurate.

[0085] Exemplarily, the ε-greedy algorithm in the following expression can be used to determine the target prediction strategy to determine the predicted feedback behavior according to the target prediction strategy. Wherein, each time the predicted feedback behavior of the sample object is explored with probability ε (i.e., the second selected probability mentioned above), the predicted feedback behavior of the sample object is determined with probability 1-ε (i.e., the first selected probability mentioned above), and the predicted feedback behavior of the sample object is determined by using the predicted probability of the feedback behavior of the target recommendation item to be processed. If the certainty of the feedback reward of the predicted feedback behavior is large, ε can take a larger value (that is, more exploration of the predicted feedback behavior is required), and if the certainty of the feedback reward of the predicted feedback behavior is small, ε can take a smaller value (that is, a small amount of exploration is required to determine the predicted feedback behavior, and the predicted feedback behavior determined by the first prediction strategy is very authentic), for example, ε can take a value of 0.1 or 0.01. Alternatively, as the number of predicted feedback behaviors increases, the similarity between the feedback behavior predicted by the first prediction strategy and the real feedback behavior gradually increases, and the value of ε can be reduced in sequence. The value of ε can be determined according to actual conditions, and this application does not limit this.

[0086]

[0087] 503. Determine the prediction feedback behavior of the target recommendation item to be processed according to the target prediction strategy.

[0088] In one possible implementation, step 503 specifically includes: determining the simulated probability of each feedback behavior of the target recommendation item to be processed according to the target prediction strategy; obtaining the online feedback probabilities of multiple objects for N types of feedback behaviors of the target recommendation item to be processed, and obtaining the predicted feedback probabilities of multiple objects for N types of feedback behaviors of the target recommendation item to be processed; correcting the N simulated probabilities according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain the target probabilities of the N types of feedback behaviors of the target recommendation item to be processed; and combining the N target probabilities into the predicted feedback behavior of the target recommendation item to be processed.

[0089] Optionally, the method for determining the simulated probability of each feedback behavior of the target recommended item to be processed specifically includes: when the target prediction strategy is the first prediction strategy, using the predicted probability of each feedback behavior of the target recommended item to be processed as the simulated probability of each feedback behavior of the target recommended item to be processed; or, when the target prediction strategy is the second prediction strategy, respectively determining the feedback probability threshold of each feedback behavior of the target recommended item to be processed, respectively determining the feedback probability intervals of N types of feedback behaviors of the target recommended item to be processed according to the feedback probability thresholds, and randomly sampling in the N feedback probability intervals to determine the simulated probability of each feedback behavior of the target recommended item to be processed.

[0090] For example, when the target prediction strategy is the first prediction strategy and the target recommendation item to be processed is the mth target recommendation item, then o m Determine the simulated probability of N kinds of feedback behaviors of the sample object on the target recommendation item to be processed, o m The representation of Figure 2 In the embodiment shown, i . When the target prediction strategy is the second prediction strategy, assuming that the feedback behavior has three forms: likes, comments, and views, the feedback probability thresholds max of likes, comments, and views are determined respectively, and then according to rand(0, max), a value between 0 and max is randomly determined as the simulation probability of each feedback behavior. For example, the probability thresholds of likes and comments are preset to 1, and the probability threshold of views is preset to a positive integer of 5 determined according to prior knowledge. Then, according to rand(0, max), the simulation probabilities of likes, comments, and views can be determined to be 0.4, 0.35, and 2.56. It should be noted that this application does not limit the specific setting values ​​of the feedback probability thresholds.

[0091] In this implementation, in order to further improve the authenticity and accuracy of predicting feedback behavior and determining feedback rewards, the simulation probability determined according to the target prediction strategy can be modified to obtain the target probability. The target probability of each feedback behavior can be combined to represent the predicted feedback behavior of the sample object for the target recommendation item to be processed. For example, importance sampling can be introduced to align the distribution of the simulation probability with the online feedback probability to obtain the target probability. The specific process can be seen in the following expression:

[0092] Target probability = σ 线上 / σ 预测 *(Simulation probability - μ 预测 )+μ 线上

[0093] Among them, μ 线上 and σ 线上is the mean and variance of the online feedback probability (also called the online feedback mean and online feedback variance), μprediction and σprediction are the mean and variance of the predicted feedback probability (also called the predicted feedback mean and predicted feedback variance), σ 线上 / σ 预测 is the importance weight determined according to the online feedback variance and the predicted feedback variance. Each simulated probability can be corrected according to the importance weight, the predicted feedback mean, and the online feedback mean to obtain a target probability aligned with the online feedback probability.

[0094] For the online feedback behaviors of V objects on the target recommendation items to be processed, V*N online feedback probabilities can be determined. The result can be represented by the following matrix, where one row of the matrix represents the online feedback probability of an object for N feedback behaviors on the target recommendation items to be processed, and one column of the matrix represents the online feedback probability of V objects for each feedback behavior on the target recommendation items to be processed. It should be noted that the online feedback behaviors of V objects on the target recommendation items to be processed are feedback behaviors within a period of time, and the number of values ​​of V is much smaller than the number of generated training samples. In practical applications, the number of training samples in the tens of millions can be determined through the number of online feedback behaviors in the thousands. Therefore, through each column of the matrix, the mean value μ of the online feedback probability of V objects for each feedback behavior on the target recommendation items to be processed can be determined 线上 and variance σ 线上 In addition, μ 预测 and σ 预测 It can be obtained by the predicted feedback probability of each feedback behavior of V objects to the target recommendation item to be processed. The predicted feedback probability of each object for each feedback behavior of the target recommendation item to be processed can be found in Figure 2 In step 201 of the embodiment, i , I will not go into details here.

[0095]

[0096] In another possible implementation, step 503 includes: when the target prediction strategy is the first prediction strategy, obtaining online feedback probabilities of multiple objects for N types of feedback behaviors on the target recommendation item to be processed, and obtaining predicted feedback probabilities of multiple objects for N types of feedback behaviors on the target recommendation item to be processed; correcting the predicted probability of the target recommendation item to be processed according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain target probabilities of N types of feedback behaviors on the target recommendation item to be processed; combining the N target probabilities into predicted feedback behaviors of the target recommendation item to be processed;

[0097] Alternatively, when the target prediction strategy is the second prediction strategy, the feedback probability threshold of each feedback behavior of the target recommendation item to be processed is determined respectively; the feedback probability intervals of N feedback behaviors of the target recommendation item to be processed are determined respectively according to the feedback probability thresholds; random sampling is performed in the N feedback probability intervals to determine the target probability of the N feedback behaviors of the target recommendation item to be processed; and the N target probabilities are combined into the predicted feedback behavior of the target recommendation item to be processed.

[0098] In this method, only the target probability determined according to the first prediction strategy is corrected, and the target probability determined according to the second prediction strategy is not corrected. In the specific implementation, the workload of the correction is reduced and the efficiency of determining the prediction feedback behavior is improved. The method of determining the target probability according to the two prediction strategies can be referred to the corresponding description in the first possible implementation method above, which will not be repeated here.

[0099] 504. Perform a weighted sum operation on the N target probabilities of the target recommendation item to be processed to obtain a feedback reward component of the target recommendation item to be processed.

[0100] For example, if the N target probabilities of the target recommendation item to be processed are determined to be (0.08, 0.25, 0.32, 0.2, 0.15), the N target probabilities are weighted and summed according to the preset reward weight set to obtain the feedback reward component of the target recommendation item to be processed:

[0101]

[0102] Among them, m i is the target probability of the jth feedback behavior, w j is the preset reward weight component of the jth feedback behavior. For example, if the preset reward weight set is (0.2, 0.2, 0.2, 0.2, 0.2), then the feedback reward component of the target recommendation item to be processed is 0.2*0.08+0.2*0.25+0.2*0.32+0.2*0.2+0.2*0.15=0.188.

[0103] 505. Perform superposition processing on the M feedback reward components to determine the feedback reward.

[0104] In one possible implementation, the M feedback reward components may be added together to obtain a final feedback reward r.

[0105] In another possible implementation, step 504 specifically includes: obtaining the predicted exit rate of each target recommendation item for the sample object; determining the historical exit rate of each target recommendation item according to the cumulative recommendation amount of each target recommendation item in the session (the cumulative recommendation amount is the number of all recommended target recommendation items before the target recommendation item); setting a polling priority for each of the M target recommendation items according to the recommendation score, wherein the higher the recommendation score, the higher the priority; determining the target recommendation item to be polled from the M target recommendation items in descending order of the polling priority;

[0106] Among them, if the historical exit rate of the target recommendation item to be polled is greater than the exit prediction rate, the feedback reward component of the target recommendation item to be polled is added to the reward set, and the next target recommendation item to be polled is determined; if the historical exit rate of the target recommendation item to be polled is not greater than the exit prediction rate, or all target recommendations are determined to be the target recommendation items to be polled, then the polling is stopped, and all feedback reward components in the reward set are added to obtain the feedback reward.

[0107] In this possible implementation, while simulating the predicted feedback behavior of the sample object, the probability of the sample object jumping out of the current session is simulated. The probability of the sample object jumping out of the current session (also called the exit prediction rate), the exit prediction rate refers to the predicted probability of the sample object exiting the current session when interacting with the current target recommendation item. Exemplarily, if the exit prediction rate of the sample object for the current target recommendation item is 0, then the sample object cannot exit the current session when interacting with the current target recommendation item. If the exit prediction rate of the sample object for the current target recommendation item is 1, then the sample object must exit the current session when interacting with the current target recommendation item. The value of the exit prediction rate can be any value in the interval [0, 1], and this application does not impose any restrictions on this. The historical exit rate refers to the actual probability of an object exiting a historical session when interacting with a target recommendation item (the actual probability is obtained by statistically analyzing online data using a statistical method). The historical exit rate is strongly correlated to the number of recommendations browsed by the sample object. For example, the historical exit rate of a recommendation item increases as the number of recommendations browsed by the sample object increases. Therefore, this application considers the impact of the accumulated recommendations in the session when simulating the exit behavior, and gives the exit rules for each target recommendation item to be polled:

[0108]

[0109] Among them, q 预测 is the exit prediction rate of each candidate recommendation item obtained by the recommendation system when performing multi-task scoring on the candidate recommendation items, q 历史For the historical exit rate of each target recommendation item, rand(0,1) uniformly generates a random number between 0 and 1 to increase the randomness of the exit rule. Specifically, the exit behavior of the sample object is explored with probability i each time, and the exit prediction rate and historical exit rate of the target recommendation item to be polled are used to determine the exit behavior of the sample object with probability 1-ε. Exemplarily, if the historical exit rate and predicted exit rate of the five target recommendation items are (0.4, 0.5, 0.6, 0.7) and (0.35, 0.45, 0.65, 0.67) respectively, and the recommendation scores / priorities of the five target recommendation items are from high to low, then according to the exit rule, the sample object will not generate exit behavior in the first two target recommendation items, and will generate exit behavior in the third target recommendation item, and the exit behavior generated in the third target recommendation item will make the sample object have no feedback behavior on the fourth recommendation item. It can be seen that the feedback reward components of the first two target recommendation items can be added together to obtain the feedback reward. It should be noted that, since there are sample objects that have exited in the four target recommendation items (that is, the value of d for the third target recommendation item is True), according to Figure 2 The described embodiment does not continue to generate the next training sample about the sample object.

[0110] based on Figure 5 In the embodiment shown, the predicted feedback behavior of the sample object to the target recommendation item can be determined, and the predicted feedback behavior can be used to determine Figure 2 Feedback rewards in training samples in the embodiment.

[0111] See also Figure 6 , is a schematic diagram of the structure of a model processing device provided in an embodiment of the present application. The model processing device includes: an acquisition module 601 and a processing module 602. Among them:

[0112] The acquisition module 601 is used to acquire first object information and a recommendation item candidate set of the sample object; the recommendation item candidate set includes L candidate recommendation items and predicted probabilities of N feedback behaviors corresponding to each candidate recommendation item, where L and N are both positive integers, and the first object information is acquired according to the first online request data of the sample object;

[0113] The processing module 602 is used to call the fusion weight model to process the first object information and determine the fusion weight set of N feedback behaviors;

[0114] The processing module 602 is further configured to select M target recommendation items from the L candidate recommendation items according to the fusion weight set and the predicted probability, where M≤L;

[0115] The processing module 602 is further used to determine the predicted feedback behavior of each target recommendation item, and determine the feedback reward according to the M predicted feedback behaviors;

[0116] The acquisition module 601 is further used to acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and the first online request data and the second online request data respectively correspond to different time information;

[0117] The training samples consisting of the first object information, the fusion weight set, the feedback reward and the second object information are used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation.

[0118] In a possible implementation manner, the processing module 602, when used to select M target recommendation items from L candidate recommendation items according to the fusion weight set and the predicted probability, specifically includes:

[0119] Processing module 602, configured to perform a weighted sum operation on the predicted probabilities of the N feedback behaviors of the candidate recommendation item to be processed and the fusion weight set to obtain a recommendation score of the candidate recommendation item to be processed, where the candidate recommendation item to be processed is one of the L candidate recommendation items;

[0120] The processing module 602 is further configured to sort the recommendation scores of the L candidate recommendation items in descending order, and use the M candidate recommendation items corresponding to the first M recommendation scores as the M target recommendation items.

[0121] In a possible implementation manner, the target recommendation item to be processed is one of the M target recommendation items, and the processing module 602, when used to determine the predicted feedback behavior of the target recommendation item to be processed, specifically includes:

[0122] An acquisition module 601 is used to acquire a first prediction strategy and a first probability of the first prediction strategy being selected, and to acquire a second prediction strategy and a second probability of the second prediction strategy being selected; the first prediction strategy and the second prediction strategy are different;

[0123] A processing module 602 is used to select a target prediction strategy from the first prediction strategy and the second prediction strategy for the target recommendation item to be processed according to the first selection probability and the second selection probability;

[0124] The processing module 602 is further used to determine the prediction feedback behavior of the target recommendation item to be processed according to the target prediction strategy.

[0125] In a possible implementation manner, the processing module 602, when used to determine the predicted feedback behavior of the target recommendation item to be processed according to the target prediction strategy, specifically includes:

[0126] A processing module 602 is used to determine the simulation probability of each feedback behavior of the target recommendation item to be processed according to the target prediction strategy;

[0127] An acquisition module 601 is used to acquire online feedback probabilities of N types of feedback behaviors of multiple objects on the target recommendation items to be processed, and to acquire predicted feedback probabilities of N types of feedback behaviors of multiple objects on the target recommendation items to be processed;

[0128] The processing module 602 is further used to modify the N simulated probabilities according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain target probabilities of N feedback behaviors for the target recommendation item to be processed;

[0129] The processing module 602 is further configured to combine the N target probabilities into a predicted feedback behavior of the target recommendation item to be processed.

[0130] In a possible implementation manner, when determining the simulation probability of each feedback behavior of the target recommendation item to be processed, the processing module 602 specifically includes:

[0131] When the target prediction strategy is the first prediction strategy, the processing module 602 is used to use the predicted probability of each feedback behavior of the target recommendation item to be processed as the simulated probability of each feedback behavior of the target recommendation item to be processed; or

[0132] When the target prediction strategy is the second prediction strategy, the processing module 602 is used to respectively determine the feedback probability threshold of each feedback behavior of the target recommendation item to be processed, determine the feedback probability intervals of N types of feedback behaviors of the target recommendation item to be processed according to the feedback probability threshold, and randomly sample in the N feedback probability intervals to determine the simulation probability of each feedback behavior of the target recommendation item to be processed.

[0133] In a possible implementation manner, the processing module 602, when used to determine the predicted feedback behavior of the target recommendation item to be processed according to the target prediction strategy, specifically includes:

[0134] When the target prediction strategy is the first prediction strategy, the acquisition module 601 is used to obtain the online feedback probabilities of multiple objects for N kinds of feedback behaviors on the target recommendation items to be processed, and to obtain the predicted feedback probabilities of multiple objects for N kinds of feedback behaviors on the target recommendation items to be processed; the processing module 602 is used to correct the predicted probability of the target recommendation items to be processed according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object, and obtain the target probabilities of the N kinds of feedback behaviors on the target recommendation items to be processed; the processing module 602 is also used to combine the N target probabilities into the predicted feedback behaviors of the target recommendation items to be processed;

[0135] Alternatively, when the target prediction strategy is the second prediction strategy, processing module 602 is used to respectively determine the feedback probability threshold of each feedback behavior of the target recommendation item to be processed; processing module 602 is also used to respectively determine the feedback probability intervals of N types of feedback behaviors of the target recommendation item to be processed according to the feedback probability threshold; processing module 602 is also used to randomly sample in the N feedback probability intervals to determine the target probability of the N types of feedback behaviors of the target recommendation item to be processed; processing module 602 is also used to combine the N target probabilities into a predicted feedback behavior of the target recommendation item to be processed.

[0136] In a possible implementation, the processing module 602, when used to correct the N simulated probabilities according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain the target probabilities of N feedback behaviors for the target recommendation item to be processed, specifically includes:

[0137] A processing module 602 is used to determine the online feedback mean and online feedback variance of each feedback behavior according to the N online feedback probabilities of each object;

[0138] The processing module 602 is further used to determine the predicted feedback mean and predicted feedback variance of each feedback behavior according to the N predicted feedback probabilities of each object;

[0139] The processing module 602 is further used to determine the importance weight of each feedback behavior according to the N online feedback variances and the N predicted feedback variances;

[0140] The processing module 602 is also used to correct the N simulated probabilities according to the importance weight of each feedback behavior, the online feedback mean of each feedback behavior and the predicted feedback mean of each feedback behavior, so as to obtain the target probabilities of the N feedback behaviors of the target recommendation item to be processed.

[0141] In a possible implementation, the processing module 602, when used to determine the feedback reward according to the M predicted feedback behaviors, specifically includes:

[0142] The processing module 602 is used to perform a weighted sum operation on the N target probabilities of the target recommendation item to be processed to obtain a feedback reward component of the target recommendation item to be processed;

[0143] The processing module 602 is further used to perform superposition processing on the M feedback reward components to determine the feedback reward.

[0144] In a possible implementation manner, the processing module 602, when used to perform superposition processing on the M feedback reward components to determine the feedback reward, specifically includes:

[0145] An acquisition module 601 is used to acquire the exit prediction rate of the sample object for each target recommendation item;

[0146] Processing module 602, for determining a historical exit rate of each target recommendation item according to the cumulative recommendation amount of each target recommendation item in the session;

[0147] The processing module 602 is further configured to set a polling priority for each of the M target recommendation items according to the recommendation score, wherein the higher the recommendation score, the higher the priority;

[0148] The processing module 602 is further configured to determine the target recommendation item to be polled from the M target recommendation items in descending order of polling priority;

[0149] If the historical exit rate of the target recommendation item to be polled is greater than the predicted exit rate, the processing module 602 is further configured to add the feedback reward component of the target recommendation item to be polled to the reward set, and determine the next target recommendation item to be polled;

[0150] If the historical exit rate of the target recommendation item to be polled is not greater than the predicted exit rate, or all target recommendation items are determined to be the target recommendation items to be polled, the processing module 602 is also used to stop polling and add all feedback reward components in the reward set to obtain a feedback reward.

[0151] In one possible implementation, the training sample also includes an exit flag, which is determined based on the historical exit rate and the exit prediction rate of the M target recommendation items. The exit flag includes a first flag and a second flag. The processing module 602 is also used to stop generating the next training sample about the sample object if the exit flag of the training sample is the first flag; and continue generating the next training sample about the sample object if the exit flag of the training sample is the second flag.

[0152] In one possible implementation, the first object information includes static identity information and first historical behavior information of the sample object, the first historical behavior information is the historical feedback behavior volume of the sample object for L candidate recommendation items within a first historical time period, and the second object information includes the static identity information and second historical behavior information of the sample object, the second historical behavior information is the historical feedback behavior volume of the sample object for L candidate recommendation items within a second historical time period, and the first historical time period is before the second historical time period on the timeline.

[0153] In a possible implementation manner, the model processing device further includes a sending module 603, and the method further includes:

[0154] An acquisition module is used to acquire object information and a multimedia data set of a target object; the multimedia data set includes S multimedia data and an initial prediction probability of N feedback behaviors corresponding to each multimedia data, where S is a positive integer, and the object information is acquired based on the online request data of the target object;

[0155] A processing module 602 is used to call the trained fusion weight model to process the object information and determine a target fusion weight set of N feedback behaviors;

[0156] The processing module 602 is further used to perform a weighted sum operation on the initial prediction probability of each multimedia data and the target fusion weight set to obtain a target recommendation score for each multimedia data;

[0157] The processing module 602 is further configured to select K multimedia data to be recommended from the S multimedia data according to the target recommendation score of each multimedia data, where K≤S;

[0158] The sending model 603 is used to send K multimedia data to be recommended to the terminal device where the target object is located.

[0159] It should be noted that the functions of each functional module of the model processing device in the embodiment of the present application can be specifically implemented according to the method in the above-mentioned method embodiment. Its specific implementation process and beneficial effects can refer to the relevant description of the above-mentioned method embodiment, which will not be repeated here.

[0160] See also Figure 7 , is a structural diagram of an electronic device provided in an embodiment of the present application. The electronic device includes: a processor 701, a storage device 702 and a network interface 703. Data can be exchanged between the processor 701, the storage device 702 and the network interface 703. The storage device 702 may include a volatile memory (volatile memory), such as a random-access memory (random-access memory, RAM); the storage device 702 may also include a non-volatile memory (non-volatile memory), such as a flash memory (flash memory), a solid-state drive (solid-state drive, SSD), etc.; the storage device 702 may also include a combination of the above-mentioned types of memory. The processor 701 may be a central processing unit (CPU). In one embodiment, the storage device 702 is used to store program instructions, and the processor 701 may call the program instructions to perform the following operations:

[0161] Acquire first object information and a candidate set of recommended items of the sample object; the candidate set of recommended items includes L candidate recommended items and predicted probabilities of N feedback behaviors corresponding to each candidate recommended item, where L and N are both positive integers, and the first object information is acquired according to the first online request data of the sample object;

[0162] Calling the fusion weight model to process the first object information and determine a fusion weight set of N feedback behaviors;

[0163] According to the fusion weight set and prediction probability, M target recommendation items are selected from L candidate recommendation items, M≤L;

[0164] Determine the predicted feedback behavior for each target recommendation item, and determine the feedback reward based on the M predicted feedback behaviors;

[0165] Acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and time information corresponding to the first online request data and the second online request data are different;

[0166] The training sample consisting of the first object information, the fusion weight set, the feedback reward and the second object information is used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation. In one possible implementation, the processor 701, when used to select M target recommendation items from L candidate recommendation items according to the fusion weight set and the predicted probability, specifically includes:

[0167] Performing a weighted sum operation on the predicted probabilities of the N feedback behaviors of the candidate recommendation item to be processed and the fusion weight set to obtain a recommendation score of the candidate recommendation item to be processed, where the candidate recommendation item to be processed is one of the L candidate recommendation items;

[0168] Sort the recommendation scores of the L candidate recommendation items in descending order, and use the M candidate recommendation items corresponding to the first M recommendation scores as the M target recommendation items.

[0169] In a possible implementation manner, the target recommendation item to be processed is one of the M target recommendation items, and the processor 701, when used to determine the predicted feedback behavior of the target recommendation item to be processed, specifically includes:

[0170] Obtaining a first prediction strategy and a first probability of being selected for the first prediction strategy, and obtaining a second prediction strategy and a second probability of being selected for the second prediction strategy; the first prediction strategy and the second prediction strategy are different;

[0171] Selecting a target prediction strategy from the first prediction strategy and the second prediction strategy for the target recommendation item to be processed according to the first selection probability and the second selection probability;

[0172] According to the target prediction strategy, the prediction feedback behavior of the target recommendation item to be processed is determined.

[0173] In a possible implementation manner, the processor 701, when used to determine the prediction feedback behavior of the target recommendation item to be processed according to the target prediction strategy, specifically includes:

[0174] According to the target prediction strategy, determine the simulation probability of each feedback behavior of the target recommendation item to be processed;

[0175] Obtaining online feedback probabilities of N types of feedback behaviors of multiple objects on the target recommendation items to be processed, and obtaining predicted feedback probabilities of N types of feedback behaviors of multiple objects on the target recommendation items to be processed;

[0176] According to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object, the N simulated probabilities are corrected to obtain the target probabilities of N feedback behaviors for the target recommendation item to be processed;

[0177] Combine N target probabilities into a predicted feedback behavior for the target recommendation item to be processed.

[0178] In a possible implementation manner, the processor 701, when determining the simulation probability of each feedback behavior of the target recommendation item to be processed, specifically includes:

[0179] When the target prediction strategy is the first prediction strategy, the predicted probability of each feedback behavior of the target recommendation item to be processed is used as the simulated probability of each feedback behavior of the target recommendation item to be processed; or,

[0180] When the target prediction strategy is the second prediction strategy, the feedback probability threshold of each feedback behavior of the target recommendation item to be processed is determined respectively, and the feedback probability intervals of N feedback behaviors of the target recommendation item to be processed are determined respectively according to the feedback probability thresholds. Random sampling is performed in the N feedback probability intervals to determine the simulation probability of each feedback behavior of the target recommendation item to be processed.

[0181] In a possible implementation manner, the processor 701, when used to determine the prediction feedback behavior of the target recommendation item to be processed according to the target prediction strategy, specifically includes:

[0182] When the target prediction strategy is the first prediction strategy, online feedback probabilities of multiple objects for N kinds of feedback behaviors on the target recommendation items to be processed, and predicted feedback probabilities of multiple objects for N kinds of feedback behaviors on the target recommendation items to be processed are obtained; the predicted probability of the target recommendation items to be processed is corrected according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain the target probabilities of the N kinds of feedback behaviors on the target recommendation items to be processed; the N target probabilities are combined into the predicted feedback behavior of the target recommendation items to be processed;

[0183] Alternatively, when the target prediction strategy is the second prediction strategy, the feedback probability threshold of each feedback behavior of the target recommendation item to be processed is determined respectively; the feedback probability intervals of N feedback behaviors of the target recommendation item to be processed are determined respectively according to the feedback probability thresholds; random sampling is performed in the N feedback probability intervals to determine the target probability of the N feedback behaviors of the target recommendation item to be processed; and the N target probabilities are combined into the predicted feedback behavior of the target recommendation item to be processed.

[0184] In a possible implementation manner, the processor 701, when used to correct the N simulated probabilities according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain the target probabilities of N feedback behaviors for the target recommendation item to be processed, specifically includes:

[0185] According to the N online feedback probabilities of each object, determine the online feedback mean and online feedback variance of each feedback behavior;

[0186] According to the N predicted feedback probabilities of each object, the predicted feedback mean and predicted feedback variance of each feedback behavior are determined;

[0187] Determine the importance weight of each feedback behavior based on N online feedback variances and N predicted feedback variances;

[0188] According to the importance weight of each feedback behavior, the online feedback mean of each feedback behavior and the predicted feedback mean of each feedback behavior, the N simulated probabilities are corrected respectively to obtain the target probabilities of the N feedback behaviors for the target recommendation items to be processed.

[0189] In a possible implementation manner, the processor 701, when used to determine the feedback reward according to the M predicted feedback behaviors, specifically includes:

[0190] Perform a weighted sum operation on the N target probabilities of the target recommendation item to be processed to obtain the feedback reward component of the target recommendation item to be processed;

[0191] The M feedback reward components are superimposed to determine the feedback reward.

[0192] In a possible implementation manner, the processor 701, when used to perform superposition processing on the M feedback reward components to determine the feedback reward, specifically includes:

[0193] Obtain the predicted exit rate of each target recommendation item for the sample object;

[0194] Determine the historical exit rate of each target recommendation item based on the cumulative number of recommendations for each target recommendation item within the session;

[0195] According to the recommendation score, the polling priority is set for each of the M target recommendation items. The higher the recommendation score, the higher the priority.

[0196] Determine the target recommendation item to be polled from the M target recommendation items in descending order of polling priority;

[0197] If the historical exit rate of the target recommendation item to be polled is greater than the predicted exit rate, the feedback reward component of the target recommendation item to be polled is added to the reward set, and the next target recommendation item to be polled is determined;

[0198] If the historical exit rate of the target recommendation item to be polled is not greater than the predicted exit rate, or all target recommendation items are determined to be the target recommendation items to be polled, the polling is stopped, and all feedback reward components in the reward set are added together to obtain the feedback reward.

[0199] In one possible implementation, the training sample also includes an exit flag, which is determined based on the historical exit rate and the exit prediction rate of the M target recommendation items. The exit flag includes a first flag and a second flag. The processor 701 is also used to stop generating the next training sample about the sample object if the exit flag of the training sample is the first flag; if the exit flag of the training sample is the second flag, continue to generate the next training sample about the sample object.

[0200] In one possible implementation, the first object information includes static identity information and first historical behavior information of the sample object, the first historical behavior information is the historical feedback behavior volume of the sample object for L candidate recommendation items within a first historical time period, and the second object information includes the static identity information and second historical behavior information of the sample object, the second historical behavior information is the historical feedback behavior volume of the sample object for L candidate recommendation items within a second historical time period, and the first historical time period is before the second historical time period on the timeline.

[0201] In a possible implementation manner, the processor 701 is further configured to:

[0202] Obtain object information and a multimedia data set of a target object; the multimedia data set includes S multimedia data and initial prediction probabilities of N feedback behaviors corresponding to each multimedia data, where S is a positive integer, and the object information is obtained based on online request data of the target object;

[0203] The trained fusion weight model is called to process the object information and determine the target fusion weight set of N feedback behaviors;

[0204] Perform a weighted sum operation on the initial prediction probability of each multimedia data and the target fusion weight set to obtain the target recommendation score of each multimedia data;

[0205] According to the target recommendation score of each multimedia data, K multimedia data to be recommended are selected from S multimedia data, K≤S;

[0206] The K multimedia data to be recommended are sent to the terminal device where the target object is located.

[0207] In a specific implementation, the processor 701, the storage device 702, and the network interface 703 described in the embodiments of the present application can execute the embodiments of the present application. Figure 3 The implementation described in the relevant embodiments of the provided model processing method will not be repeated here.

[0208] In addition, it should be pointed out here that: the embodiment of the present application also provides a computer-readable storage medium, and the computer-readable storage medium stores a computer program executed by the model processing device mentioned above, and the computer program includes program instructions. When the processor executes the above program instructions, it can execute the above Figure 3 , Figure 5 The method in the corresponding embodiment, therefore, will not be repeated here. In addition, the description of the beneficial effects of the same method will not be repeated. For technical details not disclosed in the computer-readable storage medium embodiment involved in this application, please refer to the description of the method embodiment of this application. As an example, the program instructions can be deployed on a computer device, or executed on multiple computer devices located in one location, or, executed on multiple computer devices distributed in multiple locations and interconnected by a communication network, and multiple computer devices distributed in multiple locations and interconnected by a communication network can constitute a blockchain system.

[0209] According to one aspect of the present application, a computer program product or a computer program is provided, the computer program product or the computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device can perform the above Figure 3 , Figure 5 The method in the corresponding embodiment will therefore not be described in detail here.

[0210] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiments can be implemented by instructing the relevant hardware through a computer program, and the above-mentioned program can be stored in a computer-readable storage medium, and when the program is executed, it can include the processes of the embodiments of the above-mentioned methods. The above-mentioned storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM) or a random access memory (RAM), etc.

[0211] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can easily think of various equivalent modifications or replacements within the technical scope disclosed by the present invention, and these modifications or replacements should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be based on the protection scope of the claims.

Claims

1. A model processing method, characterized in that: The method comprises: Acquire first object information and a candidate set of recommended items of a sample object; the candidate set of recommended items includes L candidate recommended items and predicted probabilities of N types of feedback behaviors corresponding to each candidate recommended item, where L and N are both positive integers, and the first object information is acquired according to first online request data of the sample object; Invoking a fusion weight model to process the first object information and determine a fusion weight set of the N feedback behaviors; Selecting M target recommendation items from the L candidate recommendation items according to the fusion weight set and the predicted probability, M≤L; Determine the predicted feedback behavior for each target recommendation item, and determine the feedback reward based on the M predicted feedback behaviors; Acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and time information corresponding to the first online request data and the second online request data is different; The training sample consisting of the first object information, the fusion weight set, the feedback reward and the second object information is used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation.

2. The method according to claim 1, characterized in that The selecting M target recommendation items from the L candidate recommendation items according to the fusion weight set and the predicted probability includes: Performing a weighted sum operation on the predicted probabilities of the N feedback behaviors of the candidate recommendation item to be processed and the fusion weight set to obtain a recommendation score of the candidate recommendation item to be processed, where the candidate recommendation item to be processed is one of the L candidate recommendation items; The recommendation scores of the L candidate recommendation items are sorted in descending order, and the M candidate recommendation items corresponding to the first M recommendation scores are used as M target recommendation items.

3. The method according to claim 2, characterized in that The target recommendation item to be processed is a target recommendation item among the M target recommendation items, and the process of determining the predicted feedback behavior of the target recommendation item to be processed includes: Obtaining a first prediction strategy and a first probability of the first prediction strategy being selected, and obtaining a second prediction strategy and a second probability of the second prediction strategy being selected; the first prediction strategy and the second prediction strategy are different; Selecting a target prediction strategy from the first prediction strategy and the second prediction strategy for the target recommendation item to be processed according to the first selection probability and the second selection probability; According to the target prediction strategy, a prediction feedback behavior of the target recommendation item to be processed is determined.

4. The method according to claim 3, characterized in that The step of determining the prediction feedback behavior of the target recommendation item to be processed according to the target prediction strategy includes: Determining the simulation probability of each feedback behavior of the target recommendation item to be processed according to the target prediction strategy; Obtaining online feedback probabilities of N types of feedback behaviors of multiple objects on the target recommendation item to be processed, and obtaining predicted feedback probabilities of N types of feedback behaviors of the multiple objects on the target recommendation item to be processed; According to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object, the N simulated probabilities are corrected to obtain the target probabilities of the N feedback behaviors of the target recommendation item to be processed; The N target probabilities are combined into a predicted feedback behavior of the target recommendation item to be processed.

5. The method according to claim 4, characterized in that The determining of the simulation probability of each feedback behavior of the target recommendation item to be processed includes: When the target prediction strategy is the first prediction strategy, the predicted probability of each feedback behavior of the target recommendation item to be processed is used as the simulated probability of each feedback behavior of the target recommendation item to be processed; or When the target prediction strategy is the second prediction strategy, the feedback probability threshold of each feedback behavior of the target recommendation item to be processed is determined respectively, and the feedback probability intervals of N feedback behaviors of the target recommendation item to be processed are determined respectively according to the feedback probability thresholds. Random sampling is performed in the N feedback probability intervals to determine the simulation probability of each feedback behavior of the target recommendation item to be processed.

6. The method according to claim 4, characterized in that The N simulated probabilities are corrected according to the N online feedback probabilities of each object and the N predicted feedback probabilities of each object to obtain the target probabilities of the N feedback behaviors of the target recommendation item to be processed, including: Determine the online feedback mean and online feedback variance of each feedback behavior according to the N online feedback probabilities of each object; Determining a predicted feedback mean and a predicted feedback variance for each feedback behavior according to the N predicted feedback probabilities for each object; Determine the importance weight of each feedback behavior based on N online feedback variances and N predicted feedback variances; According to the importance weight of each feedback behavior, the online feedback mean of each feedback behavior and the predicted feedback mean of each feedback behavior, the N simulated probabilities are respectively corrected to obtain the target probabilities of the N feedback behaviors of the target recommendation item to be processed.

7. The method according to claim 4, characterized in that The step of determining the feedback reward according to the M predicted feedback behaviors includes: Performing a weighted sum operation on the N target probabilities of the target recommendation item to be processed to obtain a feedback reward component of the target recommendation item to be processed; The M feedback reward components are superimposed to determine the feedback reward.

8. The method according to claim 7, characterized in that The step of performing superposition processing on the M feedback reward components to determine the feedback reward includes: Obtaining the predicted exit rate of the sample object for each target recommendation item; Determine a historical exit rate of each target recommendation item according to the cumulative recommendation amount of each target recommendation item in the session; According to the recommendation scores, a polling priority is set for each of the M target recommendation items, wherein the higher the recommendation score, the higher the priority; Determine the target recommendation item to be polled from the M target recommendation items in descending order of polling priority; If the historical exit rate of the target recommendation item to be polled is greater than the predicted exit rate, adding the feedback reward component of the target recommendation item to be polled to the reward set, and determining the next target recommendation item to be polled; If the historical exit rate of the target recommendation item to be polled is not greater than the predicted exit rate, or all target recommendation items are determined to be target recommendation items to be polled, polling is stopped, and all feedback reward components in the reward set are added together to obtain a feedback reward.

9. The method according to claim 8, characterized in that The training sample further includes an exit flag, which is determined according to the historical exit rate and the exit prediction rate of the M target recommendation items, and the exit flag includes a first flag and a second flag. The method further includes: If the exit flag of the training sample is the first flag, stop generating the next training sample for the sample object; If the exit flag of the training sample is the second flag, continue to generate the next training sample for the sample object.

10. The method according to claim 1, characterized in that The first object information includes the static identity information and first historical behavior information of the sample object, the first historical behavior information is the historical feedback behavior amount of the sample object to the L candidate recommendation items within a first historical time period, and the second object information includes the static identity information and the second historical behavior information of the sample object, the second historical behavior information is the historical feedback behavior amount of the sample object to the L candidate recommendation items within a second historical time period, and the first historical time period is before the second historical time period on the timeline.

11. The method according to claim 1, characterized in that: The method further comprises: Obtaining object information and a multimedia data set of a target object; the multimedia data set includes S multimedia data and initial prediction probabilities of N feedback behaviors corresponding to each multimedia data, where S is a positive integer, and the object information is obtained according to online request data of the target object; Calling the trained fusion weight model to process the object information and determine a target fusion weight set of the N feedback behaviors; Performing a weighted sum operation on the initial prediction probability of each multimedia data and the target fusion weight set respectively to obtain the target recommendation score of each multimedia data; According to the target recommendation score of each multimedia data, select K multimedia data to be recommended from the S multimedia data, K≤S; The K multimedia data to be recommended are sent to the terminal device where the target object is located.

12. A model processing device, characterized in that: The model processing device comprises: an acquisition module, configured to acquire first object information and a recommendation item candidate set of a sample object; the recommendation item candidate set includes L candidate recommendation items and predicted probabilities of N feedback behaviors corresponding to each candidate recommendation item, where L and N are both positive integers, and the first object information is acquired according to first online request data of the sample object; A processing module, configured to call a fusion weight model to process the first object information and determine a fusion weight set of the N feedback behaviors; The processing module is further configured to select M target recommendation items from the L candidate recommendation items according to the fusion weight set and the prediction probability, where M≤L; The processing module is further used to determine the predicted feedback behavior of each target recommendation item respectively, and determine the feedback reward according to the M predicted feedback behaviors; The acquisition module is further used to acquire second object information of the sample object, where the second object information is acquired according to second online request data of the sample object, and the first online request data and the second online request data respectively correspond to different time information; The training sample consisting of the first object information, the fusion weight set, the feedback reward and the second object information is used to train the fusion weight model, and the trained fusion weight model is used for multimedia data recommendation.

13. An electronic device, characterized in that: The electronic device comprises a memory and a processor, wherein the memory stores a model processing program, and when the model processing program is executed by the processor, the method according to any one of claims 1 to 11 is implemented.

14. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, wherein the computer program includes program instructions. When the program instructions are executed by a processor, the processor executes the method according to any one of claims 1 to 11.

15. A computer program product, characterized in that The computer program product comprises a computer program or computer instructions, and when the computer program or computer instructions are executed by a processor, the steps of the method according to any one of claims 1 to 11 are implemented.