Business constraint driven causal synthesis pre-training method and system
By constructing a business-constrained causal synthesis pre-training method, the problem of causal structure being disconnected from business in existing technologies is solved. The generated synthetic data is easier to interpret and verify, and is suitable for pre-training of structured models. It realizes the generation of targeted supplementary policy changes and decision control samples, thereby improving the accuracy and effectiveness of model pre-training.
Patent Information
- Application Number
- CN202611654496.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-26
- Publication Date
- 2026-11-20
AI Technical Summary
When generating structured data, existing technologies cannot reflect the rule evidence between specific business fields due to random or general causal structures. This makes it difficult to address policy changes and business interventions. The generated samples lack constraint consistency, causal consistency, task effectiveness, and privacy security. Furthermore, the generated data lacks closed-loop feedback with the pre-training objective.
By constructing a business constraint-driven causal synthesis pre-training method, an initial field-level directed causal graph is built using the original structured data table and business rule file. Candidate edges are screened, structural equations are learned field by field, observation, intervention and counterfactual samples are generated, and they are encoded as training samples for model pre-training.
The generated synthetic data is easier to interpret and verify, suitable for pre-training of structured models, and can provide targeted supplementation of policy changes and decision comparison samples for the same object, ensuring the accuracy and effectiveness of model pre-training.
Smart Images

