Online training method and device based on intermediate behavior node and soft label

By constructing a multi-task prediction network model and utilizing intermediate behavior nodes and soft labels to update model parameters in real time, the problem of missing supervision signals in machine learning models under long-latency feedback scenarios is solved, thereby improving prediction accuracy and traffic conversion efficiency.

CN123180259APending Publication Date: 2026-11-27BEIJING XIAOTANG TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611085858.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-21
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

In online training scenarios for machine learning models, especially in the fields of advertising conversion prediction and user behavior prediction, the long-delay feedback problem prevents the model from obtaining effective positive supervision signals, underestimates the conversion probability of high-potential users, and leads to decision bias.

Method used

By constructing a multi-task prediction network model, the predicted probabilities of the main target and each intermediate behavior node are output in real time. Combined with the historical conditional conversion rate of the deepest intermediate node that the user has completed and the predicted probability of the node that has not occurred, smooth soft labels are dynamically generated. The real hard labels and the proxy expectation value are fused using the time decay function to achieve real-time correction and online update of model parameters.

Benefits of technology

It effectively solves the problem of missing supervision signals in long-delay feedback scenarios, avoids model decision bias caused by unconverted samples in traditional methods, and improves the prediction accuracy and traffic conversion efficiency of the model within the delay window.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123180259A_ABST
    Figure CN123180259A_ABST
Patent Text Reader

Abstract

The application discloses a model online training method and device based on an intermediate behavior node and a soft label. The method comprises the following steps: when a preset model updating trigger condition is reached, user interaction data of at least one user clicking an advertisement in a corresponding time period is acquired; the user interaction data comprises user information and intermediate conversion node information completed by a user at a current moment; user feature data is generated based on the user information, and the user feature data is input into a current version of a multi-task estimation network model, so that the multi-task estimation network model outputs an initial prediction probability of a user purchasing an advertisement product and initial prediction probabilities of each intermediate conversion node with a time sequence progressive relationship completed before the user purchases the advertisement product. By using the embodiment of the application, real-time correction and online updating of model parameters can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of machine learning technology, and also to online learning and multi-task learning technologies. In particular, it relates to an online model training method based on intermediate behavior nodes and soft labels, an advertising decision-making method based on online training and updating models, and an online model training device, equipment, program product, and storage medium based on intermediate behavior nodes and soft labels. Background Technology

[0002] In online training scenarios for machine learning models, especially in business areas such as advertising conversion prediction and user behavior prediction, the model needs to receive new samples in real time and continuously update parameters to cope with changes in data distribution.

[0003] However, when the business objective is to facilitate long-cycle conversion behaviors such as purchasing high-priced goods or enrolling in courses, the model faces a long-standing technical challenge: the long-delay feedback problem. Specifically, the time from initial contact (e.g., clicking an ad) to final conversion (e.g., purchasing a full-price course) often takes several days or even longer (e.g., a 5-day conversion cycle). Within this delay window, the actual conversion label has not yet been generated. Traditional online training methods can only label non-converted samples as "0," which prevents the model from obtaining effective positive supervision signals during the delay period. This leads to an underestimation of the conversion probability of high-potential users, causing decision-making biases within critical time windows and a continued underestimation of the conversion probability of high-potential users, thus missing out on valuable traffic. Summary of the Invention

[0004] In view of this, embodiments of this application provide an online model training method based on intermediate behavior nodes and soft tags, an advertising decision-making method based on an online trained and updated model, and an online model training device, equipment, program product, and storage medium based on intermediate behavior nodes and soft tags, thereby solving at least one technical problem.

[0005] This application provides an online model training method based on intermediate behavior nodes and soft tags, comprising: when a preset model update trigger condition is met, acquiring user interaction data of at least one user clicking on an advertisement within a corresponding time period; the user interaction data includes user information and information on intermediate conversion nodes completed by the user at the current time; generating user feature data based on the user information, and inputting the user feature data into the current version of a multi-task prediction network model, so that the multi-task prediction network model outputs the initial prediction probability of the user purchasing the advertised product and the initial prediction probability of each intermediate conversion node with a temporal progressive relationship completed before purchasing the advertised product; and acquiring the situation of historical samples completing the target intermediate conversion node based on the target intermediate conversion node most recently completed by the user at the current time. The following steps are taken: The historical probability of a user purchasing an advertised product is determined based on historical probability, the initial predicted probability of no intermediate conversion nodes, the preset compensation weights for each node, the duration of the delay window, and the time elapsed between the current moment and the start of the delay window. A smooth soft tag is then defined for the current moment, where the duration of the delay window is the maximum waiting time from triggering the advertisement to purchasing the advertised product. Using this smooth soft tag as a monitoring signal, and based on a soft cross-entropy loss function that supports continuous values, the loss value between the output of the multi-task prediction network model and the smooth soft tag is calculated. Based on this loss value, online backpropagation and parameter updates are performed on the current multi-task prediction network model to obtain updated network model parameters. These updated parameters are then used to replace the current version of the network model parameters, resulting in the latest version of the multi-task prediction network model.

[0006] Optionally, according to the method of this application embodiment, determining the smooth soft tag for the current moment based on historical probability, initial predicted probability of no intermediate conversion node, preset compensation weights for each node, duration of the delay time window, and duration of the current moment from the start of the delay time window includes: calculating the probability of a user purchasing an advertised product at the current moment based on historical probability, initial predicted probability of no intermediate conversion node, and preset compensation weights for each node, to obtain the expected value of the main target agent at the current moment; calculating the true feedback trust weight for the current moment based on the duration of the delay time window and duration of the current moment from the start of the delay time window, wherein the true feedback trust weight increases with the duration of the current moment from the start of the delay time window; and dynamically weighting the true main target feedback value and the expected value of the main target agent at the current moment based on the true feedback trust weight to obtain the smooth soft tag for the current moment.

[0007] Optionally, according to the method of this application embodiment, the expected value of the primary target agent at the current moment satisfies the following calculation formula: ;in, As the intermediate transformation node of the target, Based on the preset historical probability, The predicted probability is that no intermediate transformation node occurs. This represents the compensation weight for the corresponding node.

[0008] Optionally, according to the method of this application embodiment, the compensation weight is positively correlated with the historical average conversion gain, and the historical average conversion gain is determined based on the conditional conversion rate difference in historical sample data; wherein, for any intermediate conversion node NoDi, its corresponding historical average conversion gain Gaini satisfies the following relationship: In the formula, CRhist(Nodei) is the historical conditional conversion rate of entities that have been triggered to the i-th intermediate conversion node in the historical sample and have finally achieved the user's product purchase goal; CRhist(Nodei-1) is the historical conditional conversion rate of entities that have been triggered to the (i-1)-th intermediate conversion node in the historical sample and have finally achieved the user's product purchase goal; and CRhist(Node0) takes the value of 0; and the compensation weights corresponding to each intermediate conversion node are all non-negative values, and within the delay time window, for any subsequent intermediate conversion node that has not yet occurred at any current observation time t, the sum of its corresponding compensation weights satisfies less than or equal to 1.

[0009] Optionally, according to the method of this application embodiment, the true feedback trust weight satisfies the following calculation formula: ;in, γ represents the duration of the delay time window, t represents the time elapsed since the start of the delay time window, and γ≥1 is a hyperparameter controlling the decay rate of the curve.

[0010] Optionally, according to the method of the embodiments of this application, the smooth soft label The calculation formula is: ,in, The trust weight for real feedback over time t. This is the actual primary objective feedback value at the current moment; at t= The location satisfies α Tmax =1, the smooth soft label degenerates into the true main target feedback value.

[0011] Optionally, according to the method of this application embodiment, the soft cross-entropy loss function Loss is as follows: ;in, The initial predicted probability for users to purchase advertised products. This is the smooth soft label for the current moment.

[0012] Optionally, according to the method of the embodiments of this application, the multi-task prediction network model is a neural network structure that shares underlying parameters and branches into multiple task towers, wherein the first task tower outputs the initial prediction probability of a user purchasing an advertised product, and the remaining task towers output the prediction probability of each intermediate conversion node respectively.

[0013] Optionally, according to the method of this application embodiment, the intermediate conversion nodes are pre-marked according to the temporal progression of the user conversion path, and the conversion between adjacent nodes has a pre- and post-departure dependency relationship.

[0014] This application also proposes an advertising decision-making method based on an online-trained and updated model, comprising: obtaining the latest version of the multi-task prediction network model obtained by the aforementioned method; when a trigger request for the current requesting user to click on an advertisement is received, obtaining the user interaction data of the current requesting user; the user interaction data of the current requesting user includes the user information of the current requesting user and the intermediate conversion node information completed by the current requesting user at the current moment; generating user feature data based on the user information of the current requesting user, and inputting the user feature data into the multi-task prediction network model, so that the multi-task prediction network model outputs the initial predicted probability of the current requesting user purchasing the advertised product; if the initial predicted probability is greater than or equal to a preset threshold, generating an advertisement return response, the advertisement return response including an advertisement creative identifier and a landing page link; if the initial predicted probability is less than the preset threshold, generating an empty response or a downgraded advertisement return.

