Communication fault event causal relationship identification method based on bidirectional semantic fusion and multi-view contrast learning
By employing a bidirectional semantic fusion and multi-perspective comparative learning approach, a causal relationship identification model was constructed. This model addresses the issue of insufficient accuracy in causal relationship identification during communication fault diagnosis, enabling precise understanding and identification of causal directions and improving the effectiveness of communication fault diagnosis.
Patent Information
- Application Number
- CN202611115966.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-07-27
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies lack a fine-grained understanding of causal relationships in communication fault diagnosis, resulting in poor identification performance. In particular, the problems of insufficient professional corpus and scarce labeled data in the field of communication have not been effectively solved.
A causal relationship recognition model is constructed by adopting a method based on bidirectional semantic fusion and multi-view comparative learning. By using a dataset with finely labeled causal directions and differentiated prompt templates, combined with multi-head attention mechanism and intra-sample comparative learning, the model's semantic understanding of causal directions is enhanced.
It significantly improves the accuracy of causal relationship identification and the generalization ability of the model, can more accurately capture semantic features of different causal directions, reduce erroneous samples, and improve the reliability and efficiency of communication fault diagnosis.
Smart Images

Figure CN123179059A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of natural language processing technology, and in particular to a method for identifying causal relationships in communication failure events based on bidirectional semantic fusion and multi-perspective comparative learning. Background Technology
[0002] With the rapid development of information technology, communication networks are becoming increasingly large-scale, and the frequency and scope of failures are also increasing accordingly. Timely and accurate identification and handling of failure events are crucial to ensuring the stable operation of communication networks. However, traditional manual fault diagnosis methods are inefficient and difficult to adapt to the needs of modern communication networks. Event Causality Identification (ECI), as an important research direction in the field of Natural Language Processing (NLP), is used to detect whether there is a causal relationship between two events in a document. It has been widely applied in tasks such as question answering systems, information retrieval, event prediction, knowledge graph construction, and reading comprehension, providing a new approach to root cause analysis of communication failures.
[0003] Early research primarily relied on feature pattern matching and machine learning classification methods. With the deepening of graph structure research and the emergence of large-scale pre-trained language models, recent research has begun to widely adopt graph-based learning and cue-based learning methods to solve ECI tasks. Graph-based learning methods typically model events, entities, or sentences as nodes in a graph and use graph neural networks for relational reasoning.
[0004] Recently, with the help of pre-trained models (PLMs), such as those by Bert and Roberta, cue learning has become a new paradigm for various natural language processing (NLP) tasks. Cue learning-based causal relationship recognition methods transform classification tasks into mask prediction or text generation problems by designing natural language cues, thereby stimulating the latent causal knowledge acquired by the model during pre-training. For example, Shen et al. proposed a derivative cue joint learning framework that integrates causal cue word detection and causal relationship recognition; the MRPO model transforms the task into a mask language model task by designing cue templates, reducing dependence on specific words and enhancing the model's generalization ability. To fully utilize the semantic knowledge of pre-trained language models, Xiang et al. proposed a deterministic hypothesis cue learning method. This method first assumes a causal relationship between events, and then verifies the hypothesis by predicting the reasonableness of the events themselves, improving the model's final performance. To delve deeper into text semantics, Liu et al. proposed the HFEPA framework, which improves the performance of causal relationship recognition by extracting event mentions and fragment features hierarchically and combining cue-aware attention with implicit causal knowledge from PLMs. The methods described above often rely on the design of cue templates. To alleviate the dependence of existing cue learning methods on complex cue templates and derived tasks, Liang et al. proposed a contextual contrastive learning approach. By constructing cue templates containing causal and non-causal examples and introducing a contrastive learning mechanism, they enhanced the model's ability to distinguish event semantics. Furthermore, in the method using the contrastive learning mechanism, Yin et al. constructed triples by selecting highly similar event pairs with the same label as positive examples and low-similarity event pairs with different labels as negative examples from samples in the same batch, and designed a contrastive loss to optimize event representations, thereby enhancing the model's ability to distinguish between causal and non-causal event semantics.
[0005] Despite significant progress in the aforementioned general-domain methods, their application in the communications field still has certain limitations. The main reason is that PLMs typically lack training with specialized communications corpora, resulting in insufficient understanding of fault-related events. Without a full grasp of causal relationships, it's difficult to accurately capture the causal connections between events, easily leading to biased identification results. Furthermore, the lack of high-quality annotated corpora and targeted methodological designs in the field of communications fault diagnosis also limits its practical application, posing a dual challenge to accurately identifying causal relationships and achieving knowledge reasoning. Summary of the Invention
[0006] The purpose of this invention is to provide a method for identifying causal relationships in communication failure events based on bidirectional semantic fusion and multi-view comparative learning, thereby enhancing the model's ability to understand the semantics of causal relationships in the communication field and improving the accuracy of causal relationship identification.
[0007] To achieve the above objectives, the present invention provides the following solution: A method for identifying the causal relationship of communication failure events based on bidirectional semantic fusion and multi-view comparative learning includes: Obtain a dataset of communication failures that includes causal direction labels; The communication fault dataset containing causal direction annotations is input into the causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning. Based on the prompt templates constructed by the positive and negative causal directions, the semantic features of the causal relationship are extracted from different directions, the final fused features are output, and a multi-view contrastive learning method is used for training to obtain the trained causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning. The communication text data to be identified, which contains multiple events, is input into a causal relationship identification model based on bidirectional semantic fusion and intra-sample contrastive learning. Event trigger words are labeled, and the causal relationship category of the communication fault data to be identified is output.
[0008] Optionally, semantic features of causal relationships can be extracted from different directions to output the causal relationship class of the communication failure data, including: A pre-trained language model is used to encode the event text and the prompt template corresponding to the communication failure dataset. A multi-head attention mechanism is used to interactively fuse the encoded features to obtain bidirectional causal semantic features. Based on the bidirectional causal semantic features, the probability of the positive causal direction and the negative causal direction being established is predicted using the MASK token, and the predicted probability is obtained. The dimensional mean squared feature of the event text is applied to extract global event semantic features; The global event semantic features and the predicted probabilities are linearly transformed and fused to output the final fused features.
[0009] Optionally, employing a multi-head attention mechanism to interactively fuse encoded features includes: Using the positive causal direction prompt template as the query and the event context as the key and value, the positive causal semantic features are calculated through a multi-head attention mechanism; Using the reverse causal direction hint template as the query and the event context as the key and value, the reverse causal semantic features are calculated through a multi-head attention mechanism.
[0010] Optionally, the calculation process for predicting the probability of success of positive and negative causal directions using MASK tokens includes: ; ; in, and They refer to and The predicted probability of features in two causal relationships. Indicates positive causal semantic features. Indicates reverse causal semantic features. and These represent the feature representations of the mask positions in the positive and negative causal descriptions within the prompt template, respectively. Indicates positive causality. It indicates reverse causality.
[0011] Optionally, training can be performed using a multi-view comparative learning method, including: Positive and negative samples are constructed based on the predicted probabilities. The similarity between the positive and negative samples is calculated using cosine similarity, and an initial contrast loss is calculated by introducing a boundary threshold. Calculate the first directional constraint loss based on the predicted probability; Based on the initial contrast loss and the orientation constraint loss, the final contrast loss is obtained; The main loss is calculated based on the features of the final fusion and the labels of the communication failure dataset; The second-direction loss is calculated based on the predicted probability and the label; The loss function is obtained based on the main loss, the final contrast loss, and the second-direction loss, and the loss function is used to train the causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrast learning.
[0012] Optionally, the initial contrast loss can be calculated by introducing boundary thresholds, including: The ReLU function is used to process the difference between the boundary threshold and the similarity of positive samples and the difference between the similarity of negative samples and the complementary value of the boundary, and the average value is taken and then summed to obtain the initial contrast loss.
[0013] Optionally, calculating the constraint loss in the first direction includes: The predicted probabilities are binarized for determination. If the probability value of positive causality in the two causal relationships is greater than that of negative causality, the positive direction is determined to be correct. If the probability value of negative causality in the two causal relationships is greater than that of positive causality, the negative direction is determined to be correct. The correct determination results of the two directions are obtained, multiplied and averaged. Then, the first direction constraint loss is obtained by subtracting the average from 1.
[0014] The beneficial effects of this invention are as follows: This invention focuses on the core problem of event causal relationship identification in the field of communication fault diagnosis, and conducts in-depth research. Addressing the core issues of existing methods generally neglecting causal direction discrimination, the scarcity of communication-specific labeled datasets, and the limited understanding of domain-specific semantics by pre-trained models, this invention proposes a communication fault event causal relationship identification method based on bidirectional semantic fusion and multi-view comparative learning. To fill the data gap in the field and ensure the effectiveness of model training and the reliability of evaluation, at the data level, this invention constructs a communication fault dataset with finely labeled causal directions, covering three categories of labels: positive causality, negative causality, and no relationship, providing benchmark data resources for the training, evaluation, and optimization of subsequent models in the field. At the methodological level, a causal relationship recognition model (BiMCausal) based on bidirectional semantic fusion and intra-sample contrastive learning was designed. The bidirectional prompting learning fusion module accurately captures the specific semantic features of different causal directions by designing differentiated prompt templates, and then uses a multi-head attention mechanism to achieve deep interactive fusion of causal semantics and event context. The intra-sample contrastive learning module innovatively adopts the intra-sample positive and negative sample construction logic. Through the dual constraints of boundary contrast loss and direction constraint loss, it strengthens the discriminability and consistency of semantic features of different causal directions, while avoiding the additional computational overhead caused by inter-sample interaction. Attached Figure Description
[0015] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.
[0016] Figure 1 This is a flowchart illustrating the causal relationship identification method for communication failure events based on bidirectional semantic fusion and multi-view comparative learning, according to an embodiment of the present invention. Figure 2 This is a design diagram of a prompt template for an embodiment of the present invention; Figure 3 Line graph showing the impact of the threshold (Margin) on the boundary contrast loss in this embodiment of the invention; Figure 4 The following is a comparison chart of BiMCausal and HFEPA in terms of erroneous samples in an embodiment of the present invention, wherein (a) is a comparison chart of BiMCausal and HFEPA in terms of the number of erroneous samples, and (b) is a comparison chart of BiMCausal and HFEPA in terms of the three-class classification error rate. Figure 5The diagram shows a comparison of the attention distribution of the BiMCausal method and the removal of the multi-view contrast learning mechanism (w / o-ConLoss) under different causal direction cues in the embodiments of the present invention. (a) shows the comparison of the attention distribution of the BiMCausal method under different causal direction cues, and (b) shows the comparison of the attention distribution of the removal of the multi-view contrast learning mechanism (w / o-ConLoss) under different causal direction cues. Figure 6 The figures show the performance of the BiMCausal method and the removal of the multi-view contrast learning mechanism (w / o-ConLoss) in two classification tasks according to embodiments of the present invention. Figure 7 This is a comparative analysis diagram of two-way semantic fusion in causal direction recognition, according to an embodiment of the present invention. Detailed Implementation
[0017] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0018] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.
[0019] like Figure 1 As shown, this embodiment proposes a method for identifying the causal relationship of communication failure events based on bidirectional semantic fusion and multi-view comparative learning, including: Obtain a dataset of communication failures that includes causal direction labels; The communication fault dataset containing causal direction annotations is input into the causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning. Based on the prompt templates constructed by the positive and negative causal directions, the semantic features of the causal relationship are extracted from different directions, the final fused features are output, and a multi-view contrastive learning method is used for training to obtain the trained causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning. After training a causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning, which inputs communication text containing multiple events, the model annotates event trigger words and outputs the causal relationship category of the communication fault data to be identified.
[0020] Furthermore, semantic features of causal relationships are extracted from different directions, and the causal relationship classes of the communication failure data are output, including: A pre-trained language model is used to encode the event text and the prompt template corresponding to the communication failure dataset. A multi-head attention mechanism is used to interactively fuse the encoded features to obtain bidirectional causal semantic features. Based on the bidirectional causal semantic features, the probability of the positive causal direction and the negative causal direction being established is predicted using the MASK token, and the predicted probability is obtained. The dimensional mean squared feature of the event text is applied to extract global event semantic features; The global event semantic features and the predicted probabilities are linearly transformed and fused to output the final fused features.
[0021] Furthermore, employing a multi-head attention mechanism to interactively fuse encoded features includes: Using the positive causal direction prompt template as the query and the event context as the key and value, the positive causal semantic features are calculated through a multi-head attention mechanism; Using the reverse causal direction hint template as the query and the event context as the key and value, the reverse causal semantic features are calculated through a multi-head attention mechanism.
[0022] Specifically, this embodiment designs a dedicated prompt template for identifying causal relationships in events. Unlike existing methods, this embodiment constructs differentiated prompt templates for two types of causal directions, aiming to accurately capture the unique semantic expression patterns in different causal flows. The specific template design scheme is as follows: Figure 2 As shown, from the perspective of two causal relationships existing in the two directions of event s1 to event s2 and event s2 to s1, text description templates for different causal directions are constructed, and these templates are used to aggregate causal information from different directions. Finally, they are fused to enhance the model's ability to understand the semantics of different causal directions.
[0023] After the prompt template is built, this embodiment adopts... The pre-trained models respectively processed the event text Positive "cause" type causal relationship template and the reverse "caused" causal relationship template The encoding process is as shown in formula (1): (1); During the fusion phase, two sets of multi-head attention mechanisms are used to interactively fuse the prompt templates with different causal directions and the event text content, capturing the features of different causal semantics, as shown in formula (2-3): (2); (3); in, The positive causal (cause) semantic feature is calculated using a multi-head attention mechanism, with the positive causal prompt template as the query and the event context as the key and value. Similarly, the negative causal (due to) semantic feature can be obtained. .
[0024] After obtaining the bidirectional causal semantic features, the core idea of mask prediction is to use the MASK token in the prompt template. Based on the [MASK] token, the probability of the two causal directions is predicted. The specific calculation process is shown in formula (4-5): (4); (5); in and They refer to and The predicted probabilities of the features in two causal relationships (positive cause and negative cause) should theoretically have a clear difference to represent the semantics of causal relationships in different directions. and These represent the feature representations of the mask positions in the positive and negative causal descriptions within the prompt template, respectively. Indicates positive causality. It indicates reverse causality.
[0025] After obtaining the probability distributions of the two causal directions, in order to achieve probability prediction of the unrelated category "NONE", this embodiment performs dimensional mean processing on the event text features to extract global event semantic features, as shown in formula (6): (6); Finally, the global semantic features were analyzed separately. The predicted probabilities of the two causal directions are linearly transformed and fused using dynamic parameters, as shown in Equation (7-10): (7); (8); (9); (10).
[0026] Furthermore, training using a multi-view comparative learning method includes: Positive and negative samples are constructed based on the predicted probabilities; The similarity between the positive and negative samples is calculated using cosine similarity, and an initial contrast loss is calculated by introducing a boundary threshold. Calculate the first directional constraint loss based on the predicted probability; Based on the initial contrast loss and the orientation constraint loss, the final contrast loss is obtained; The main loss is calculated based on the features of the final fusion and the labels of the communication failure dataset; The second-direction loss is calculated based on the predicted probability and the label; The loss function is obtained based on the main loss, the final contrast loss, and the second-direction loss, and the loss function is used to train the causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrast learning.
[0027] Specifically, to ensure that the semantic features of the two types of causal directions maintain their inherent differences and to improve the model's ability to semantically discriminate and understand causal directions, a multi-perspective causal semantic contrastive learning method is designed. This embodiment constructs positive and negative sample pairs by utilizing bidirectional causal probabilities generated by bidirectional prompt templates and applies constraint loss in the causal direction, thereby improving the model's training time while optimizing causal semantic features.
[0028] First, using and Construct positive and negative samples separately. Positive samples will... Interchange and sum the probabilities of the two causal directions. Combined into positive samples. Negative samples are directly... and Perform the construction. As shown in formula (11-12): (11); (12); in The function represents the exchange of probability values in different causal directions.
[0029] The similarity between positive and negative samples is calculated using cosine similarity, as shown in formulas (13-14): (13); (14); After obtaining the similarity between positive and negative samples, a boundary threshold margin is introduced to design a contrastive loss function. This function learns by bringing positive sample pairs closer together and pushing negative sample pairs further apart, thereby enhancing the discriminative power of causal semantic features. The contrastive loss is calculated using the ReLU function to constrain the non-negativity of the loss. The average of the difference between the boundary threshold and the similarity of positive samples, and the difference between the similarity of negative samples and the boundary complement value (1-margin), are summed. The initial contrastive loss calculation process is shown in formulas (15-17). (15); (16); (17); To further constrain the correctness of the causal direction determination, this embodiment additionally designs a first direction constraint loss. Firstly, regarding... and Binarize the probability distribution to determine: when When the probability of a positive causal relationship is greater than that of a negative one, the positive direction is considered correct; when... When the probability value of the reverse causality is greater than that of the forward causality, the reverse direction is determined to be correct. The directional loss is obtained by multiplying the correct determination results of the two types of directions, taking the average, and then subtracting this average from 1. The calculation process is shown in formula (18-20): (18); (19); (20); The final comparison loss is calculated as follows: (twenty one).
[0030] The loss function used for backpropagation updates consists of four parts, the first being the main loss used to finally determine causality. This loss is determined by the features of the final fusion. It is calculated from the labels. Secondly, it is used for contrastive learning loss. Finally, there is a second-direction constraint loss used in the causal relationship fusion module to constrain the correctness of causal direction determination. and The specific calculation process is shown in the formula. ; ; ; ; in and These are labels corresponding to two types of directional causality, and the label consists of three categories. Specifically, this involves constructing a system based on whether the causal relationship corresponds to a certain direction, i.e., whether it is a reverse causal relationship (due to) or a positive causal relationship (caused by), thereby forming directional labels for two types of tasks and achieving independent constraints on the correctness of different causal directions. , , This is a hyperparameter used to balance the contribution weights of various sub-losses in the total loss, preventing a single loss from dominating the model optimization process.
[0031] The effectiveness of this implementation method is illustrated below through experiments: Currently, datasets specifically designed for causal identification in the communications field are relatively scarce, and datasets with fine-grained causal direction annotations are even rarer. This problem severely hinders the development of graph-based knowledge reasoning and dedicated causal models, and also limits the performance of critical applications such as fault diagnosis. To address this, this embodiment constructs a Huawei communications fault dataset for causal identification tasks. This dataset features fine-grained annotations for three categories of causality, including causal direction, and is made public to promote research in this field. Furthermore, to verify the model's cross-scenario generalization ability, this embodiment also conducted experiments on a causal relationship dataset in the telecommunications fault domain. Statistical information for the Huawei and telecommunications fault datasets is shown in Table 1.
[0032] Table 1 To measure model performance, the commonly used evaluation metrics in the field of causal relationship recognition were used: accuracy (P), recall (R), and F1 score to calculate the model's effectiveness in causal recognition.
[0033] The parameter settings mainly consist of two parts: server parameters and model parameters. Server parameter settings are shown in Table 2. In the BiMCausal model settings, this embodiment sets the maximum input length of the encoder to 150 characters. Text exceeding this length will be truncated to the first 150 characters; any shortfall will be processed using... <pad>The markers are filled in. Specific model parameter settings are shown in Table 3.
[0034] Table 2 Table 3 In the experimental section, the BiMCausal method was first compared with baseline model methods on a causal three-class classification task, and the experimental results are shown in Table 4. To highlight the BiMCausal method's ability to enhance causal semantics and address the model's insufficient semantic understanding in the communication domain, this embodiment also compared BiMCausal on a causal existence binary classification task, and the experimental results are shown in Table 5. The baseline methods used in the comparison are as follows: BERT (2018): This method is the baseline model adopted by Liu et al. First, the contextual text representations of two events are concatenated, then encoded using the BERT model, and finally an MLP is used to identify causal relationships.
[0035] RoBERTa (2019): This method is the baseline model adopted by Liu et al. First, the contextual text representations of two events are concatenated, then encoded using the RoBERTa model, and finally an MLP is used to identify causal relationships.
[0036] ICT (2023): This method, proposed by Jia Zirui et al., is applied to a root cause analysis system in the ICT field. To incorporate the location and contextual information of events into causal identification, this method concatenates the first character features of different event trigger words and uses them as input to the final classifier, thereby improving model performance.
[0037] DAPrompt (2023): DAPrompt proposes a novel deterministic hypothesis prompting learning framework. This method makes full use of the semantic knowledge of the pre-trained model by first making deterministic hypotheses and then evaluating their reasonableness, thereby improving the model's causal recognition performance.
[0038] HFEPA (2024): HFEPA proposed a framework based on hierarchical feature extraction and cue-aware attention. This method enhances the model's ability to identify causal relationships between events by systematically integrating multi-level semantic features with semantic knowledge in pre-trained language models.
[0039] ICCL (2024): ICCL proposed a joint framework based on contextual learning and contrastive learning. This method enhances the causal reasoning ability of pre-trained language models by constructing contextual cues containing examples and introducing a contrastive learning mechanism between event pairs, thereby improving the accuracy and robustness of event causal relationship identification.
[0040] DiffusECI (2024): DiffusECI proposes a joint framework based on diffusion model and pre-trained model. Through event context encoding and progressive transformation of label representation, irrelevant features are filtered out step by step. Combined with multi-loss joint optimization, it solves the problems of noise interference and abrupt transformation of context label in long-distance events, and improves the accuracy and generalization of multilingual event causal recognition.
[0041] BERT-SCL (2023): SCL proposes a joint framework based on supervised contrastive learning and pre-trained models. By constructing triples and using cross-entropy and supervised contrastive loss for joint optimization, it solves the anisotropy problem of pre-trained model encoding, clarifies category boundaries, and improves the accuracy of Chinese event causal recognition.
[0042] Table 4 Table 5 Table 4 shows the experimental results, revealing that existing methods generally perform poorly in fine-grained causal relationship identification tasks that consider directional factors. On one hand, most existing methods are designed around causal existence, lacking overall fine-grained semantic understanding of different causal relationships. On the other hand, communication domain data is highly specialized and semantically complex, placing higher demands on the domain adaptability of pre-trained models, which to some extent limits the model's semantic understanding of causal relationships. In contrast, the method in this embodiment achieves optimal performance in the fine-grained causal relationship identification task, improving the F1 score by 2.85 percentage points compared to the best baseline model HFEPA on Huawei communication fault data. This is mainly because the BiMCausa model can explicitly distinguish semantic information of different causal directions, compensating for the shortcomings of pre-trained models in understanding communication domain data by enhancing the semantics of fine-grained causal directions, ultimately improving the model's performance.
[0043] To verify the superiority of the BiMCausal method in causal semantic understanding, a comparative experiment was conducted on a binary classification task for causal existence identification. During the experiment, baseline models were trained directly using binary labels, while the BiMCausal method used the same training parameters as the fine-grained causal identification ternary classification task, only performing a binary classification of the output results for causal existence. Table 5 shows that, despite not being specifically optimized for the binary classification task, the BiMCausal method achieved F1 scores of 82.88% and 78.40% on the Huawei and China Telecom communication fault datasets, respectively, significantly outperforming all baseline models in all metrics. This indicates that by introducing causal direction learning, the model's semantic understanding of causal relationships is deepened, resulting in stronger generalization ability in the basic causal existence judgment task. Combining the performance on both the ternary and binary classification tasks, it is clear that the BiMCausal method enhances the deep understanding of causal semantics by applying a causal direction processing mechanism, demonstrating significant advantages in causal identification tasks of different granularities.
[0044] The BiMCausal method comprises two main modules: a causal relationship fusion module for bidirectional cue learning and a multi-view contrastive learning module. To verify the effectiveness of each module and its contribution to overall performance, ablation experiments were conducted on Huawei and China Telecom communication fault datasets, respectively, for evaluation and analysis. The experimental results are shown in Table 6, and the specific ablation settings are as follows: Table 6 Ablation Experiment (1) w / o-BiPrompt: Replace the bidirectional prompt template in the causal fusion module with event text features using only the linear layer. Perform transformation processing and use it as a feature of two causal directions. and .
[0045] Ablation Experiment (2) w / o-ConLoss: Removing the loss from the contrastive learning module .
[0046] Ablation Experiment (3) w / o-BFLoss: Loss for removing the constraint causal direction in the causal fusion module and .
[0047] Ablation experiment (4) w / o-DireLoss: Remove all loss functions related to causal direction, including , and Only retain the losses used for the main task. .
[0048] In ablation experiment (1), after removing the bidirectional cue learning template from the causal relationship fusion module, the model's performance in F1 score decreased significantly. This indicates that the designed bidirectional cue template can activate the semantic knowledge related to different causal directions in the pre-trained language model, enabling the model to generate causal relationship features with directional semantics and effectively capture fine-grained semantic differences under different causal directions. In ablation experiment (2), after removing the bidirectional causal constraint loss from the causal relationship fusion module, the model also showed a decline. This shows that under the guidance of the bidirectional cue template, the bidirectional causal loss can provide an effective supervision signal for the determination of causal direction, ensuring that the model can correctly learn the directionality of causal logic.
[0049] In the ablation experiment (3), after removing the entire contrast learning module, all the model's metrics showed a significant decrease. This was mainly due to the boundary contrast loss of the positive and negative samples. This allows the model to enhance its semantic understanding of different causal directions by bringing positive samples closer and pushing negative samples further away, and it also incorporates boundary values to refine the semantic modeling of causal relationships. Simultaneously, it utilizes directional constraint loss. The introduction of direction-aware loss function helps the model correctly understand directionality, ensures the consistency of causal semantics, and thus improves the robustness and generalization ability of the model. Finally, in the ablation experiment (4), the model performance degraded most significantly when only the main task loss was retained and all losses related to causal direction were removed. This further verifies the effectiveness of the proposed direction-aware loss function in improving model performance. The complete model achieved the best results on all evaluation metrics, fully demonstrating the overall effectiveness of the BiMCausal method.
[0050] To demonstrate the effectiveness of the BiMCausal method, in-depth analysis and verification were conducted using Huawei's communication fault test suite.
[0051] In the contrastive learning module, the boundary threshold margin is a key hyperparameter controlling the degree of separation between positive and negative sample pairs in the feature space. To investigate its impact, a search experiment was conducted on the threshold during model training, and the results are as follows: Figure 3 As shown.
[0052] Experiments show that threshold setting has a significant impact on model performance. When the threshold is too small, the model cannot effectively separate positive and negative samples, resulting in insufficient discriminative power in the learned feature space and difficulty in clearly defining the boundaries of causal relationships. When the threshold is too large, the model may over-optimize during training, which may lead to convergence difficulties or forcibly push away similar samples, destroying the semantic structure of the feature space and causing performance degradation.
[0053] Through grid search, the margin threshold was ultimately set to 0.7, at which point the model achieved the optimal balance. This threshold guides the model to learn a compact and well-separated feature space: in this space, causal event pairs are close to each other, while non-causal event pairs are effectively pushed away, thus significantly improving the accuracy of causal direction discrimination.
[0054] To verify the effectiveness of the bidirectional semantic fusion mechanism proposed in this embodiment in the causal relationship identification task, the BiMCausal model was compared with the state-of-the-art HFEPA method on erroneous samples. The results are as follows: Figure 4 As shown in (a)-(b).
[0055] First, the BiMCausal method demonstrates superior performance in terms of the total number of errors. Under the same testing conditions, the HFEPA method resulted in 278 incorrect samples on the binary classification task, while the BiMCausal method only resulted in 64, representing a 77% reduction in the total number of errors. This validates the overall effectiveness of the model design.
[0056] Furthermore, to further illustrate the effectiveness of bidirectional semantic learning in improving model performance, this embodiment conducts an in-depth analysis of the specific circumstances of these error samples. Of the 278 error samples in the HFEPA method, 51 were three-class classification errors considering causal direction. In contrast, of the 64 error samples in the BiMCausal method, only 6 were of this type. The number of three-class classification errors decreased by 88%. This demonstrates that bidirectional semantic fusion not only directly improves the accuracy of direction discrimination but also enhances the ability to identify binary causal associations through more precise semantic understanding. This confirms the effectiveness of bidirectional semantic learning in causal identification tasks and provides a solid guarantee for constructing accurate causal chains and achieving reliable root cause localization of communication failures.
[0057] To explore the effectiveness of contrastive learning mechanisms in guiding bidirectional semantic learning in a model, this embodiment compares the attention scores generated when the bidirectional causal prompt template is fused with the contextual semantics with the attention patterns without the introduction of contrastive learning mechanisms. The results are visualized using the t-SNE dimensionality reduction method, as shown below. Figure 5 As shown.
[0058] Discover Figure 5 (a) After introducing the contrastive learning mechanism, the two types of causal attention exhibit a clear clustering separation trend in the semantic space, and the two cue templates show relative isolation in their attentional focus on event context information; while Figure 5 (b) Without contrastive learning, the distribution of attention is highly mixed and lacks clear clustering. The semantic focus areas of different cue templates on the event context are intertwined, making it difficult to form distinguishable semantic clusters. This difference verifies the guiding role of the contrastive learning mechanism in bidirectional semantic learning. Through the constraints of contrastive learning, the model can better mine the semantic associations and distinguishability information under the bidirectional causal cue templates, making the feature representations of different semantic categories more specific and clustered, thereby improving the bidirectional semantic representation ability. However, without the guidance of contrastive learning, the model lacks effective constraints on the feature encoding of bidirectional semantics, leading to confusion and overlap in the representation of semantic information in different causal directions.
[0059] The performance gains of the contrastive learning mechanism in two-class classification tasks are as follows: Figure 6 As shown, in the three-class classification task, after introducing contrastive learning, the BiMCausal method improved precision, recall, and F1 score by 1.62, 0.88, and 0.99 percentage points compared to w / o-ConLoss, respectively. In the two-class classification task, the improvement was even more significant, with improvements of 1.54, 1.16, and 1.22 percentage points, respectively. The quantitative results and attention visualization jointly verify that the contrastive learning mechanism, by strengthening bidirectional semantic features, achieves clear distinction at the feature level and performance improvement at the task level. This also verifies that the combination of this mechanism with bidirectional causal prompt templates can effectively enhance the model's ability to aggregate and represent bidirectional causal semantics, providing effective constraints for bidirectional semantic association modeling.
[0060] To verify the efficiency of the intra-sample contrastive learning mechanism proposed in this embodiment, the training time of BiMCausal and the baseline model using the contrastive learning mechanism was statistically analyzed on two granularity causal relationship recognition tasks. The results are shown in Table 7.
[0061] Table 7 The data in Table 7 shows that the BiMCausal method demonstrates a significant advantage over the other two methods in terms of time spent constructing positive and negative examples, training time per round, and inference time. This is mainly because both BERT-SCL and ICCL methods rely on inter-sample loss to construct their logic. BERT-SCL requires calculating cosine similarity in the same batch of samples to filter positive and negative examples and construct triples. The cross-sample filtering and triple encoding process directly generates additional construction time and training overhead. ICCL, on the other hand, requires retrieving causal and non-causal demonstration samples from the training set, and the retrieval, concatenation, and cross-sample interaction of demonstration samples further increase the time burden. The BiMCausal method, however, changes this core logic through intra-sample contrastive learning. It eliminates the need for any cross-sample interaction operations and directly constructs positive and negative sample pairs based on the two causal prediction probabilities generated by bidirectional prompts, reducing the computational overhead during model training.
[0062] Furthermore, BiMCausal also achieved the best performance, which proves that intra-sample contrastive learning not only avoids the time-consuming problem of inter-sample interaction, but also deepens the model's understanding of causal relationships through semantic modeling in different causal directions, achieving a dual improvement in performance and computational efficiency, demonstrating the overall effectiveness of the method.
[0063] To intuitively verify the effectiveness of BiMCausal's proposed bidirectional causal semantic learning mechanism in identifying causal relationships in communication failures, a communication failure case was randomly selected and compared with the HFEPA method. Figure 7 As shown.
[0064] This case study describes a failure scenario where a process conflict in an NSA context causes a VoLTE call failure. Analysis revealed that while the HFEPA method correctly identifies a causal relationship between two events in a binary classification task, it produces an error of reversed causal direction in a three-class classification task. This is primarily due to the traditional method's inadequacy in capturing directional features. The unidirectional semantic encoding pattern tends to learn strong correlations between events but fails to adequately model the asymmetric logic and domain knowledge that determine the causal direction. In contrast, the BiMCausal method, through a bidirectional semantic fusion mechanism, simultaneously models the causal relationship and its reverse semantic representation, enhancing the model's sensitivity to directional features through contrastive learning. This method effectively captures key directional clues such as causative verbs and the sequence of technical events, thus accurately identifying "process conflict" as the causal event and "call failure" as the result event while correctly determining the existence of a causal relationship. This helps construct a causal chain, providing a reliable logical foundation for root cause analysis.
[0065] The embodiments described above are merely preferred embodiments of the present invention and are not intended to limit the scope of the present invention. Various modifications and improvements made to the technical solutions of the present invention by those skilled in the art without departing from the spirit of the present invention should fall within the protection scope defined by the claims of the present invention.< / pad>
Claims
1. A method for identifying causal relationships in communication failure events based on bidirectional semantic fusion and multi-view comparative learning, characterized in that, include: Obtain a dataset of communication failures that includes causal direction labels; The communication fault dataset containing causal direction annotations is input into the causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning. Based on the prompt templates constructed by the positive and negative causal directions, the semantic features of the causal relationship are extracted from different directions, the final fused features are output, and a multi-view contrastive learning method is used for training to obtain the trained causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrastive learning. The communication text data to be identified, which contains multiple events, is input into a causal relationship identification model based on bidirectional semantic fusion and intra-sample contrastive learning. Event trigger words are labeled, and the causal relationship category of the communication fault data to be identified is output.
2. The method for identifying causal relationships of communication failure events based on bidirectional semantic fusion and multi-view comparative learning according to claim 1, characterized in that, The semantic features of causal relationships are extracted from different directions, and the causal relationship classes of the communication failure data are output, including: A pre-trained language model is used to encode the event text and the prompt template corresponding to the communication failure dataset. A multi-head attention mechanism is used to interactively fuse the encoded features to obtain bidirectional causal semantic features. Based on the bidirectional causal semantic features, the probability of the positive causal direction and the negative causal direction being established is predicted using the MASK token, and the predicted probability is obtained. The dimensional mean squared feature of the event text is applied to extract global event semantic features; The global event semantic features and the predicted probabilities are linearly transformed and fused to output the final fused features.
3. The method for identifying causal relationships of communication failure events based on bidirectional semantic fusion and multi-view comparative learning according to claim 2, characterized in that, The multi-head attention mechanism is used to interactively fuse encoded features, including: Using the positive causal direction prompt template as the query and the event context as the key and value, the positive causal semantic features are calculated through a multi-head attention mechanism; Using the reverse causal direction hint template as the query and the event context as the key and value, the reverse causal semantic features are calculated through a multi-head attention mechanism.
4. The method for identifying causal relationships of communication failure events based on bidirectional semantic fusion and multi-view comparative learning according to claim 2, characterized in that, The calculation process for predicting the probability of success in positive and negative causal directions using MASK tokens includes: ; ; in, and They refer to and The predicted probability of features in two causal relationships. Indicates positive causal semantic features. Indicates reverse causal semantic features. and These represent the feature representations of the mask positions in the positive and negative causal descriptions within the prompt template, respectively. Indicates positive causality. It indicates reverse causality.
5. The method for identifying causal relationships of communication failure events based on bidirectional semantic fusion and multi-view comparative learning according to claim 2, characterized in that, Training using a multi-view comparative learning method includes: Positive and negative samples are constructed based on the predicted probabilities. The similarity between the positive and negative samples is calculated using cosine similarity, and an initial contrast loss is calculated by introducing a boundary threshold. Calculate the first directional constraint loss based on the predicted probability; Based on the initial contrast loss and the orientation constraint loss, the final contrast loss is obtained; The main loss is calculated based on the features of the final fusion and the labels of the communication failure dataset; The second-direction loss is calculated based on the predicted probability and the label; The loss function is obtained based on the main loss, the final contrast loss, and the second-direction loss, and the loss function is used to train the causal relationship recognition model based on bidirectional semantic fusion and intra-sample contrast learning.
6. The method for identifying causal relationships of communication failure events based on bidirectional semantic fusion and multi-view comparative learning according to claim 5, characterized in that, The initial contrast loss is calculated by introducing boundary thresholds, including: The ReLU function is used to process the difference between the boundary threshold and the similarity of positive samples and the difference between the similarity of negative samples and the complementary value of the boundary, and the average value is taken and then summed to obtain the initial contrast loss.
7. The method for identifying causal relationships of communication failure events based on bidirectional semantic fusion and multi-view comparative learning according to claim 5, characterized in that, The calculation of the first-direction constraint loss includes: The predicted probabilities are binarized for determination. If the probability value of positive causality in the two causal relationships is greater than that of negative causality, the positive direction is determined to be correct. If the probability value of negative causality in the two causal relationships is greater than that of positive causality, the negative direction is determined to be correct. The correct determination results of the two directions are obtained, multiplied and averaged. Then, the first direction constraint loss is obtained by subtracting the average from 1.