Figure CN123140263A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the fields of structured data generation and causal learning technology, and in particular to a business constraint-driven causal synthesis pre-training method and system. Background Technology
[0002] Structured data is widely used in financial, healthcare, industrial, government, and enterprise management systems. However, due to limitations such as privacy compliance, collection costs, scarcity of long-tail samples, and scenario migration, directly relying on real data to train models often fails to achieve sufficient coverage.
[0003] Existing table-based models or synthetic data pre-training methods employ various approaches. Some generate training samples through randomly generated table tasks, general prior distributions, or random causal structures; others use structural causal models to generate relational table data. While these approaches can expand training data, they still present the following problems when dealing with real-world structured business data: First, random or general causal structures typically fail to reflect rule-based evidence, temporal sequence, and prohibitive relationships between specific business fields. Second, simply generating table data makes it difficult to construct targeted samples for policy changes, business interventions, and counterfactual comparisons of the same object. Third, generated samples lack joint screening for constraint consistency, causal consistency, task effectiveness, and privacy security. Fourth, the lack of closed-loop feedback between generated data and pre-training objectives easily leads to a large number of samples that contribute little to downstream tasks. Summary of the Invention
[0004] In view of the above problems, the present invention is proposed to provide a business constraint-driven causal synthesis pre-training method and system to overcome the above problems.
[0005] One aspect of the present invention provides a business-constrained causal synthesis pre-training method, the method comprising:
[0006] Based on the original structured data table and the field description file, business rule file, and application target description file of the original structured data table, construct a variable set, a global constraint set, and a target task set;
[0007] An initial field-level directed causal graph is constructed using the set of variables as the set of nodes. The candidate edges in the initial field-level directed causal graph are then filtered based on the set of global constraints and the set of target tasks to obtain the formal field causal graph.
[0008] For each field variable in the formal field causal graph, the matching structural equation is learned field by field based on the set of parent nodes corresponding to each field variable. The structural causal model is constructed based on the structural equations corresponding to all fields. The structural equation of each field variable is jointly determined by the set of parent nodes of the corresponding field, the field generation function, and the distribution of exogenous noise.
[0009] Based on the structural causal model, observation sampling, intervention sampling, and counterfactual sampling are performed on the causal graph of the formal field to obtain the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set.
[0010] Synthetic data from the observation synthetic sample set, intervention synthetic sample set, and counterfactual sample pair set are encoded into training samples suitable for pre-training of structured models, so as to perform model pre-training based on the training samples according to the preset pre-training objectives.
[0011] In another aspect, the present invention provides a business-constrained causal synthesis pre-training system, the system comprising:
[0012] The data preprocessing module is used to construct a variable set, a global constraint set, and a target task set based on the original structured data table and the field description file, business rule file, and application target description file of the original structured data table;
[0013] The causal graph construction module is used to construct an initial field-level directed causal graph with a set of variables as the set of nodes. Based on the global constraint set and the target task set, the candidate edges in the initial field-level directed causal graph are filtered to obtain the formal field causal graph.
[0014] The causal model building module is used to learn the matching structural equation for each field variable in the formal field causal graph, based on the set of parent nodes corresponding to each field variable. The structural causal model is built based on the structural equations corresponding to all fields. The structural equation of each field variable is jointly determined by the set of parent nodes of the corresponding field, the field generation function, and the distribution of exogenous noise.
[0015] The sample synthesis module is used to perform observation sampling, intervention sampling, and counterfactual sampling on the formal field causal graph based on the structural causal model, to obtain the observation synthesis sample set, the intervention synthesis sample set, and the counterfactual sample pair set.
[0016] The sample encoding and pre-training module is used to encode the synthetic data in the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set into training samples suitable for pre-training of structured models, so as to perform model pre-training based on the training samples according to the preset pre-training objectives.
[0017] This invention provides a business constraint-driven causal synthesis pre-training method and system. Starting from real business fields, rule constraints, and task objectives, it constructs a verifiable causal graph structure, which can reduce the probability of directional errors and spurious correlation edges entering the formal model. For each field variable in the causal graph, a unified structural equation is learned field by field based on the set of parent nodes corresponding to each field variable. The structural equation generates a structural causal model that satisfies the field value rules and business constraints, making the synthesized data easier to interpret, easier to verify, and easier to execute scenario-based control. This invention unifies observation sampling, intervention sampling, and counterfactual sampling under the same structural causal model, which can selectively supplement policy change samples and decision comparison samples of the same object, obtaining training samples that are more suitable for structured model pre-training, ensuring the accuracy and effectiveness of model pre-training.
[0018] The above description is merely an overview of the technical solution of the present invention. In order to better understand the technical means of the present invention and to implement it in accordance with the contents of the specification, and in order to make the above and other objects, features and advantages of the present invention more apparent and understandable, specific embodiments of the present invention are described below. Attached Figure Description
[0019] Various other advantages and benefits will become apparent to those skilled in the art upon reading the following detailed description of preferred embodiments. The accompanying drawings are for illustrative purposes only and are not intended to limit the invention. In the drawings:
[0020] Figure 1 This is a flowchart of a business constraint-driven causal synthesis pre-training method according to an embodiment of the present invention;
[0021] Figure 2 This is a schematic diagram of candidate causal side evidence recording and side screening in an embodiment of the present invention;
[0022] Figure 3 This is a schematic diagram illustrating the implementation principles of observation sampling, intervention sampling, and counterfactual sampling in an embodiment of the present invention;
[0023] Figure 4 This is a structural block diagram of a business constraint-driven causal synthesis pre-training system according to an embodiment of the present invention. Detailed Implementation
[0024] Exemplary embodiments of the present disclosure will now be described in more detail with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be implemented in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
[0025] It is understood that, unless otherwise defined, all terms used herein (including technical and scientific terms) have the same meaning as commonly understood by one of ordinary skill in the art to which this invention pertains. It should also be understood that terms such as those defined in general dictionaries should be understood to have the same meaning as in the context of the prior art and should not be interpreted in an idealized or overly formal sense unless specifically defined.
[0026] To address the problems in existing synthetic data pre-training methods, such as the disconnect between general causal structures and real business fields, difficulty in implementing targeted interventions and counterfactual generation, limited quality evaluation dimensions, and disconnect from pre-training objectives, this invention proposes a business-constrained causal synthetic pre-training method. This method can be applied to structured data scenarios such as financial risk control, healthcare, government governance, industrial operations and maintenance, and enterprise business analysis.
[0027] like Figure 1 As shown, the business constraint-driven causal synthesis pre-training method proposed in this invention includes the following steps:
[0028] S11. Construct a variable set, a global constraint set, and a target task set based on the original structured data table and its field description file, business rule file, and application target description file. The field description file must include at least the field name, field meaning, field type, time window it belongs to, and whether it is a critical field. The business rule file must include at least the joint judgment rules between fields, business process relationships, state transition relationships, and other business constraint relationships between fields.
[0029] S12. Construct an initial field-level directed causal graph using the variable set as the node set. Filter the candidate edges in the initial field-level directed causal graph based on the global constraint set and the target task set to obtain the formal field causal graph.
[0030] S13. For each field variable in the formal field causal graph, learn the matching structural equation field by field according to the set of parent nodes corresponding to each field variable, and construct a structural causal model based on the structural equations corresponding to all fields. The structural equation of each field variable is jointly determined by the set of parent nodes of the corresponding field, the field generation function and the distribution of exogenous noise.
[0031] S14. Based on the structural causal model, observation sampling, intervention sampling, and counterfactual sampling are performed on the formal field causal graph to obtain the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set.
[0032] S15. The synthetic data in the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set are respectively encoded into training samples suitable for pre-training of structured models, so as to perform model pre-training based on the training samples according to the preset pre-training target.
[0033] This invention provides a business constraint-driven causal synthesis pre-training method. Starting from real business fields, rule constraints, and task objectives, it constructs a verifiable causal graph structure, which can reduce the probability of directional errors and spurious correlation edges entering the formal model. For each field variable in the causal graph, a unified structural equation is learned field by field based on the set of parent nodes corresponding to each field variable. The structural equation generates a structural causal model that satisfies the field value rules and business constraints, making the synthesized data easier to interpret, easier to verify, and easier to execute scenario-based control. This invention unifies observation sampling, intervention sampling, and counterfactual sampling under the same structural causal model, which can selectively supplement policy change samples and decision comparison samples of the same object, resulting in training samples that are more suitable for structured model pre-training, ensuring the accuracy and effectiveness of model pre-training.
[0034] In this embodiment of the invention, step S11, which involves constructing a variable set, a global constraint set, and a target task set based on the original structured data table and its field description file, business rule file, and application target description file, specifically includes the following steps (not shown in the accompanying drawings):
[0035] S111. Perform data type identification, missing value handling, unit unification, and outlier handling on each field in the original structured data table to form a unified field space. Specifically, obtain the original structured data table of the business scenario, as well as the corresponding field description file, business rule file, and application target description. Perform preprocessing on each field, including data type identification, missing value handling, unit unification, and outlier cleanup, to form a unified field space.
[0036] S112. Denote all fields in the original structured data table as a variable set V. Each variable in the variable set shall record at least the field name, field meaning, field type, value range, missing percentage, whether it is operable, whether it is a target field, and whether it involves privacy information.
[0037] S113. Determine the global constraint set C based on the field description file, business rule file, and preset real data statistical range. The global constraint set includes field-level constraints, cross-field constraints, business logic constraints, and privacy constraints.
[0038] S114. Determine the target task set T based on the application target specification document. The target task set includes target result fields, task types, and input field ranges. Specifically, determine the target task set T based on the application scenario. The target task set includes target fields, task types, input field ranges, and evaluation requirements, etc.
[0039] Furthermore, the process includes the step of forming a field metadata table M, which records the meta-attributes, constraint identifiers, and task roles corresponding to each field. Finally, the output includes a variable set V, a global constraint set C, a target task set T, and the field metadata table M, which serve as input for subsequent causal graph construction.
[0040] In this embodiment of the invention, step S12, which involves constructing an initial field-level directed causal graph using the variable set as the node set, and then filtering candidate edges in the initial field-level directed causal graph based on the global constraint set and the target task set to obtain a formal field causal graph, specifically includes the following steps (not shown in the accompanying drawings):
[0041] S121. Construct an initial field-level directed causal graph using the variable set V as the node set;
[0042] S122, Arbitrary candidate edges of the initial field-level directed causal graph based on the global constraint set ( Establish evidence vectors: ,in, and For field variables, This indicates the score for evidence related to business rules. The score represents the chronological order of evidence. Indicates the score of statistical correlation evidence. This indicates a condition-dependent evidence score. This indicates that the experts confirmed the scores, and all the scores for the aforementioned evidence were normalized to a range of 0 to 1. Specifically, Check if the field description file, approval rules, status transition rules, or business rule base contains support for it. Influence The rule is determined as follows: if the rule explicitly supports the direction, then take 1; if the rule explicitly denies the direction, then take 0; if there is only a weak correlation description or manual confirmation is required, then take an intermediate value between 0 and 1. Determined based on field generation time, business process sequence, or time window. If Stability earlier than If it is generated, then take 1; if Later If it occurs, the value is 0; if there is no clear order between the two, the value is determined by the proportion of their occurrence in that order. according to and The normalized correlation strength in sample data can be determined by normalizing the correlation coefficient, mutual information, or model feature contribution. After controlling other pre-fields and The strength of the conditional dependency is determined by taking a higher value if the dependency remains stable after controlling the preceding field, and a lower value if the dependency disappears. The result is determined based on the expert review. If the direction is confirmed to be supported, a value of 1 is used; if it is confirmed not to be supported, a value of 0 is used; if it is not confirmed or there is a dispute, an intermediate value is used.
[0043] S123. Calculate the overall confidence level of each candidate edge based on its evidence vector, using the following formula:
[0044] ;
[0045] in, To assess the overall confidence level, For the Sigmoid function, to For the weights of the corresponding evidence vectors, This is the confidence bias term;
[0046] S124, if Then the current candidate edge is added to the formal field causal graph G. The preset first confidence threshold;
[0047] S125, if Then, the current candidate edge is added to the set R of edges to be reviewed. The second confidence threshold is preset; if If so, then delete the candidate edge.
[0048] Furthermore, this invention sets a prohibited edge set B. If any candidate edge in the initial field-level directed causal graph violates the time sequence constraint and business constraint, or if the target result field in the target task set points in the opposite direction to the cause field, then regardless of... Regardless of the value, the current candidate edge is directly written into the forbidden edge set B to prevent it from entering the formal causal graph. Figure 2 A schematic diagram of candidate causal side evidence recording and side filtering in an embodiment of the present invention is shown.
[0049] Furthermore, for candidate edges that form loops, directions with high scores in time evidence and / or business evidence are prioritized, while conflicting directions are downweighted or moved to the set of edges to be reviewed.
[0050] Furthermore, an evidence record table E is configured for each candidate edge to trace the reasons for screening. The evidence record table includes at least a start point field, an end point field, an evidence vector, a comprehensive confidence level, whether it belongs to a prohibited edge, and whether it enters the set to be reviewed.
[0051] Finally, the system outputs a formal causal graph G, a set of prohibited edges B, a set of edges to be reviewed R, and an evidence record table E. Through the evidence record table E, the system can trace the reasons for entry, prohibition, or review of each formal causal edge, ensuring that the causal graph is not a randomly generated prior structure, but an auditable causal structure determined by business rules, temporal relationships, statistical evidence, and manual review.
[0052] In this embodiment of the invention, step S13 involves learning the matching structural equation for each field variable in the formal field causal graph based on the set of parent nodes corresponding to each field variable, and constructing a structural causal model based on the structural equations corresponding to all fields, including:
[0053] For each field variable in the formal field cause-effect graph Based on its set of parent nodes Learn the corresponding structural equations; structural equations are uniformly written as:
[0054]
[0055] in, Represents field variables The set of parent nodes; Indicates the field generation function; Represents the exogenous noise term; This represents a field constraint projection function used to correct the generated results to the field constraints. Within the permissible range. For continuous variables, numerical generation can be directly performed using the fundamental structural equations.
[0056] The field generation functions corresponding to all fields are summarized to form a set of structure equations. The exogenous noise items corresponding to all fields are summarized to form an exogenous noise set. Combined with formal field cause-effect graph Structural Equation Set Exogenous noise set and global constraint set Constructing a structural causal model .
[0057] Furthermore, when the field variable is a discrete variable, the field generation function is replaced by a Softmax scoring mapping branch based on the general structural equation, so as to pass the preset category scoring function. The original scores for each candidate category are calculated based on the set of parent nodes, and then normalized using Softmax to obtain the conditional probability distribution for each category. The category conditional probability distribution can be written as:
[0058] ;
[0059] in, A function for categorizing discrete fields. Candidate categories refer to all legal enumerated value categories of the discrete variable as preset.
[0060] Furthermore, when the field variable is the label variable Y, the field generation function is replaced by a Sigmoid scoring mapping branch based on the general structural equation, so as to pass the preset label scoring function. The one-dimensional scoring result is calculated based on the set of parent nodes, and the positive class conditional probability is obtained through Sigmoid activation mapping. The conditional probability can be written as:
[0061] ;
[0062] in, A function to score the target field.
[0063] In this embodiment, the field generation function Discrete field scoring category function And the target field scoring function All of these can be implemented using regression models, probability tables, or neural networks; this invention does not impose any specific limitations on them.
[0064] This invention uses "parent node field, exogenous noise, and constraint projection" to jointly determine the generated field value. For generated results that do not meet field constraints, cross-field constraints, or business logic constraints, the constraint projection function... Perform truncation, discrete mapping, conditional correction, or resampling. The constraint projection function does not change the cause-effect graph structure, but verifies and corrects the generated values based on field-level constraints, cross-field constraints, and business logic constraints after each field is generated, so that the generated samples simultaneously meet the structural equation and business availability requirements.
[0065] This invention achieves unified and compatible modeling of continuous variables, discrete variables, and binary label variables within the same structural causal model framework through a hierarchical branch mapping design. The overall model uses a unified structural equation template as the underlying general generation backbone, with differentiated front-end scoring mapping branches configured for different data types of fields. The back-end uniformly integrates a constraint projection correction mechanism, thus enabling a single model framework to adapt to all business field types. Specifically, for continuous business fields, numerical generation is directly performed using the basic structural equation. The parent node's causal function fits the continuous value trend, exogenous noise is added to introduce random distribution, and then a constraint projection function completes value range truncation and compliance correction, outputting the final generated value of the continuous field. For discrete business fields, a Softmax scoring mapping branch is added to the causal dependency of the general structural equation, replacing the output layer of the continuous generation logic. A dedicated scoring function calculates the original score of each candidate category based on the parent node variable, which is the effective business value label that can be generated for the discrete field. After obtaining the conditional probability distribution of each category through Softmax normalization, compliance verification and correction are further performed on the probability output result and the final sampled category through the constraint projection function. For the generated results that exceed the business enumeration range, violate cross-field logic constraints, or have abnormal probability distributions, correction is completed through discrete mapping, category resampling, and setting invalid probabilities to zero, so as to ensure that the final output discrete category strictly matches the field preset constraint rules and business logic, and realizes the compliant causal generation of discrete category probabilities. For binary classification label variables, an independent Sigmoid scoring mapping branch is added. The label scoring function outputs a one-dimensional score based on the causal features of the parent node, which is then processed by Sigmoid activation mapping to obtain the positive class conditional probability. Simultaneously, a constraint projection function is used to correct the label probability values and the final classification result for compliance. For abnormal results such as probability exceeding limits, illegal label values, non-compliance with business judgment rules, and cross-field association logic, probability threshold truncation, binary forced correction, and conditional resampling are performed to ensure that the output binary classification labels strictly comply with business constraints. The three types of field branches mentioned above differ only in the front-end scoring output logic; the back-end reuses the same causal graph topological constraints, exogenous noise perturbation mechanism, and multi-dimensional constraint projection correction logic, without changing the unified expression form of the overall causal model: SCM=(G,F,U,C). Therefore, this invention, through a hierarchical architecture of "unified causal structure backbone + type-differentiated mapping branches + general constraint post-processing", enables continuous variables, discrete features, and binary labels to be fully compatible with the same structural equation modeling framework, eliminating the need to build independent model structures for different data types, and realizing integrated causal generation and unified modeling of multiple types of business fields.
[0066] In this embodiment of the invention, step S14, which involves observation sampling, intervention sampling, and counterfactual sampling of the formal field causal graph based on the structural causal model to obtain the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set, specifically includes the following steps:
[0067] Let the topological order of the causal graph G be . The observation sampling is implemented as follows:
[0068] Based on the structural causal model, synthetic fields are generated sequentially along the topological order of the formal field causal graph to obtain the observed synthetic samples. The observed synthetic sample values are as follows:
[0069] ;
[0070] in, The exogenous noise is sampled from the current field; if the current field has no parent node, it is sampled from its marginal distribution or marginal noise. If the current field has a parent node, substitute the observation value of the parent node that has already been sampled to obtain the result. .
[0071] Intervention sampling is implemented as follows:
[0072] According to intervention nodes Pre-execution intervention Modify the cause-effect graph structure to remove intervention nodes. All incoming edges and fixed , The preset mandatory intervention value; for the intervention node and the set of descendant fields. Based on the structural causal model, the synthetic fields are regenerated sequentially along the positive topological order of the modified causal graph to obtain the intervention synthetic sample. The observed synthetic sample values are as follows:
[0073] ;
[0074] in, This indicates the value of the parent node after intervention. This is entirely new, independently sampled noise, and is unrelated to the noise in the observed samples.
[0075] Counterfactual sampling is implemented as follows:
[0076] The inherent noise of an individual is inferred from any real or observed sample in the current field. :
[0077] , These are either real samples or observed samples;
[0078] According to intervention nodes Pre-execution counterfactual intervention Modify the cause-effect graph structure to remove intervention nodes. All incoming edges and fixed , The values are preset hypothetical values; and the inherent noise of non-interventional individuals remains unchanged, reusing the inherent noise of each field. And for the intervention node and the set of descendant fields. Based on the structural causal model, the composite fields are regenerated sequentially along the positive topological order of the modified causal graph, forming counterfactual sample pairs. .
[0079] in, , This indicates the value of the parent node after counterfactual intervention. or , For the actual and hypothetical results of the same object, Used to represent the change in the target outcome of the same object under different decision-making conditions.
[0080] Finally, the output includes the observation synthetic sample set Sobs, the intervention synthetic sample set Sint, the counterfactual sample pair set Scf, and the generation type label for subsequent pre-training encoding.
[0081] In this embodiment of the invention, before encoding the synthetic data in the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set into training samples suitable for pre-training of the structured model, the method further includes: scoring each synthetic sample based on constraint consistency, distribution consistency, task effectiveness, causal consistency, and privacy security, and normalizing the five types of scores to synthesize them into a quality weight for the synthetic sample; when the quality weight is lower than a preset first quality threshold, the current synthetic sample is discarded; when the quality weight is higher than or equal to the first quality threshold, the current synthetic sample is regarded as a high-quality synthetic sample.
[0082] In this embodiment, the quality of observation-synthesized samples, intervention-synthesized samples, and counterfactual samples are uniformly evaluated. The system scores each synthetic sample based on five aspects: constraint consistency, distribution consistency, task effectiveness, causal consistency, and privacy security. The five scores are then normalized and synthesized into a sample quality weight. Among these, constraint consistency is determined based on whether the sample satisfies field range, cross-field relationships, and business rules; distribution consistency is determined based on the similarity between the synthetic sample and the real sample in field distribution and joint distribution; task effectiveness is determined based on the contribution of the sample to the target task validation effect after being added to the training; causal consistency is determined based on whether the sample conforms to the causal graph direction, structural equation output, and counterfactual background stability; and privacy security is determined based on the nearest neighbor distance and the overlap of sensitive field combinations between the synthetic sample and the real sample. For intervention samples and counterfactual samples, the causal consistency score also includes whether the intervention variable only affects its descendant fields, whether the non-intervention background fields in the counterfactual sample remain consistent, and whether the change in the target result is consistent with the direction of the structural equation output. Then, the sample quality weight is obtained based on the above five types of scores. .when Below the quality threshold When, remove the sample; when Not lower than the quality threshold If the sample violates strong business constraints, exhibits abnormal changes in counterfactual background fields, or is too similar to a real sample, it can be directly discarded and will not proceed to the weighted scoring process. Finally, the high-quality synthetic sample set S, the sample quality weight set q, and the quality assessment result Q are output.
[0083] In this embodiment of the invention, step S15, which encodes the synthetic data from the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set into training samples suitable for pre-training of structured models, and performs model pre-training based on the training samples according to a preset pre-training objective, includes:
[0084] High-quality synthetic samples selected from the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set will be encoded as training samples. When the model is pre-trained based on the training samples, the training loss of each training sample will be weighted according to the quality weight of the synthetic samples, so that the training samples corresponding to the synthetic samples with high quality weights will have higher weights in the training.
[0085] Statistical analysis of validation set performance and training anomaly records for various training samples;
[0086] Based on the validation set performance of various training samples and feedback from training anomaly records, the formal field causal graph, structural equation set F, sampling strategy, and / or sample quality weights are revised until the preset closed-loop update rounds or index convergence conditions are reached.
[0087] This invention encodes a high-quality synthetic sample set S into training samples suitable for pre-training structured models. Each training sample contains at least field value encodings, as well as field relationship encodings, intervention path encodings, and counterfactual comparison encodings used to constrain the model's learning of causal dependencies and policy change patterns among business fields. Specifically, the field relationship encoding carries the causal edge direction and edge confidence, the intervention scenario encoding carries the intervention variable, intervention value, affected descendant fields, and outcome changes, and the counterfactual pair encoding carries the original sample, the counterfactual sample, and the target difference. Therefore, the training samples not only contain field values but also field relationships, intervention paths, and counterfactual comparisons, used to constrain the model's learning of causal dependencies and policy change patterns among business fields.
[0088] The pre-training tasks include field mask reconstruction, causal edge direction or parent-child relationship prediction, intervention outcome prediction, counterfactual consistency judgment, and task condition prediction. During training, the training loss of each sample is weighted according to the sample quality weight, so that samples with higher quality, stronger causal consistency, and greater task contribution have higher weights in training; the training weight of samples with lower quality but not removed is reduced. Specifically, the field mask reconstruction loss is determined based on the difference between the predicted value of the masked field and the original field value; the causal edge direction or parent-child relationship prediction loss is determined based on the difference between the field relationship predicted by the model and the field relationship recorded in the causal graph G; the intervention outcome prediction loss is determined based on the difference between the field value or target result predicted by the model after intervention and the intervention sample; the counterfactual consistency loss is determined based on whether the background fields in the counterfactual sample pair are consistent and whether the change in the target result conforms to the structural equation output; and the task condition prediction loss is determined based on the difference between the model's prediction result of the target task field and the sample label or generated target.
[0089] After training, the validation set performance and training anomaly records of various training samples are statistically analyzed, and closed-loop updates are performed based on the validation set performance and training anomaly records. If a certain type of observation sample, intervention sample, or counterfactual sample can stably reduce the target task loss or improve the target task validation index, the subsequent sampling ratio of that type of sample is increased; if a certain type of sample consistently brings high loss or negative contribution, its sampling ratio is reduced or the quality screening threshold is increased. If samples related to a causal edge continuously produce edge direction prediction errors, abnormal intervention results, or counterfactual inconsistencies, the confidence of that edge is reduced or it is moved to the set to be reviewed; if samples related to that edge continuously bring positive task gains and have few anomalies, the stability of that edge is increased. Based on the above feedback, the causal graph G, the set of structural equations F, the sampling strategy, and the sample quality weight q are corrected until the preset number of closed-loop update rounds or index convergence conditions are reached. Finally, the pre-training dataset P, the updated causal graph G, the set of structural equations F, the sampling strategy, and the final sample weight q are output.
[0090] The technical solution of this invention will be described in detail below using the task of credit default prediction in financial risk control as an example.
[0091] Let the set of variables be ,in, For age, As a job category, For monthly income, This refers to the number of historical overdue payments. For credit line, For the loan term, This is the monthly repayment amount. The debt-to-equity ratio, To determine whether a default will occur, the constraint set C must include at least the following: age between 18 and 70 years old, monthly income greater than 0, credit limit greater than 0, loan term within a preset set of months, monthly repayment greater than 0, and debt-to-equity ratio between 0 and 1.5. The target task set T is set as default prediction and credit strategy simulation, where the target field for default prediction is Y, and the goal of strategy simulation is to compare the changes in default probability under different credit limits and loan terms.
[0092] Step 1: Perform necessary missing data processing, unit unification, and category coding on the original credit data to form the field metadata table M.
[0093] Step 2, Evidence-Driven Causal Graph Construction. Taking "Monthly Income Affects Credit Limit" as an example, we construct candidate edges... Establish evidence vector Among them, business rule evidence is assigned a score of 1, indicating that the credit rules explicitly include income as a credit assessment factor; chronological order evidence is assigned a score of 1, indicating that the income field precedes the credit decision field; statistical correlation evidence is assigned a score of 0.72; conditional dependency evidence is assigned a score of 0.68; and expert confirmation score is assigned a score of 1. If taken... Then we have:
[0094] ;
[0095] Calculated If the value is greater than 0.65, the edge can be included in the formal causal graph. Conversely, if there are candidate edges... Since the default result field is not allowed to point back to the pre-application income field, this edge is directly written into the prohibited edge set B and does not participate in the formal graph entry. An example causal relationship can be obtained through this mechanism: .
[0096] Step 3, Structural Equation Learning and SCM Formation. Credit Limits for Continuous Variables. The following structural equation can be established:
[0097] ;
[0098] Of these, 5000 is the basic quota item. This means that the higher the monthly income, the larger the credit limit. This means that the more times a person has a history of overdue payments, the lower their credit limit will be. For exogenous noise in the quota, Used to project the results to the credit limit allowed by the credit rules. (Regarding monthly repayments) , can be established:
[0099] ;
[0100] Where r is the monthly interest rate, Number of periods.
[0101] For the label variable Y, the probability of default can be written as:
[0102] ;
[0103] Each coefficient represents the direction and intensity of the corresponding variable's impact on default risk. The structural equations corresponding to all fields together form the structural causal model (SCM) in the financial risk control scenario.
[0104] Step 4, as follows Figure 3 As shown, during observation sampling, the topological order is followed. Samples are generated sequentially. The loan term is used as the monthly repayment amount. The parent node participates in the calculation of the monthly repayment amount; in this embodiment, the credit limit is... When intervention or counterfactual intervention is carried out, the loan term Keep the original values unchanged. If an applicant's observation sample is... Substituting these values into the above formula yields a sample of credit limits and monthly repayment amounts. During intervention sampling, the following steps are performed: The fixed credit limit is 150,000 yuan, and it will be recalculated. When the monthly interest rate r = 0.01, the monthly repayment amount is approximately:
[0105] ;
[0106] If further obtained The probability of default is approximately:
[0107] ;
[0108] During counterfactual sampling, keeping the background noise unchanged for the same applicant, the credit limit is changed to X5=100000, and the recalculated monthly repayment amount is approximately 4707. The debt-to-equity ratio decreases to approximately 0.392.
[0109] ;
[0110] Therefore, there is This indicates that, without changing the applicant's background, reducing the credit limit can decrease the risk of default by approximately 0.08. This result can be directly used for comparing credit granting strategies.
[0111] Step 5, Quality Assessment and Screening of Synthetic Samples. For each synthetic sample... Calculate the quality weights:
[0112] ;in, To constrain consistency rules, For the distribution consistency rule, For task consistency rules, For task validity rules, For privacy and security rules, - The preset weights for the corresponding rules.
[0113] For example, a certain sample satisfies all business rules. ; close to the true distribution, Improved default prediction ; Keep the causal direction and counterfactual context correct. Privacy risks are controllable. If we take Then the weight of the sample is: .
[0114] This sample can proceed to the subsequent pre-training stage; if If the value is below a preset threshold, such as 0.6, it will be rejected.
[0115] Step 6, Training Sample Construction and Loop Closure Update. The retained samples are encoded as field sequences, field relationship graphs, intervention scenario packages, and counterfactual sample pairs, and the quality-weighted loss model is trained using this method.
[0116] .
[0117] Among them, field mask reconstruction is used to recover the values of the masked fields, edge direction prediction is used to learn the causal structure between fields, intervention result prediction is used to learn the risk changes after the credit granting strategy changes, counterfactual consistency loss is used to constrain the comparison relationship of the same applicant when the background remains unchanged, and task condition prediction is used to enhance the default prediction capability. , , , and These are, respectively, the field mask reconstruction loss, the edge direction prediction loss, the intervention result prediction loss, the counterfactual consistency prediction loss, and the task condition prediction loss. , , , , These correspond to the weights of the loss term. If, after training, it is found that the "high-delay-time intervention sample" significantly improves the AUC of the default prediction on the validation set, then: This increases the sampling ratio for this type of scenario. Here, r represents the scenario category of the training samples, and t represents the current closed-loop update round. and These represent the sampling proportions of the r-th scenario in round t and round t+1, respectively. This represents the validation metric gain brought by the r-th type of scenario samples. Indicates the sampling ratio update step size. Represents an exponential function. This indicates that the sampling ratios for various scenarios have been normalized. If the edge... If relevant samples consistently contribute positive task gains, then proceed as follows: This improves the stability of the edge, where t represents the current closed-loop update round. and Let these represent the candidate edges in round t and round t+1, respectively. Confidence level, This indicates the degree of anomaly in the samples associated with the candidate edge. This represents the positive task gain brought by samples associated with the candidate edge. and These represent the update weights of the anomaly penalty term and the task gain term, respectively. This means limiting the updated candidate edge confidence to the range of 0 to 1; if an edge is consistently associated with anomalies, its confidence is reduced or it is moved to the verification set. This completes a closed-loop optimization from causal structure and sample generation to pre-training utilization.
[0118] The business constraint-driven causal synthesis pre-training method provided in this invention has the following beneficial effects:
[0119] This invention constructs a verifiable causal graph that matches business fields, time sequence, and rule constraints by using candidate edge evidence vectors and edge confidence calculation mechanisms. Therefore, it can reduce the probability of directional errors and spurious related edges entering the formal model.
[0120] This invention establishes a structural equation for each field, including the parent node, exogenous noise, and constraint projection, so that the generated result simultaneously satisfies the field value rules and business constraints. Therefore, it is easier to interpret, easier to verify, and easier to execute scenario-based control than solutions that rely solely on black-box generators or random table tasks.
[0121] This invention unifies observational sampling, interventional sampling, and counterfactual sampling under the same business structure causal model, and preserves the generation type and generation path for the samples. Therefore, it can provide targeted supplementation of policy change samples and decision comparison samples of the same object.
[0122] This invention uses sample quality weights to uniformly evaluate constraint consistency, distribution consistency, task effectiveness, causal consistency, and privacy security, and directly applies them to training sample selection and training weight control. Therefore, it can reduce the interference caused by low-quality synthetic samples to model training.
[0123] This invention enables the data generation process to be continuously corrected as the downstream training effect is improved by performing closed-loop updates on the sampling ratio and side confidence based on training feedback. This avoids generating a large number of samples that do not contribute to the model and improves the consistency between the final pre-training data and the target task.
[0124] For the sake of simplicity, the method embodiments are described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.
[0125] This invention provides a business constraint-driven causal synthesis pre-training system, the system including functional modules for implementing the business constraint-driven causal synthesis pre-training method as described in any of the preceding claims. Figure 4 The schematic diagram illustrates the structure of the business constraint-driven causal synthesis pre-training system provided in an embodiment of the present invention. (Refer to...) Figure 4 The system described in this embodiment of the invention includes:
[0126] The data preprocessing module 401 is used to construct a variable set, a global constraint set, and a target task set based on the original structured data table and the field description file, business rule file, and application target description file of the original structured data table;
[0127] The causal graph construction module 402 is used to construct an initial field-level directed causal graph with the variable set as the node set, and to filter the candidate edges in the initial field-level directed causal graph based on the global constraint set and the target task set to obtain the formal field causal graph.
[0128] The causal model construction module 403 is used to learn the matching structural equation for each field variable in the formal field causal graph according to the set of parent nodes corresponding to each field variable, and to construct a structural causal model based on the structural equations corresponding to all fields. The structural equation of each field variable is jointly determined by the set of parent nodes of the corresponding field, the field generation function and the distribution of exogenous noise.
[0129] The sample synthesis module 404 is used to perform observation sampling, intervention sampling and counterfactual sampling on the formal field causal graph based on the structural causal model to obtain the observation synthesis sample set, the intervention synthesis sample set and the counterfactual sample pair set;
[0130] The sample encoding and pre-training module 405 is used to encode the synthetic data in the observation synthetic sample set, the intervention synthetic sample set and the counterfactual sample pair set into training samples suitable for pre-training of structured models, so as to perform model pre-training based on the training samples according to the preset pre-training target.
[0131] In this embodiment of the invention, the system further includes a synthetic sample quality assessment and screening module. This module is used to score each synthetic sample based on constraint consistency, distribution consistency, task effectiveness, causal consistency, and privacy security before encoding the synthetic data from the observation synthetic sample set, intervention synthetic sample set, and counterfactual sample pair set into training samples suitable for pre-training of the structured model. The five scores are then normalized and synthesized into a quality weight for the synthetic sample. When the quality weight is lower than a preset first quality threshold, the current synthetic sample is discarded; when the quality weight is higher than or equal to the first quality threshold, the current synthetic sample is considered a high-quality synthetic sample.
[0132] Furthermore, the sample encoding and pre-training module 405 is specifically used to encode high-quality synthetic samples selected from the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set as training samples. When pre-training the model based on the training samples, it weights the training loss of each training sample according to the quality weight of the synthetic samples, so that the training samples corresponding to synthetic samples with high quality weights have higher weights in training. It also statistically analyzes the validation set performance and training anomaly records of various types of training samples. Based on the validation set performance and training anomaly records of various types of training samples, it provides feedback to correct the formal field causal graph, structural equation set F, sampling strategy, and / or sample quality weights until the preset closed-loop update round number or index convergence condition is reached.
[0133] In this embodiment, the training samples include field values and field relationship encoding, intervention path encoding, and counterfactual comparison relationship encoding used to constrain the model's learning of causal dependencies and policy change patterns among business fields.
[0134] In this embodiment, the pre-training tasks include field mask reconstruction, prediction of causal edge direction or parent-child relationship, prediction of intervention results, judgment of counterfactual consistency, and prediction of task conditions.
[0135] As the system implementation is basically similar to the method implementation, the description is relatively simple, and relevant parts can be found in the description of the method implementation.
[0136] Furthermore, another embodiment of the present invention provides a computer program product on which a computer program is stored, and when the computer program is executed by a processor, it implements the steps in the above embodiment of the business constraint-driven causal synthesis pre-training method.
[0137] Furthermore, another embodiment of the present invention provides a computer device including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps in the above embodiment of the business constraint-driven causal synthesis pre-training method.
[0138] Furthermore, those skilled in the art will understand that although some embodiments herein include certain features included in other embodiments but not others, combinations of features from different embodiments are intended to be within the scope of the invention and form different embodiments. For example, any of the claimed embodiments can be used in any combination.
[0139] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A business-constrained causal synthesis pre-training method, characterized in that, The method includes: Based on the original structured data table and the field description file, business rule file, and application target description file of the original structured data table, construct a variable set, a global constraint set, and a target task set; An initial field-level directed causal graph is constructed using the set of variables as the set of nodes. The candidate edges in the initial field-level directed causal graph are then filtered based on the set of global constraints and the set of target tasks to obtain the formal field causal graph. For each field variable in the formal field causal graph, the matching structural equation is learned field by field based on the set of parent nodes corresponding to each field variable. The structural causal model is constructed based on the structural equations corresponding to all fields. The structural equation of each field variable is jointly determined by the set of parent nodes of the corresponding field, the field generation function, and the distribution of exogenous noise. Based on the structural causal model, observation sampling, intervention sampling, and counterfactual sampling are performed on the causal graph of the formal field to obtain the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set. Synthetic data from the observation synthetic sample set, intervention synthetic sample set, and counterfactual sample pair set are encoded into training samples suitable for pre-training of structured models, so as to perform model pre-training based on the training samples according to the preset pre-training objectives.
2. The method according to claim 1, characterized in that, Based on the original structured data table and its field description files, business rule files, and application target description files, construct a variable set, a global constraint set, and a target task set, including: Data type identification, missing value handling, unit unification, and outlier handling are performed on each field in the original structured data table to form a unified field space; Record all fields in the original structured data table as a variable set. Each variable in the variable set should at least record the field name, field meaning, field type, value range, missing percentage, whether it is controllable, whether it is a target field, and whether it involves privacy information. The global constraint set is determined based on the field description file, business rule file, and preset real data statistical range. The global constraint set includes field-level constraints, cross-field constraints, business logic constraints, and privacy constraints. The target task set is determined based on the application target specification document. The target task set includes target result fields, task types, and input field ranges.
3. The method according to claim 1, characterized in that, An initial field-level directed causal graph is constructed using the variable set as the node set. Based on the global constraint set and the target task set, candidate edges in the initial field-level directed causal graph are filtered to obtain the formal field-level causal graph, including: Construct an initial field-level directed causal graph using the set of variables as the set of nodes; Based on the global constraint set, arbitrary candidate edges of the initial field-level directed causal graph are selected. Establish evidence vectors: ,in, This indicates the score for evidence related to business rules. The score represents the chronological order of evidence. Indicates the score of statistical correlation evidence. This indicates a condition-dependent evidence score. This indicates that the expert has confirmed the score; The overall confidence score of each candidate edge is calculated based on its evidence vector, using the following formula: ; in, To assess the overall confidence level, For the Sigmoid function, to For the weights of the corresponding evidence vectors, This is the confidence bias term; like Then the current candidate edge will be added to the formal field causal graph. The preset first confidence threshold; If any candidate edge in the initial field-level directed cause-effect graph violates the time sequence constraint and business constraint, or if the target result field in the target task set points in the opposite direction to the cause field, then the current candidate edge will be directly written into the prohibited edge set to prevent it from entering the formal cause-effect graph.
4. The method according to claim 3, characterized in that, The method further includes: like Then, the current candidate edge is added to the set of edges to be reviewed. The second confidence threshold is preset; if If so, then delete the candidate edge; For candidate edges that form a loop, priority is given to retaining the directions with high scores in time evidence and / or business evidence, while conflicting directions are downweighted or moved to the set of edges to be reviewed. For each candidate edge, an evidence record table is configured to trace the reasons for screening. The evidence record table includes at least a start field, an end field, an evidence vector, a comprehensive confidence level, whether it belongs to a prohibited edge, and whether it enters the set to be reviewed.
5. The method according to claim 1, characterized in that, For each field variable in the formal causal graph, the matching structural equation is learned field by field based on the set of parent nodes corresponding to each field variable. A structural causal model is then constructed based on the structural equations corresponding to all fields, including: For each field variable in the formal field cause-effect graph The corresponding structure equation is learned based on its parent node set. The structure equation is uniformly written as: in, Represents field variables The set of parent nodes; Indicates the field generation function; Represents the exogenous noise term; This represents a field constraint projection function used to correct the generated results to the field constraints. Within the permitted range; The field generation functions corresponding to all fields are summarized to form a set of structure equations. The exogenous noise items corresponding to all fields are summarized to form an exogenous noise set. Combined with formal field cause-effect graph Structural Equation Set Exogenous noise set and global constraint set Constructing a structural causal model .
6. The method according to claim 5, characterized in that, The method further includes: When the field variable is a discrete variable, the field generation function is replaced by a Softmax scoring mapping branch based on the general structural equation. The original score of each candidate category is calculated based on the set of parent nodes through the preset category scoring function, and the conditional probability distribution of each category is obtained by Softmax normalization. Here, the candidate category refers to all the preset legal enumeration value categories of the discrete variable. When the field variable is the label variable Y, the field generation function is replaced by the Sigmoid scoring mapping branch based on the general structural equation. The one-dimensional scoring result is calculated based on the parent node set through the preset label scoring function, and the positive class conditional probability is obtained through the Sigmoid activation mapping.
7. The method according to claim 5, characterized in that, Based on the structural causal model, observation sampling, intervention sampling, and counterfactual sampling are performed on the formal field causal graph to obtain the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set, including: Based on the structural causal model, synthetic fields are generated sequentially along the topological order of the formal field causal graph to obtain the observed synthetic samples. The observed synthetic sample values are as follows: ; in, The exogenous noise is sampled from the current field; if the current field has no parent node, it is sampled from its marginal distribution or marginal noise. If the current field has a parent node, substitute the observation value of the parent node that has already been sampled to obtain the result. ; According to intervention nodes Pre-execution intervention Modify the cause-effect graph structure to remove intervention nodes. All incoming edges and fixed , The preset mandatory intervention value; for the intervention node and the set of descendant fields. Based on the structural causal model, the synthetic fields are regenerated sequentially along the positive topological order of the modified causal graph to obtain the intervention synthetic sample; Inferring the inherent noise of an individual in the current field based on any real or observed sample. According to the intervention node Pre-execution counterfactual intervention Modify the cause-effect graph structure to remove intervention nodes. All incoming edges and fixed , The preset hypothetical values are used; the inherent noise of each field is reused. And for the intervention node and the set of descendant fields. Based on the structural causal model, the synthetic fields are regenerated sequentially along the positive direction of the modified causal graph topology to form counterfactual sample pairs.
8. The method according to claim 1, characterized in that, Before encoding the synthetic data from the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set into training samples suitable for pre-training of the structured model, the method further includes: Each synthetic sample is scored based on constraint consistency, distribution consistency, task effectiveness, causal consistency, and privacy security, and the five scores are normalized and combined to form the quality weight of the synthetic sample. When the quality weight is lower than the preset first quality threshold, the current synthesized sample is discarded; when the quality weight is higher than or equal to the first quality threshold, the current synthesized sample is regarded as a high-quality synthesized sample.
9. The method according to claim 8, characterized in that, The training samples include field values and field relationship encoding, intervention path encoding, and counterfactual comparison relationship encoding used to constrain the model's learning of causal dependencies and policy change patterns among business fields; Pre-training tasks include field mask reconstruction, prediction of causal edge direction or parent-child relationship, prediction of intervention outcome, judgment of counterfactual consistency, and prediction of task conditions; Synthetic data from the observation synthetic sample set, intervention synthetic sample set, and counterfactual sample pair set are encoded into training samples suitable for pre-training of structured models, and model pre-training is performed based on these training samples according to a preset pre-training objective, including: High-quality synthetic samples selected from the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set will be encoded as training samples. When the model is pre-trained based on the training samples, the training loss of each training sample will be weighted according to the quality weight of the synthetic samples, so that the training samples corresponding to the synthetic samples with high quality weights will have higher weights in the training. Statistical analysis of validation set performance and training anomaly records for various training samples; Based on the validation set performance of various training samples and feedback from training anomaly records, the formal field causal graph, structural equation set F, sampling strategy, and / or sample quality weights are revised until the preset closed-loop update rounds or index convergence conditions are reached.
10. A business-constrained causal synthesis pre-training system, characterized in that, The system includes: The data preprocessing module is used to construct a variable set, a global constraint set, and a target task set based on the original structured data table and the field description file, business rule file, and application target description file of the original structured data table; The causal graph construction module is used to construct an initial field-level directed causal graph with a set of variables as the set of nodes. Based on the global constraint set and the target task set, the candidate edges in the initial field-level directed causal graph are filtered to obtain the formal field causal graph. The causal model building module is used to learn the matching structural equation for each field variable in the formal field causal graph, based on the set of parent nodes corresponding to each field variable. The structural causal model is built based on the structural equations corresponding to all fields. The structural equation of each field variable is jointly determined by the set of parent nodes of the corresponding field, the field generation function, and the distribution of exogenous noise. The sample synthesis module is used to perform observation sampling, intervention sampling, and counterfactual sampling on the formal field causal graph based on the structural causal model, to obtain the observation synthesis sample set, the intervention synthesis sample set, and the counterfactual sample pair set. The sample encoding and pre-training module is used to encode the synthetic data in the observation synthetic sample set, the intervention synthetic sample set, and the counterfactual sample pair set into training samples suitable for pre-training of structured models, so as to perform model pre-training based on the training samples according to the preset pre-training objectives.
