A multilingual event causal relation identification method and system based on shared low-rank adaptation and event span interaction representation
By using a method of sharing low-rank adaptation and event span interaction representation, the problems of resource imbalance and category imbalance in multilingual event causal relationship identification are solved, and efficient and low-cost cross-lingual causal relationship identification is achieved.
Patent Information
- Application Number
- CN202611636974.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-22
- Publication Date
- 2026-11-27
AI Technical Summary
Existing multilingual event causal relationship identification methods struggle to achieve stable discrimination capabilities under conditions of low-resource languages and complex causal expressions. Furthermore, the cost of fine-tuning all parameters of large language models is high, and the imbalance of language resources and relation categories leads to the model bias towards non-causal categories.
We adopt a method of shared low-rank adaptation and event span interaction representation, using the same large language model as the basis, inserting event boundary markers and performing pooling processing, training through low-rank adaptation parameters and relation classifiers, and optimizing model parameters by combining class-weighted focus loss and sampling with replacement.
This approach enables event pairs from different languages to share low-rank parameters in a unified adaptation space, reducing training costs, preserving multi-word event mention information, alleviating class imbalance, and improving the ability to identify cross-language event causal relationships.
Smart Images

Figure CN123180168A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to a method and system for identifying causal relationships in multilingual events based on shared low-rank adaptation and interactive representation of event span, belonging to the fields of natural language processing, multilingual information extraction, and efficient adaptation of large language model parameters. Background Technology
[0002] Event causality identification is used to determine whether a causal relationship exists between two event mentions in a given text. It is a fundamental technology in event understanding, question answering, event prediction, and event knowledge graph construction. Multilingual event causality identification further requires models to transfer causal relationship discrimination capabilities across languages with different vocabularies, syntax, writing systems, and discourse expressions.
[0003] Existing multilingual event causal relationship identification methods mainly employ multilingual pre-trained encoders such as mBERT and XLM-R, or introduce external event knowledge, graph structures, meta-learning, and representation transformation mechanisms on top of these encoders. While these methods can obtain some cross-lingual representations, they may still primarily rely on language-specific lexical, syntactic, and surface-level expression features, making it difficult to achieve stable causal relationship discrimination capabilities under conditions of low-resource languages and complex causal expressions.
[0004] Compared to traditional multilingual pre-trained encoders, large language models possess stronger context modeling and semantic representation capabilities, and can accept text input in different language forms. However, when directly using large language models for zero-shot event causal relationship identification, they are prone to misclassifying temporally adjacent, topically related, or semantically related event pairs that lack a true causal relationship as causal relationships. Full parameter fine-tuning of large language models requires updating a large number of model parameters, resulting in high costs in training memory, computation time, and model storage.
[0005] Furthermore, multilingual event causal relationship data often suffers from both linguistic resource imbalance and relation class imbalance. On the one hand, the annotation scale varies significantly across different languages; on the other hand, positive causal event pairs are typically significantly fewer than non-causal event pairs. If independent adapters are trained for each language, low-resource languages can only utilize limited supervision within their own language, and the number of adaptation parameters increases with the number of languages. If a regular classifier is trained only on top of the frozen representation of a large language model, the internal representation of the model is not adequately adapted to the event causal relationship task.
[0006] Therefore, a multilingual event causal relationship recognition method based on a large language model is needed. Under the condition of keeping the main parameters of the large language model frozen, the event pairs of samples in different languages should learn the same set of task adaptation parameters together, and the method should be combined with the complete event mention span representation and class imbalance perception training to improve the cross-language event causal relationship recognition capability. Summary of the Invention
[0007] The purpose of this invention is to provide a multilingual event causal relationship identification method and system based on shared low-rank adaptation and event span interaction representation, in order to solve the problems in the prior art where it is difficult to share causal relationship supervision of different languages in a unified adaptation space, language-specific adaptation parameters increase with the number of languages, single lexical representation is difficult to fully describe multi-word event mentions, and class imbalance causes the model to be biased towards non-causal categories.
[0008] To achieve the above objectives, this invention provides a training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation. The method uses the same large language model as a shared base model for event pairs from different languages, keeping the original parameters of the large language model frozen, allowing event causal relationship recognition samples from different languages to jointly update the same set of low-rank adaptation parameters. Boundary markers are inserted on both sides of two target event mentions to form a unified task input. Pooling is performed on the complete lexical spans corresponding to the two target event mentions to construct an event pair interaction representation including ordered event representation, absolute difference, and element-wise product. Causal relationship prediction results are obtained through a relation classifier, and only the shared low-rank adaptation parameters and classifier parameters are updated.
[0009] Furthermore, the present invention can divide the mixed multilingual training dataset into a positive causal sample set and a non-causal sample set, perform sampling with replacement on the positive causal samples to increase the frequency of positive causal samples being selected into the training batch, and use class-weighted focus loss to reduce the dominant role of easily classified majority class samples in the optimization process.
[0010] A training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation, the method comprising the following steps:
[0011] S1. Obtain event causal relationship identification samples in multiple languages. Each event causal relationship identification sample includes a text context, a first target event mention in the text context, a second target event mention, and a corresponding causal relationship label. Combine the event causal relationship identification samples from multiple languages into a mixed multilingual training dataset.
[0012] S2. Insert event boundary markers on both sides of the first target event mention and the second target event mention, and concatenate the text context after inserting the event boundary markers with the unified task instruction to obtain the event pair model input;
[0013] S3. Input the event pair model inputs from different languages into the same large language model, keep the original model parameters of the large language model frozen, and set a low-rank adaptation module in at least one linear transformation layer of the large language model, wherein the event causal relationship recognition samples from different languages jointly update the same set of low-rank adaptation parameters.
[0014] S4. Obtain the hidden state output by the large language model, determine the lexical span corresponding to the first target event mention and the second target event mention according to the event boundary marker, and perform pooling on the two lexical spans to obtain the first event span representation and the second event span representation.
[0015] S5. Construct an event pair interaction representation based on the first event span representation and the second event span representation, and input the event pair interaction representation into a relation classifier to obtain the prediction result of the corresponding causal relationship category;
[0016] S6. Based on the event graph after completion and confidence correction, a confidence-aware graph neural network that distinguishes between intra-sentence edges and inter-sentence edges is used for message passing to update the graph representation of each event mention.
[0017] S7. Calculate the training loss based on the prediction results and the causal relationship labels, keep the original model parameters of the large language model unchanged, and update the same set of low-rank adaptation parameters and the parameters of the relation classifier based on the training loss to obtain a multilingual event causal relationship recognition model.
[0018] Further, step S2 includes:
[0019] Based on the character positions of the first target event mention and the second target event mention in the text context, a first start boundary marker and a first end boundary marker are inserted before and after the first target event mention, respectively; and a second start boundary marker and a second end boundary marker are inserted before and after the second target event mention, respectively.
[0020] When two target events are mentioned in the same sentence, their relative order in the post-tagged text context is maintained based on their character positions.
[0021] The marked text context, input description, and relationship determination instructions pointing to the two target events are concatenated according to a unified template;
[0022] The term span is a set of indices of one or more terms located between the corresponding start boundary marker and end boundary marker after the text context has been segmented.
[0023] Furthermore, the update of the frozen linear transformation matrix by the low-rank adaptation module satisfies:
[0024]
[0025] in, To freeze the linear transformation matrix, To incorporate the linear transformation matrix after low-rank fitting, and For trainable low-rank matrices, Let be the rank value of the low-rank matrix. It is a low-rank scaling factor;
[0026] For any language Its low-rank adaptation parameters satisfy This is to enable event causal relationship identification samples from different languages to jointly train the same low-rank adaptation parameter set;
[0027] The low-rank adaptation module is set in at least one of the attention query projection matrix and the attention numerical projection matrix of the large language model.
[0028] Further, steps S4 and S5 include:
[0029] Let the sets of lexical indices corresponding to the first target event mention and the second target event mention be respectively. and The corresponding hidden states are averaged to obtain the first event span representation. Second event span representation ;
[0030] Following the order of the first event span first, followed by the second event span, , The element-wise absolute difference and element-wise product of the two are concatenated to obtain the event pair interaction representation:
[0031] .
[0032] Furthermore, the relation classifier includes a linear projection layer, a nonlinear activation layer, and at least one fully connected classification layer;
[0033] The causal relationship label includes categories of causal relationship existence and non-causal relationship, or categories of cause pointing to result, result pointing to cause, and non-causal relationship.
[0034] In the identification of directional causal relationships, the first event span representation and the second event span representation are sequentially concatenated according to the order of the target events to preserve the order information between the mentions of the first target event and the mentions of the second target event.
[0035] Furthermore, the training loss includes a category-weighted focus loss;
[0036] For the A sample, let Predicting probabilities for positive causal categories. True label, true category probability and category weight They are respectively:
[0037]
[0038]
[0039] Training batch The focal loss is:
[0040]
[0041] in, For positive causal category weights, For focusing coefficient, is the numerical stability constant.
[0042] Furthermore, the hybrid multilingual training dataset is divided into a positive causal sample set and a non-causal sample set. The positive causal sample set is sampled with replacement according to a preset positive class sampling coefficient, so that the number of samplings of positive causal samples in a training round is greater than or equal to the number of original samples. The sampled positive causal samples are then mixed with non-causal samples to form a training batch.
[0043] This invention also provides a method for identifying causal relationships in multilingual events based on shared low-rank adaptation and event span interaction representation, the method comprising:
[0044] Obtain the text to be identified, as well as the first target event mention and the second target event mention in the text to be identified;
[0045] Event boundary markers are inserted on both sides of the first target event mention and the second target event mention, and the marked text to be identified is concatenated with the unified task instruction to form the event pair model input;
[0046] The event pair model is input into a multilingual event causal relationship recognition model, which includes a large language model with frozen original model parameters, a shared low-rank adaptation module trained by training samples from multiple languages, an event span interaction representation module, and a relationship classifier.
[0047] The event boundary markers are used to determine the lexical spans corresponding to the two target event mentions. The two lexical spans are pooled respectively, and an event pair interaction representation is constructed based on the obtained first event span representation and second event span representation.
[0048] The event pair interaction representation is input into the relationship classifier to obtain the predicted probability of each causal relationship category, and the causal relationship identification result between the two target event mentions is output based on the predicted probability.
[0049] This invention also provides a multilingual event causal relationship recognition system based on shared low-rank adaptation and event span interaction representation, comprising:
[0050] The input building module is used to obtain text and target event pairs in different languages, insert event boundary markers on both sides of the two target event mentions, and build a unified task input;
[0051] The shared low-rank adaptive coding module is used to input the unified task input of different languages into the same large language model whose original model parameters are frozen, and obtain the hidden state through the shared low-rank adaptive parameters obtained by training samples of multiple languages.
[0052] The event span interaction module is used to determine the lexical span corresponding to two target event mentions based on event boundary markers, pool the two lexical spans, and construct an event pair interaction representation;
[0053] The relationship classification and output module is used to obtain the predicted probability of the causal relationship category based on the event pair interaction representation, and output the event causal relationship identification result;
[0054] The imbalance-aware training module is used to sample positive causal samples with replacement and update the shared low-rank fitting parameters and relation classifier parameters according to the class imbalance-aware loss.
[0055] The present invention also provides a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, it implements the steps of the multilingual event causal relationship identification method based on shared low-rank adaptation and event span interaction representation.
[0056] The beneficial effects of this invention are:
[0057] 1. Event pairs from different languages jointly update the same set of low-rank adaptation parameters, enabling causal supervision in relatively high-resource languages to support low-resource languages through a unified adaptation space, and ensuring that the size of low-rank adaptation parameters does not grow linearly with the number of languages.
[0058] 2. The original parameters of the large language model are kept frozen, and only the low-rank matrix and relation classifier are trained, which can reduce the number of trainable parameters, training memory requirements and model storage overhead.
[0059] 3. By using event boundary markers to locate target event mentions and pooling the complete event span, information about multi-word event mentions can be preserved; by using ordered concatenation, absolute difference, and element-wise multiplication, the semantics of individual events, event differences, and interactions between events can be further characterized.
[0060] 4. Positive causal samples with replacement sampling and focus loss can respectively increase the training frequency of scarce positive causal samples and the optimization weight of difficult samples, thereby alleviating class distribution imbalance.
[0061] 5. By adjusting the output categories of the relationship classifier, this invention can be used to determine whether a causal relationship exists, and can also be extended to the directional identification of cause pointing to effect, effect pointing to cause, and non-causal relationship. Attached Figure Description
[0062] Figure 1 This is a flowchart of the overall process for identifying multilingual event causal relationships based on shared low-rank adaptation and event span interaction representation of the present invention.
[0063] Figure 2 This is a schematic diagram of the module structure of the multilingual event causality recognition system of the present invention;
[0064] Figure 3 This invention provides a flowchart for hybrid multilingual imbalanced perception training.
[0065] Figure 4 The present invention provides a flowchart for reasoning about event pairs to be identified. Detailed Implementation
[0066] The present invention will be further described below with reference to the accompanying drawings and embodiments. The following embodiments are used to illustrate the technical solutions of the present invention, and are not intended to limit the scope of protection of the present invention. Those skilled in the art can make equivalent substitutions for the large language model type, low-rank adaptation injection position, pooling method, classifier structure and training parameters without departing from the concept of the present invention.
[0067] The large language model described in this invention refers to a large-scale neural network language model that has been pre-trained on a large-scale corpus and is capable of generating contextual hidden states based on input word sequences. This large language model can accept text input in different languages, but this invention does not require that the large language model be pre-divided, named, or specifically constructed as a multilingual large language model. In this invention, event pairs in different languages use the same large language model as the base model and are jointly trained using the same set of shared low-rank adaptation parameters.
[0068] In specific implementations, the large language model can be LLaMA-3.1-8B-Instruct, Qwen2.5-7B-Instruct, or other large language models capable of outputting word-level contextual hidden states and supporting the setting of low-rank adaptation modules in their linear transformation layers. This invention does not limit the specific name, parameter scale, or source of the pre-training corpus of the large language model.
[0069] Example 1: A training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation:
[0070] S1. Constructing mixed multilingual event pair training data; including: obtaining event causal relationship identification samples in multiple languages, each event causal relationship identification sample including text context, a first target event mention in the text context, a second target event mention and a corresponding causal relationship label, and combining the event causal relationship identification samples in multiple languages into a mixed multilingual training dataset;
[0071] Specifically, for language sets any language in Obtain a sample set containing text context, mentions of two target events, and causal relationship labels:
[0072]
[0073] The sample sets of each language are merged to obtain a mixed multilingual training set:
[0074]
[0075] In identifying the existence of causal relationships, both the cause-to-effect label and the result-to-cause label can be mapped to the positive causal category, while the unrelated label can be mapped to the non-causal category. In identifying directionality, three categories are retained: cause-to-effect, result-to-cause, and unrelated.
[0076] S2. Insert event boundary markers and construct a unified task input. This includes: inserting event boundary markers on both sides of the first target event mention and the second target event mention, and concatenating the text context after inserting the event boundary markers with the unified task instruction to obtain the event pair model input;
[0077] Specifically, based on the character-level offsets of the two target event mentions within their respective sentences, a first start boundary marker and a first end boundary marker are inserted on both sides of the first target event mention, and a second start boundary marker and a second end boundary marker are inserted on both sides of the second target event mention. The boundary markers can be represented as follows: <e1> 、< / e1> , <e2> and< / e2>When two event references are located in the same sentence, boundary markers are inserted according to their original character offset order to maintain their relative order.
[0078] Marked text context Input Instructions Relationship determination instructions By concatenating the data, a unified task input is obtained:
[0079]
[0080] One input template is as follows: Place text context containing boundary markers in the "Document" field, and in the "Task" field, ask the model to determine whether a causal relationship exists between event mentions defined by the first and second sets of boundary markers. Different languages use the same boundary marker format and the same relationship determination objective.
[0081] The marked input is segmented into words, and the position of the boundary marker in the word sequence is determined based on the correspondence between character-level offsets and word-level positions. The word sequence located between the first start boundary marker and the first end boundary marker is formed. The word group located between the second start boundary marker and the second end boundary marker This allows for the unique identification of the target event mention when the same trigger word appears multiple times.
[0082] S3. Encoding is performed using a frozen large language model and a shared low-rank adaptation module. This includes: inputting the event pair model inputs from different languages into the same large language model, keeping the original model parameters of the large language model frozen, and setting a low-rank adaptation module in at least one linear transformation layer of the large language model, wherein event causal relationship identification samples from different languages jointly update the same set of low-rank adaptation parameters;
[0083] Specifically, this includes assuming the original parameters of the large language model are... Shared low-rank adaptation parameters are By feeding the unified task input from different languages into the same large language model, the final hidden state is obtained:
[0084]
[0085] Event pairs from different languages are used to train the same low-rank fitting parameter set.
[0086]
[0087] Freezing linear transformation matrices in large language models The matrix after low-rank fitting is:
[0088]
[0089] in, To freeze the linear transformation matrix, To incorporate the linear transformation matrix after low-rank fitting, and For trainable low-rank matrices, Let be the rank value of the low-rank matrix. It is a low-rank scaling factor;
[0090] For any language Its low-rank adaptation parameters satisfy This is to enable event causal relationship identification samples from different languages to jointly train the same low-rank adaptation parameter set;
[0091] because The number of parameters required for updating is significantly less than that for full-parameter fine-tuning. The low-rank adaptation module can be set on the attention query projection matrix and attention numerical projection matrix of a large language model, or on other linear transformation matrices. It maintains [the following information] during training. Freeze, update only Relationship classifier parameters .
[0092] S4. Extract event span representation and construct event pair interaction representation. This includes: obtaining the hidden state output by the large language model, determining the lexical span corresponding to the first target event mention and the second target event mention based on the event boundary markers, and pooling the two lexical spans to obtain the first event span representation and the second event span representation;
[0093] Specifically, let the lexical index sets corresponding to the first target event mention and the second target event mention be respectively... and The corresponding hidden states are averaged to obtain the first event span representation. Second event span representation ;
[0094] Average pooling is performed on the hidden states in the corresponding lexical spans of the two target events:
[0095]
[0096] Following the order of mentioning the first target event first and the second target event later, the two span representations, their element-wise absolute differences, and their element-wise products are concatenated to form the event pair interaction representation:
[0097]
[0098] The first two ordered components retain the individual semantic and order information mentioned by the two events; the absolute difference component highlights the differences between the event representations; and the element-wise multiplicative component characterizes the interaction between the two event representations on the same hidden dimension. These ordered components enable the representation to support directional causal relationship recognition in addition to relation existence recognition.
[0099] S5. Calculate the causal relationship prediction result. This includes: constructing an event pair interaction representation based on the first event span representation and the second event span representation; inputting the event pair interaction representation into a relationship classifier to obtain the prediction result of the corresponding causal relationship category;
[0100] The relation classifier includes a linear projection layer, a non-linear activation layer, and at least one fully connected classification layer;
[0101] The causal relationship label includes categories of causal relationship existence and non-causal relationship, or categories of cause pointing to result, result pointing to cause, and non-causal relationship.
[0102] In the identification of directional causal relationships, the first event span representation and the second event span representation are sequentially concatenated according to the order of the target events to preserve the order information between the mentions of the first target event and the mentions of the second target event.
[0103] Specifically, using a linear projection layer to Dimensional events are mapped to interactive representations as follows 3D projection representation:
[0104]
[0105] By projecting the input to a relation classifier that includes at least one non-linear activation layer and a fully connected layer, a classification log-odds vector is obtained:
[0106]
[0107] Under the binary classification relationship existence setting, the probability of the positive causal category is:
[0108]
[0109] when The classifier outputs the category where a causal relationship exists; otherwise, it outputs the category where a non-causal relationship exists. Under a three-class directional setting, the classifier outputs the probabilities of three categories: cause pointing to effect, effect pointing to cause, and non-causal relationship, and selects the category with the highest probability as the output result.
[0110] S6. Perform imbalance-aware training. This includes: using a confidence-aware graph neural network that distinguishes between intra-sentence edges and inter-sentence edges to perform message passing based on the completed and confidence-corrected event graph, in order to update the graph representation of each event mention;
[0111] The training loss is calculated based on the prediction results and the causal relationship labels. The original model parameters of the large language model remain unchanged. The parameters of the same set of low-rank adaptation parameters and the parameters of the relation classifier are updated based on the training loss to obtain a multilingual event causal relationship recognition model.
[0112] Among them, the mixed multilingual training set is divided into a positive causal sample set. Non-causal sample set According to the positive class sampling coefficient from The training process involves sampling with replacement, ensuring that the number of positive causal samples in each training round is a preset number that is not less than the number of original positive causal samples. The sampled positive causal samples are then merged and shuffled with the non-causal samples to form training batches.
[0113] For the For each binary classification sample, the true class probability and class weight are as follows:
[0114]
[0115]
[0116] Training batch The category-weighted focus loss is:
[0117]
[0118] in, This is used to reduce the contribution of correctly classified and highly confident samples to the loss, making the training focus more on difficult samples. Used to adjust the relative weights of positive causal categories and non-causal categories.
[0119] The final optimization goal is:
[0120]
[0121] After training is completed, the model parameters are selected and saved based on the relation classification index on the validation set to obtain a multilingual event causal relationship recognition model based on a large language model.
[0122] Example 2: Multilingual Event Causal Relationship Identification and Reasoning Method
[0123] like Figure 4As shown, for the text to be recognized, the character positions of the first and second target event mentions are first obtained, event boundary markers are inserted on both sides, and the event pair model input is constructed according to the same unified template as in the training phase. Subsequently, the event pair model input is fed into the large language model with frozen original parameters and the trained shared low-rank adaptation module to obtain the contextual hidden state; the lexical span of the two event mentions is pooled and the event pair interaction representation is constructed; finally, the causal relationship category probability is obtained through a relation classifier.
[0124] In a binary classification task identifying the existence of a causal relationship, the system outputs either a causal relationship category or a non-causal relationship category based on a preset threshold. In a three-class classification task identifying a directional relationship, the system outputs a cause-result category, a result-result category, or a non-causal relationship category. This is due to the nature of event-pair interaction representations. and By concatenating the target events in an orderly manner, the system retains both the symmetrical difference and product features, as well as the order information used to distinguish between the two causal directions.
[0125] Example 3: A method for identifying causal relationships in multilingual events based on shared low-rank adaptation and event span interaction representation, the method comprising:
[0126] Obtain the text to be identified, as well as the first target event mention and the second target event mention in the text to be identified;
[0127] Event boundary markers are inserted on both sides of the first target event mention and the second target event mention, and the marked text to be identified is concatenated with the unified task instruction to form the event pair model input;
[0128] The event pair model is input into a multilingual event causal relationship recognition model, which includes a large language model with frozen original model parameters, a shared low-rank adaptation module trained by training samples from multiple languages, an event span interaction representation module, and a relationship classifier.
[0129] The event boundary markers are used to determine the lexical spans corresponding to the two target event mentions. The two lexical spans are pooled respectively, and an event pair interaction representation is constructed based on the obtained first event span representation and second event span representation.
[0130] The event pair interaction representation is input into the relationship classifier to obtain the predicted probability of each causal relationship category, and the causal relationship identification result between the two target event mentions is output based on the predicted probability.
[0131] Example 4: A multilingual event causal relationship recognition system based on shared low-rank adaptation and event span interaction representation:
[0132] like Figure 2 As shown, the system includes an input construction module, a shared low-rank adaptive encoding module, an event span interaction module, a relationship classification and output module, and an imbalance-aware training module.
[0133] The input construction module is used to read text in different languages, the location of the target event mention, and relational tags, insert event boundary markers on both sides of the two target event mentions, and generate a unified task input.
[0134] The shared low-rank adaptive coding module is used to feed the unified task input of different languages into the same large language model with the original model parameters frozen, and to generate the context hidden state using the shared low-rank adaptive parameters trained by training samples of different languages.
[0135] The event span interaction module is used to locate the lexical span corresponding to two target event mentions based on event boundary markers, perform average pooling on the lexical span, and construct an event pair interaction representation that includes ordered concatenation, absolute difference, and element-wise product.
[0136] The relationship classification and output module is used to map the event pair interaction representation to the predicted probability of each relationship category, and output the causal relationship existence label or the directional causal relationship label.
[0137] The imbalance-aware training module is used to perform positive causal sample sampling with replacement, focus loss calculation, gradient backpropagation, and shared low-rank adaptation parameters and relation classifier parameter updates.
[0138] The system can be deployed on servers, workstations, or other computer devices with processors and memory, and the output results can be provided to event knowledge graph construction systems, event prediction systems, question answering systems, or multilingual text analysis systems.
[0139] Example 5: Specific training parameters example:
[0140] In one specific implementation, LLaMA-3.1-8B-Instruct is used as the backbone of the large language model, loaded with 4-bit quantization and its original parameters frozen; the low-rank adaptation module is set in the attention query projection matrix and attention numerical projection matrix of the 32 Transformer layers, and the rank of the low-rank matrix is... Set to 16, low-rank scaling factor Set to 32, and the low-rank adaptation drop rate is set to 0.05.
[0141] The relation classifier uses a two-layer feedforward network and the GELU activation function; the optimizer uses AdamW with a learning rate set to... The weight decay factor is set to 0.01, the batch size per device is set to 2, the gradient accumulation steps are set to 8, the effective batch size is 16, the number of training epochs is set to 3, and the maximum norm of gradient clipping is set to 0.5. The focus loss factor is... Set to 2.0, positive causal category weight Set to 0.75, positive class sampling coefficient Set to 3.0. The above parameters are merely embodiments and do not constitute a limitation on the scope of the claims.
[0142] In another specific implementation, the large language model backbone is replaced with Qwen2.5-7B-Instruct, and its corresponding tokenizer is used. The input construction method, the method of sharing low-rank adaptation parameters for joint training of different languages, the event span interaction representation method, and the imbalance-aware training method remain unchanged. This embodiment illustrates that the present invention does not rely on a single large language model backbone.
[0143] Example 6: This example is the same as Example 1. To illustrate the effects of this invention, the following experiments were conducted, including:
[0144] Experiments were conducted on the document-level multilingual event causality dataset MECI. This dataset includes English, Danish, Spanish, Turkish, and Urdu, and exhibits significant differences in language size and class imbalance. Experiments were evaluated using precision, recall, and F1 score for positive causal categories, and the average F1 score for the five languages was calculated.
[0145] As shown in Table 1, among the listed comparison methods, the embodiments of the present invention achieved the highest F1 scores in all five languages, with an average F1 score of 64.3, which is 7.0 percentage points higher than the listed DiffusECI results. This indicates that the shared low-rank adaptation based on the large language model and the event span interaction representation can form an effective cross-language task adaptation under the condition of uneven language resources.
[0146] Table 1. F1 results of different methods on the MECI dataset (unit: %)
[0147]
[0148] Table 2 shows that the average F1 score of shared low-rank adaptation is higher than that of independent low-rank adaptation in each language. This indicates that the performance improvement comes not only from setting a low-rank adaptation module in the large language model, but also from the event pair samples of different languages jointly updating the same set of task adaptation parameters.
[0149] Table 2. F1 results for different large language model adaptation methods (unit: %)
[0150]
[0151] Table 3 shows that sampling with replacement for positive causal samples and focus loss both have a positive effect on model performance. At the same time, removing both reduces the average F1 score to 57.9, indicating that increasing the training frequency of positive causal samples and strengthening the optimization of difficult samples have a complementary effect.
[0152] Table 3 Ablation results of the imbalance-aware training component (unit: %)
[0153]
[0154] Table 4 shows that, under the condition that only 20% of the training documents in each target language are used, the average F1 score of shared low-rank adaptation is increased from 31.2 to 43.4 compared to independent low-rank adaptation in each language. This indicates that causal supervision in other languages can support low-resource target languages through shared low-rank adaptation parameters.
[0155] Table 4. Low-resource results when only 20% of the training documents are used for the target language (in %)
[0156]
[0157] Table 5 shows that shared low-rank adaptation improves the similarity of similar event pair representations in different languages, while reducing the similarity between causal and non-causal classes. The inter-class separation degree increases from 0.050 to 0.182, indicating that event pair representations in different languages tend to be organized according to task relationship categories rather than simply clustered according to surface language features.
[0158] Table 5. Cross-linguistic category center similarity analysis
[0159]
[0160] Table 6 shows that, while maintaining the input construction, shared low-rank adaptation, event span interaction representation, and optimization method, and only replacing the binary classification head with a ternary classification head, this invention can perform directional causal relationship identification. The average F1 score for the directional task is 49.7, which is lower than that for the relation existence task, indicating that the directional task still needs to further distinguish the event order and causal expressions in different languages.
[0161] Table 6. Results of Directional Causality Identification (Unit: %)
[0162]
[0163] Table 7 shows that, by only replacing the backbone of the large language model and its corresponding word segmenter while keeping the other technical solutions unchanged, the present invention can still achieve stable multilingual event causal relationship recognition results, indicating that the present invention does not depend on a single large language model backbone.
[0164] Table 7. F1 results of different large language model backbones (unit: %)
[0165]
[0166] The boundary marker format, large language model type, low-rank adaptation injection layer, pooling function, event pair interaction features, number of classifier layers, number of relation categories, sampling coefficients, and loss parameters in the above embodiments can all be adjusted according to the application scenario. As long as the training samples of different languages use the same large language model and are trained together with the same set of low-rank adaptation parameters, and the event pair relation representation is constructed based on the lexical span of the target event mentions, the technical objective of this invention can be achieved.
[0167] The above description is merely a preferred embodiment of the present invention. Any equivalent substitutions or transformations made by those skilled in the art to the input template, large language model backbone, low-rank matrix rank, pooling method, interactive representation, and training parameters without departing from the principles and scope of the claims should fall within the protection scope of the present invention.
Claims
1. A training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation, characterized in that, The method includes the following steps: S1. Obtain event causal relationship identification samples in multiple languages. Each event causal relationship identification sample includes a text context, a first target event mention in the text context, a second target event mention, and a corresponding causal relationship label. Combine the event causal relationship identification samples from multiple languages into a mixed multilingual training dataset. S2. Insert event boundary markers on both sides of the first target event mention and the second target event mention, and concatenate the text context after inserting the event boundary markers with the unified task instruction to obtain the event pair model input; S3. Input the event pair model inputs from different languages into the same large language model, keep the original model parameters of the large language model frozen, and set a low-rank adaptation module in at least one linear transformation layer of the large language model, wherein the event causal relationship recognition samples from different languages jointly update the same set of low-rank adaptation parameters. S4. Obtain the hidden state output by the large language model, determine the lexical span corresponding to the first target event mention and the second target event mention according to the event boundary marker, and perform pooling on the two lexical spans to obtain the first event span representation and the second event span representation. S5. Construct an event pair interaction representation based on the first event span representation and the second event span representation, and input the event pair interaction representation into a relation classifier to obtain the prediction result of the corresponding causal relationship category; S6. Based on the event graph after completion and confidence correction, a confidence-aware graph neural network that distinguishes between intra-sentence edges and inter-sentence edges is used for message passing to update the graph representation of each event mention. S7. Calculate the training loss based on the prediction results and the causal relationship labels, keep the original model parameters of the large language model unchanged, and update the same set of low-rank adaptation parameters and the parameters of the relation classifier based on the training loss to obtain a multilingual event causal relationship recognition model.
2. The training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation as described in claim 1, characterized in that, Step S2 includes: Based on the character positions of the first target event mention and the second target event mention in the text context, a first start boundary marker and a first end boundary marker are inserted before and after the first target event mention, respectively; and a second start boundary marker and a second end boundary marker are inserted before and after the second target event mention, respectively. When two target events are mentioned in the same sentence, their relative order in the post-tagged text context is maintained based on their character positions. The marked text context, input description, and relationship determination instructions pointing to the two target events are concatenated according to a unified template; The term span is a set of indices of one or more terms located between the corresponding start boundary marker and end boundary marker after the text context has been segmented.
3. The training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation as described in claim 1, characterized in that, The low-rank adaptation module updates the frozen linear transformation matrix in accordance with the following conditions: ; in, To freeze the linear transformation matrix, To incorporate the linear transformation matrix after low-rank fitting, and For trainable low-rank matrices, Let be the rank value of the low-rank matrix. It is a low-rank scaling factor; For any language Its low-rank adaptation parameters satisfy This is to enable event causal relationship identification samples from different languages to jointly train the same low-rank adaptation parameter set; The low-rank adaptation module is set in at least one of the attention query projection matrix and the attention numerical projection matrix of the large language model.
4. The training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation as described in claim 1, characterized in that, Steps S4 and S5 include: Let the sets of lexical indices corresponding to the first target event mention and the second target event mention be respectively. and The corresponding hidden states are averaged to obtain the first event span representation. Second event span representation ; Following the order of the first event span first, followed by the second event span, , The element-wise absolute difference and element-wise product of the two are concatenated to obtain the event pair interaction representation: 。 5. The training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation according to claim 1, characterized in that, The relation classifier includes a linear projection layer, a non-linear activation layer, and at least one fully connected classification layer; The causal relationship label includes categories of causal relationship existence and non-causal relationship, or categories of cause pointing to result, result pointing to cause, and non-causal relationship. In the identification of directional causal relationships, the first event span representation and the second event span representation are sequentially concatenated according to the order of the target events to preserve the order information between the mentions of the first target event and the mentions of the second target event.
6. The training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation as described in claim 1, characterized in that, The training loss includes class-weighted focus loss; For the A sample, let Predicting probabilities for positive causal categories. True label, true category probability and category weight They are respectively: ; ; Training batch The focal loss is: ; in, For positive causal category weights, For focusing coefficient, is the numerical stability constant.
7. The training method for a multilingual event causal relationship recognition model based on shared low-rank adaptation and event span interaction representation as described in claim 1, characterized in that, The hybrid multilingual training dataset is divided into a positive causal sample set and a non-causal sample set. The positive causal sample set is sampled with replacement according to a preset positive class sampling coefficient, so that the number of samplings of positive causal samples in a training round is greater than or equal to the number of original samples. The sampled positive causal samples are then mixed with non-causal samples to form a training batch.
8. A method for identifying causal relationships in multilingual events based on shared low-rank adaptation and event span interaction representation, characterized in that, The method includes: Obtain the text to be identified, as well as the first target event mention and the second target event mention in the text to be identified; Event boundary markers are inserted on both sides of the first target event mention and the second target event mention, and the marked text to be identified is concatenated with the unified task instruction to form the event pair model input; The event pair model is input into a multilingual event causal relationship recognition model, which includes a large language model with frozen original model parameters, a shared low-rank adaptation module trained by training samples from multiple languages, an event span interaction representation module, and a relationship classifier. The event boundary markers are used to determine the lexical spans corresponding to the two target event mentions. The two lexical spans are pooled respectively, and an event pair interaction representation is constructed based on the obtained first event span representation and second event span representation. The event pair interaction representation is input into the relationship classifier to obtain the predicted probability of each causal relationship category, and the causal relationship identification result between the two target event mentions is output based on the predicted probability.
9. A multilingual event causal relationship recognition system based on shared low-rank adaptation and event span interactive representation, characterized in that, include: The input building module is used to obtain text and target event pairs in different languages, insert event boundary markers on both sides of the two target event mentions, and build a unified task input; The shared low-rank adaptive coding module is used to input the unified task input of different languages into the same large language model whose original model parameters are frozen, and obtain the hidden state through the shared low-rank adaptive parameters obtained by training samples of multiple languages. The event span interaction module is used to determine the lexical span corresponding to two target event mentions based on event boundary markers, pool the two lexical spans, and construct an event pair interaction representation; The relationship classification and output module is used to obtain the predicted probability of the causal relationship category based on the event pair interaction representation, and output the event causal relationship identification result; The imbalance-aware training module is used to sample positive causal samples with replacement and update the shared low-rank fitting parameters and relation classifier parameters according to the class imbalance-aware loss.
10. A computer device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the computer program, it implements the steps of the multilingual event causal relationship identification method based on shared low-rank adaptation and event span interactive representation as described in any one of claims 1 to 8.
