A method for recommending conflict and dispute plans based on a large model
Convert conflict and dispute mediation plan data into high-dimensional vectors through large models, match user issues, and generate mediation plans. This solves the problems of low efficiency and limited accuracy of traditional mediation methods, and achieves efficient and scientific conflict and dispute mediation.
Patent Information
- Application Number
- CN202411029470.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-07-30
AI Technical Summary
Traditional conflict and dispute mediation methods rely on manual experience, are low in efficiency, high in cost, limited in accuracy, difficult to adapt to complex and diverse types of conflict and disputes, and lack flexibility and scalability.
Adopt a conflict and dispute plan recommendation method based on a large model, convert the conflict and dispute mediation plan data into a high-dimensional text vector through the BERT model, build a conflict and dispute mediation plan vector database, and use cosine similarity to match user input questions to generate targeted conflict and disputes Mediation plan.
It improves the efficiency and success rate of conflict and dispute mediation, reduces mediation time and labor costs, provides scientific and reasonable mediation plans, enhances mediation satisfaction, and can adapt to changes in different types of conflicts and disputes.
Smart Images

Figure CN118551033B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of conflicts and disputes, and in particular to a conflict and dispute plan recommendation method based on a large model. Background Art
[0002] With the development of society, the mediation of conflicts and disputes has become increasingly complex and diverse. Traditional conflict and dispute mediation methods mainly rely on manual experience, and have problems such as low efficiency, high cost, and limited accuracy. In recent years, artificial intelligence technology has made significant progress in the fields of natural language processing and knowledge graph construction, providing new technical means for conflict and dispute mediation.
[0003] The existing conflict and dispute mediation methods mainly have the following problems:
[0004] 1. Reliance on human experience: Traditional conflict and dispute mediation methods mainly rely on the personal experience and subjective judgment of mediators, lack objective and quantitative evaluation standards, and are easily affected by personal subjective factors.
[0005] 2. Difficulties in knowledge management: Conflict and dispute mediation involves a large amount of knowledge and experience. Traditional knowledge management methods find it difficult to effectively organize, store and retrieve this knowledge, resulting in inefficient knowledge utilization.
[0006] 3. Low processing efficiency: Traditional conflict and dispute mediation methods require a lot of manpower and time to handle, with a long processing cycle and low efficiency.
[0007] 4. Lack of adaptability: Traditional conflict and dispute mediation methods are difficult to adapt to the ever-changing types of conflicts and disputes and mediation needs, and lack flexibility and scalability. Summary of the invention
[0008] One purpose of the present invention is to propose a method for recommending conflict and dispute plans based on a large model, which provides powerful plan support for the mediation of conflict and dispute events.
[0009] A method for recommending conflict and dispute plans based on a large model according to an embodiment of the present invention includes the following steps:
[0010] S1. Obtain conflict and dispute mediation plan dataset;
[0011] S2. Clean the collected conflict and dispute mediation plan data set to form a conflict and dispute mediation plan knowledge block;
[0012] S3. Use the BERT model to convert the conflict and dispute mediation plan knowledge block from text format into a high-dimensional text vector, store the high-dimensional text vector in the Faiss database, and build a conflict and dispute mediation plan vector database;
[0013] S4. Convert the conflict and dispute mediation plan dataset after data cleaning into the form of (q, a) pairs, and construct a conflict and dispute question-answering dataset. The conflict and dispute mediation plan dataset is constructed into question-answering pairs for specific tasks, where q represents the description of the task and a represents the answer to the question.
[0014] S5. For the conflict and dispute problem input by the user, the trained BERT model is used to identify the conflict and dispute event type to which the conflict and dispute problem belongs. According to the identified conflict and dispute event type, the knowledge set of the corresponding event type is matched from the conflict and dispute mediation plan vector database. The BERT model is used to convert the question text input by the user into a vector form, and the cosine similarity method is used to compare it with the conflict and dispute mediation plan knowledge block in the knowledge set to calculate the similarity, and the five conflict and dispute mediation plan knowledge blocks with the highest similarity are selected as the prior knowledge of the conflict and dispute mediation plan;
[0015] S6. After obtaining the prior knowledge corresponding to the input conflict and dispute problem, the input text is concatenated with the prior knowledge to form a complete prompt word sequence, and the prompt word sequence is sent to the fine-tuned BERT model. The BERT model analyzes the prompt word sequence, deeply understands the input problem and prior knowledge, and outputs a suitable conflict and dispute mediation plan;
[0016] S7. Use the conflict and dispute mediation plan output by the BERT model as the input conflict and dispute problem handling plan.
[0017] Optionally, the data cleaning specifically includes classifying the conflict and dispute mediation plans in the conflict and dispute mediation plan data set according to event type, classifying each conflict and dispute mediation plan into a corresponding category, and further subdividing the content of each type of conflict and dispute mediation plan into different titles for quick retrieval and positioning. Under each title, the conflict and dispute mediation plan content is divided into multiple paragraphs, and each paragraph represents a specific conflict and dispute mediation plan knowledge block.
[0018] Optionally, the S3 specifically includes:
[0019] S31. Use the vocabulary of the BERT model to perform word segmentation on the input knowledge block of the conflict and dispute mediation plan, so that each word is recognized and encoded in the BERT model;
[0020] S32. Convert the word segmentation result into the form of word embedding matrix. The process to the word embedding matrix:
[0021] ;
[0022] in, represents the word embedding matrix, Represents word embedding information, Indicates text segments, n represents the length of the text segment;
[0023] S33. Use the position embedding matrix to represent the position of each word in the sentence, so as to express the composition of the word in the sentence, and use the position embedding to express semantic information:
[0024] ;
[0025] in, represents the position embedding matrix, Represents positional encoding, which is used to represent the position information of a word. Indicates location embedded information;
[0026] S34. In order to distinguish the sentences to which the words belong in the text segment, sentence embedding is used to indicate which sentence the word belongs to:
[0027] ;
[0028] in, represents the sentence embedding matrix, Indicates the sentence code, which is used to indicate which sentence the word belongs to. Represents sentence embedding information;
[0029] S35. Concatenate word embedding information, position embedding information, and sentence embedding information as the input of the BERT model:
[0030] ;
[0031] in, Represents the concatenation of word embedding information, position embedding information, and sentence embedding information;
[0032] S36. Input the concatenated information into the Transformer layer in the BERT model, and use the Transformer to convert the concatenated information into the final vector representation:
[0033] ;
[0034] in, Represents the Transformer module in the BERT model, L represents the number of layers of the Transformer module, Represents the final text vector.
[0035] Optionally, the question-answer pair includes a general dialogue task, a named entity recognition task, a conflict type recognition task, an event recognition task, and a conflict domain knowledge dialogue task.
[0036] Optionally, S4 also includes fine-tuning the BERT model using the LoRA method, implicitly low-rank conversion of the weight matrix of the BERT model, keeping the original BERT model unchanged, adding a bypass structure next to the BERT model, and simulating the parameter update amount through low-rank decomposition. The structure consists of two parts: a dimension-increasing matrix A and a dimension-reducing matrix B:
[0037] ;
[0038] in, represents the pre-trained matrix, d and k represent the dimensions of the matrix, and the rank , R is a set of real numbers;
[0039] During the training process, the original BERT model remains unchanged, and only the reduced-dimensionality matrix B and the increased-dimensionality matrix A are trained, while the input and output dimensions of the BERT model remain unchanged. In the initialization phase of training, the increased-dimensionality matrix A is initialized with a random Gaussian distribution, while the reduced-dimensionality matrix B is initialized to an all-zero matrix, ensuring that the bypass matrix is still a zero matrix at the beginning of training. In the inference phase, the trained increased-dimensionality matrix A and reduced-dimensionality matrix B are superimposed with the parameters of the original BERT model without introducing any additional inference delay.
[0040] Optionally, the similarity calculation process:
[0041] ;
[0042] in, A vector representing the input text, Represents the knowledge block vector of the conflict and dispute mediation plan in the knowledge set.
[0043] Optionally, the BERT model performs semantic analysis on the input text to identify key information, which includes the type of conflict or dispute, the subjects involved, and the process of the event. The BERT model uses prior knowledge and combines the information in the input text to conduct a comprehensive analysis of the conflicts or disputes and output a suitable conflict or dispute mediation plan.
[0044] The beneficial effects of the present invention are:
[0045] The present invention builds a special local knowledge base for conflict and dispute plans, and uses a large model to conduct in-depth semantic analysis on the input conflict and dispute text, which can identify the specific types of conflicts and disputes and their development process, accurately match the extracted semantic information with the local knowledge base for plans, thereby retrieving relevant knowledge for plans for such disputes, combining local knowledge with comprehensive analysis of large models, and outputting targeted conflict and dispute mediation plans, providing strong plan support for the mediation of conflict and dispute events. BRIEF DESCRIPTION OF THE DRAWINGS
[0046] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0047] Figure 1 A flowchart of a method for recommending conflict and dispute plans based on a large model proposed by the present invention;
[0048] Figure 2 This is a flow chart for implementing a method for recommending conflict and dispute plans based on a large model proposed in the present invention. DETAILED DESCRIPTION
[0049] The present invention will now be described in further detail with reference to the accompanying drawings. These drawings are simplified schematic diagrams, which only illustrate the basic structure of the present invention in a schematic manner, and therefore only show the components related to the present invention.
[0050] refer to Figure 1-2 , a conflict and dispute plan recommendation method based on a large model, comprising the following steps:
[0051] S1. Obtain conflict and dispute mediation plan dataset;
[0052] S2. Clean the collected conflict and dispute mediation plan data set to form a conflict and dispute mediation plan knowledge block;
[0053] S3. Use the BERT model to convert the conflict and dispute mediation plan knowledge block from text format into a high-dimensional text vector, and store the high-dimensional text vector in the Faiss database to build a conflict and dispute mediation plan vector database. This process first involves using the BERT model's vocabulary to perform detailed word segmentation on the input conflict and dispute plan knowledge block to ensure that each word can be accurately identified and encoded in the model;
[0054] S4. Convert the conflict and dispute mediation plan dataset after data cleaning into the form of (q, a) pairs, and construct a conflict and dispute question-answering dataset. The conflict and dispute mediation plan dataset is constructed into question-answering pairs for specific tasks, where q represents the description of the task and a represents the answer to the question.
[0055] S5. For the conflict and dispute problem input by the user, the trained BERT model is used to identify the conflict and dispute event type to which the conflict and dispute problem belongs. According to the identified conflict and dispute event type, the knowledge set of the corresponding event type is matched from the conflict and dispute mediation plan vector database. The BERT model is used to convert the question text input by the user into a vector form, and the cosine similarity method is used to compare it with the conflict and dispute mediation plan knowledge block in the knowledge set to calculate the similarity, and the five conflict and dispute mediation plan knowledge blocks with the highest similarity are selected as the prior knowledge of the conflict and dispute mediation plan;
[0056] S6. After obtaining the prior knowledge corresponding to the input conflict and dispute problem, the input text is concatenated with the prior knowledge to form a complete prompt word sequence, and the prompt word sequence is sent to the fine-tuned BERT model. The BERT model analyzes the prompt word sequence, deeply understands the input problem and prior knowledge, and outputs a suitable conflict and dispute mediation plan;
[0057] S7. Use the conflict and dispute mediation plan output by the BERT model as the input conflict and dispute problem handling plan.
[0058] In this implementation, data cleaning specifically includes classifying the conflict and dispute mediation plans in the conflict and dispute mediation plan data set according to event type, classifying each conflict and dispute mediation plan into a corresponding category, and further subdividing the content of each type of conflict and dispute mediation plan into different titles for quick retrieval and positioning. Under each title, the conflict and dispute mediation plan content is divided into multiple paragraphs, and each paragraph represents a specific conflict and dispute mediation plan knowledge block.
[0059] In this implementation, S3 specifically includes:
[0060] S31. Use the vocabulary of the BERT model to perform word segmentation on the input knowledge block of the conflict and dispute mediation plan, so that each word is recognized and encoded in the BERT model;
[0061] S32. Convert the word segmentation result into the form of word embedding matrix. The process to the word embedding matrix:
[0062] ;
[0063] in, represents the word embedding matrix, Represents word embedding information, Indicates text segments, n represents the length of the text segment;
[0064] S33. Use the position embedding matrix to represent the position of each word in the sentence, so as to express the composition of the word in the sentence, and use the position embedding to express semantic information:
[0065] ;
[0066] in, represents the position embedding matrix, Represents positional encoding, which is used to represent the position information of a word. Indicates location embedded information;
[0067] S34. In order to distinguish the sentences to which the words belong in the text segment, sentence embedding is used to indicate which sentence the word belongs to:
[0068] ;
[0069] in, represents the sentence embedding matrix, Indicates the sentence code, which is used to indicate which sentence the word belongs to. Represents sentence embedding information;
[0070] S35. Concatenate word embedding information, position embedding information, and sentence embedding information as the input of the BERT model:
[0071] ;
[0072] in, Represents the concatenation of word embedding information, position embedding information, and sentence embedding information;
[0073] S36. Input the concatenated information into the Transformer layer in the BERT model, and use the Transformer to convert the concatenated information into the final vector representation:
[0074] ;
[0075] in, Represents the Transformer module in the BERT model, L represents the number of layers of the Transformer module, Represents the final text vector.
[0076] In this embodiment, the question-answer pair includes a general dialogue task, a named entity recognition task, a conflict type recognition task, an event recognition task, and a conflict domain knowledge dialogue task.
[0077] In this implementation, S4 also includes fine-tuning the BERT model using the LoRA method, which is a parameter-efficient adjustment technique. The core principle is to perform an implicit low-rank transformation on the weight matrix of the BERT model. Simply put, the BERT model usually only uses a portion of its parameters in a specific task, and these parameters dominate the model. Therefore, although the dimension of the parameter matrix is very high, its effect can be approximated by decomposing a low-dimensional matrix. This method is similar to concepts such as matrix eigenvectors and principal component analysis. It keeps the original BERT model unchanged, adds a bypass structure next to the BERT model, and simulates the parameter update amount through low-rank decomposition. The structure consists of two parts: the increased-dimensional matrix A and the reduced-dimensional matrix B:
[0078] ;
[0079] in, represents the pre-trained matrix, d and k represent the dimensions of the matrix, and the rank , R is a set of real numbers;
[0080] During the training process, the original BERT model remains unchanged, and only the reduced-dimensionality matrix B and the increased-dimensionality matrix A are trained, while the input and output dimensions of the BERT model remain unchanged. In the initialization phase of training, the increased-dimensionality matrix A is initialized with a random Gaussian distribution, while the reduced-dimensionality matrix B is initialized to an all-zero matrix, ensuring that the bypass matrix is still a zero matrix at the beginning of training. This setting ensures the stability and effectiveness of the training. In the inference phase, the trained increased-dimensionality matrix A and reduced-dimensionality matrix B are superimposed with the parameters of the original BERT model without introducing any additional inference delay.
[0081] In this implementation, the similarity calculation process is:
[0082] ;
[0083] in, A vector representing the input text, Represents the knowledge block vector of the conflict and dispute mediation plan in the knowledge set.
[0084] In this implementation, the BERT model performs semantic analysis on the input text to identify key information, including the type of conflict, the subjects involved, and the process of the event. The BERT model uses prior knowledge and combines the information in the input text to conduct a comprehensive analysis of the conflicts and outputs a suitable conflict and dispute mediation plan.
[0085] Embodiment 1:
[0086] In a judicial mediation center in a large city, mediators need to handle a large number of conflict and dispute cases every day. These cases involve various types of disputes, such as neighborhood disputes, contract disputes, traffic accidents, etc. Traditional conflict and dispute mediation methods mainly rely on the experience and subjective judgment of mediators, resulting in low mediation efficiency, high costs, and limited accuracy. In the context of increasingly complex social conflicts, mediators urgently need an efficient and intelligent conflict and dispute mediation plan recommendation method to improve work efficiency, reduce labor costs, and provide more accurate and scientific mediation plans.
[0087] In order to improve the efficiency of mediation, the Judicial Mediation Center decided to use the method of the present invention for testing. By building a knowledge base of conflict and dispute mediation plans and using a large model to identify labels and recall knowledge of conflict and dispute events, a conflict and dispute mediation plan is generated. The following is a specific example:
[0088] Conflict and Dispute Mediation Plan Dataset: First, the Mediation Center collected a large amount of conflict and dispute mediation plan data from online channels such as government websites, social media, and online legal service platforms. These data were cleaned, including removing invalid data, removing duplicate data, and integrating data from different data sources into a unified format, forming a high-quality conflict and dispute mediation plan data set. A neighborhood dispute mediation plan data set includes the following:
[0089] Incident type: Neighborhood noise dispute;
[0090] Plan title: Noise Complaint Mediation Plan;
[0091] Plan content:
[0092] The mediator communicates with the complainant and the respondent separately to understand the demands of both parties;
[0093] Propose suggestions for adjusting the noise source time or taking noise reduction measures
[0094] Coordinate the two parties to reach a written agreement to clarify the solution and responsibilities;
[0095] Conflict and Dispute Mediation Plan Vector Database: The BERT model is used to convert the above-mentioned conflict and dispute mediation plan knowledge blocks from text format into high-dimensional text vectors, and these high-dimensional text vectors are stored in the Faiss database to build a special conflict and dispute mediation plan vector database. The vector representation of the noise complaint mediation plan is as follows:
[0096] [0.1234, -0.2345, 0.3456, ..., 0.5678];
[0097] Conflict and Dispute Question and Answer Dataset: In order to enhance the model's semantic understanding ability in the specific field of conflicts and disputes, the Mediation Center converted the conflict and dispute mediation plan dataset into the form of (q, a) pairs and constructed a conflict and dispute question and answer dataset:
[0098] q: How to resolve neighborhood noise disputes?
[0099] a: The mediator communicates with the complainant and the respondent separately to understand the demands of both parties, proposes suggestions on adjusting the noise source time or taking noise reduction measures, coordinates the two parties to reach a written agreement, and clarifies the solution and responsibilities.
[0100] User-input conflict and dispute problem: A citizen came to the mediation center and complained that his neighbor often made noise late at night, which seriously affected his rest. The mediator entered this problem into the system:
[0101] “Neighbors make noise late at night, how do I solve this problem?”
[0102] The five most similar knowledge blocks of conflict and dispute mediation plans: The system uses the trained BERT model to identify that the problem belongs to the type of neighborhood noise dispute, and matches the knowledge set of the corresponding event type from the conflict and dispute mediation plan vector database, calculates the similarity, and selects the five most similar knowledge blocks of conflict and dispute mediation plans as prior knowledge. The following are the five most similar knowledge blocks:
[0103] 1. The mediator communicates with the complainant and the respondent respectively to understand the demands of both parties;
[0104] 2. Propose suggestions for adjusting the noise source time or taking noise reduction measures;
[0105] 3. Coordinate the two parties to reach a written agreement to clarify the solution and responsibilities;
[0106] 4. It is recommended that the complainant report the situation to the property management company and request assistance in resolving the issue;
[0107] 5. The mediator organizes community meetings to listen to the views of both parties and promote mutual understanding;
[0108] Conflict and dispute mediation plan: After obtaining the prior knowledge corresponding to the input question, the system concatenates the input text with the prior knowledge to form a complete prompt word sequence, and sends the prompt word sequence to the fine-tuned BERT model for analysis and understanding. In the end, the system generated the following conflict and dispute mediation plan:
[0109] To address the problem of neighbors making noise late at night, we recommend taking the following steps:
[0110] 1. The mediator communicates with the complainant and the respondent separately to understand the specific demands of both parties.
[0111] 2. Make suggestions for adjusting the time of day of noise sources, such as minimizing noise after 10 p.m.
[0112] 3. If adjusting the time does not solve the problem, noise reduction measures such as using sound insulation materials can be recommended.
[0113] 4. Coordinate the two parties to reach a written agreement, clarifying the specific solution and the responsibilities of both parties.
[0114] 5. If no consensus can be reached through mediation, the complainant is advised to report the situation to the property management company and request assistance in resolving the issue.
[0115] To verify the effectiveness of the method of the present invention, the Mediation Center conducted a three-month test and compared the method of the present invention with the traditional mediation method. The specific data are as follows:
[0116] Table 1 Specific data display table comparing the present invention with the traditional method
[0117]
[0118] It can be seen from the data in Table 1 above that the method of the present invention significantly improves the efficiency and success rate of conflict and dispute mediation, reduces mediation time and the workload of mediators, and improves mediation satisfaction. Specifically, after using the method of the present invention, the number of mediators decreased by 40%, the number of cases handled per month increased by 50%, the processing time of a single case was shortened by 60%, the mediation success rate increased by 20%, and the mediation satisfaction increased by 20%. These data fully demonstrate the remarkable effect of the method of the present invention in practical application.
[0119] Example 1 describes in detail the specific application scenarios of the method of the present invention in judicial mediation and the beneficial effects it brings, which solves the problems of low efficiency, high cost, and limited accuracy of traditional mediation methods, provides scientific and reasonable suggestions and strategies for conflict and dispute mediation, and significantly improves work efficiency and quality.
[0120] The present invention constructs a special knowledge base, converts the text of the conflict and dispute mediation plan into vector form and stores it in the Faiss database, which makes the management and retrieval of knowledge more efficient and convenient. The fine-tuned large model is used to identify the labels of the input conflict and dispute events, and the plan knowledge related to the identified labels and events is recalled from the Faiss database, ensuring the high correlation between the recalled knowledge and the input events.
[0121] The present invention improves the semantic understanding ability of the model in a specific field by fine-tuning a large model for the vertical field of conflicts and disputes, enabling it to better identify the characteristics and labels of conflict and dispute events. The present invention combines the recalled prior knowledge and the input events to generate conflict and dispute mediation plans, providing scientific and reasonable suggestions and strategies for actual mediation work.
[0122] The present invention realizes the automation process from knowledge base retrieval to plan generation, greatly improving the efficiency of conflict and dispute mediation and saving manpower and time costs. In addition, through the construction and sharing of knowledge bases, mediators in different fields can use the same knowledge base for collaboration, improving the efficiency and quality of cross-field cooperation. With the continuous addition of new data and continuous fine-tuning of the model, the knowledge base and model can continuously learn and adapt to new types of conflicts and disputes, maintaining their accuracy and effectiveness.
[0123] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.
Claims
1. A method for recommending conflict and dispute plans based on a large model, characterized in that: The steps include: S1. Obtain conflict and dispute mediation plan dataset; S2. Clean the collected conflict and dispute mediation plan data set to form a conflict and dispute mediation plan knowledge block; S3. Use the BERT model to convert the conflict and dispute mediation plan knowledge block from text format into a high-dimensional text vector, store the high-dimensional text vector in the Faiss database, and build a conflict and dispute mediation plan vector database; S4. Convert the conflict and dispute mediation plan knowledge block after data cleaning into In the form of pairs, we construct a conflict question-answering dataset. By constructing the conflict mediation plan dataset into question-answer pairs for specific tasks, q represents the description of the task, and a represents the answer to the question. S5. For the conflict and dispute problem input by the user, the trained BERT model is used to identify the conflict and dispute event type to which the conflict and dispute problem belongs. According to the identified conflict and dispute event type, the knowledge set of the corresponding event type is matched from the conflict and dispute mediation plan vector database. The BERT model is used to convert the question text input by the user into a vector form, and the cosine similarity method is used to compare it with the conflict and dispute mediation plan knowledge block in the knowledge set to calculate the similarity, and the five conflict and dispute mediation plan knowledge blocks with the highest similarity are selected as the prior knowledge of the conflict and dispute mediation plan; S6. After obtaining the prior knowledge corresponding to the input conflict and dispute problem, the input text is concatenated with the prior knowledge to form a complete prompt word sequence, and the prompt word sequence is sent to the fine-tuned BERT model. The BERT model analyzes the prompt word sequence, deeply understands the input problem and prior knowledge, and outputs a suitable conflict and dispute mediation plan; S7. Use the conflict and dispute mediation plan output by the BERT model as the input conflict and dispute problem handling plan; The data cleaning specifically includes classifying the conflict and dispute mediation plans in the conflict and dispute mediation plan data set according to event type, classifying each conflict and dispute mediation plan into a corresponding category, and further subdividing the content of each type of conflict and dispute mediation plan into different titles for rapid retrieval and positioning. Under each title, the conflict and dispute mediation plan content is divided into multiple paragraphs, and each paragraph represents a specific conflict and dispute mediation plan knowledge block.
2. According to the large model-based conflict and dispute plan recommendation method of claim 1, it is characterized in that: The S3 specifically includes: S31. Use the vocabulary of the BERT model to perform word segmentation on the input knowledge block of the conflict and dispute mediation plan, so that each word is recognized and encoded in the BERT model; S32. Convert the word segmentation result into the form of word embedding matrix. The process to the word embedding matrix: ; in, represents the word embedding matrix, Represents word embedding information, represents the i-th text segment, and n represents the length of the text segment; S33. Use the position embedding matrix to represent the position of each word in the sentence, so as to express the composition of the word in the sentence, and use the position embedding to express semantic information: ; in, represents the position embedding matrix, Represents positional encoding, which is used to represent the position information of a word. Indicates location embedded information; S34. In order to distinguish the sentences to which the words belong in the text segment, sentence embedding is used to indicate which sentence the word belongs to: ; in, represents the sentence embedding matrix, Indicates the sentence code, which is used to indicate which sentence the word belongs to. Represents sentence embedding information; S35. Concatenate word embedding information, position embedding information, and sentence embedding information as the input of the BERT model: ; Among them, H represents the concatenation of word embedding information, position embedding information, and sentence embedding information; S36. Input the concatenated information into the Transformer layer in the BERT model, and use the Transformer to convert the concatenated information into the final vector representation: ; Where Transformer(·) represents the Transformer module in the BERT model, L represents the number of layers of the Transformer module, Represents the final text vector.
3. The method for recommending conflict and dispute plans based on a large model according to claim 1, characterized in that: The question-answer pairs include a general dialogue task, a named entity recognition task, a conflict type recognition task, an event recognition task, and a conflict domain knowledge dialogue task.
4. The method for recommending conflict and dispute plans based on a large model according to claim 3 is characterized in that: The S4 also includes fine-tuning the BERT model using the LoRA method, implicitly low-rank conversion of the weight matrix of the BERT model, keeping the original BERT model unchanged, adding a bypass structure next to the BERT model, and simulating the parameter update amount through low-rank decomposition. The structure consists of two parts: the dimension increase matrix A and the dimension reduction matrix B composition: ; in, represents the pre-trained matrix, d and k represent the dimensions of the matrix, and the rank , R is a set of real numbers; During the training process, the original BERT model remains unchanged, and only the dimension reduction matrix B and the dimension increase matrix A are trained, while the input and output dimensions of the BERT model are kept unchanged. In the initialization phase of training, the dimension increase matrix A is initialized with a random Gaussian distribution, while the dimension reduction matrix B is initialized to an all-zero matrix to ensure that the bypass matrix is still a zero matrix at the beginning of training. In the inference phase, the trained dimension increase matrix A and dimension reduction matrix B are superimposed with the parameters of the original BERT model without introducing any additional inference delay.
5. The method for recommending conflict and dispute plans based on a large model according to claim 1, characterized in that: The similarity calculation process: ; in, A vector representing the input text, Represents the knowledge block vector of the conflict and dispute mediation plan in the knowledge set.
6. The method for recommending conflict and dispute plans based on a large model according to claim 1, characterized in that: The BERT model performs semantic analysis on the input text and identifies key information, including the type of conflict and dispute, the subjects involved, and the process of the event. The BERT model uses prior knowledge and combines the information of the input text to conduct a comprehensive analysis of the conflicts and disputes and output a suitable conflict and dispute mediation plan.
Citation Information
Patent Citations
Mapping knowledge domain construction method based on contradictory dispute data
CN118113884A
Intelligent legal question and answer method based on retrieval enhanced language model
CN118277538A
System and method for hybrid question answering over knowledge graph
US20220292262A1