[0015] This application provides an online training device for a model based on intermediate behavior nodes and soft tags, comprising: a user interaction data acquisition module, used to acquire user interaction data of at least one user clicking on an advertisement within a corresponding time period when a preset model update trigger condition is met; the user interaction data includes user information and information on intermediate conversion nodes completed by the user at the current time; a user feature data generation module, used to generate user feature data based on the user information, and input the user feature data into the current version of the multi-task prediction network model, so that the multi-task prediction network model outputs the initial prediction probability of the user purchasing the advertised product and the initial prediction probability of each intermediate conversion node with a temporal progressive relationship completed before purchasing the advertised product; and a historical probability acquisition module, used to acquire historical samples of the target intermediate conversion node completed by the user most recently at the current time. The system includes a historical probability determination module for users purchasing advertised products when intermediate conversion nodes are identified; a determination module for determining the smooth soft tag at the current moment based on the historical probability, the initial predicted probability of no intermediate conversion node, the preset compensation weights for each node, the duration of the delay time window, and the time elapsed between the current moment and the start of the delay time window, where the duration of the delay time window is the maximum waiting time for the user from triggering the advertisement to purchasing the advertised product; and a parameter update module for using the smooth soft tag as a supervision signal, calculating the loss value between the output of the multi-task prediction network model and the smooth soft tag based on a soft cross-entropy loss function that supports continuous values, and performing online backpropagation and parameter update on the current multi-task prediction network model based on the loss value to obtain the updated network model parameters, and replacing the current version of the network model parameters to obtain the latest version of the multi-task prediction network model.

[0016] This application provides an electronic device, which includes a processor and a memory storing computer program instructions; the electronic device executes the computer program instructions to implement the method described above.

[0017] This application provides a computer program product, which includes computer program instructions that, when executed, implement the method described above.

[0018] This application provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the method described above.

[0019] By constructing a multi-task prediction network, the predicted probabilities of the main target and each intermediate behavior node are output in real time. The proxy expectation value is dynamically generated by combining the historical conditional conversion rate corresponding to the deepest intermediate node currently completed by the user and the predicted probability of the node that has not yet occurred. On this basis, the real hard label and the proxy expectation value are merged into a smooth soft label using a time decay function. This effectively solves the problem of missing supervision signal caused by the fact that the real conversion label has not yet been generated in the long-delay feedback scenario. It avoids the model decision bias caused by the traditional method of only marking unconverted samples with 0. This allows the model to obtain continuous and accurate backpropagation gradients within the delay window, realize the real-time correction and online update of model parameters, and improve the prediction accuracy and traffic conversion efficiency of the model in the long conversion cycle scenario. Attached Figure Description

[0020] To more clearly illustrate the technical solutions of the embodiments of this application, the accompanying drawings of the embodiments of this application will be briefly described below.

[0021] Figure 1 This is a schematic diagram of a system architecture according to an embodiment of this application.

[0022] Figure 2 This is a flowchart illustrating an online model training method based on intermediate behavior nodes and soft labels, according to an embodiment of this application.

[0023] Figure 3 This is a schematic structural block diagram of an online model training device based on intermediate behavior nodes and soft labels according to an embodiment of this application.

[0024] Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. Detailed Implementation

[0025] The principles and spirit of this application will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided to make the principles and spirit of this application clearer and more thorough. The exemplary embodiments provided herein are only a part of the embodiments of this application, and not all of them. All other embodiments obtained by those skilled in the art without inventive effort are within the scope of protection of this application.

[0026] Embodiments of this application relate to terminal devices and / or servers. Implementations of this application can be a system, terminal, device, method, computer-readable storage medium, or computer program product, and can be specifically implemented as entirely hardware, entirely software, or a combination of hardware and software. Figure 1This diagram illustrates a system architecture according to an embodiment of the present application, including a terminal device 102 and a server 104. The terminal device 102 may include at least one of the following: a smartphone, tablet computer, laptop computer, desktop computer, smart TV, various wearable devices, augmented reality (AR) devices, virtual reality (VR) devices, etc. A client application, such as an app, mini-program, or browser-based client, can be installed on the terminal device 102. Users can input commands through the client, and the terminal device 102 can send request information containing the commands to the server 104. Upon receiving the request information, the server 104 performs corresponding processing and returns the processing result information to the terminal device 102. The server 104 may be a local server or a cloud server, and may be a single server or a server cluster, etc.

[0027] In this document, the terms "first," "second," "third," etc., are used only to distinguish one entity (or operation) from another in textual description, and do not require or imply any sequential order between these entities (or operations).

[0028] Figure 2 This is a flowchart illustrating an online model training method based on intermediate behavior nodes and soft labels according to an embodiment of this application. The method includes the following steps: S101: When the preset model update trigger condition is met, obtain user interaction data of at least one user clicking on an advertisement within the corresponding time period; the user interaction data includes user information and information on intermediate conversion nodes completed by the user at the current moment; S102: Generate user feature data based on user information, and input the user feature data into the current version of the multi-task prediction network model, so that the multi-task prediction network model outputs the initial prediction probability of the user purchasing the advertised product and the initial prediction probability of each intermediate conversion node with a temporal progressive relationship that has been completed before purchasing the advertised product. S103: Based on the target intermediate conversion node that the user has completed most recently at the current time, obtain the historical probability of the user purchasing the advertised product when the target intermediate conversion node has been completed in the historical samples. S104: Based on historical probability, initial predicted probability of no intermediate conversion nodes, preset compensation weights for each node, duration of the delay window, and duration of time from the start of the delay window, determine the smooth soft label for the current moment. The duration of the delay window is the maximum waiting time for the user from triggering the ad to purchasing the advertised product. S105: Using the smooth soft label as a supervision signal, and based on the soft cross-entropy loss function that supports continuous values, calculate the loss value between the output of the multi-task prediction network model and the smooth soft label. Then, perform online backpropagation and parameter update on the current multi-task prediction network model according to the loss value to obtain the updated network model parameters. Replace the current version of the network model parameters to obtain the latest version of the multi-task prediction network model.

[0029] This application provides a computer-executed online model training method to address the problem of model parameter update failure caused by the lag in real conversion labels in long-latency feedback scenarios. The core concept of this application is to utilize the asymptotic signals inherent in intermediate behavioral nodes triggered by the user in the conversion chain, combined with historical statistical patterns and the model's real-time predictive capabilities, to construct a continuous supervisory signal (i.e., a smoothed soft label) before the real label is generated, and thereby drive the online update of model parameters. The following is a detailed description of this application's solution: In this application embodiment, the model update triggering condition can be time-driven, such as triggering an online training task every preset time interval (e.g., every few hours or every day); or quantity-driven, such as triggering an update whenever the number of newly accumulated user interaction samples reaches a preset threshold. The corresponding time period refers to the time interval covered by the sample data accumulated since the last model update. User interaction data includes at least two types of information: one is user information, used to generate feature data for subsequent input models; the other is information on intermediate conversion nodes completed by the user at the current moment, used to determine the user's current conversion stage. For example, in some embodiments of this application, an online training task is triggered every 2 hours to obtain user interaction data of all users who clicked on advertisements within those 2 hours. Each data entry may include user information such as user identifier, user device information, and user historical behavior statistics, as well as records of intermediate behavior nodes that the user has triggered and completed up to the current moment (e.g., having listened to a lecture for more than 15 minutes, having submitted an assignment, etc.). Intermediate conversion nodes refer to one or more behavioral nodes that users need to experience or may experience before achieving their final conversion goal, which have a sequential relationship. Taking the education industry as an example, the process from a user clicking on an advertisement to finally purchasing a full-price course can be broken down into several intermediate nodes, such as "listening to a class for more than 15 minutes" (Node 1), "submitting assignments" (Node 2), and "communicating more than 3 times through communication tools" (Node 3).

[0030] Furthermore, the multi-task prediction network model in this application embodiment is a neural network architecture that shares underlying network parameters and simultaneously outputs multiple prediction tasks. This multi-task prediction network model undertakes two levels of prediction tasks in this application: one is predicting the probability that a user will ultimately purchase the advertised product, and the other is predicting the probability that a user will complete each intermediate conversion node. The input of this multi-task prediction network model is user feature data, and the output includes a main target prediction probability and multiple intermediate node prediction probabilities. The user feature data refers to a fixed-dimensional real-number vector generated based on original user information after feature extraction and numerical transformation, which can be input into the multi-task prediction network model for forward propagation calculation.

