Method for constructing compliance risk control AI knowledge base field by using LLM
Through a large language model, multi-modal data source is processed, structured information elements are extracted and integrated, and the efficiency and accuracy of unstructured data processing is solved, data management and decision-making efficiency in the field of compliance risk control is improved, and information is ensured. safety and timeliness.
Patent Information
- Application Number
- CN202410757757.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-11-01
AI Technical Summary
The prior art is difficult to adapt to the diversity and complexity of data formats when processing unstructured data, resulting in inaccurate or incomplete data extraction, and ensuring the security and efficiency of data processing in the field of compliance risk control is a major challenge.
Using a large language model to preprocess and analyze multimodal data sources, extract structured information elements through natural language processing technology, and integrate them into knowledge units based on predetermined rules and models, establish logical and relational links, and support dynamic updates and secure storage. , evaluate the timeliness regularly and retrain the model.
It significantly improves the conversion efficiency and accuracy from unstructured data to structured knowledge bases, improves the risk management capabilities and decision-making efficiency of enterprises, and ensures the accuracy and security of information.
Smart Images

Figure CN118886489A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of large language models, and in particular to a method for building a compliance risk control AI knowledge base using LLM. Background Art
[0002] In today's information age, the volume and complexity of data are increasing, which places higher demands on data processing and management in high-risk industries such as finance, healthcare, and law. In these fields, compliance and data security are core concerns. Traditionally, extracting valuable information from unstructured data sources and building a structured knowledge base usually requires a lot of manual participation and supervision. This process is not only time-consuming and costly, but also prone to errors and information omissions due to the involvement of human factors.
[0003] Existing technologies have some obvious defects in processing unstructured data, such as text documents, web page content, and social media information. For example, existing data extraction methods often rely on rule or template matching technology, which is difficult to adapt to new data types or rapidly changing data content when faced with the diversity and complexity of data formats, resulting in inaccurate or incomplete data extraction.
[0004] In addition, in AI applications, especially when sensitive information is involved (such as personal data, financial records, etc.), ensuring the compliance and security of data processing is a major challenge. Traditional methods rely on complex compliance reviews and strict data processing regulations, which often increase the complexity of the system and the difficulty of operation. For example, the compliance review process often requires cross-departmental collaboration and involves a large amount of manual review work, which is not only inefficient, but also easily affected by subjective judgment, making it difficult to achieve a high degree of data utilization efficiency and security. Therefore, how to provide a method for using LLM to build a compliance risk control AI knowledge base is a problem that technicians in this field urgently need to solve. Summary of the invention
[0005] One purpose of the present invention is to propose a method for constructing a compliance and risk control AI knowledge base using LLM. The present invention not only significantly improves the conversion efficiency and accuracy from unstructured data to structured knowledge base, but also significantly improves the risk management capabilities and decision-making efficiency of enterprises through intelligent compliance and security management.
[0006] A method for constructing a compliance risk control AI knowledge base domain using LLM according to an embodiment of the present invention includes the following steps:
[0007] S1. Collect multimodal data sources, including speech content in audio recordings, text descriptions in video files, and metadata in images, as well as real-time data streams, including environmental data provided by IoT devices and geographic information systems, to build unstructured datasets;
[0008] S2. Use the pre-trained large language model to perform initial processing on the pre-processed unstructured dataset to identify and label key concepts, entities, and relationships in the data;
[0009] S3, applying natural language processing technology to analyze the output in step S2 to extract structured information elements, including names, places, times, and specific domain terms;
[0010] S4, integrating the structured information elements extracted in step S3 into knowledge units according to predetermined rules and models, and establishing corresponding logic and relationship links;
[0011] S5. The knowledge unit generated in step S4 is stored in a specially designed knowledge base system. The knowledge base system supports dynamic update and query processing of information, and implements data desensitization and access control to confirm the correctness and security of the information in the knowledge base;
[0012] S6. Regularly evaluate the timeliness of information units stored in the knowledge base, and retrain or adjust the large language model based on the latest data to incorporate new information and relationships.
[0013] Optionally, the S1 includes the following steps:
[0014] S11, setting an audio acquisition module, the audio acquisition module is configured with an audio recognition algorithm for capturing voice content from real-time audio streams and stored audio files, converting voice data into text data V through voice recognition technology, and marking keywords and phrases;
[0015] S12, setting a video analysis module, the video analysis module is used to parse text descriptions T and image metadata M from real-time video streams and video archives, use image recognition technology to identify image content in the video and extract key visual elements, and use optical character recognition technology to extract text from the video;
[0016] S13, configure a real-time data collection system to collect environmental data E through the interface of IoT devices and geographic information systems, and use sensors to collect data from multiple sources in real time, including meteorological data, geographic location data, and other environmental monitoring data;
[0017] S14: Data integration processing: The audio data V, text description T, image metadata M, and real-time data R collected in steps S11-S13 are merged into an unstructured data set U through a data integration algorithm:
[0018] I = {V, T, M, R};
[0019] Among them, U represents the integrated unstructured dataset, V includes text data converted from speech and its keyword tags, T and M contain text descriptions and image metadata in the video, and R contains real-time data from IoT devices and GIS;
[0020] S15. Preprocess the unstructured data set U, including data cleaning and format standardization operations.
[0021] Optionally, S2 includes the following steps:
[0022] S21. Configure a pre-trained large language model L specific to the risk control field that has been custom-developed to enhance its capabilities in parsing regulations, compliance clauses, and identifying sensitive data;
[0023] The configuration of the pre-trained large language model specific to the risk control field includes the following steps:
[0024] Leverage a specially collected dataset of regulations and compliance terms D reg , pre-train the large language model L to form a deep understanding of specific legal language and terminology. The formula is:
[0025]
[0026] Among them, D reg A specific dataset representing regulations and compliance clauses, consisting of input text x and expected output y (labels of legal concepts), h L (x) represents the hidden layer representation generated by the large language model L for the input x, W represents the weight matrix from the hidden layer to the output layer, represents the cross entropy loss function, which is used to evaluate the difference between the model output and the true label, and softmax represents the activation function, which is used to convert the model output into a probability distribution;
[0027] L pre Denotes a dataset D specifically designed for regulations and compliance terms reg The pre-trained model provides the basis for the fine-tuning process;
[0028] Introducing automated annotation tools to annotate compliance clause datasets using artificial intelligence technology reg The sensitive information points and key compliance requirements in the training data are automatically generated. reg , further train the large language model L to recognize and parse similar data;
[0029]
[0030] Among them, T reg represents regulatory data containing training labels, which is used to fine-tune the model, λ represents the regularization parameter, which is used to balance data fitting and model complexity, and Ω(L) represents the regularization term of the model, which helps prevent overfitting;
[0031] Using a context-aware learning mechanism, by analyzing the relationship between keywords and context in the data set, the parameters of the large language model L are automatically adjusted to more accurately identify and understand the compliance and risk control related content in the data set U. The performance of the model is continuously optimized through a continuous feedback loop, and the formula is:
[0032]
[0033] Among them, L ft represents the fine-tuned model, based on which context-aware optimization is performed, C(U) represents the set of context elements extracted from the dataset U, and pred(c|U,L ft ) represents the large language model L ft Based on the predicted output of context c and dataset U, γ represents the parameter that weighs the context prediction error and the model behavior adjustment, Ψ(L ft ,U) represents the context-dependent adjustment function of the model behavior, which is used to adjust the model behavior according to the actual content in the dataset U;
[0034] S22. Fine-tune the large language model L using customized adaptive training technology to dynamically adjust the recognition parameters according to the actual content in the unstructured dataset U, thereby optimizing the extraction of key concepts C, entities E, and relations R. Compared with the existing technology, we innovatively use the loss function to fine-tune the model:
[0035]
[0036] in:
[0037]
[0038] S23. By further introducing a multi-level identification framework, first identifying high-level legal and compliance concepts, and then identifying specific personal information and financial matters, to ensure accurate labeling of all sensitive and critical information in dataset U:
[0039]
[0040] Among them, β h is the weight of the hth layer, strengthening the influence of the layer, is the loss function of the hth layer, pred h is the prediction function of the hth layer, which is used to identify the information of the corresponding level;
[0041] S24. Combined with the entity relationship graph expansion technology, by analyzing the contextual relationships and data dependencies in the data set U, the implicit relationships R between entities are automatically inferred and verified, and these relationships are made explicit:
[0042]
[0043] Among them, δ is the balance between inference accuracy and model behavior adjustment, infer is based on the model L adaptive and the function of inferring relation r from context u, Ξ represents the context adjustment function of relation inference;
[0044] S25, transform the concepts C, entities E and relations R identified and extracted in steps S22 to S24 into semi-structured knowledge units, and construct a preliminary knowledge graph K, the formula is:
[0045]
[0046] Among them, Θ is the function that transforms the recognized concepts, entities and relations into knowledge units, σ c , σ e , σ r are weight parameters for transforming concepts, entities, and relations.
[0047] Optionally, S3 includes the following steps:
[0048] S31. Apply named entity recognition technology to process large language models L adaptive The output of identifies the key information elements in the dataset U and extracts the name P, location L, time T, and domain-specific terms S as structured information elements. The formula is:
[0049] E struct ={P,L,T,S};
[0050] Among them, E struct Represents a set of extracted structured information elements, where P represents a person's name, L represents a place, T represents a time, and S represents a specific domain term;
[0051] S32. Use contextual analysis techniques to further verify and refine the relevance and correctness of these information elements to ensure the accuracy and consistency of each element;
[0052] S33, perform correlation analysis on the extracted elements to determine the logical and spatial relationships between them and further enrich the semantic level of the data;
[0053] S34. Finally, the structured information elements extracted and analyzed in steps S31 and S33 are integrated into the knowledge base system K to enhance the information integrity and query efficiency of the knowledge base. In this step, in order to improve the defects of the existing technology, we must maintain the consistency and logical relationship of the information. We innovatively introduce a comprehensive evaluation and integration function, which not only handles simple data merging, but also considers the semantic relevance of the data, data integrity verification and optimization of the storage structure of the knowledge base:
[0054] K′=φ(K,E struct ,α,β,γ);
[0055] Among them, K' represents the updated knowledge base, Φ represents a composite function responsible for integrating and optimizing the knowledge base content, K is the existing knowledge base, α, β, γ are weight parameters used to control the priority and influence of person name P, place L, time T and specific field term S in the knowledge base;
[0056] The Φ function in the formula is further defined as:
[0057]
[0058] Among them, ψ is an integration function responsible for integrating a single information element e into K while maintaining the structural and semantic integrity of K. The parameters control the representation and connection strength of e in K.
[0059] We not only simply merge the data, but also maintain and strengthen the semantic structure of the knowledge base K during the merger, increase its responsiveness to queries and the accuracy of the data, which is suitable for the construction of a compliance risk control AI knowledge base with highly accurate and reliable information required by the present invention.
[0060] Optionally, S4 includes the following steps:
[0061] S41. Receive a structured information element set E struct = {P, L, T, S}, applying predetermined rules and models to process each structured information element e to form a knowledge unit KU, the rules determine how to link or integrate it with existing knowledge units based on the type and content of the element, where:
[0062]
[0063] Among them, κ is a function for constructing knowledge units, R represents the predetermined relationship rule, and θ is the rule parameter used to adjust the expression of information elements in knowledge units;
[0064] S42, implementing logical and relational links on the knowledge units KU generated in step S41 to ensure that the new knowledge units can appropriately reflect the inherent connections and dependencies between the information elements, including using logical reasoning and association analysis techniques to establish and verify these links to form a comprehensive knowledge network KN:
[0065] KN=ρ(KU,λ);
[0066] Among them, ρ is a link building function used to create relationships and logical links between knowledge units, and λ is a link parameter used to control the strength and type of links;
[0067] S43, storing the comprehensive knowledge network KN formed in step S42 in the knowledge base system K', updating and optimizing the content and structure of the knowledge base, taking into account various types of knowledge units and the relationships between them, and introducing a dynamic weight system, the weights are automatically adjusted based on the urgency and importance of the information elements:
[0068] K″=Ψ(K′,KN,Ω,λ,μ);
[0069] Among them, K' is the state of the knowledge base in the previous step, and Ψ is a composite function that manages how to integrate the new knowledge network KN into the existing knowledge base K' while retaining the integrity of historical data and the immediacy of the latest data. The function is defined as:
[0070]
[0071] Among them, Ω is a weight set, which includes the weight of each element, Ω is a set of semantic conflicts that need to be processed from K' and KN, Φ(s) is a function to resolve conflicts in the knowledge base, which is weighted according to the type of conflict and the severity of the impact, μ s is the weight of the conflict resolution strategy, which is used to balance the priority of the solution and resource allocation.
[0072] Optionally, the S6 includes the following steps:
[0073] S61. Regularly evaluate the timeliness and accuracy of the information units stored in the knowledge base K” to ensure that the content of the knowledge base is consistent with the latest regulations, market trends and industry standards;
[0074] S62, calibrating the data evaluation cycle Δt, performing automatic data evaluation at the end of each cycle, using an evaluation algorithm to detect outdated or inaccurate knowledge units;
[0075]
[0076] Among them, τ(K″,Δt) represents the function of evaluating the knowledge base K″, k represents the knowledge unit, t represents the current time, and t k is the last update time of knowledge unit k, τ k is the predetermined life cycle of knowledge unit k, α(k,t) is a content-based evaluation weight function that reflects the decreasing relevance and accuracy of information units over time;
[0077] S63. Collect the latest data and use it on the large language model L updated Retrain or adjust to incorporate new information and newly discovered relationships to ensure that the model's output is consistent with the current environment;
[0078] S64, apply the updated large language model L updated Reanalyze existing knowledge units and newly collected data to produce updated knowledge units and relationships:
[0079]
[0080] Among them, L updated is the updated model, β is the learning rate, L adaptive In the new data set D new Gradient descent update is performed on , where L is a loss function that includes a polynomial error term and a regularization term to evaluate the difference between the model output and the expected output;
[0081] S65. Integrate the updated knowledge units and relationships back into the knowledge base K' to form the final updated knowledge base:
[0082]
[0083] Where Θ is a transformation function that transforms information into knowledge units according to each information element k and its dynamic weight ω(k), and S is a set of semantic conflicts with special processing needs identified from K' and the updated knowledge units.
[0084] The beneficial effects of the present invention are:
[0085] Multimodal data integration: By collecting audio, video and real-time data streams, combined with IoT devices and geographic information systems, the present invention can integrate rich information from multiple data sources. Multimodal integration enhances the information dimension and depth of the knowledge base and provides more comprehensive data support.
[0086] High-precision entity and relationship recognition: We use a custom-developed large language model to optimize the risk control field, enhancing the model's ability to parse regulations, compliance clauses, and sensitive data. This ensures that the extracted information is not only accurate, but also meets the compliance requirements of specific industries.
[0087] Structured information extraction and verification: Apply named entity recognition technology and context analysis to effectively extract and verify key information such as names, locations, and times, ensuring the accuracy and consistency of information elements.
[0088] Intelligent integration and logical construction of knowledge units: Through predetermined rules and models, structured information elements are intelligently converted into knowledge units, and complex logic and relationship links are established. This not only improves the query efficiency of the knowledge base, but also enhances the logical association between data, supporting more complex data analysis and decision support.
[0089] Dynamic learning and knowledge base update: By regularly evaluating the timeliness of knowledge base content and retraining the large language model, the present invention can flexibly respond to the rapidly changing external environment and ensure that the knowledge base content is always up to date. The dynamic update mechanism is suitable for frequently changing regulations and market conditions. BRIEF DESCRIPTION OF THE DRAWINGS
[0090] 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:
[0091] Figure 1 This is a flowchart of a method proposed in the present invention for using LLM to build a compliance risk control AI knowledge base. DETAILED DESCRIPTION
[0092] 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.
[0093] refer to Figure 1 , a method for constructing a compliance risk control AI knowledge base domain using LLM, comprising the following steps:
[0094] S1. Collect multimodal data sources, including speech content in audio recordings, text descriptions in video files, and metadata in images, as well as real-time data streams, including environmental data provided by IoT devices and geographic information systems, to build unstructured datasets;
[0095] In this implementation, S1 includes the following steps:
[0096] S11, setting an audio acquisition module, the audio acquisition module is configured with an audio recognition algorithm for capturing voice content from real-time audio streams and stored audio files, converting voice data into text data V through voice recognition technology, and marking keywords and phrases;
[0097] S12, setting a video analysis module, the video analysis module is used to parse text descriptions T and image metadata M from real-time video streams and video archives, use image recognition technology to identify image content in the video and extract key visual elements, and use optical character recognition technology to extract text from the video;
[0098] S13, configure a real-time data collection system to collect environmental data E through the interface of IoT devices and geographic information systems, and use sensors to collect data from multiple sources in real time, including meteorological data, geographic location data, and other environmental monitoring data;
[0099] S14: Data integration processing: The audio data V, text description T, image metadata M, and real-time data R collected in steps S11-S13 are merged into an unstructured data set U through a data integration algorithm:
[0100] U = {V, T, M, R};
[0101] Among them, U represents the integrated unstructured dataset, V includes text data converted from speech and its keyword tags, T and M contain text descriptions and image metadata in the video, and R contains real-time data from IoT devices and GIS;
[0102] S15. Preprocess the unstructured data set U, including data cleaning and format standardization operations.
[0103] This implementation can integrate rich information from multiple data sources by collecting audio, video and real-time data streams, combining IoT devices and geographic information systems. Multimodal integration enhances the information dimension and depth of the knowledge base and provides more comprehensive data support in compliance risk control scenarios where multiple types of information need to be integrated for decision-making.
[0104] S2. Use the pre-trained large language model to perform initial processing on the pre-processed unstructured dataset to identify and label key concepts, entities, and relationships in the data;
[0105] In this implementation, S2 includes the following steps:
[0106] S21. Configure a pre-trained large language model L specific to the risk control field that has been custom-developed to enhance its capabilities in parsing regulations, compliance clauses, and identifying sensitive data;
[0107] Configuring a pre-trained large language model specific to the risk control domain includes the following steps:
[0108] Leverage a specially collected dataset of regulations and compliance terms D reg , pre-train the large language model L to form a deep understanding of specific legal language and terminology. The formula is:
[0109]
[0110] Among them, D reg A specific dataset representing regulations and compliance clauses, consisting of input text x and expected output y (labels of legal concepts), h L (x) represents the hidden layer representation generated by the large language model L for the input x, W represents the weight matrix from the hidden layer to the output layer, represents the cross entropy loss function, which is used to evaluate the difference between the model output and the true label, and softmax represents the activation function, which is used to convert the model output into a probability distribution;
[0111] L pre Denotes a dataset D specifically designed for regulations and compliance terms reg The pre-trained model provides the basis for the fine-tuning process;
[0112] Introducing automated annotation tools to annotate compliance clause datasets using artificial intelligence technology reg The sensitive information points and key compliance requirements in the training data are automatically generated. reg , further train the large language model L to recognize and parse similar data;
[0113]
[0114] Among them, T reg represents regulatory data containing training labels, which is used to fine-tune the model, λ represents the regularization parameter, which is used to balance data fitting and model complexity, and Ω(L) represents the regularization term of the model, which helps prevent overfitting;
[0115] Using a context-aware learning mechanism, by analyzing the relationship between keywords and context in the data set, the parameters of the large language model L are automatically adjusted to more accurately identify and understand the compliance and risk control related content in the data set U. The performance of the model is continuously optimized through a continuous feedback loop, and the formula is:
[0116]
[0117] Among them, L ft represents the fine-tuned model, based on which context-aware optimization is performed, C(U) represents the set of context elements extracted from the dataset U, and pred(c|U,L ft ) represents the large language model L ft Based on the predicted output of context c and dataset U, γ represents the parameter that weighs the context prediction error and the model behavior adjustment, Ψ(L ft ,U) represents the context-dependent adjustment function of the model behavior, which is used to adjust the model behavior according to the actual content in the dataset U;
[0118] S22. Fine-tune the large language model L using customized adaptive training technology to dynamically adjust the recognition parameters according to the actual content in the unstructured dataset U, thereby optimizing the extraction of key concepts C, entities E, and relations R. Compared with the existing technology, we innovatively use the loss function to fine-tune the model:
[0119]
[0120] in:
[0121]
[0122] S23. By further introducing a multi-level identification framework, first identifying high-level legal and compliance concepts, and then identifying specific personal information and financial matters, to ensure accurate labeling of all sensitive and critical information in dataset U:
[0123]
[0124] Among them, β h is the weight of the hth layer, strengthening the influence of the layer, is the loss function of the hth layer, pred h is the prediction function of the hth layer, which is used to identify the information of the corresponding level;
[0125] S24. Combined with the entity relationship graph expansion technology, by analyzing the contextual relationships and data dependencies in the data set U, the implicit relationships R between entities are automatically inferred and verified, and these relationships are made explicit:
[0126]
[0127] Among them, δ is the balance between inference accuracy and model behavior adjustment, infer is based on the model L adaptive and the function of inferring relation r from context u, Ξ represents the context adjustment function of relation inference;
[0128] S25. Convert the concepts C, entities E and relations R identified and extracted in steps S22 to S24 into semi-structured knowledge units, and construct a preliminary knowledge graph K. The formula is:
[0129]
[0130] Among them, Θ is the function that transforms the recognized concepts, entities and relations into knowledge units, σ c , σ e , σ r are weight parameters for transforming concepts, entities, and relations.
[0131] This implementation method uses a custom-developed large language model to optimize the risk control field, enhancing the model's ability to parse regulations, compliance clauses, and sensitive data identification, ensuring that the extracted information is not only accurate but also meets the compliance requirements of specific industries.
[0132] S3, applying natural language processing technology to analyze the output in step S2 to extract structured information elements, including names, places, times, and specific domain terms;
[0133] In this implementation, S3 includes the following steps:
[0134] S31. Apply named entity recognition technology to process large language models L adaptive The output of identifies the key information elements in the dataset U and extracts the name P, location L, time T, and domain-specific terms S as structured information elements. The formula is:
[0135] E struct ={P,L,T,S};
[0136] Among them, E struct Represents a set of extracted structured information elements, where P represents a person's name, L represents a place, T represents a time, and S represents a specific domain term;
[0137] S32. Use contextual analysis techniques to further verify and refine the relevance and correctness of these information elements to ensure the accuracy and consistency of each element;
[0138] S33, perform correlation analysis on the extracted elements to determine the logical and spatial relationships between them and further enrich the semantic level of the data;
[0139] S34. Finally, the structured information elements extracted and analyzed in steps S31 and S33 are integrated into the knowledge base system K to enhance the information integrity and query efficiency of the knowledge base. In this step, in order to improve the defects of the existing technology, we must maintain the consistency and logical relationship of the information. We innovatively introduce a comprehensive evaluation and integration function, which not only handles simple data merging, but also considers the semantic relevance of the data, data integrity verification and optimization of the storage structure of the knowledge base:
[0140] K′=Φ(K,E struct ,α,β,γ);
[0141] Among them, K' represents the updated knowledge base, Φ represents a composite function responsible for integrating and optimizing the knowledge base content, K is the existing knowledge base, α, β, γ are weight parameters used to control the priority and influence of person name P, place L, time T and specific field term S in the knowledge base;
[0142] The Φ function in the formula is further defined as:
[0143]
[0144] Among them, ψ is an integration function responsible for integrating a single information element e into K while maintaining the structural and semantic integrity of K. The parameters control the representation and connection strength of e in K.
[0145] We not only simply merge the data, but also maintain and strengthen the semantic structure of the knowledge base K during the merger, increase its responsiveness to queries and the accuracy of the data, which is suitable for the construction of a compliance risk control AI knowledge base with highly accurate and reliable information required by the present invention.
[0146] This implementation uses named entity recognition technology and context analysis to effectively extract and verify key information such as names, places, and times, ensuring the accuracy and consistency of information elements. This is critical for building a reliable knowledge base, especially in fields such as law and finance that require a high degree of accuracy.
[0147] S4, integrating the structured information elements extracted in step S3 into knowledge units according to predetermined rules and models, and establishing corresponding logic and relationship links;
[0148] In this implementation, S4 includes the following steps:
[0149] S41. Receive a structured information element set E struct = {P, L, T, S}, applying predetermined rules and models to process each structured information element e to form a knowledge unit KU, the rules determine how to link or integrate it with existing knowledge units based on the type and content of the element, where:
[0150]
[0151] Among them, κ is a function for constructing knowledge units, R represents the predetermined relationship rule, and θ is the rule parameter used to adjust the expression of information elements in knowledge units;
[0152] S42, implementing logical and relational links on the knowledge units KU generated in step S41 to ensure that the new knowledge units can appropriately reflect the inherent connections and dependencies between the information elements, including using logical reasoning and association analysis techniques to establish and verify these links to form a comprehensive knowledge network KN:
[0153] KN=ρ(KU,λ);
[0154] Among them, ρ is a link building function used to create relationships and logical links between knowledge units, and λ is a link parameter used to control the strength and type of links;
[0155] S43, storing the comprehensive knowledge network KN formed in step S42 in the knowledge base system K', updating and optimizing the content and structure of the knowledge base, taking into account various types of knowledge units and the relationships between them, and introducing a dynamic weight system, the weights are automatically adjusted based on the urgency and importance of the information elements:
[0156] K″=Ψ(K′,KN,Ω,λ,μ);
[0157] Among them, K' is the state of the knowledge base in the previous step, and Ψ is a composite function that manages how to integrate the new knowledge network KN into the existing knowledge base K' while retaining the integrity of historical data and the immediacy of the latest data. The function is defined as:
[0158]
[0159] Among them, Ω is a weight set, which includes the weight of each element, Ω is a set of semantic conflicts that need to be processed from K' and KN, Φ(s) is a function to resolve conflicts in the knowledge base, which is weighted according to the type of conflict and the severity of the impact, μ s is the weight of the conflict resolution strategy, which is used to balance the priority of the solution and resource allocation.
[0160] This implementation method intelligently transforms structured information elements into knowledge units through predetermined rules and models, and establishes complex logic and relational links, which not only improves the query efficiency of the knowledge base, but also enhances the logical association between data and supports more complex data analysis and decision support.
[0161] S5. The knowledge unit generated in step S4 is stored in a specially designed knowledge base system. The knowledge base system supports dynamic update and query processing of information, and implements data desensitization and access control to confirm the correctness and security of the information in the knowledge base;
[0162] S6. Regularly evaluate the timeliness of information units stored in the knowledge base, and retrain or adjust the large language model based on the latest data to incorporate new information and relationships.
[0163] In this implementation, S6 includes the following steps:
[0164] S61. Regularly evaluate the timeliness and accuracy of the information units stored in the knowledge base K” to ensure that the content of the knowledge base is consistent with the latest regulations, market trends and industry standards;
[0165] S62, calibrating the data evaluation cycle Δt, performing automatic data evaluation at the end of each cycle, using an evaluation algorithm to detect outdated or inaccurate knowledge units;
[0166]
[0167] Among them, τ(K″,Δt) represents the function of evaluating the knowledge base K″, k represents the knowledge unit, t represents the current time, and t k is the last update time of knowledge unit k, τ k is the predetermined life cycle of knowledge unit k, α(k,t) is a content-based evaluation weight function that reflects the decreasing relevance and accuracy of information units over time;
[0168] S63. Collect the latest data and use it on the large language model L updated Retrain or adjust to incorporate new information and newly discovered relationships to ensure that the model's output is consistent with the current environment;
[0169] S64, apply the updated large language model L updated Reanalyze existing knowledge units and newly collected data to produce updated knowledge units and relationships:
[0170]
[0171] Among them, L updated is the updated model, β is the learning rate, L adaptive In the new data set D new Gradient descent update is performed on , where L is a loss function that includes a polynomial error term and a regularization term to evaluate the difference between the model output and the expected output;
[0172] S65. Integrate the updated knowledge units and relationships back into the knowledge base K' to form the final updated knowledge base:
[0173]
[0174] Where Θ is a transformation function that transforms information into knowledge units according to each information element k and its dynamic weight ω(k), and S is a set of semantic conflicts with special processing needs identified from K' and the updated knowledge units.
[0175] This implementation method can flexibly respond to the rapidly changing external environment by regularly evaluating the timeliness of the knowledge base content and retraining the large language model, ensuring that the knowledge base content is always kept up to date. The dynamic update mechanism is suitable for industries where regulations and market conditions change frequently, such as the financial services industry.
[0176] 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 constructing a compliance risk control AI knowledge base using LLM, characterized in that: The following steps are involved: S1. Collect multimodal data sources, including speech content in audio recordings, text descriptions in video files, and metadata in images, as well as real-time data streams, including environmental data provided by IoT devices and geographic information systems, to build unstructured datasets; S2. Use the pre-trained large language model to perform initial processing on the pre-processed unstructured dataset to identify and label key concepts, entities, and relationships in the data; S3, applying natural language processing technology to analyze the output in step S2 to extract structured information elements, including names, places, times, and specific domain terms; S4, integrating the structured information elements extracted in step S3 into knowledge units according to predetermined rules and models, and establishing corresponding logic and relationship links; S5. The knowledge unit generated in step S4 is stored in a specially designed knowledge base system. The knowledge base system supports dynamic update and query processing of information, and implements data desensitization and access control to confirm the correctness and security of the information in the knowledge base; S6. Regularly evaluate the timeliness of information units stored in the knowledge base, and retrain or adjust the large language model based on the latest data to incorporate new information and relationships.
2. According to claim 1, a method for constructing a compliance risk control AI knowledge base using LLM is characterized in that: The S1 comprises the following steps: S11, setting an audio acquisition module, the audio acquisition module is configured with an audio recognition algorithm for capturing voice content from real-time audio streams and stored audio files, converting voice data into text data V through voice recognition technology, and marking keywords and phrases; S12, setting a video analysis module, the video analysis module is used to parse text descriptions T and image metadata M from real-time video streams and video archives, use image recognition technology to identify image content in the video and extract key visual elements, and use optical character recognition technology to extract text from the video; S13, configure a real-time data collection system to collect environmental data E through the interface of IoT devices and geographic information systems, and use sensors to collect data from multiple sources in real time, including meteorological data, geographic location data, and other environmental monitoring data; S14: Data integration processing: The audio data V, text description T, image metadata M, and real-time data R collected in steps S11-S13 are merged into an unstructured data set U through a data integration algorithm: U = {V, T, M, R}; Among them, U represents the integrated unstructured dataset, V includes text data converted from speech and its keyword tags, T and M contain text descriptions and image metadata in the video, and R contains real-time data from IoT devices and GIS; S15. Preprocess the unstructured data set U, including data cleaning and format standardization operations.
3. According to claim 2, a method for constructing a compliance risk control AI knowledge base using LLM is characterized in that: The S2 comprises the following steps: S21. Configure a pre-trained large language model L specific to the risk control field that has been custom-developed to enhance its capabilities in parsing regulations, compliance clauses, and identifying sensitive data; The configuration of the pre-trained large language model specific to the risk control field includes the following steps: Leverage a specially collected dataset of regulations and compliance terms D reg , pre-train the large language model L to form a deep understanding of specific legal language and terminology. The formula is: Among them, D reg A specific dataset representing regulations and compliance clauses, consisting of input text x and expected output y (labels of legal concepts), h L (x) represents the hidden layer representation generated by the large language model L for the input x, W represents the weight matrix from the hidden layer to the output layer, represents the cross entropy loss function, which is used to evaluate the difference between the model output and the true label, and softmax represents the activation function, which is used to convert the model output into a probability distribution; L pre Denotes a dataset D specifically designed for regulations and compliance terms reg The pre-trained model provides the basis for the fine-tuning process; Introducing automated annotation tools to annotate compliance clause datasets D using artificial intelligence technology reg The sensitive information points and key compliance requirements in the training data are automatically generated. reg , further train the large language model L to recognize and parse similar data; Among them, T reg represents regulatory data containing training labels, which is used to fine-tune the model, λ represents the regularization parameter, which is used to balance data fitting and model complexity, and Ω(L) represents the regularization term of the model, which helps prevent overfitting; Using a context-aware learning mechanism, by analyzing the relationship between keywords and context in the data set, the parameters of the large language model L are automatically adjusted to more accurately identify and understand the compliance and risk control related content in the data set U. The performance of the model is continuously optimized through a continuous feedback loop, and the formula is: Among them, L ft represents the fine-tuned model, based on which context-aware optimization is performed, C(U) represents the set of context elements extracted from the dataset U, and pred(c|U,L ft ) represents the large language model L ft Based on the predicted output of context c and dataset U, γ represents the parameter that weighs the context prediction error and the model behavior adjustment, Ψ(L ft ,U) represents the context-dependent adjustment function of the model behavior, which is used to adjust the model behavior according to the actual content in the dataset U; S22. Fine-tune the large language model L using customized adaptive training technology to dynamically adjust the recognition parameters according to the actual content in the unstructured dataset U, thereby optimizing the extraction of key concepts C, entities E, and relations R. Compared with the existing technology, we innovatively use the loss function to fine-tune the model: in: S23. By further introducing a multi-level identification framework, first identifying high-level legal and compliance concepts, and then identifying specific personal information and financial matters, to ensure accurate labeling of all sensitive and critical information in dataset U: Among them, β h is the weight of the hth layer, strengthening the influence of the layer, is the loss function of the hth layer, pred h is the prediction function of the hth layer, which is used to identify the information of the corresponding level; S24. Combined with the entity relationship graph expansion technology, by analyzing the contextual relationships and data dependencies in the data set U, the implicit relationships R between entities are automatically inferred and verified, and these relationships are made explicit: Among them, δ is the balance between inference accuracy and model behavior adjustment, infer is based on the model L adaptive and the function of inferring relation r from context u, Ξ represents the context adjustment function of relation inference; S25, transform the concepts C, entities E and relations R identified and extracted in steps S22 to S24 into semi-structured knowledge units, and construct a preliminary knowledge graph K, the formula is: Among them, Θ is the function that transforms the recognized concepts, entities and relations into knowledge units, σ c , σ e , σ r are weight parameters for transforming concepts, entities, and relations.
4. A method for constructing a compliance risk control AI knowledge base using LLM according to claim 3, characterized in that: The S3 comprises the following steps: S31. Apply named entity recognition technology to process large language models L adaptive The output of identifies the key information elements in the dataset U and extracts the name P, location L, time T, and domain-specific terms S as structured information elements. The formula is: E struct ={P,L,T,S}; Among them, E struct Represents a set of extracted structured information elements, where P represents a person's name, L represents a place, T represents a time, and S represents a specific domain term; S32. Use contextual analysis techniques to further verify and refine the relevance and correctness of these information elements to ensure the accuracy and consistency of each element; S33, perform correlation analysis on the extracted elements to determine the logical and spatial relationships between them and further enrich the semantic level of the data; S34. Finally, the structured information elements extracted and analyzed in steps S31 and S33 are integrated into the knowledge base system K to enhance the information integrity and query efficiency of the knowledge base. In this step, in order to improve the defects of the existing technology, we must maintain the consistency and logical relationship of the information. We innovatively introduce a comprehensive evaluation and integration function, which not only handles simple data merging, but also considers the semantic relevance of the data, data integrity verification and optimization of the storage structure of the knowledge base: K′=Φ(K,E struct ,a,b,c); Among them, K' represents the updated knowledge base, Φ represents a composite function responsible for integrating and optimizing the knowledge base content, K is the existing knowledge base, α, β, γ are weight parameters used to control the priority and influence of person name P, place L, time T and specific field term S in the knowledge base; The Φ function in the formula is further defined as: Among them, ψ is an integration function responsible for integrating a single information element e into K while maintaining the structural and semantic integrity of K. The parameters control the representation and connection strength of e in K. We not only simply merge the data, but also maintain and strengthen the semantic structure of the knowledge base K during the merger, increase its responsiveness to queries and the accuracy of the data, which is suitable for the construction of a compliance risk control AI knowledge base with highly accurate and reliable information required by the present invention.
5. According to claim 4, a method for constructing a compliance risk control AI knowledge base using LLM is characterized in that: The S4 comprises the following steps: S41. Receive a structured information element set E struct = {P, L, T, S}, applying predetermined rules and models to process each structured information element e to form a knowledge unit KU, the rules determine how to link or integrate it with existing knowledge units based on the type and content of the element, where: Among them, κ is a function for constructing knowledge units, R represents the predetermined relationship rule, and θ is the rule parameter used to adjust the expression of information elements in knowledge units; S42, implementing logical and relational links on the knowledge units KU generated in step S41 to ensure that the new knowledge units can appropriately reflect the inherent connections and dependencies between the information elements, including using logical reasoning and association analysis techniques to establish and verify these links to form a comprehensive knowledge network KN: KN=p(KU,λ); Among them, ρ is a link building function used to create relationships and logical links between knowledge units, and λ is a link parameter used to control the strength and type of links; S43, storing the comprehensive knowledge network KN formed in step S42 in the knowledge base system K', updating and optimizing the content and structure of the knowledge base, taking into account various types of knowledge units and the relationships between them, and introducing a dynamic weight system, the weights are automatically adjusted based on the urgency and importance of the information elements: K"=Ψ(K′,KN,Ω,λ,μ); Among them, K' is the state of the knowledge base in the previous step, and Ψ is a composite function that manages how to integrate the new knowledge network KN into the existing knowledge base K' while retaining the integrity of historical data and the immediacy of the latest data. The function is defined as: Among them, Ω is a weight set, which includes the weight of each element, Ω is a set of semantic conflicts that need to be processed from K' and KN, Φ(s) is a function to resolve conflicts in the knowledge base, which is weighted according to the type of conflict and the severity of the impact, μ s is the weight of the conflict resolution strategy, which is used to balance the priority of the solution and resource allocation.
6. A method for constructing a compliance risk control AI knowledge base using LLM according to claim 5, characterized in that: The S6 comprises the following steps: S61. Regularly evaluate the timeliness and accuracy of the information units stored in the knowledge base K” to ensure that the content of the knowledge base is consistent with the latest regulations, market trends and industry standards; S62, calibrating the data evaluation cycle Δt, performing automatic data evaluation at the end of each cycle, using an evaluation algorithm to detect outdated or inaccurate knowledge units; Among them, τ(K″,Δt) represents the function of evaluating the knowledge base K″, k represents the knowledge unit, t represents the current time, and t k is the last update time of knowledge unit k, τ k is the predetermined life cycle of knowledge unit k, α(k,t) is a content-based evaluation weight function that reflects the decreasing relevance and accuracy of information units over time; S63. Collect the latest data and use it on the large language model L updated Retrain or adjust to incorporate new information and newly discovered relationships to ensure that the model's output is consistent with the current environment; S64, apply the updated large language model L updated Reanalyze existing knowledge units and newly collected data to produce updated knowledge units and relationships: Among them, L updated is the updated model, β is the learning rate, L adaptive In the new data set D new Gradient descent update is performed on , where L is a loss function that includes a polynomial error term and a regularization term to evaluate the difference between the model output and the expected output; S65. Integrate the updated knowledge units and relationships back into the knowledge base K' to form the final updated knowledge base: Where Θ is a transformation function that transforms information into knowledge units according to each information element k and its dynamic weight ω(k), and S is a set of semantic conflicts with special processing needs identified from K' and the updated knowledge units.
Citation Information
Cited By
Enterprise operation supervision multi-agent cooperation method and system based on large language model
CN119107051A
Intelligent outbound mapping knowledge domain construction method and system based on dialogue scene
CN119597937A
Intelligent Outbound Call Knowledge Graph Construction Method and System Based on Dialogue Scenarios
CN119597937B
Security compliance-oriented intelligent question and answer implementation method and device
CN119782491A
Intelligent Question Answering Implementation Method and Device for Securities Compliance
CN119782491B
