Model training method, information classification method, device, equipment and program product
By clustering the initial data set and building a causal representation model, the problems of selective bias, endogeneity and distribution drift in the observation data are solved, and the efficiency and user experience of video resource distribution are improved.
Patent Information
- Application Number
- CN202410874354.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-20
AI Technical Summary
Existing technologies are difficult to effectively solve the selective bias, endogeneity problems and distribution drift problems existing in observation data, especially in large-scale data processing, resulting in low efficiency of video resource distribution.
By obtaining the initial data set, clustering it based on multiple initial classification labels, determining the variable mapping relationship between confounding variables and instrumental variables, constructing the causal representation loss function of the causal representation model, and training the model to represent The correlation between intervening variables and outcome variables can solve the problem of endogeneity and distribution drift.
It improves the generalization ability of the model, eliminates endogeneity problems caused by unobserved confounding variables, achieves reasonable distribution of video resources under limited resource costs, and improves user experience.
Smart Images

Figure CN118673331A
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a model training method, an information classification method, a model training device, an information classification device, an electronic device, and a computer program product. Background Art
[0002] In recent years, short videos have become the mainstream trend of social media and have quickly become an important carrier for information dissemination, e-commerce, education and other applications. In short video services, in order to improve the effectiveness of video resource distribution, content providers usually allocate as many resources as possible to users to directly improve their network service quality (QoS). However, with the rapid increase in user requests and the continuous increase in video bitrate, how to achieve reasonable distribution of video content under limited resource costs is an urgent problem to be solved. In related solutions, the common practice in the industry is to make personalized adjustments to the quality of videos distributed to different users based on AB experimental data, and to formulate reasonable resource distribution strategies with effective resource costs as much as possible. Summary of the invention
[0003] The present disclosure provides a model training method, information classification method, device, electronic device and computer program product to at least solve the problems of selective bias, endogenous problem and distribution drift in observed data that cannot be dealt with in related technologies. The technical solution of the present disclosure is as follows:
[0004] According to a first aspect of an embodiment of the present disclosure, a model training method is provided, including: obtaining an initial data set, clustering the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, wherein the initial data set is a data set in which a correlation relationship exists between a confounding variable, an intervention variable, and an outcome variable; determining the confounding variables and instrumental variables corresponding to the multi-label classification data set, determining a variable mapping relationship between the confounding variables and the instrumental variables, wherein the variable mapping relationship is used to reflect the influence of the instrumental variables on the outcome variable; constructing a causal characterization loss function of an initial causal characterization model based on the variable mapping relationship, wherein the initial causal characterization model is used to characterize the correlation relationship between the intervention variable and the outcome variable; and training the initial causal characterization model based on the multi-label classification data set and the causal characterization loss function to obtain a causal characterization model.
[0005] In an exemplary embodiment of the present disclosure, clustering the initial data set based on multiple initial classification labels to obtain a multi-label classification data set includes: acquiring multiple source domain data under a preset scenario, wherein the source domain data are original data obtained based on different data sources; performing feature engineering on the multiple source domain data to obtain the initial data set; determining multiple initial classification labels corresponding to the initial data set; and clustering the initial data set according to the multiple initial classification labels to obtain the multi-label classification data set.
[0006] In an exemplary embodiment of the present disclosure, clustering the initial data set according to the multiple initial classification labels to obtain the multi-label classification data set includes: based on the multiple initial classification labels, respectively training the regression models corresponding to the initial classification labels; iteratively processing the multiple regression models to obtain the error classification results of the regression models; updating the multiple initial classification labels according to the error classification results until the amount of label update data corresponding to the updated initial classification labels is less than a preset quantity threshold, thereby obtaining data classification labels; and determining the multi-label classification data set based on the data classification labels.
[0007] In an exemplary embodiment of the present disclosure, determining the variable mapping relationship between the confounding variable and the instrumental variable includes: determining the confounding variable corresponding to the multi-label classification data set based on the outcome variable under a preset scenario; determining the instrumental variable according to the confounding variable, wherein the instrumental variable is a variable related to the intervention variable and unrelated to the confounding variable; constructing an initial regression network model based on the confounding variable and the instrumental variable, and determining the regression model loss function corresponding to the initial regression network model; training the initial regression network model based on the regression model loss function to obtain a regression network model; and determining the variable mapping relationship according to the regression network model.
[0008] In an exemplary embodiment of the present disclosure, the causal representation loss function of the initial causal representation model constructed based on the variable mapping relationship includes: obtaining a pre-constructed initial causal representation model, and constructing a first loss function corresponding to the initial causal representation model; based on the variable mapping relationship, constructing a second loss function corresponding to the initial causal representation model; based on the first loss function and the second loss function, constructing the causal representation loss function.
[0009] In an exemplary embodiment of the present disclosure, the construction of the first loss function corresponding to the initial causal representation model includes: performing representation learning processing on the multiple confounding variables to obtain the confounding variable representation value corresponding to each of the confounding variables, and determining the predicted output result of each of the confounding variable representation values; determining the variable distribution ratio between the confounding variables and the instrumental variables; determining the model output target value, and constructing the first loss function based on the multiple predicted output results, the variable distribution ratio and the model output target value.
[0010] In an exemplary embodiment of the present disclosure, constructing a second loss function corresponding to the initial causal representation model based on the variable mapping relationship includes: obtaining a confounding variable representation value corresponding to the confounding variable; and constructing the second loss function according to an integrated probability metric distance between the variable mapping relationship and the confounding variable representation value.
[0011] According to a second aspect of an embodiment of the present disclosure, there is provided an information classification method, comprising: acquiring resource data and a pre-trained causal characterization model, wherein the causal characterization model is trained using a model training method; classifying the resource data by the causal characterization model, and determining a target user group based on the obtained classification results, wherein the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold interval; and sending target resource data to the target user group, wherein the target resource data meets a specified parameter threshold.
[0012] According to a third aspect of an embodiment of the present disclosure, a model training device is provided, comprising: a data set determination module, used to obtain an initial data set, cluster the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, wherein the initial data set is a data set in which there is a correlation relationship between a confounding variable, an intervention variable, and an outcome variable; a variable mapping determination module, used to determine the confounding variables and instrumental variables corresponding to the multi-label classification data set, and determine the variable mapping relationship between the confounding variables and the instrumental variables, wherein the variable mapping relationship is used to reflect the influence of the instrumental variables on the outcome variable; a loss function construction module, used to construct a causal characterization loss function of an initial causal characterization model based on the variable mapping relationship, wherein the initial causal characterization model is used to characterize the correlation relationship between the intervention variable and the outcome variable; and a model training module, used to train the initial causal characterization model based on the multi-label classification data set and the causal characterization loss function to obtain a causal characterization model.
[0013] In an exemplary embodiment of the present disclosure, the data set determination module includes a data set determination unit, which is used to: obtain multiple source domain data under a preset scenario, where the source domain data is original data obtained based on different data sources; perform feature engineering processing on the multiple source domain data to obtain the initial data set; determine multiple initial classification labels corresponding to the initial data set; and perform clustering processing on the initial data set according to the multiple initial classification labels to obtain the multi-label classification data set.
[0014] In an exemplary embodiment of the present disclosure, the data set determination unit includes a data clustering subunit, which is used to: based on the multiple initial classification labels, respectively train the regression models corresponding to each of the initial classification labels; iteratively process the multiple regression models to obtain the error classification results of each of the regression models; update the multiple initial classification labels according to the error classification results until the amount of label update data corresponding to the updated initial classification label is less than a preset quantity threshold, thereby obtaining a data classification label; and determine the multi-label classification data set based on the data classification label.
[0015] In an exemplary embodiment of the present disclosure, the variable mapping determination module includes a variable mapping determination unit, which is used to: determine the confounding variable corresponding to the multi-label classification data set based on the outcome variable under a preset scenario; determine the instrumental variable according to the confounding variable, and the instrumental variable is a variable related to the intervention variable and unrelated to the confounding variable; construct an initial regression network model based on the confounding variable and the instrumental variable, and determine the regression model loss function corresponding to the initial regression network model; train the initial regression network model based on the regression model loss function to obtain a regression network model; and determine the variable mapping relationship according to the regression network model.
[0016] In an exemplary embodiment of the present disclosure, the loss function construction module includes a loss function construction unit, which is used to: obtain a pre-constructed initial causal representation model, and construct a first loss function corresponding to the initial causal representation model; based on the variable mapping relationship, construct a second loss function corresponding to the initial causal representation model; based on the first loss function and the second loss function, construct the causal representation loss function.
[0017] In an exemplary embodiment of the present disclosure, the loss function construction unit includes a first function construction sub-unit, which is used to: perform representation learning processing on the multiple confounding variables, obtain the confounding variable representation value corresponding to each of the confounding variables, and determine the predicted output result of each of the confounding variable representation values; determine the variable distribution ratio between the confounding variable and the instrumental variable; determine the model output target value, and construct the first loss function based on the multiple predicted output results, the variable distribution ratio and the model output target value.
[0018] In an exemplary embodiment of the present disclosure, the loss function construction unit includes a second function construction sub-unit, which is used to: obtain the confusion variable representation value corresponding to the confusion variable; and construct the second loss function according to the integral probability metric distance between the variable mapping relationship and the confusion variable representation value.
[0019] According to a fourth aspect of an embodiment of the present disclosure, there is provided an information classification device, comprising: a model acquisition module, for acquiring resource data and a pre-trained causal representation model, wherein the causal representation model is trained using a model training method; a resource classification module, for classifying the resource data using the causal representation model, and determining a target user group based on the obtained classification result, wherein the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold interval; and a resource sending module, for sending target resource data to the target user group, wherein the target resource data meets a specified parameter threshold.
[0020] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor executable instructions; wherein the processor is configured to execute instructions to implement any one of the above-mentioned model training methods, or to implement the above-mentioned information classification method.
[0021] According to a sixth aspect of an embodiment of the present disclosure, a computer program product is provided, comprising a computer program, which, when executed by a processor, implements any one of the above-described model training methods, or implements the above-described information classification method.
[0022] The technical solution provided by the embodiments of the present disclosure brings at least the following beneficial effects: on the one hand, for heterogeneous features that are easily ignored in big data, the generalization ability of the model can be improved by configuring classification labels for the initial data set to guide model training. On the other hand, the endogeneity problem caused by unobserved confounding variables can be eliminated based on instrumental variables.
[0023] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] The drawings herein are incorporated into and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the description are used to explain the principles of the present disclosure, and do not constitute improper limitations on the present disclosure.
[0025] Figure 1 The figure is a flowchart of a model training method according to an exemplary embodiment.
[0026] Figure 2 It is an overall flow chart of training a causal representation model according to an exemplary embodiment.
[0027] Figure 3 The present invention is a flowchart of an information classification method according to an exemplary embodiment.
[0028] Figure 4 It is a block diagram of a model training device according to an exemplary embodiment.
[0029] Figure 5 The invention is a block diagram of an information classification device according to an exemplary embodiment.
[0030] Figure 6 A block diagram of an electronic device according to an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0031] In order to enable ordinary persons in the art to better understand the technical solutions of the present disclosure, the technical solutions in the embodiments of the present disclosure will be clearly and completely described below in conjunction with the accompanying drawings.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present disclosure and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present disclosure described herein can be implemented in an order other than those illustrated or described herein. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.
[0033] According to some experimental results, causal models are usually affected by distribution drift (Out-of-Distribution, OOD). For example, the audio and video data in the video playback platform are usually aggregated from data in multiple source domains, and the features for dividing the data are varied. For example, the data can be divided according to time features such as the acquisition time and distribution time of the data; for example, the audio and video data is divided using user data obtained with the user's consent, and the data is divided based on the features contained in the user data, such as the user's model, user region, and user network status. The assumption of "no confusion" is that the input features of the model include all confounding variables, and there is no unobserved confusion. However, in the actual training process, usually only a part of the confounding variables can be collected and input into the model for training.
[0034] In some related schemes, the Meta-Learning method is based on randomized controlled trial data. The Meta-Learning method refers to gain evaluation (Uplift estimation) based on the Meta-Learner, where the Meta-Learner can be any existing prediction algorithm, such as logistic regression (LR), support vector machine (SVM), random forest (RF), gradient boosting tree (GBDT), etc. According to the different combinations of Meta-Learner, it is usually divided into: S-Learner, T-Learner, X-Learner, R-Learner.
[0035] However, the above methods have some significant disadvantages. First, the Meta-Learning method usually requires a large amount of randomized controlled trial data to train and learn the Meta-Learner. This is a challenge for causal inference problems because obtaining accurate causal effect labels can be difficult and expensive. Second, due to the strict requirements of the Meta-Learning method on data, when faced with large-scale observational data, it is not possible to deal well with the selective bias, endogeneity, and distribution drift problems in the observational data.
[0036] Based on this, according to the embodiments of the present disclosure, a model training method, an information classification method, a model training device, an information classification device, an electronic device and a computer program product are proposed.
[0037] Figure 1 is a flow chart of a model training method according to an exemplary embodiment. Figure 1As shown, the model training method can be used in a computer device, wherein the computer device described in the present disclosure may include mobile terminal devices such as mobile phones, tablet computers, laptops, PDAs, and fixed terminal devices such as desktop computers. This exemplary embodiment uses the method applied to a computer device as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a computer device and a server, and is implemented through the interaction between the computer device and the server. Specifically, the following steps are included.
[0038] In step S110, an initial data set is obtained, and clustering processing is performed on the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, where the initial data set is a data set in which there is a correlation relationship between the confounding variable, the intervention variable, and the outcome variable.
[0039] In an exemplary embodiment of the present disclosure, the initial data set may be a data set obtained after feature engineering processing is performed on multiple collected raw data, and the initial data set contains multiple data items. A data item may be composed of multiple data variables and corresponding result variables. For example, the data items of audio and video data may be composed of network speed, user region, user viewing time, etc. The data items in the initial data set conform to the relevant characteristics of the causal model. For example, the data item includes a confounding variable (denoted as X), an intervention variable (denoted as T) and an outcome variable (also known as a dependent variable, denoted as Y), and there is a certain correlation between the three. A confounding variable may be a variable that affects both the outcome variable Y and the intervention variable T at the same time, and is an interfering factor in the experiment. An intervention variable may be a variable that is hoped to be studied through control. The outcome variable may be a variable representing the experimental result.
[0040] Data heterogeneity can be understood as a large sample of data with many small samples, each of which has different data characteristics, such as the average values of small samples are high or low, and the degree of dispersion is dense or sparse. Clustering processing can be a process of aggregating the initial data set into multiple different classifications based on data heterogeneity. A multi-label classification data set can be a data set with corresponding data label classifications after clustering the initial data set. Due to the data differences of the initial data set, such as differences in the use environment or user groups of the data, the initial data set is usually a data set constructed by aggregating multiple source domain data. The initial data set contains multiple data items in a large-scale specified scenario. For any initial data item, different values of the data variable may generate different result variables. For the collected initial data set, after feature engineering processing, the initial data set is clustered based on multiple initial classification labels to generate a multi-label classification data set containing multiple different classification labels.
[0041] In step S120, the confounding variables and instrumental variables corresponding to the multi-label classification data set are determined, and the variable mapping relationship between the confounding variables and the instrumental variables is determined. The variable mapping relationship is used to reflect the influence of the instrumental variables on the outcome variable.
[0042] In an exemplary embodiment of the present disclosure, a confounding variable may be a variable related to both an intervention variable (treatment) and an outcome variable (outcome), and the confounding variable may cause a false correlation between the intervention variable and the outcome variable. An instrumental variable may be a variable that can only affect the outcome variable by affecting the intervention variable. A variable mapping relationship may be a mapping relationship between a confounding variable and an instrumental variable, and by constructing a variable mapping relationship, the influence of the instrumental variable on the outcome variable may be reflected.
[0043] In order to solve the endogeneity problem caused by unobserved confounding variables, after generating a multi-label classification data set, the instrumental variables are determined based on the multi-label classification data set, and the endogeneity problem in the observed data is eliminated according to the two-stage least squares method of the instrumental variables. The specific process is: observe the confounding variables corresponding to the multi-label classification data set, and determine the instrumental variables based on the confounding variables. The determination of the instrumental variables needs to meet some assumptions. For example, the instrumental variables only affect the intervention variables, and will not have a relationship with the confounding variables and affect the confounding variables.
[0044] After determining the confounding variables and instrumental variables, a regression model between the confounding variables and the instrumental variables is constructed. For example, the regression model can be a multilayer perceptron (MLP) structure, and then the variable mapping relationship between the confounding variables and the instrumental variables is determined based on the trained regression model.
[0045] In step S130, a causal representation loss function of an initial causal representation model is constructed based on the variable mapping relationship, and the initial causal representation model is used to characterize the association relationship between the intervention variable and the outcome variable.
[0046] In an exemplary embodiment of the present disclosure, the initial causal representation model may be a causal model constructed based on causal effect perception of invariant learning. The causal representation loss function may be a loss function constructed for model training of the initial causal representation model, and the causal representation loss function may be constructed based on a variable mapping relationship.
[0047] After determining the variable mapping relationship between the confounding variable and the instrumental variable, the variable mapping relationship is applied to the construction process of the loss function of the initial causal representation model, so that during the training process of the causal representation model, the model can learn the variable mapping relationship, thereby solving the endogeneity problem caused by unobserved confounding variables. The initial causal representation model is a causal model constructed based on the causal effects between confounding variables, intervention variables and outcome variables. The initial causal representation model can be used to characterize the association between intervention variables and outcome variables, and to calculate the causal effect from the group level based on the relationship between different variables in causal inference modeling.
[0048] In step S140, the initial causal representation model is trained based on the multi-label classification data set and the causal representation loss function to obtain a causal representation model.
[0049] In an exemplary embodiment of the present disclosure, the causal representation model may be a causal model trained based on a causal representation loss function.
[0050] After constructing the causal representation loss function of the initial causal representation model, the multi-label classification data set is used as the model training data. Based on the multi-label classification data set and the constructed causal representation loss function, the initial causal representation model is trained to obtain the causal representation model. Through the above training method, a solution that can have stable causal effect results when facing unknown observation data is implemented, so as to formulate a more optimized implementation strategy based on scene data with different data characteristics. For example, in the audio and video resource distribution scenario, by constructing a causal representation model, the resource viewing situation of different users can be analyzed, so as to send matching audio and video resources to different users with limited resource costs.
[0051] According to the model training method in this example embodiment, on the one hand, for heterogeneous features that are easily overlooked in big data, classification labels can be configured for the initial data set to guide model training, thereby improving the generalization ability of the model. On the other hand, based on instrumental variables, endogeneity problems caused by unobserved confounding variables can be eliminated.
[0052] The model training method in this example embodiment will be further described below.
[0053] In an exemplary embodiment of the present disclosure, for step S110, clustering processing is performed on the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, including: obtaining multiple source domain data under a preset scenario, where the source domain data is original data obtained based on different data sources; performing feature engineering processing on the multiple source domain data to obtain an initial data set; determining multiple initial classification labels corresponding to the initial data set; and clustering the initial data set according to the multiple initial classification labels to obtain a multi-label classification data set.
[0054] Among them, the preset scenario can be a pre-specified application scenario, for example, the preset scenario can be a scenario for playing audio and video data under different user needs, the preset scenario can also be a scenario for determining user conversion rates under different promotional activities, and the preset scenario can also be a scenario for determining user income based on user information. Source domain data can be data directly obtained from multiple different data sources. The data source can be a data source that can generate user data under the preset scenario. Raw data can be data directly obtained from multiple data sources and not processed. Feature engineering processing refers to the process of generating features that can better reflect the characteristics of the data by processing and converting the raw data in order to improve the performance of the machine learning model. For example, feature engineering processing can include data cleaning processing and feature conversion processing. The initial classification label can be a classification label pre-configured before clustering processing.
[0055] Due to the individual differences of the initial data items, for a specified preset scenario, the original data can be obtained from multiple different data sources as source domain data. In order to explain the present disclosure in more detail, this embodiment takes the audio and video resource distribution scenario as an example. Taking the video resource distribution scenario in the short video platform as an example, due to the individuality of the user portrait, the short video platform can obtain original data from multiple channels as source domain data. For example, the video viewing data of different regions obtained by the short video platform, the video viewing data obtained by the short video platform at different time periods, the video viewing data of different resource types obtained by the short video platform, and so on.
[0056] refer to Figure 2 , Figure 2 It is an overall flow chart of training a causal representation model according to an exemplary embodiment. In step S210, large-scale observation data is obtained. The multiple source domain data obtained are used as large-scale observation data. In step S220, feature engineering is performed on the obtained observation data to obtain an initial data set, such as feature engineering including data cleaning (eliminating some extreme data), completing missing data, deleting duplicate data and other operations. Taking the audio and video resource distribution scenario as an example, the initial data set can be a data set composed of relevant parameters of the pronunciation video resources under the audio and video platform and data such as user viewing time. For example, relevant parameters may include network speed, resource clarity, resource playback time period, user area, etc.
[0057] In step S230, a clustering module is used to perform clustering processing on the initial data set to obtain a multi-label classification data set. The clustering module is the first module to which the observed data is input after feature engineering. The clustering module receives the entire initial data set as input and outputs a data set divided into multiple environments. Specifically, before the clustering process, multiple initial classification labels corresponding to the initial data set are determined. Since the initial data set has different data characteristics in different environments, multiple classification labels can be configured for the initial data set in different environments as initial classification labels. Then, the initial data set is clustered according to the multiple initial classification labels to obtain a multi-label classification data set. By clustering the initial data set and using the obtained multi-label classification data set as the training data of the model, the heterogeneity between data can be used to improve the generalization ability of the model and eliminate the endogeneity problem of the model.
[0058] In an exemplary embodiment of the present disclosure, an initial data set is clustered according to multiple initial classification labels to obtain a multi-label classification data set, including: based on the multiple initial classification labels, respectively training regression models corresponding to each initial classification label; iteratively processing the multiple regression models to obtain error classification results of each regression model; updating the multiple initial classification labels according to the error classification results until the amount of label update data corresponding to the updated initial classification label is less than a preset quantity threshold, thereby obtaining a data classification label; and determining the multi-label classification data set based on the data classification label.
[0059] The regression model may be a regression model corresponding to each initial classification label. The error classification result may be an error classification result output by each regression model during each iteration. The label update data volume may be the data volume of another classification label under the initial classification label generated by the update process after one iteration. The preset quantity threshold may be a pre-configured quantity threshold. The data classification label may be a classification label output after multiple iterations of regression processing, and the initial data set will be divided into multiple categories based on the data classification label.
[0060] The specific implementation process of clustering processing is as follows: First, for the n observation data in the input initial data set, initialize n initial classification labels (such as environmental labels). Environmental labels can be classification labels corresponding to the classification of observation data under different environmental conditions. For example, the initial classification labels can be determined according to the collection date type of the observation data, such as the initial classification labels can include working days and non-working days; the initial classification labels can also be determined according to the different time periods of the observation data in the same day, for example, the initial classification labels can include idle time (00:00-07:00, 12:00-18:00), busy time (07:00-12:00, 18:00-24:00), etc. The initial classification labels can be configured according to the needs of the application scenario.
[0061] Next, a corresponding number (num_classes) of regression models are trained according to the initial classification labels. The number of regression models is the same as the number of initial classification labels. The constructed regression models are iteratively processed. After each iteration, the misclassification results (error) of the observed data in several regression models are determined, and the initial classification labels are re-divided according to the misclassification results. For example, the observed data that is mistakenly classified into the initial classification label 1 is divided into the initial classification label 2. For example, in the clustering process, new classification labels can be generated according to the data characteristics of the observed data. In addition, if the amount of data under a certain initial classification label does not meet the data amount of one classification after clustering processing, the initial classification label is deleted.
[0062] In each iteration, each initial classification label may generate a label update data volume. After multiple iterations, until the label update data volume corresponding to the updated initial classification label is less than the preset quantity threshold, the current data classification label after clustering processing is used as the final classification label. Then, the multi-label classification data set is determined based on the data classification label, and the clustering module outputs the multi-label classification data set. Clustering the observed data based on data heterogeneity can improve the generalization ability of the model based on invariant learning, so that the model can learn stable causal effects; in addition, through clustering processing, the distribution drift problem of observed data can also be solved.
[0063] In an exemplary embodiment of the present disclosure, for step S120, determining the variable mapping relationship between the confounding variable and the instrumental variable includes: determining the confounding variable corresponding to the multi-label classification data set based on the outcome variable in a preset scenario; determining the instrumental variable according to the confounding variable, the instrumental variable being a variable related to the intervention variable and unrelated to the confounding variable; constructing an initial regression network model based on the confounding variable and the instrumental variable, and determining the regression model loss function corresponding to the initial regression network model; training the initial regression network model based on the regression model loss function to obtain the regression network model; and determining the variable mapping relationship according to the regression network model.
[0064] The intervention variable is a binary variable. When other conditions remain unchanged, the change of the intervention variable will lead to the change of the outcome variable. The initial regression network model can be a regression model constructed based on the mapping relationship between the confounding variable and the instrumental variable. The regression model loss function can be a loss function used to train the initial regression network model. The regression network model can be a model obtained by training the initial regression network model using the regression model loss function, and the final variable mapping relationship can be determined based on the regression network model.
[0065] Continue to refer Figure 2 In step S240, the endogeneity problem is eliminated based on the instrumental variable regression module. Specifically, for the multi-label classification data set output by the clustering module, the confounding variable corresponding to the multi-label classification data set can be determined based on the application scenario requirements. Confounding variables are variables that may affect the result variables. For example, in short video services, how to achieve resource distribution of audio and video resources under limited resource costs, that is, when studying the problem of adopting a matching resource distribution strategy for different users to distribute matching audio and video resources, the user's viewing behavior duration is used as the result variable, and the confounding variable X can include variables such as device model and region.
[0066] After determining the confounding variable, the instrumental variable can be determined based on the confounding variable. The instrumental variable is a variable that is related to the intervention variable and unrelated to the confounding variable. For example, in the short video service scenario, the intervention variable T can be high-definition video and low-definition video; the instrumental variable Z can be network speed, bit rate, etc.; the result variable Y can be the user's viewing time. After determining the confounding variable X and the instrumental variable Z, an initial regression network model T is constructed based on the confounding variable X and the instrumental variable Z, where the initial regression network model T contains the variable mapping relationship π between the confounding variable X and the instrumental variable Z. μ (z i ,x i ). After the initial regression network model is constructed, the regression model loss function corresponding to the initial regression network model is determined, as shown in Formula 1.
[0067]
[0068] Among them, L T Can represent the regression model loss function; π μ (z i ,x i ) can represent variable mapping relationship; t i Can represent confounding variables; log(π μ (z i ,x i ) can represent the nonlinear relationship between variables in the regression model; n can represent the amount of observed data.
[0069] After the regression model loss function is constructed, the initial regression network model is trained based on the regression model loss function until the training end condition is met to obtain the regression network model; for example, the training end condition may be the convergence of the regression model loss function, or the model training times reach the specified number of iterations. Based on the regression network model obtained through training, the variable mapping relationship can be determined. Through the instrumental variable regression process, the endogeneity problem caused by unobserved confounding variables in the causal model can be eliminated.
[0070] In an exemplary embodiment of the present disclosure, for step S130, a causal representation loss function of the initial causal representation model is constructed based on the variable mapping relationship, including: obtaining a pre-constructed initial causal representation model, and constructing a first loss function corresponding to the initial causal representation model; based on the variable mapping relationship, constructing a second loss function corresponding to the initial causal representation model; based on the first loss function and the second loss function, constructing a causal representation loss function.
[0071] The first loss function may be the first part of the causal representation loss function, and the first loss function is the training loss of the prediction network. The second loss function may be the first part of the causal representation loss function, and the second loss function is to control the balance between the confounding variables through the integral probability metric (IPM) distance.
[0072] Continue to refer Figure 2After obtaining the variable mapping relationship, it can be applied to the model training process of the causal representation module. In step S250, the causal representation module is used to train the causal representation model based on invariant learning. For the initial causal representation model constructed, in order to solve the problem of selective bias in the observed data, in this embodiment, a design similar to the Extending Representation Balancing with IPMs (CFRNet) network structure is adopted, and the integral probability metrics (IPM) is used as the training direction of the regularization term constraint model.
[0073] Therefore, when constructing the causal representation loss function of the initial causal representation model, the causal representation loss function mainly consists of two parts. The first loss function of the initial causal representation model can be the training loss of the prediction network; the second loss function of the initial causal representation model can be the balance of confounding variables through IPM distance. In order to solve the endogeneity problem caused by unobserved confounding variables in the observed data, we use the variable mapping relationship T' learned in the instrumental variable regression module to replace the intervention variable treatment in the initial data set.
[0074] After obtaining the above two loss functions, a causal representation loss function is constructed based on the first loss function and the second loss function. Model training based on the causal representation loss function constructed in the above manner can solve the problem of selective bias in the observed data.
[0075] In an exemplary embodiment of the present disclosure, a first loss function corresponding to the initial causal representation model is constructed, including: performing representation learning processing on multiple confounding variables to obtain confounding variable representation values corresponding to each confounding variable, and determining the predicted output results corresponding to each confounding variable; determining the variable distribution ratio between the confounding variable and the instrumental variable; determining the model output target value, and constructing the first loss function based on multiple predicted output results, variable distribution ratios and model output target values.
[0076] The confounding variable representation value may be a representation result obtained by performing representation learning on the confounding variable. The variable distribution ratio may be a distribution ratio between the confounding variable and the instrumental variable. The model output target value may be a target value output by the causal representation model.
[0077] For the multiple confounding variables determined, the multiple confounding variables are represented and learned to obtain the confounding variable representation value corresponding to each confounding variable, that is, f θ (x i ), where x i is a confounding variable; f θ() is the characterization function. Then, the variable distribution ratio between the confounding variable and the instrumental variable is adjusted by the probability distribution function, that is, Among them, x i is a confounding variable; z i is an instrumental variable; i Then, the prediction network is used to predict the representation value of the confounding variable to obtain the prediction output result corresponding to the representation value of the confounding variable.
[0078] Obtain the model output target value corresponding to the causal representation model, and then construct the first loss function based on the predicted output result, variable distribution ratio and model output target value. By constructing the first loss function, the difference between the model output target value and the predicted output result can be applied to the model training process, so that the model can learn the above difference information.
[0079] In an exemplary embodiment of the present disclosure, a second loss function corresponding to the initial causal representation model is constructed based on the variable mapping relationship, including: obtaining the confounding variable representation value corresponding to the confounding variable; and constructing the second loss function according to the integrated probability measurement distance between the variable mapping relationship and the confounding variable representation value.
[0080] Among them, the integral probability metric distance can be a metric for measuring the difference between the variable mapping relationship and the probability distribution of the confounding variable representation value.
[0081] In order to observe the endogeneity problem caused by unobserved confounding variables in the data, the variable mapping relationship learned in the instrumental variable regression module is used to determine the intervention variable, which replaces the intervention variable in the initial data set, and the confounding variable is balanced by the IPM distance. The second loss function is constructed based on the integral probability measurement distance between the learned intervention variable and the representation value of the confounding variable. When the distribution of T = 0 and T = 1 in the second loss function is balanced, IPM = 0. Specifically, the integral probability measurement distance is disc(T′,f θ (x i )); where f θ (x i ) is the representation value of the confounding variable; T' is the intervention variable learned by the instrumental variable regression module. Specifically, the overall loss function of the initial causal representation model (i.e., the causal representation loss function) is shown in Formula 2.
[0082]
[0083] Among them, L can be a causal representation loss function; It can be the first loss function; can be the second loss function; n can be the amount of observed data; % i It can be the model output target value; h'() (f θ (x i )) can be the prediction output result of the prediction network for the confounding variable; f θ (x i ) is the confounding variable representation value; It can be the variable distribution ratio between the confounding variable and the instrumental variable; T' is the intervention variable learned through the instrumental variable regression module.
[0084] Using the causal representation loss function for model training can solve the problem of selective bias in the observed data. In some other scenarios, loss functions can be constructed based on multiple different environmental labels, and model training can be performed based on the loss functions of multiple environmental labels. The causal representation model obtained by the above training method can be used for classification tasks in different application scenarios, such as mining user groups with different usage needs to provide personalized services for different users in different application scenarios.
[0085] Furthermore, in the overall process of causal representation model training, the clustering module and the causal representation module can be further designed as an iterative optimization form, using the invariant representation captured by the causal representation module to guide the environment (classification label) division of the clustering module. The two modules iterate each other to achieve the purpose of model training.
[0086] It should be noted that the present disclosure can be applied to a variety of different preset application scenarios involving causal inference. For example, the preset scenario can be a media resource distribution scenario, such as personalizing the media resources distributed to users based on user sensitivity and needs to balance resource costs and user experience. The preset scenario can also be a coupon distribution scenario, such as an e-commerce platform adjusting subsequent coupon distribution strategies by analyzing the coupon distribution situation and user shopping conversion rate. The present disclosure does not make any special limitations on the preset scenarios, and all various application scenarios involving classification tasks fall within the protection scope of the present disclosure.
[0087] In summary, the model training method disclosed in the present invention obtains an initial data set, clusters the initial data set based on multiple initial classification labels, and obtains a multi-label classification data set, wherein the initial data set is a data set in which there is an association relationship between a confounding variable, an intervention variable, and an outcome variable; determines the confounding variables and instrumental variables corresponding to the multi-label classification data set, determines the variable mapping relationship between the confounding variables and the instrumental variables, and the variable mapping relationship is used to reflect the influence of the instrumental variable on the outcome variable; constructs a causal characterization loss function of the initial causal characterization model based on the variable mapping relationship, and the initial causal characterization model is used to characterize the association relationship between the intervention variable and the outcome variable; trains the initial causal characterization model based on the multi-label classification data set and the causal characterization loss function to obtain a causal characterization model. On the one hand, for heterogeneous features that are easily overlooked in big data, the generalization ability of the model can be improved by configuring classification labels for the initial data set to guide model training. On the other hand, based on instrumental variables, the endogeneity problem caused by unobserved confounding variables can be eliminated. On the other hand, the causal characterization model trained by the causal characterization loss function containing the variable mapping relationship can solve the selective bias problem existing in the summary of observed data.
[0088] Next, the present disclosure proposes an information classification method, referring to Figure 3 , Figure 3 FIG. 1 is a flow chart showing an information classification method according to an exemplary embodiment. Figure 3 As shown, the information classification method can be used in a computer device. This exemplary embodiment uses the method applied to a computer device as an example. It can be understood that the method can also be applied to a server, and can also be applied to a system including a computer device and a server, and is implemented through the interaction between the computer device and the server. Specifically, the following steps are included.
[0089] In step S310, resource data and a pre-trained causal representation model are obtained, and the causal representation model is trained using a model training method.
[0090] In an exemplary embodiment of the present disclosure, resource data may be content and data for distribution to different users, resource data may be one or more of audio and video data, image data, and text data, and audio and video data may be resource distribution data generated by an audio and video resource platform playing audio and video materials.
[0091] In the audio and video service scenario, in order to maximize the user experience quality under limited resource costs, it is necessary to mine the user experience sensitive groups from the audio and video data, and then make personalized adjustments to the media resources sent to different users to adjust the resource cost and user experience. The large-scale audio and video data collected and the causal representation model obtained by pre-training are obtained. The specific training process of the causal representation model has been described in detail in the model training method, so it will not be repeated here.
[0092] In step S320, the causal representation model classifies the resource data, and determines the target user group based on the classification result. The target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold range.
[0093] In an exemplary embodiment of the present disclosure, user experience sensitivity may reflect the sensitivity of different users to the received service experience, and some user groups will significantly reduce the audio and video viewing time when the received audio and video resources are of low quality. The target user group may be a user group whose user experience sensitivity is within a specified sensitivity threshold range.
[0094] After obtaining the trained causal representation model, the causal representation model is used to classify the audio and video data, analyze and mine the viewing conditions of different user groups from the audio and video data, and determine multiple different target user groups. For example, the user experience sensitivity can be determined based on the resource indicators of the media resources watched. For example, in the audio and video platform, the target user group requires that the clarity or rate of the audio and video resources watched must meet a specified threshold. If some resources of poor quality are sent to the target user group, it may affect the viewing time of the target user group.
[0095] In step S330, target resource data is sent to the target user group, and the target resource data meets the specified parameter threshold.
[0096] In an exemplary embodiment of the present disclosure, the target resource data may be content resources determined according to the viewing preferences of the target group users. The target resource data needs to meet a specified parameter threshold, for example, the target resource data may be a video resource whose definition is within a specified definition range, or the target resource data may be an audio file whose sound quality meets the user's listening preferences.
[0097] After determining multiple different target user groups, in order to avoid user loss due to some user groups watching low-quality media resources, target resource data can be distributed to the target user groups according to specific resource distribution strategies. Personalized media resources are provided according to the viewing preferences of different users to effectively achieve resource distribution at limited resource costs.
[0098] In summary, the information classification method disclosed in the present invention obtains resource data and a pre-trained causal characterization model, and the causal characterization model is trained by a model training method; the causal characterization model classifies the resource data, and determines the target user group based on the classification results, and the target user group is a user group whose user experience sensitivity is in a specified sensitivity threshold interval; the target resource data is sent to the target user group, and the target resource data meets the specified parameter threshold. On the one hand, the causal characterization model obtained by the above-mentioned model training method can avoid the selective bias problems, endogeneity problems and distribution drift problems in the classification process when distributing resources. On the other hand, the target resource data is sent to the target user group according to the classification results, which can provide different users with media resources that meet the viewing needs at a limited resource cost, thereby achieving effective resource distribution.
[0099] In addition, the present disclosure also proposes a resource distribution method, including: step S310, obtaining resource data and a pre-trained causal representation model, the causal representation model is trained using a model training method. Step S320, the causal representation model classifies the resource data, and determines the target user group based on the classification results, the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold range. Step S330, sending target resource data to the target user group, the target resource data meets the specified parameter threshold.
[0100] Figure 4 is a block diagram of a model training device according to an exemplary embodiment. Figure 4 The model training device 400 includes: a data set determination module 410, a variable mapping determination module 420, a loss function construction module 430 and a model training module 440.
[0101] Specifically, the data set determination module 410 is used to obtain an initial data set, cluster the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, and the initial data set is a data set in which there is a correlation relationship between the confounding variable, the intervention variable and the outcome variable; the variable mapping determination module 420 is used to determine the confounding variables and instrumental variables corresponding to the multi-label classification data set, and determine the variable mapping relationship between the confounding variables and the instrumental variables, and the variable mapping relationship is used to reflect the impact of the instrumental variables on the outcome variable; the loss function construction module 430 is used to construct a causal representation loss function of an initial causal representation model based on the variable mapping relationship, and the initial causal representation model is used to characterize the correlation relationship between the intervention variable and the outcome variable; the model training module 440 is used to train the initial causal representation model based on the multi-label classification data set and the causal representation loss function to obtain a causal representation model.
[0102] In an exemplary embodiment of the present disclosure, the data set determination module 410 includes a data set determination unit, which is used to: obtain multiple source domain data under a preset scenario, where the source domain data is original data obtained based on different data sources; perform feature engineering processing on the multiple source domain data to obtain an initial data set; determine multiple initial classification labels corresponding to the initial data set; and perform clustering processing on the initial data set according to the multiple initial classification labels to obtain a multi-label classification data set.
[0103] In an exemplary embodiment of the present disclosure, the data set determination unit includes a data clustering subunit, which is used to: based on multiple initial classification labels, respectively train regression models corresponding to each initial classification label; iteratively process the multiple regression models to obtain error classification results of each regression model; update the multiple initial classification labels according to the error classification results until the amount of label update data corresponding to the updated initial classification label is less than a preset quantity threshold, thereby obtaining a data classification label; and determine a multi-label classification data set based on the data classification label.
[0104] In an exemplary embodiment of the present disclosure, the variable mapping determination module 420 includes a variable mapping determination unit, which is used to: determine the confounding variable corresponding to the multi-label classification data set based on the result variable in a preset scenario; determine the instrumental variable according to the confounding variable, the instrumental variable is a variable related to the intervention variable and unrelated to the confounding variable; construct an initial regression network model based on the confounding variable and the instrumental variable, and determine the regression model loss function corresponding to the initial regression network model; train the initial regression network model based on the regression model loss function to obtain the regression network model; and determine the variable mapping relationship according to the regression network model.
[0105] In an exemplary embodiment of the present disclosure, the loss function construction module 430 includes a loss function construction unit, which is used to: obtain a pre-constructed initial causal representation model and construct a first loss function corresponding to the initial causal representation model; based on the variable mapping relationship, construct a second loss function corresponding to the initial causal representation model; based on the first loss function and the second loss function, construct a causal representation loss function.
[0106] In an exemplary embodiment of the present disclosure, the loss function construction unit includes a first function construction sub-unit, which is used to: perform representation learning processing on multiple confounding variables, obtain the confounding variable representation value corresponding to each confounding variable, and determine the predicted output result of each confounding variable representation value; determine the variable distribution ratio between the confounding variable and the instrumental variable; determine the model output target value, and construct a first loss function based on multiple predicted output results, variable distribution ratios and model output target values.
[0107] In an exemplary embodiment of the present disclosure, the loss function construction unit includes a second function construction sub-unit, which is used to: obtain the confusion variable representation value corresponding to the confusion variable; and construct a second loss function according to the integral probability metric distance between the variable mapping relationship and the confusion variable representation value.
[0108] Figure 5 is a block diagram of an information classification device according to an exemplary embodiment. Figure 5 The information classification device 500 includes: a model acquisition module 510, a resource classification module 520 and a resource sending module 530.
[0109] Specifically, the model acquisition module 510 is used to acquire resource data and a pre-trained causal representation model, which is trained using a model training method; the resource classification module 520 is used to classify the resource data using the causal representation model, and determine the target user group based on the classification results, where the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold range; the resource sending module 530 is used to send target resource data to the target user group, where the target resource data meets a specified parameter threshold.
[0110] In addition, the present disclosure also provides a resource distribution device, which includes: a model acquisition module 510, used to acquire resource data and a pre-trained causal representation model, the causal representation model is trained using a model training method; a resource classification module 520, used to classify the resource data using the causal representation model, and determine the target user group based on the classification results, the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold range; a resource sending module 530, used to send target resource data to the target user group, the target resource data meets the specified parameter threshold.
[0111] Regarding the device in the above embodiment, the specific manner in which each module performs operations has been described in detail in the embodiment of the method, and will not be elaborated here.
[0112] Reference below Figure 6 hereinafter describes an electronic device 600 according to such an embodiment of the present disclosure. Figure 6 The electronic device 600 shown is merely an example and should not bring any limitation to the functions and scope of use of the embodiments of the present disclosure.
[0113] like Figure 6As shown, the electronic device 600 is in the form of a general computing device. The components of the electronic device 600 may include but are not limited to: at least one processing unit 610, at least one storage unit 620, a bus 630 connecting different system components (including the storage unit 620 and the processing unit 610), and a display unit 640.
[0114] The storage unit stores program codes, which can be executed by the processing unit 610, so that the processing unit 610 executes the steps according to various exemplary embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0115] The storage unit 620 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 621 and / or a cache memory unit 622 , and may further include a read-only memory unit (ROM) 623 .
[0116] The storage unit 620 may include a program / utility 624 having a set (at least one) of program modules 625, such program modules 625 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0117] Bus 630 may represent one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0118] The electronic device 600 may also communicate with one or more external devices 670 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 600, and / or communicate with any device that enables the electronic device 600 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 650. Furthermore, the electronic device 600 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 660. As shown, the network adapter 660 communicates with other modules of the electronic device 600 via a bus 630. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.
[0119] In an exemplary embodiment, a computer-readable storage medium including instructions is also provided, such as a memory including instructions, and the above instructions can be executed by a processor of a device to complete the above model training method or the above information classification method, resource distribution method. Optionally, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a tape, a floppy disk, an optical data storage device, etc.
[0120] In an exemplary embodiment, a computer program product is also provided, including a computer program, which, when executed by a processor, implements any one of the above-mentioned model training methods, or implements the above-mentioned information classification method and resource distribution method.
[0121] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary techniques in the art that are not disclosed in the present disclosure. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present disclosure are indicated by the following claims.
[0122] It should be understood that the present disclosure is not limited to the exact structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.
Claims
1. A model training method, characterized in that: include: Acquire an initial data set, and perform clustering processing on the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, wherein the initial data set is a data set in which there is an association relationship between a confounding variable, an intervention variable, and an outcome variable; Determine the confounding variables and instrumental variables corresponding to the multi-label classification data set, and determine a variable mapping relationship between the confounding variables and the instrumental variables, wherein the variable mapping relationship is used to reflect the influence of the instrumental variables on the outcome variable; Constructing a causal representation loss function of an initial causal representation model based on the variable mapping relationship, wherein the initial causal representation model is used to characterize the association relationship between the intervention variable and the outcome variable; Based on the multi-label classification data set and the causal representation loss function, the initial causal representation model is trained to obtain a causal representation model.
2. The method according to claim 1, characterized in that The clustering process is performed on the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, including: Acquire multiple source domain data under a preset scenario, where the source domain data is original data acquired based on different data sources; Performing feature engineering processing on the multiple source domain data to obtain the initial data set; Determine a plurality of initial classification labels corresponding to the initial data set; The initial data set is clustered according to the multiple initial classification labels to obtain the multi-label classification data set.
3. The method according to claim 2, characterized in that The clustering process is performed on the initial data set according to the multiple initial classification labels to obtain the multi-label classification data set, including: Based on the multiple initial classification labels, respectively train the regression model corresponding to each of the initial classification labels; Iteratively processing the multiple regression models to obtain error classification results of the regression models; The multiple initial classification labels are updated according to the error classification results until the amount of label update data corresponding to the updated initial classification labels is less than a preset quantity threshold, thereby obtaining data classification labels; The multi-label classification dataset is determined based on the data classification labels.
4. The method according to claim 1, characterized in that: The determining of the variable mapping relationship between the confounding variable and the instrumental variable comprises: Determine the confounding variable corresponding to the multi-label classification data set based on the result variable in the preset scenario; Determining the instrumental variable according to the confounding variable, wherein the instrumental variable is a variable related to the intervention variable and unrelated to the confounding variable; Based on the confounding variables and the instrumental variables, an initial regression network model is constructed, and a regression model loss function corresponding to the initial regression network model is determined; Training the initial regression network model based on the regression model loss function to obtain a regression network model; The variable mapping relationship is determined according to the regression network model.
5. The method according to claim 1, characterized in that The causal representation loss function of the initial causal representation model constructed based on the variable mapping relationship includes: Obtaining a pre-constructed initial causal representation model, and constructing a first loss function corresponding to the initial causal representation model; Based on the variable mapping relationship, construct a second loss function corresponding to the initial causal representation model; Based on the first loss function and the second loss function, the causal representation loss function is constructed.
6. The method according to claim 5, characterized in that The first loss function corresponding to the initial causal representation model is constructed, including: Performing representation learning processing on the multiple confounding variables to obtain the confounding variable representation value corresponding to each confounding variable, and determining the predicted output result of each confounding variable representation value; Determining the variable distribution ratio between the confounding variable and the instrumental variable; Determine the model output target value, and construct the first loss function based on the multiple predicted output results, the variable distribution ratio and the model output target value.
7. The method according to claim 5, characterized in that The constructing a second loss function corresponding to the initial causal representation model based on the variable mapping relationship includes: Obtaining a confounding variable representation value corresponding to the confounding variable; The second loss function is constructed according to the integrated probability metric distance between the variable mapping relationship and the confusion variable representation value.
8. An information classification method, characterized in that: include: Acquire resource data and a pre-trained causal representation model, wherein the causal representation model is trained using the model training method described in any one of claims 1 to 7; The resource data is classified by the causal representation model, and a target user group is determined based on the classification result, where the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold range; Target resource data is sent to the target user group, where the target resource data meets a specified parameter threshold.
9. A model training device, characterized in that: include: A data set determination module is used to obtain an initial data set, and perform clustering processing on the initial data set based on multiple initial classification labels to obtain a multi-label classification data set, wherein the initial data set is a data set in which there is an association relationship between a confounding variable, an intervention variable, and an outcome variable; A variable mapping determination module is used to determine the confounding variables and instrumental variables corresponding to the multi-label classification data set, and determine the variable mapping relationship between the confounding variables and the instrumental variables, wherein the variable mapping relationship is used to reflect the influence of the instrumental variables on the outcome variable; A loss function construction module, used to construct a causal representation loss function of an initial causal representation model based on the variable mapping relationship, wherein the initial causal representation model is used to characterize the association relationship between the intervention variable and the outcome variable; A model training module is used to train the initial causal representation model based on the multi-label classification data set and the causal representation loss function to obtain a causal representation model.
10. An information classification device, characterized in that: include: A model acquisition module, used to acquire resource data and a pre-trained causal representation model, wherein the causal representation model is trained using the model training method described in any one of claims 1 to 7; A resource classification module, configured to classify the resource data using the causal representation model, and determine a target user group based on the classification result, wherein the target user group is a user group whose user experience sensitivity is within a specified sensitivity threshold range; The resource sending module is used to send target resource data to the target user group, where the target resource data meets a specified parameter threshold.
11. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; Wherein, the processor is configured to execute the instructions to implement the model training method as described in any one of claims 1 to 7, or to implement the information classification method as described in claim 8.
12. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, it implements the model training method as described in any one of claims 1 to 7, or implements the information classification method as described in claim 8.
Citation Information
Cited By
Data management method and system based on machine learning
CN119988847A
Environment easy-to-mix sound recognition method and system based on double-layer model, and storage medium
CN120708646A
Generation method of model training set and related equipment
CN121309364A