[0031] Specifically, the process of generating user feature data may include the following steps: First, obtaining raw user information from user interaction data, which includes at least the user's static attribute features and dynamic behavioral features. Static attribute features refer to information inherent to the user or that does not change in the short term, including but not limited to user device type, operating system version, network environment, geographical location, age range, and gender. Dynamic behavioral features refer to time-series information generated during the user's interaction with the advertising system, including but not limited to the user's historical click records, historical conversion records, dwell time on the advertising page, and records of triggered intermediate conversion nodes. Second, performing preprocessing operations on the above-mentioned raw user information, including standardizing or normalizing continuous numerical features, and performing one-hot encoding or converting categorical discrete features into dense vector representations via an embedding layer. After the above processing, various types of raw information are transformed into tensor forms with a uniform numerical range. Subsequently, the system concatenates the processed feature tensors to form a single user feature vector. In this embodiment, the dimension of the user feature data is consistent with the dimension of the input layer of the multi-task prediction network model, enabling the model to perform forward propagation calculations normally.

[0032] Additionally, it's important to note that intermediate conversion nodes have a temporal progression relationship; that is, there's a pre-defined partial order between nodes, with the triggering of a later node presupposing the triggering of a previous node. However, in actual business scenarios, node skipping (i.e., a user triggering a later node without triggering a previous one) is allowed. When node skipping occurs, untriggered intermediate nodes are ignored, and the deepest currently triggered node is taken as the actual state. For example, continuing with the education industry, suppose a user named "Xiaohong" clicks on an advertisement. The multi-task prediction network model outputs an initial prediction probability of 5% for her ultimately purchasing a full-price course, along with a prediction probability of 60% for completing Node 1 (listening to the lesson for more than 15 minutes), 30% for completing Node 2 (submitting assignments), and 10% for completing Node 3 (communicating more than 3 times via communication tools).

[0033] In this embodiment, the historical probability refers to the conditional probability that a user will ultimately purchase an advertised product given that they have completed a target intermediate conversion node. Specifically, the historical probability refers to the proportion of users who triggered a certain intermediate node in historical data who ultimately completed the main goal (purchasing the advertised product). In practice, this historical probability is calculated offline, typically using historical data that has completed a full conversion cycle as the statistical sample. For example, user data from the past 30 or 60 days that has completed a full conversion cycle can be selected, and the number of users who triggered each intermediate node and the number of users who ultimately completed the main goal can be counted. The ratio of these two values ​​is then used as the historical conditional conversion rate for the corresponding node. To ensure the stability of the statistical results, the total number of positive examples is usually required to exceed a preset threshold (e.g., 1000 examples). The statistical results can be pushed to the online in-memory database after offline batch processing is completed every day at midnight, for real-time table lookup during online inference. For example, in the above-mentioned education industry embodiment, assuming the current observation time is day 2, and user "Xiao Hong" has triggered Node1 and Node2 but has not yet triggered Node3 and the main goal, then the nearest target intermediate node at the current time is Node2. According to the offline statistics module, among all users who triggered Node2 in the past 30 days, the historical conversion rate of those who ultimately purchased full-price courses was 25%.

[0034] The duration of the delay window is the maximum waiting time from when a user triggers an ad to when they purchase the advertised product, i.e., the longest conversion cycle of the main objective. This duration is preset by the business scenario; for example, in the education industry, the maximum waiting time from when a user clicks an ad to when they finally purchase a full-price course is 5 days. The time t from the start of the delay window to the current moment refers to the length of time elapsed from when the user triggers the ad (the start of the time window) to the current observation moment. For example, if the user clicks the ad on day 0 and the current observation moment is day 2, then t = 2.

[0035] In determining the smooth soft label, the first step is to calculate the proxy expectation value of the main target. Specifically, the proxy expectation value is obtained by weighted summation of two parts: the first part is the historical probability; the second part is the sum of the predicted probability of subsequent intermediate nodes that have not yet occurred and the preset compensation weight of each node, representing an estimate of future potential. After calculating the proxy expectation value, it is fused with the real hard label to generate the smooth soft label. In some embodiments of this application, optionally, the value of the real hard label can be set to 0, indicating that the user has not yet made a purchase.

[0036] Furthermore, this application calculates the loss value between the output of the multi-task prediction network model and the smoothed soft label based on the soft cross-entropy loss function that supports continuous value input. In some embodiments of this application, optionally, the soft cross-entropy loss function is consistent in form with the standard cross-entropy, but its label parameter is a continuous value between 0 and 1, so that the model can use the soft label for effective gradient backpropagation during the delay period.

[0037] After calculating the soft cross-entropy loss value for the current sample, the standard backpropagation algorithm is used to calculate the gradient of each trainable parameter relative to the loss value layer by layer along the multi-task prediction network model. Subsequently, a preset optimizer (e.g., the Adam optimizer) is used to update all trainable parameters of the model based on the calculated gradients. That is, according to the learning rate and momentum strategy set by the optimizer, the values ​​of each parameter are adjusted along the gradient descent direction, so that the output probability of the model for the same type of sample in the next round of forward propagation is closer to the target value indicated by the smooth soft label.

[0038] After updating the parameters for a single sample or a batch of samples, a set of updated network model parameters is obtained. These updated parameters are then loaded into the online inference service, replacing the currently used old version of the model parameters, thus forming the latest version of the multi-task prediction network model. This replacement operation can employ an atomic switching mechanism (e.g., double-buffer switching) to ensure that the normal response to ongoing online inference requests is not affected during the parameter replacement process. From the moment the replacement is completed, all subsequent online traffic prediction requests will use this latest version of the model for forward propagation calculations and advertising decisions, thereby achieving real-time evolution of model parameters and instant synchronization of online inference capabilities.

[0039] It should be further explained that during the training of the multi-task prediction network model, the main task (predicting the final purchase probability) is supervised using the aforementioned soft cross-entropy loss function, while the prediction tasks of each intermediate node can be supervised using the standard binary cross-entropy loss function, using the objectively occurring real hard labels (0 or 1) of each intermediate node as the supervision signal. The overall joint loss function can be expressed as: = L main_soft + L main_soft The soft cross-entropy loss is used for the main task, L_node_i_hard is used for the standard cross-entropy loss of the i-th intermediate node, and βi is used for the weighting coefficient of the loss of the corresponding intermediate node (usually set to a constant less than 1, such as 0.1 or 0.5), which is used to balance the contribution of each auxiliary task to the main task. The losses of each intermediate node are weighted and summed with the loss of the main task, and then participate in backpropagation to achieve joint optimization of the multi-task network.

[0040] By constructing a multi-task prediction network, the predicted probabilities of the main target and each intermediate behavior node are output in real time. The proxy expectation value is dynamically generated by combining the historical conditional conversion rate corresponding to the deepest intermediate node currently completed by the user and the predicted probability of the node that has not yet occurred. On this basis, the real hard label and the proxy expectation value are merged into a smooth soft label using a time decay function. This effectively solves the problem of missing supervision signal caused by the fact that the real conversion label has not yet been generated in the long-delay feedback scenario. It avoids the model decision bias caused by the traditional method of only marking unconverted samples with 0. This allows the model to obtain continuous and accurate backpropagation gradients within the delay window, realizes real-time correction and online update of the multi-task prediction network model parameters, and improves the prediction accuracy and traffic conversion efficiency of the model in the long conversion cycle scenario.

[0041] Optionally, according to the method of this application embodiment, the smooth soft label for the current moment is determined based on historical probability, initial prediction probability without intermediate transformation nodes, preset compensation weights for each node, duration of the delay time window, and time from the start of the delay time window at the current moment, including: Based on historical probability, initial predicted probability of no intermediate conversion nodes, and preset compensation weights for each node, the probability of a user purchasing an advertised product at the current moment is calculated, and the expected value of the main target agent at the current moment is obtained. The true feedback trust weight at the current moment is calculated based on the duration of the delay window and the time elapsed since the start of the delay window. The true feedback trust weight increases with the time elapsed since the start of the delay window. Based on the trust weight of real feedback, the real primary target feedback value and the primary target proxy expectation value at the current moment are dynamically weighted to obtain the smooth soft label at the current moment.

[0042] To determine the smooth soft label at the current moment, this application embodiment can perform the following three sub-steps: first, calculate the expected value of the primary target agent; second, calculate the trust weight of the actual feedback; and finally, generate the smooth soft label through dynamic weighted fusion. In this way, this application first forms an agent estimate based on historical and predicted information, then determines the trust allocation ratio between the agent estimate and the actual feedback according to the degree of time progress, and finally completes the weighted synthesis of the two.

[0043] Specifically, in the first sub-step, this application calculates the probability of a user purchasing the advertised product at the current moment based on historical probabilities (i.e., the historical conditional conversion rate corresponding to the deepest intermediate node that has been completed), the initial predicted probability of no intermediate conversion nodes, and the preset compensation weights for each node. This probability is called the primary target proxy expectation value. Essentially, this proxy expectation value is an alternative supervisory signal constructed by comprehensively utilizing historical statistical patterns and the model's real-time predictive capabilities within the time window before the actual conversion result occurs. Its value reflects the optimal estimate of the user's final conversion probability based on currently available information.

[0044] In the second sub-step, this application calculates the trust weight of the true feedback at the current moment based on the duration of the delay window and the time elapsed since the start of that window. This trust weight is designed to monotonically increase with the time elapsed since the start of the window. In the early stages of the conversion cycle, the credibility of the true label "0" is low, and the model should rely more on the surrogate expectation value for parameter updates. As time progresses, the reliability of the true label gradually increases, and the model should correspondingly increase its trust in the true feedback. This dynamic weighting mechanism avoids the problem of inaccurate supervision signals caused by fusing true feedback and surrogate expectation values ​​in a fixed proportion throughout the entire delay window.

[0045] In the third sub-step, this application dynamically weights the real primary target feedback value (which is usually 0 within the delay window) and the primary target proxy expectation value at the current moment based on the calculated real feedback trust weight, thereby obtaining the smooth soft label at the current moment.

[0046] By decomposing the soft label generation process into three independent and ordered sub-steps—proxy expectation calculation, trust weight calculation, and dynamic weighted fusion—the entire supervision signal construction process becomes clearly interpretable and computable. Simultaneously, since the true feedback trust weight monotonically increases with the transition period, the smooth soft label can smoothly transition from being dominated by proxy expectation to being dominated by true feedback as time progresses within the delay window. This provides timely correction signals for the model in the early stages and avoids the continuous interference of proxy estimation errors on model updates in the later stages, thus achieving a balance in the quality of the supervision signal throughout the entire delay window.

[0047] Optionally, according to the method of this application embodiment, the expected value of the primary target agent at the current moment satisfies the following calculation formula: (1) in, As the intermediate transformation node of the target, Based on the preset historical probability, The predicted probability is that no intermediate transformation node occurs. This represents the compensation weight for the corresponding node.

[0048] This formula defines the constituent elements and calculation logic of the agent expectation value, namely, the agent expectation value of the main target at the current moment is equal to the historical conditional conversion rate corresponding to the intermediate conversion node of the target, plus the sum of the predicted probabilities of all subsequent intermediate conversion nodes that have not yet occurred and their corresponding compensation weights.

[0049] Specifically, the first term of the formula, CVR hist (Node curr This represents an estimate based on historical data, specifically all nodes in the historical samples that trigger up to the current deepest node. curr The conditional probability that the user will eventually achieve the main goal. Among them, the deepest node is Node. curr The target intermediate conversion node refers to the lowest-ranking (i.e., highest-level) intermediate conversion node that the user has actually triggered and completed up to the current observation time, within a pre-defined conversion path composed of multiple intermediate conversion nodes with a progressive temporal relationship. It is important to clarify that the aforementioned "progressive temporal relationship" describes the sequential dependency logic of each node's behavior in the user's conversion process; it is not equivalent to a mandatory triggering constraint on the user's actual behavior. In actual business scenarios, users may not strictly trigger nodes level by level, skipping one or more intermediate nodes and directly triggering subsequent nodes (i.e., node skipping). When such node skipping occurs, the preset order of the conversion path is not used as a mandatory criterion. Instead, untriggered intermediate nodes are ignored, and only the node with the highest temporal level among all intermediate nodes actually triggered by the user at the current observation time is determined as the deepest node.

[0050] To facilitate understanding, an example is provided below: Assume the conversion path sequentially includes Node1 (attending a lecture for more than 15 minutes), Node2 (submitting an assignment), and Node3 (communicating more than 3 times via communication tools). If, as of the current observation time, the user has actually triggered Node1 and Node3, but has not triggered Node2, the system ignores the untriggered Node2 and directly uses Node3 as the "deepest node" at the current moment. In subsequent calculations of the expected value of the primary target agent, the historical conditional conversion rate (CVR) is used. hist (Node curr This refers to the historical statistical conversion rate corresponding to Node3, while nodes that have not occurred are no longer included in the ignored Node2.

[0051] In addition, the second term of the formula Σ[ W i ·P pred (Node i [)] represents a potential estimate of future nodes that have not yet occurred, where P pred (Nodei W represents the real-time prediction probability of the i-th node that has not occurred in the multi-task prediction network model. i This is the compensation weight for the corresponding node. This compensation weight is derived from historical data statistics and reflects the marginal conversion contribution of a given intermediate node relative to its preceding node. In some embodiments of this application, optionally, the weight Wi for any intermediate node i is calculated as the node's historical true conversion rate minus the historical true conversion rate of its preceding node: (2) in, This refers to the percentage of users who reach node i in historical data and ultimately convert to node N (the primary target node). This refers to the ratio of users who reached the preceding node i-1 in historical data to those who ultimately converted to node N.

[0052] For example, if historical statistics show that a Node was triggered i-1 The final conversion rate for users who clicked "add as a friend" was 10%, which triggered Node. i If the final conversion rate of users (such as those who "submit assignments") is 40%, then Node... i The marginal contribution is 30%, which is the compensation weight W corresponding to this node. i The value is set to 0.3. This calculation method ensures that the magnitude of the compensation weight directly reflects the actual contribution of each intermediate node in the complete transformation chain.

[0053] Furthermore, this application specifies two important numerical constraints: first, the compensation weights corresponding to each intermediate transformation node are all non-negative values, i.e., W. i ≥ 0; secondly, within the delay time window, for any subsequent intermediate transformation node that has not yet occurred at the current observation time t, the sum of its corresponding compensation weights satisfies less than or equal to 1, i.e. The first constraint ensures that the agent's expected value will not decrease unreasonably due to negative weights, meaning that the user's conversion probability will not be negatively reduced due to triggering a certain intermediate node. The second constraint ensures that the agent's expected value is numerically bounded, meaning that the incremental part of the second term will not exceed 1 minus the minimum value, thus ensuring that the agent's expected value always falls within the reasonable probability range of [0,1], avoiding the problem of soft tag value overflow caused by excessive accumulation of compensation weights in subsequent nodes.

[0054] The expected value of the agent in this application neither relies solely on historical experience while ignoring the real-time characteristics of the current sample, nor does it rely entirely on model prediction while abandoning the objective benchmark provided by historical data. Instead, it achieves the optimal estimate of the user's current conversion probability through an organic combination of the two.

[0055] Optionally, according to the method of this application embodiment, the compensation weight is positively correlated with the historical average conversion gain, and the historical average conversion gain is determined based on the conditional conversion rate difference in historical sample data; wherein, for any intermediate conversion node NoDi, its corresponding historical average conversion gain Gaini satisfies the following relationship: (3) In the formula, CR hist (Node i CR represents the historical conditional conversion rate of entities that have reached the i-th intermediate conversion node in the historical samples and ultimately achieved the user's product purchase goal. hist (Node i-1 ) represents the historical conditional conversion rate of entities that have reached the (i-1)th intermediate conversion node in the historical samples and ultimately achieved the user's product purchase goal; and CR hist (Node0) takes the value 0.

[0056] Optionally, according to the method of this application embodiment, the true feedback trust weight satisfies the following calculation formula: ;in, γ represents the duration of the delay time window, t represents the time elapsed since the start of the delay time window, and γ≥1 represents the first hyperparameter controlling the decay rate of the curve.

[0057] This formula defines the pattern of how the trust weight of genuine feedback changes as conversion time progresses. In this formula, T_max is the duration of the delay time window, which is the maximum waiting time for a user from triggering an ad to purchasing the advertised product. This duration is preset by the specific business scenario; t is the time from the current observation moment to the start of the delay time window, and its value ranges from 0 to T_max; γ is a hyperparameter controlling the decay rate of the curve, and its value is γ≥1.

[0058] According to this calculation formula, in the early stages of the conversion cycle, when t is much smaller than T... max At that time, due to t / T max The ratio is close to 0, α t The value of also approaches 0, meaning that the trust weight of the real label is extremely low, and it almost entirely relies on the proxy expectation value to constitute the supervision signal. As t gradually increases and approaches T... max At that time, α t The value of α increases monotonically and approaches 1, meaning that the trust weight of the true label gradually becomes dominant, and the contribution of the proxy expectation value decreases accordingly. The hyperparameter γ is used to control the shape of the aforementioned trust weight growth curve: when γ=1, α t α increases linearly with t; when γ>1, α tThe growth rate is suppressed in the early stages and accelerates in the later stages, meaning there is a tendency to trust true feedback later. Additionally, in some embodiments of this application, γ can be directly set to 2, i.e., using a squared decay form, without requiring additional adaptive adjustment.

[0059] By constructing a power function formula for calculating trust weights with time ratio as the independent variable, the true feedback trust weights can smoothly and monotonically increase as the conversion cycle progresses, avoiding the problem of discontinuous supervision signals caused by sudden weight changes. Furthermore, since the formula only involves division and exponentiation, its computational complexity is extremely low, enabling millisecond-level real-time weight calculation in online training scenarios, fully meeting the engineering requirements of high concurrency and low latency. In addition, the introduction of the hyperparameter γ provides business personnel with a flexible means to adjust the model's speed of true feedback trust calculations, allowing the technical solution to be adapted to the conversion cycle characteristics of different business scenarios, exhibiting good versatility and scalability.

[0060] Optionally, according to the method of the embodiments of this application, the current time is used to smooth the soft label. The calculation formula is: (4) Where t is the time elapsed since the start of the delay window. Trust weight is based on the actual feedback at the current moment. This represents the actual primary target feedback value at the current moment. At t= The location satisfies α Tmax =1, the smooth soft label degenerates into the true main target feedback value.

[0061] In this embodiment of the application, t=T max Substituting into the calculation formula αt = (t / T) max ) γ α can be obtained Tmax = (T max / T max ) γ = 1 γ = 1. At this point, the smooth soft label... Calculation formula Degenerate into = In other words, at the end of the delayed time window, the real conversion labels have already been generated, and the surrogate expectation no longer participates in the composition of the supervision signal. The model is trained directly using the real hard labels. This allows this application to connect with traditional online training methods at the end of the delayed window without any distortion or discontinuity of the supervision signal at the time window boundary due to the introduction of the surrogate expectation.

[0062] By setting a boundary condition at the end of the time window for soft labels to degenerate into true labels, the consistency and convergence correctness of the model in this application are ensured during long-term training. At the same time, the setting of this boundary condition makes this application compatible with existing offline training processes and online evaluation systems based on true labels in engineering deployment, without the need for any additional label correction or compensation processing at the end of the time window, thus reducing system complexity.

[0063] Optionally, according to the method of this application embodiment, the soft cross-entropy loss function Loss is as follows: (5) Where t is the time elapsed since the start of the delay window. The initial predicted probability for users to purchase advertised products. This is the smooth soft label for the current moment.

[0064] The loss function is formally consistent with the standard binary cross-entropy loss function, but the essential difference lies in the fact that the label parameter of the standard cross-entropy loss function can only take discrete values ​​of 0 or 1, while the label parameter of the soft cross-entropy loss function in this application... The value is a continuous value between 0 and 1, which allows the model to perform gradient backpropagation and parameter updates using non-integer supervision signals within the delay window.

[0065] Optionally, in some embodiments of this application, it is also necessary to further refine the predicted values ​​output by the model. Numerical clipping is performed. Specifically, a minimal constant ε is set (usually ε = 10). -7 ), predict the value The predicted value is forcibly restricted to a closed interval [ε, 1-ε], i.e., the pruned predicted value. clipped = max(ε, min(1-ε, After pruning, the soft cross-entropy loss function... The minimum value of the denominator of the partial derivative is ε(1-ε)≈10. -7 This completely avoids the gradient explosion problem caused by dividing by zero. After calculating the loss value, the gradient of each network layer parameter is calculated using the standard backpropagation algorithm, and an optimizer (such as the Adam optimizer) is used to update all trainable parameters of the multi-task prediction network model. After the update is complete, the updated network model parameters replace the currently used model parameters, thus obtaining the latest version of the multi-task prediction network model for subsequent online traffic prediction and advertising bidding decisions.

[0066] The soft cross-entropy loss function of this application embodiment can accept continuous value labels as supervision signals, thereby breaking through the limitation that the label must be 0 or 1 in the traditional method, and providing a calculable and differentiable technical basis for using soft labels to drive model updates during the delay period; at the same time, since the loss function is consistent with the standard cross-entropy in form, no additional modifications are required to the backpropagation mechanism in the existing deep learning framework, which has good engineering implementation convenience.

[0067] Optionally, according to the method of the embodiments of this application, the multi-task prediction network model is a neural network structure that shares underlying parameters and branches into multiple task towers, wherein the first task tower outputs the initial prediction probability of a user purchasing an advertised product, and the remaining task towers output the prediction probability of each intermediate conversion node respectively.

[0068] The network architecture of this application is designed to enable the underlying network to learn feature representations common to all tasks, that is, to extract shared representations valuable for both the main target prediction and the prediction of each intermediate node from the original user features. Each task tower is actually an independent sub-network composed of one or more fully connected layers. Its input is the shared feature vector output by the underlying network, and its output is the prediction probability scalar corresponding to that task. The parameters of each task tower are independent and do not interfere with each other, thus ensuring that each task can learn a specific mapping relationship for its own prediction target based on shared features. During joint training, the main task (final conversion probability prediction) is supervised using a soft cross-entropy loss function, using smooth soft labels as supervision signals; each auxiliary task (intermediate node prediction) is supervised using a standard binary cross-entropy loss function, using the objectively occurring real hard labels (0 or 1) of each intermediate node as supervision signals. The loss functions of each task are weighted and summed according to preset weights to form the overall joint loss, which participates in backpropagation and updates the network parameters.

[0069] This implementation scheme achieves feature representation reuse and transfer between tasks by sharing underlying network parameters. This allows the behavioral pattern information learned by intermediate node prediction tasks to effectively assist in the prediction of the main target. Especially when the training samples of the main target are sparse or the supervision signal is delayed, the rich auxiliary task signals can provide additional gradient information and alleviate the underfitting problem of the underlying network. Secondly, since each task tower has an independent branch, there is no parameter coupling between the main task and the auxiliary task, avoiding gradient conflicts or mutual interference between different tasks, making the network training process more stable. Finally, the network structure has good scalability. When the transformation link in the business scenario changes (such as adding or removing intermediate nodes), it is only necessary to add or remove the corresponding task tower and retrain, without redesigning the entire network architecture, which significantly reduces the engineering cost of model iteration and upgrade.

[0070] Optionally, according to the method of this application embodiment, intermediate conversion nodes are pre-marked according to the temporal progression of the user conversion path, and the conversion between adjacent nodes has a pre- and post-departure dependency relationship.

[0071] The intermediate conversion nodes in this application embodiment are not set arbitrarily, but are systematically divided and labeled according to the natural behavioral path of users from triggering advertisements to finally completing conversion in the business scenario, based on the order in which the behaviors occur.

[0072] Specifically, in any business scenario, a user's complete conversion path consists of a series of behavioral steps with a clear temporal progression, each step being designated as a corresponding intermediate conversion node. The essence of pre- and post-conversion dependencies is that the behavior corresponding to a later node is logically predicated on the completion of the behavior corresponding to a previous node; that is, the user must complete the preceding behavior before triggering the subsequent behavior. For example, in the scenario of a user purchasing a course, the user must first complete the behavior of "listening to the lecture for more than 15 minutes" (Node 1) before they can proceed to the next stage of "submitting assignments" (Node 2), and only then can they complete the behavior of "communicating more than 3 times via communication tools" (Node 3). This pre- and post-conversion dependency between nodes constitutes the structural framework of the conversion path, providing a clear benchmark for determining the deepest intermediate node that has been completed and identifying nodes that have not yet occurred.

[0073] This application also proposes an advertising decision-making method based on an online trained and updated model, which includes the following steps: S201: Obtain the latest version of the multi-task prediction network model obtained by the aforementioned method; when a trigger request for the current requesting user to click on an advertisement is received, obtain the user interaction data of the current requesting user; S202: The user interaction data of the current requesting user includes the user information of the current requesting user and the intermediate conversion node information that the current requesting user has completed at the current moment; S203: Generate user feature data based on the user information of the current requesting user, and input the user feature data into the multi-task prediction network model so that the multi-task prediction network model outputs the initial predicted probability of the current requesting user purchasing the advertised product. S204: If the initial predicted probability is greater than or equal to the preset threshold, an ad response is generated, which includes ad creative identifiers and landing page links; if the initial predicted probability is less than the preset threshold, an empty response or a downgraded ad response is generated.

[0074] The advertising decision-making method based on an online-trained and updated model in this application embodiment essentially constitutes a downstream application of the aforementioned online training method for the multi-task prediction network model. It deploys the latest version of the multi-task prediction network model obtained through continuous online updates into the advertising decision-making system. In response to users' real-time advertising requests, it uses the model to make real-time predictions of the conversion probability of the current user purchasing the advertised product. Based on the comparison between the prediction result and a preset threshold, it automatically decides whether to return advertising materials to the current requesting user, thereby achieving accurate screening of advertising traffic and optimized allocation of advertising resources.

[0075] Specifically, step S201 involves obtaining the latest version of the multi-task prediction network model. This multi-task prediction network model is a neural network model with online continuous updating capabilities. It operates on a pre-defined update trigger condition (such as time-driven or quantity-driven), using smoothed soft labels constructed within a delay window as supervision signals. Through backpropagation of the soft cross-entropy loss function, it achieves real-time correction and iterative updates of model parameters, replacing the currently used model parameters with the updated parameters, thereby continuously producing the latest version of the model reflecting the current data distribution characteristics. In specific implementations, this latest version model can be stored in the memory space or cache of the online inference service for real-time invocation in subsequent steps; alternatively, a double-buffer mechanism can be used, where the model update process is completed in the offline computing cluster, and the updated parameters are synchronously pushed to the online inference server. The online inference server then loads and replaces the old version parameters to obtain the latest version model.

[0076] In step 202, when a trigger request for the current requesting user to click on an advertisement is received, the user interaction data of the current requesting user is obtained. This user interaction data includes the user information of the current requesting user and the intermediate conversion node information that the user has completed at the current moment. In the current implementation scenario, the trigger request typically originates from a user's click on an advertisement within a front-end application (such as a mobile app, webpage, or mini-program). The front-end application sends this click event, along with contextual information such as the user's device identifier and session identifier, to the back-end advertising decision server. User information may include, but is not limited to, static or dynamic feature data such as the user's device type, operating system version, network environment, geographical region, user ID, and a summary of the user's historical behavior. This data will be used for feature generation in subsequent steps. The intermediate conversion node information that the user has completed at the current moment records which intermediate behavior nodes the user has triggered in the complete conversion path up to the current request moment. Taking the education industry as an example, if user "Zhang San" has completed two actions before the current request time: "listening to a class for more than 15 minutes" (Node 1) and "submitting homework" (Node 2), but has not yet completed "communicating more than 3 times through communication tools" (Node 3), then the intermediate conversion node information he has completed is Node 1 and Node 2. This information can be obtained by querying the user behavior trajectory database or real-time behavior logs.

[0077] In step 203, user feature data is generated based on the user information of the current requesting user. This user feature data is then input into the latest version of the multi-task prediction network model, causing the model to output the initial predicted probability of the current requesting user purchasing the advertised product. In practice, the generation of user feature data typically includes preprocessing operations such as standardization, normalization, discretization, and embedding of categorical features into the original fields of the user information, ultimately forming a real-valued feature vector with a fixed dimension. The dimension of this feature vector should be consistent with the dimension required by the input layer of the multi-task prediction network model. After inputting this feature vector into the latest version of the multi-task prediction network model, the model performs a forward propagation calculation, outputting a scalar value between 0 and 1 from the main task tower. This value is the initial predicted probability of the user purchasing the advertised product based on the current user information. It should be noted that although the multi-task prediction network model structurally outputs the predicted probabilities of each intermediate conversion node simultaneously, in the implementation steps of this decision-making method, the predicted probabilities of these intermediate nodes are not necessary; only the final purchase probability output by the main task tower needs to be considered. In actual deployment, for performance optimization purposes, only the forward path of the main task tower can be calculated during model inference, while skipping the calculation of the auxiliary task towers, thereby reducing the computational latency of a single inference.

[0078] Further, in step 204, the content of the ad response is determined based on the relationship between the initial predicted probability and the preset threshold. Specifically, if the initial predicted probability is greater than or equal to the preset threshold, an ad response is generated. This response includes at least an ad creative identifier and a landing page link, instructing the front-end application to display the corresponding ad content to the user. If the initial predicted probability is less than the preset threshold, an empty response or a downgraded ad response is generated. The preset threshold is a pre-set decision threshold, and its value can be optimized based on business objectives (such as cost control objectives and return on investment objectives) through offline experiments or online A / B testing. In actual business, if an ad slot only allows one ad to be displayed, an empty response is returned when the predicted probability is lower than the preset threshold, meaning no ad content is displayed to the user. If the ad slot has a multi-level filling mechanism, the downgraded ad response can point to a backup ad creative with lower competitive value or a lower bid. For example, a brand ad for a full-price course is shown to users with high conversion potential, while only a free trial course referral ad is shown to users with low conversion potential, thus achieving differentiated utilization of traffic value.

[0079] This application directly applies the latest version of the online-trained and continuously updated multi-task prediction network model to the advertising decision-making process. This allows the parameter improvements obtained by the model through soft label correction within the delay window to be reflected in the real-time traffic conversion probability prediction, thus achieving a seamless connection between model training optimization and decision quality improvement. Because the model has the ability to be continuously updated online, its parameters can evolve in real time with recent traffic distribution changes. Compared to traditional models based on offline batch processing training, the model used in this application maintains adaptability to the current data distribution in terms of prediction accuracy, making threshold-based advertising decisions more accurate and effectively avoiding decision bias and traffic acquisition losses caused by model lag. By comparing the predicted probability with a preset threshold and automatically returning an advertisement or an empty response, the entire advertising process can achieve differentiated responses to traffic of different values ​​without manual intervention, improving the automation level and traffic monetization efficiency of the advertising system.

[0080] The implementation methods and advantages of the embodiments of this application have been described above through multiple examples. The specific processing procedures of the embodiments of this application are described in detail below with reference to specific examples.

[0081] This embodiment uses the advertising scenario of "converting trial classes into full-price classes" in the education industry as an example for description. However, those skilled in the art should understand that this scenario is only for illustrative purposes and does not constitute any limitation on the scope of protection of this invention.

[0082] Step 1: Preset system and offline parameters In this embodiment, the maximum conversion waiting time from a user clicking on an advertisement to finally purchasing a full-price course is set to 5 days, i.e., the delay time window T. max =5. Based on the chronological progression of the user conversion path, three intermediate conversion nodes are pre-defined: Node 1 represents "the user listens to the lecture for more than 15 minutes," Node 2 represents "the user submits the assignment," and Node 3 represents "the user communicates with the recommender more than 3 times through communication tools." The final main goal, Node 4, represents "the user purchases the full-price course." These three intermediate nodes have a sequential dependency relationship, meaning that the user's behavioral logic requires them to go through these stages in order.

[0083] This embodiment further sets the time decay hyperparameter γ=2, that is, it uses a squared decay form to calculate the true feedback trust weight. Every day at midnight, the system uses offline batch processing to statistically analyze historical sample data that have completed a full conversion cycle over the past 30 days, calculating the historical conditional conversion rate corresponding to each intermediate node. Specifically, historical statistics show the historical conditional conversion rate (CVR) of users who ultimately purchased full-price courses after triggering Node2. hist (Node2) = 25%, the historical conditional conversion rate (CVR) of users who ultimately purchased full-price courses when Node3 was triggered. hist (Node3) = 45%. Based on the above two statistical values, the marginal contribution is calculated using the formula Wi = CVR. hist (Node i )-CVR hist (Node i-1 The compensation weight W3 relative to Node2 is calculated as 45% - 25% = 0.20. After the offline statistics are completed, the CVR is... hist (Node2) = 0.25, CVR hist (Node3)=0.45 and W3=0.20 are pushed as constants to the online in-memory database for real-time table lookup during online inference.

[0084] Step 2: Trigger the online training task and obtain user interaction data In this embodiment, a time-driven approach is used to set the model update trigger condition, i.e., an online training task is triggered every 2 hours. Assuming the current trigger time is 15:00 on a certain day, new user interaction data for all clicked ads since the last update (13:00) is obtained. User "Xiaohong" is selected as an example from these samples. The obtained user interaction data includes user information (such as user ID, device type, geographical location, historical behavior statistics, etc.) and information on the intermediate conversion nodes completed by the user at the current time. As of the current observation time (i.e., the second day after the user clicked the ad), Xiaohong has completed Node1 and Node2, but has not yet triggered Node3, nor has she completed the main target purchase behavior.

[0085] Step 3: Forward propagation of the multi-task prediction network Based on Xiaohong's user information, corresponding user feature data is generated. This feature data is a fixed-dimensional real-number feature vector formed after standardization, normalization, and embedding. This feature vector is input into the current version of the multi-task prediction network model, and a forward propagation calculation is performed. This multi-task prediction network model adopts a neural network structure that shares underlying parameters and branches into multiple task towers. The first task tower is used to output the prediction probability of the main target, and the remaining task towers are used to output the prediction probabilities of each intermediate node.

[0086] In this embodiment, the multi-task prediction network model outputs the initial predicted probability of Xiaohong ultimately purchasing the full-price course. =0.10, and output the predicted probabilities of each intermediate node: Ppred(Node1)=0.95, Ppred(Node2)=0.80, Ppred(Node3)=0.60. Since Xiaohong has completed Node1 and Node2 at the current time, the deepest intermediate node that has been completed so far is Node... curr That is, Node2, and the subsequent node that has not yet occurred is Node3.

[0087] Step 4: Calculate the expected value of the primary target agent. Based on the currently completed deepest intermediate node Node2, query the corresponding historical conditional conversion rate (CVR) from the online in-memory database. hist (Node2) = 0.25. Simultaneously, obtain the predicted probability Ppred(Node3) = 0.60 for the subsequent node Node3 that has not yet occurred, and the corresponding compensation weight W3 = 0.20 for that node, obtained from the multi-task prediction network model. Substitute these values ​​into the formula for calculating the expected value of the primary target agent:

[0088] Where the current time t=2 (i.e., the second day after the user clicked the advertisement), and the current node Node curr =Node2, and since no node has yet occurred, only Node3, therefore: = 0.25 + 0.20 × 0.60 = 0.25 + 0.12 = 0.37; The physical meaning of the agent's expected value of 0.37 is as follows: based on the objective fact that Xiaohong has already submitted her assignment and the model's prediction of the possibility of communicating with her in the future through communication tools, the current probability of her finally purchasing the full-price course is assessed as 37%.

[0089] Step 5: Calculate the trust weight of genuine feedback and the smoothing soft label. Based on the time t=2 between the current observation time and the start of the delay window, and the maximum delay window duration T max =5, calculate the true feedback trust weight according to the squared decay formula: ; The trust weight of 0.16 means that since we are currently only in the second day of the conversion cycle, the credibility of the genuine tag "not yet purchased" is low, so only 16% of the trust weight is given to genuine feedback, and the remaining 84% of the trust weight is allocated to the agent's expected value.

[0090] Furthermore, obtain the actual primary target feedback value at the current moment. =0 (Xiaohong has not yet purchased the full-price course), and this real feedback value is dynamically weighted and merged with the main target agent expectation value of 0.37 calculated in step 4 according to the above trust weights to generate a smooth soft label: = 0.16 × 0 + (1-0.16) × 0.37 = 0.84 × 0.37 = 0.3108; The smooth soft label 0.3108 is the continuous supervision signal constructed for the current sample. It is between 0 and 1. It is neither the simple and crude 0 in the traditional method, nor the unrealistic 1. Instead, it is an objective quantitative evaluation based on the user's current actual behavioral progress.

[0091] Step 6: Calculate the joint loss function and perform backpropagation. The smooth soft label calculated in step 5 =0.3108 is used as the supervision signal for the primary objective. Substituting this into the soft cross-entropy loss function, it is compared with the initial predicted probability of the primary objective output by the multi-task prediction network model. =0.10 to jointly calculate the main task loss. Before calculation, check the predicted value. Whether it is within the numerical stability range. In this embodiment, the minimum constant ε is set to 10. -7 ,because =0.10, which satisfies ∈[10 -7 , 1-10 -7 The conditions are such that no numerical clipping is needed; simply substitute them into the loss function:

[0092] The standard binary cross-entropy loss of each intermediate node is calculated synchronously, and each intermediate node uses the objectively occurring real hard label (0 or 1) as the supervision signal. In this embodiment, Xiaohong has triggered Node1 and Node2, but not Node3. Therefore, the real hard labels of the three intermediate nodes are y1=1, y2=1, and y3=0, respectively. The prediction probabilities of the three intermediate nodes by the multi-task network are Ppred(Node1)=0.95, Ppred(Node2)=0.80, and Ppred(Node3)=0.60, respectively. After calculating the loss of each intermediate node, they are weighted and summed according to preset weight coefficients (e.g., all set to 0.1) to obtain the total auxiliary task loss L. aux =0.1×(L node1 +L node2 +L node3 Adding the losses from the primary task to the losses from the auxiliary tasks yields the overall joint loss L. total =L main_soft +L aux Then, a global backpropagation is performed to update all trainable parameters in the multi-task prediction network model.

[0093] Step 7: Model Parameter Replacement and Online Deployment After backpropagation is complete, the updated network model parameters replace the currently used online inference model parameters to obtain the latest version of the multi-task prediction network model. This latest version model is then deployed to the online traffic prediction service for predicting conversion probabilities and making advertising decisions based on real-time new user requests. During the above update process, the gradient generated by the soft cross-entropy loss function is negative (∂L / ∂T). =-2.342), this negative gradient prompts the network parameters to adjust in the direction of reducing loss, thereby outputting a higher estimated probability for high-potential users with similar behavioral characteristics in the next round of prediction. This achieves model correction and optimization before the actual conversion results are generated, significantly improving the prediction accuracy of online models and the quality of advertising placement decisions in long-delay feedback scenarios.

[0094] It should be noted that in each online training cycle of this embodiment, steps 2 to 7 above are executed one by one for all samples that trigger updates, and gradient accumulation and parameter updates are performed in batches. The weight coefficient of the auxiliary loss of each intermediate node in the overall joint loss can be determined by grid search on the offline validation set according to specific business needs, and its value range is usually between 0.01 and 0.5. The value of 0.1 in this embodiment is only for illustrative purposes and does not constitute a limitation on the scope of protection of this application.

[0095] Correspondingly, this application also provides an online model training device based on intermediate behavior nodes and soft labels, referencing... Figure 3 ,include: The user interaction data acquisition module 110 is used to acquire user interaction data of at least one user clicking on an advertisement within a corresponding time period when a preset model update trigger condition is met; the user interaction data includes user information and intermediate conversion node information completed by the user at the current moment. User feature data generation module 120 is used to generate user feature data based on the user information and input the user feature data into the current version of the multi-task prediction network model, so that the multi-task prediction network model outputs the initial prediction probability of the user purchasing the advertising product and the initial prediction probability of each intermediate conversion node with a temporal progressive relationship completed before purchasing the advertising product. The historical probability acquisition module 130 is used to acquire the historical probability of a user purchasing an advertising product when the target intermediate conversion node is completed, based on the target intermediate conversion node that the user has completed most recently at the current time. The determination module 140 is used to determine the smooth soft label at the current moment based on historical probability, initial prediction probability of no intermediate conversion node, preset compensation weight of each node, duration of delay time window, and time from the start of delay time window at the current moment. The duration of delay time window is the maximum waiting time for the user from triggering the advertisement to purchasing the advertised product. The parameter update module 150 is used to take the smooth soft label as a supervision signal, calculate the loss value between the output of the multi-task prediction network model and the smooth soft label based on the soft cross-entropy loss function that supports continuous values, and perform online backpropagation and parameter update on the current multi-task prediction network model according to the loss value to obtain the updated network model parameters, and replace the current version of the network model parameters to obtain the latest version of the multi-task prediction network model.

[0096] It should be noted that the online model training device based on intermediate behavior nodes and soft labels provided in this application embodiment has the same or corresponding technical features as the online model training method based on intermediate behavior nodes and soft labels provided in any of the above embodiments, and produces the same technical effect. For the sake of brevity, it will not be described in detail here.

[0097] Based on at least one of the above embodiments, the electronic device in the embodiments of this application may be a user terminal device, a server, other computing devices, or a cloud server. Figure 4 This is a schematic diagram of the hardware structure of an electronic device according to an embodiment of this application. The electronic device may include a processor 601 and a memory 602 storing computer program instructions. The processor 601 reads and executes the computer program instructions stored in the memory 602 to implement the process or function of any of the methods in the above embodiments.

[0098] Specifically, processor 601 may include a central processing unit (CPU), or an application-specific integrated circuit (ASIC), or one or more integrated circuits configured to implement the embodiments of this application. Memory 602 may include mass storage for data or instructions. For example, memory 602 may be at least one of the following: hard disk drive (HDD), read-only memory (ROM), random access memory (RAM), floppy disk drive, flash memory, optical disk, magneto-optical disk, magnetic tape, universal serial bus (USB) drive, or other physical / tangible memory storage device. Alternatively, memory 602 may include removable or non-removable (or fixed) media. Furthermore, memory 602 may be internal or external to an electronic device. Memory 602 may be non-volatile solid-state memory. In other words, typically memory 602 includes a tangible (non-transitory) computer-readable storage medium (such as a memory device) encoded with computer-executable instructions, and when the software is executed (e.g., by one or more processors), it can perform the operations described in the methods of the embodiments of this application.

[0099] As an example, Figure 4 The illustrated electronic device may also include a communication interface 603 and a bus 610. The processor 601, memory 602, and communication interface 603 are connected via bus 610 and communicate with each other. Bus 610 may include hardware, software, or both, and may couple components of an online data traffic metering device together. The bus may include at least one of the following: Accelerated Graphics Port (AGP) or other graphics bus, Enhanced Industry Standard Architecture (EISA) bus, Front Side Bus (FSB), HyperTransport (HT) Interconnect, Industry Standard Architecture (ISA) bus, Infinite Bandwidth Interconnect, Low Pin Count (LPC) bus, memory bus, Microchannel Architecture (MCA) bus, Peripheral Component Interconnect (PCI) bus, PCI-Express (PCI-X) bus, Serial Advanced Technology Attachment (SATA) bus, Video Electronics Standards Association Local (VLB) bus, or other suitable bus. Bus 610 may include one or more buses. Although specific buses are described or shown in the embodiments of this application, any suitable bus or interconnection method is contemplated in the embodiments of this application.

[0100] In conjunction with the methods in the above embodiments, this application also provides a computer-readable storage medium storing computer program instructions, which, when executed by a processor, implement the process or function of any of the methods in the above embodiments.

[0101] This application also provides a computer program product that stores computer program instructions, which, when executed by a processor, implement the process or function of any of the methods described above.

[0102] The flowcharts and / or block diagrams of methods, terminals, systems, and computer program products according to embodiments of this application have been exemplarily described above, and related aspects have been described. It should be understood that each block or combination thereof in the flowcharts and / or block diagrams may be implemented by computer program instructions, by dedicated hardware performing a specified function or action, or by a combination of dedicated hardware and computer instructions. For example, these computer program instructions may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing apparatus to form a machine such that these instructions, executed via such processor, enable the implementation of the function / action specified in each block or combination thereof in the flowcharts and / or block diagrams. Such a processor may be a general-purpose processor, a dedicated processor, a special-purpose application processor, or a field-programmable logic circuit.

[0103] The functional blocks shown in the structural block diagrams of this application can be implemented as hardware, software, firmware, or a combination thereof. When implemented in hardware, they can be, for example, electronic circuits, application-specific integrated circuits (ASICs), appropriate firmware, plug-ins, function cards, etc.; when implemented in software, they are programs or code segments used to perform the required tasks. Programs or code segments can be stored in memory or transmitted over a transmission medium or communication link via data signals carried on a carrier wave. Code segments can be downloaded via computer networks such as the Internet or intranets.

[0104] It should be noted that this application is not limited to the specific configurations and processes described above or shown in the figures. The above descriptions are merely specific embodiments of this application. Those skilled in the art will clearly understand that, for the sake of convenience and brevity, the specific working processes of the described systems, devices, terminals, modules, or units can be referred to the corresponding processes in the method embodiments, and need not be repeated here. It should be understood that the scope of protection of this application is not limited thereto. Any equivalent modifications or substitutions that can be conceived by those skilled in the art within the scope of the technology disclosed in this application should be covered within the scope of protection of this patent application.

Claims

1. An online training method for a model based on intermediate behavior nodes and soft labels, characterized in that, include: When the preset model update trigger condition is met, user interaction data of at least one user clicking on an advertisement within the corresponding time period is obtained; the user interaction data includes user information and intermediate conversion node information completed by the user at the current moment; User feature data is generated based on the user information, and the user feature data is input into the current version of the multi-task prediction network model, so that the multi-task prediction network model outputs the initial prediction probability of the user purchasing the advertised product and the initial prediction probability of each intermediate conversion node with a temporal progressive relationship that has been completed before purchasing the advertised product. Based on the target intermediate conversion node that the user has completed most recently at the current time, obtain the historical probability of the user purchasing the advertised product when the target intermediate conversion node has been completed in the historical samples. Based on historical probability, initial predicted probability of no intermediate conversion nodes, preset compensation weights for each node, duration of the delay window, and time from the start of the delay window, the smooth soft label for the current moment is determined. The duration of the delay window is the maximum waiting time for the user from triggering the ad to purchasing the advertised product. Using the smooth soft label as a supervision signal, and based on the soft cross-entropy loss function that supports continuous values, the loss value between the output of the multi-task prediction network model and the smooth soft label is calculated. Based on the loss value, the current multi-task prediction network model is backpropagated online and the parameters are updated to obtain the updated network model parameters. The updated network model parameters are then replaced with the current version's network model parameters to obtain the latest version of the multi-task prediction network model.

2. The method according to claim 1, characterized in that, Based on historical probabilities, initial prediction probabilities without intermediate transformation nodes, preset compensation weights for each node, the duration of the delay window, and the time elapsed since the start of the delay window, the smooth soft label for the current moment is determined, including: Based on historical probability, initial predicted probability of no intermediate conversion nodes, and preset compensation weights for each node, the probability of a user purchasing an advertised product at the current moment is calculated, and the expected value of the main target agent at the current moment is obtained. The true feedback trust weight at the current moment is calculated based on the duration of the delay window and the time elapsed since the start of the delay window. The true feedback trust weight increases with the time elapsed since the start of the delay window. Based on the trust weight of real feedback, the real primary target feedback value and the primary target proxy expectation value at the current moment are dynamically weighted to obtain the smooth soft label at the current moment.

3. The method according to claim 2, characterized in that, The expected value of the primary target agent at the current moment satisfies the following calculation formula: ;in, As the intermediate transformation node of the target, Based on the preset historical probability, This represents the predicted probability that no intermediate transformation node has occurred. This represents the compensation weight for the corresponding node.

4. The method according to claim 2, characterized in that, The compensation weight is positively correlated with the historical average conversion gain, which is determined based on the conditional conversion rate difference in historical sample data; wherein, for any intermediate conversion node NoDi, its corresponding historical average conversion gain Gaini satisfies the following relationship: ; In the formula, CRhist(Nodei) is the historical conditional conversion rate of entities that have been triggered to the i-th intermediate conversion node in the historical sample and have finally achieved the user's goal of purchasing products; CRhist(Nodei-1) is the historical conditional conversion rate of entities that have been triggered to the (i-1)-th intermediate conversion node in the historical sample and have finally achieved the user's goal of purchasing products; and CRhist(Node0) takes the value of 0; and the compensation weights corresponding to each intermediate conversion node are all non-negative values, and within the delay time window, for all subsequent intermediate conversion nodes that have not yet occurred at any current observation time t, the sum of their corresponding compensation weights satisfies less than or equal to 1.

5. The method according to claim 3, characterized in that, The true feedback trust weight satisfies the following calculation formula: ;in, γ represents the duration of the delay time window, t represents the time elapsed since the start of the delay time window, and γ≥1 is a hyperparameter controlling the decay rate of the control curve.

6. The method according to claim 5, characterized in that, The smooth soft label The calculation formula is: ,in, Trust weight is based on the actual feedback at the current moment. This represents the actual primary target feedback value at the current moment. At t= The location satisfies α Tmax =1, the smooth soft label degenerates into the true main target feedback value.

7. The method according to claim 1, characterized in that, The soft cross-entropy loss function Loss is as follows: Where t is the time elapsed since the start of the delay window; The initial predicted probability for users to purchase advertised products. This is the smooth soft label for the current moment.

8. The method according to claim 1, characterized in that, The multi-task prediction network model is a neural network structure that shares underlying parameters and branches into multiple task towers. The first task tower outputs the initial predicted probability of a user purchasing an advertised product, while the other task towers output the predicted probability of each intermediate conversion node.

9. The method according to claim 1, characterized in that, The intermediate conversion nodes are pre-marked according to the temporal progression of the user's conversion path, and the conversion between adjacent nodes has a pre- and post-conversion dependency relationship.

10. An advertising decision-making method based on an online-trained and updated model, characterized in that, include: Obtain the latest version of the multi-task prediction network model obtained by the method described in any one of claims 1-9; When a trigger request is received from the current requesting user to click on an advertisement, the user interaction data of the current requesting user is obtained; The user interaction data of the current requesting user includes the user information of the current requesting user and the intermediate conversion node information that the current requesting user has completed at the current moment; User feature data is generated based on the user information of the current requesting user, and the user feature data is input into the multi-task prediction network model, so that the multi-task prediction network model outputs the initial predicted probability of the current requesting user purchasing the advertised product. If the initial predicted probability is greater than or equal to a preset threshold, an ad response is generated, which includes an ad creative identifier and a landing page link; if the initial predicted probability is less than the preset threshold, an empty response or a downgraded ad response is generated.

11. An online training device for models based on intermediate behavior nodes and soft labels, characterized in that, include: The user interaction data acquisition module is used to acquire user interaction data of at least one user clicking on an advertisement within a corresponding time period when a preset model update trigger condition is met; the user interaction data includes user information and intermediate conversion node information completed by the user at the current moment; The user feature data generation module is used to generate user feature data based on the user information and input the user feature data into the current version of the multi-task prediction network model, so that the multi-task prediction network model outputs the initial prediction probability of the user purchasing the advertising product and the initial prediction probability of each intermediate conversion node with a temporal progressive relationship that has been completed before purchasing the advertising product. The historical probability acquisition module is used to acquire the historical probability of a user purchasing an advertised product when the target intermediate conversion node is completed, based on the target intermediate conversion node that the user has completed most recently at the current time. The determination module is used to determine the smooth soft tag at the current moment based on historical probability, initial predicted probability of no intermediate conversion node, preset compensation weight of each node, duration of delay time window, and time from the start of delay time window at the current moment. The duration of delay time window is the maximum waiting time for the user from triggering the advertisement to purchasing the advertised product. The parameter update module is used to take the smooth soft label as a supervision signal, calculate the loss value between the output of the multi-task prediction network model and the smooth soft label based on the soft cross-entropy loss function that supports continuous values, and perform online backpropagation and parameter update on the current multi-task prediction network model according to the loss value to obtain the updated network model parameters, and replace the current version of the network model parameters to obtain the latest version of the multi-task prediction network model.

12. An electronic device, characterized in that, The electronic device is a terminal device or a server. The electronic device includes a processor and a memory storing computer program instructions. When the electronic device executes the computer program instructions, it implements the method as described in any one of claims 1-10.

13. A computer program product, characterized in that, It includes computer program instructions that, when executed, implement the method as described in any one of claims 1-10.

14. A computer-readable storage medium, characterized in that, It stores computer program instructions that, when executed, implement the method as described in any one of claims 1-10.