Intelligent audit report information extraction method based on LLM technology
By applying the information extraction method based on LLM technology in the audit report, combined with regularized matching and structured LLM model, the problem of text complexity and hardware threshold of the audit report is solved, and efficient and accurate information extraction on consumer-grade graphics cards is achieved. , which improves the reuse rate and intelligent recommendation capabilities of audit results.
Patent Information
- Application Number
- CN202410681346.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-29
- Publication Date
- 2024-09-17
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing smart contract information extraction methods are ineffective when processing complex audit report texts, and traditional deep learning models have limited semantic understanding and context correlation capabilities. The application of LLM technology in the audit industry has problems with hardware thresholds and high costs. .
An intelligent audit report information extraction method based on LLM technology is adopted. By reading the audit report, regularized matching technology is used to divide the cover page, main text and last page, and the structured LLM model is used to extract information from the text content, and is implemented through post-processing algorithms. Accurately obtain information related to audit projects and issues, build and fine-tune the audit report structured LLM model to adapt to vertical field applications.
It realizes fully automatic and more accurate audit report information extraction on a single consumer-grade graphics card, improves the reuse rate of audit results, provides a foundation for knowledge base establishment and intelligent recommendations, and reduces hardware thresholds and usage costs.
Smart Images

Figure CN118657154A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of information processing technology, and in particular to an intelligent audit report information extraction method based on LLM technology. Background Art
[0002] With the widespread application of computer technology, especially the rapid development of artificial intelligence technology in recent years, my country's audit work has gradually developed from automated audit to intelligent audit. As the basis of intelligence, the establishment of a knowledge base has also become a general trend. The audit results of previous years are an important part of the audit knowledge base. As the main way to present audit results, it is extremely important to extract key information from audit reports and realize the structuring of audit reports.
[0003] Chinese patent CN110674254 discloses a smart contract information extraction method based on deep learning and statistical extraction models, which divides contracts into two types: a standard information format and an unspecified semantic understanding format. For contracts with a standard information format, this method performs word segmentation on the contract and then extracts information through statistics; for contracts with an unspecified semantic understanding format, this method also performs word segmentation and statistical processing and then extracts information through a deep learning model. However, the textual expression of an audit report is more complex than that of a contract, and the text preprocessing method based on word segmentation and statistics proposed by this method cannot be well applied, and the semantic understanding and context association capabilities of traditional deep learning models are limited.
[0004] Recently, the performance of LLM technology, led by ChatGPT released by OpenAI, in semantic understanding and text generation capabilities has far exceeded people's expectations, which has triggered technological changes in various industries. Chinese patent CN116795968 discloses a knowledge expansion and QA system based on Chat LLM technology, which is the application of LLM technology in the field of intelligent question-answering technology. The advantage of LLM technology lies in the breakthrough in model capabilities brought about by the huge number of parameters, which has more powerful semantic understanding, text generation and migration capabilities, but the huge number of parameters also makes the hardware threshold and use cost of the technology application higher.
[0005] At present, the application of LLM technology in the auditing industry is still very rare. Due to the particularity of auditing industry data, the general LLM model is difficult to be directly applied to applications in this vertical field. It requires fine-tuning and training of the model based on industry data, which further increases the hardware threshold for the application of LLM technology in this field. Summary of the invention
[0006] The purpose of the present invention is to provide an intelligent audit report information extraction method based on LLM technology, so as to realize the structuring of audit reports by applying LLM technology on a single consumer-grade graphics card.
[0007] To achieve the above objectives, this application provides the following technical solutions:
[0008] An intelligent audit report information extraction method based on LLM technology, characterized by comprising the following steps:
[0009] Step 1: Read the audit report, read the text content in the audit report;
[0010] Step 2: Use regularized matching technology to divide the entire audit report into three modules: cover page, body and end page;
[0011] Step 3: Through the structured LLM model of the audit report, extract information from the text content of the cover page module obtained in the above steps to complete the acquisition of information fields related to the audit project.
[0012] Step 4: Through the structured LLM model of the audit report, extract information from the text content of the body module obtained in the above steps to complete the acquisition of information fields related to the audit issues.
[0013] The information fields related to the audit project and the information fields related to the audit questions together constitute the structured information of the entire audit report.
[0014] Furthermore, the specific process of step 4 is as follows:
[0015] 4.1 Use regularized matching technology to obtain the text content of the first-level title in the text module;
[0016] 4.2 Input the first-level title text obtained in the above steps into the structured LLM model of the audit report to obtain the chapter title where the information field to be extracted is located, thereby obtaining the text content under the chapter title;
[0017] 4.3 Using the structured LLM model of the audit report, classify the text content of the target chapter obtained in the above steps paragraph by paragraph;
[0018] 4.4 Based on the paragraph classification results of the above steps, the structured LLM model of the audit report is used to extract information from the text content of the target chapters paragraph by paragraph, and the post-processing algorithm is used to complete the acquisition of information fields related to the audit issues;
[0019] Furthermore, the post-processing algorithm in step 4.4 is specifically as follows:
[0020] S1: Initialize the audit question dictionary;
[0021] S2: Classify the natural paragraph. If it is classified as a problem category or a problem title, update the value of the corresponding keyword in the audit problem dictionary and enter S2.1; if it is classified as a problem description, enter S2.2, otherwise, return to S2 to continue judging the next natural paragraph;
[0022] S2.1: Classify the next paragraph. This paragraph should be a question title or a question description. It may also be misjudged as a question category by the structured LLM model of the audit report. If the result is a question title or a question category, update the value of the question title keyword in the audit question dictionary and proceed to S2.1.1. If the result is a question description, proceed to S2.2.
[0023] S2.1.1: The next paragraph should be the problem description. Skip the classification of the structured LLM model of the audit report, and directly extract the problem amount, qualitative basis, treatment opinions and other information for the paragraph, and update the values of the corresponding keywords in the audit problem dictionary;
[0024] S2.1.2: Classify the next paragraph. If it is a problem description, extract the problem amount, qualitative basis, treatment opinions and other information from the paragraph in turn, update the value of the corresponding keyword in the audit problem dictionary, and return to S2.1.2; otherwise, save the current audit problem dictionary and enter S2.4;
[0025] S2.2: Extract information such as question title, question amount, qualitative basis, etc. for this paragraph, update the value of the corresponding keyword in the audit question dictionary, and enter S2.3;
[0026] S2.3: Classify the next paragraph. If it is a problem description, return to S2.2. Otherwise, save the current audit problem dictionary and enter S2.4.
[0027] S2.4: If all paragraphs have been processed, exit; otherwise, return to S1.
[0028] The audit question dictionary saved by the above process is the extracted information related to the audit questions in the audit report processed this time.
[0029] Furthermore, the construction of the structured LLM model of the audit report is specifically carried out as follows:
[0030] S1: Collect and organize audit reports from previous years and build the basic database Database1;
[0031] S2: For step 3, the data of the extraction task in Database1 is annotated and organized in the form of triples (task prompt word, context information, answer);
[0032] S3: For step 4.2, the first-level title data of Database1 is annotated and organized in the form of triples (task prompt words, context information, answers) to obtain the target chapter title;
[0033] S4: For step 4.3, the paragraph category data of Database1 is annotated and organized in the form of triples (task prompt words, context information, answers). The categories include question category, question title, question description and irrelevant.
[0034] S5: For step 4.4, perform data annotation for different field information extraction for different categories of paragraphs, and organize them in the form of triples (task prompt word, context information, answer):
[0035] S6: The annotation results of steps S2-S5 are randomly divided into training set, validation set and test set according to the proportion respectively. The training sets of each step together constitute the training set TrainDataset required for LLM model construction, the validation sets of each step together constitute the validation set ValDataset required for LLM model construction, and the test sets of each step together constitute the test set TestDataset required for LLM model construction;
[0036] S7: Based on TrainDataset and ValDataset, the LLM model is fine-tuned and trained using the LLM fine-tuning framework, and the model with the best performance on TestDataset is saved as the audit report structured LLM model.
[0037] Compared with the prior art, the present invention has the following advantages and effects:
[0038] The present invention completes the fine-tuning training and deployment reasoning of the LLM model on a single consumer-grade graphics card, performs semantic analysis of audit reports based on LLM technology, realizes fully automatic and more accurate audit report information extraction, improves the reuse rate of audit results, and lays the foundation for the subsequent development of artificial intelligence-enabled audit scenarios such as knowledge base establishment, intelligent recommendation, and assessment of the rationality of responsibility. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 It is a flow chart of the intelligent audit report information extraction method based on LLM technology of the present invention. DETAILED DESCRIPTION
[0041] The present invention is further described in detail below by examples. The following examples are for explanation of the present invention but the present invention is not limited to the following examples.
[0042] See also Figure 1 , the present application provides a technical solution: an intelligent audit report information extraction method based on LLM technology, comprising the following steps:
[0043] Step 1: Read the audit report, read the text content in the audit report;
[0044] Step 2: Use regularized matching technology to divide the entire audit report into three modules: cover page, body and end page;
[0045] Step 3: Through the structured LLM model of the audit report, extract information from the text content of the cover page module obtained in the above steps to complete the acquisition of information fields related to the audit project.
[0046] Step 4: Through the structured LLM model of the audit report, extract information from the text content of the body module obtained in the above steps to complete the acquisition of information fields related to the audit issues.
[0047] The information fields related to the audit project and the information fields related to the audit questions together constitute the structured information of the entire audit report.
[0048] Furthermore, the specific process of step 4 is as follows:
[0049] 4.1 Use regularized matching technology to obtain the text content of the first-level title in the text module;
[0050] 4.2 Input the first-level title text obtained in the above steps into the structured LLM model of the audit report to obtain the chapter title where the information field to be extracted is located, thereby obtaining the text content under the chapter title;
[0051] 4.3 Using the structured LLM model of the audit report, classify the text content of the target chapter obtained in the above steps paragraph by paragraph;
[0052] 4.4 Through the structured LLM model of the audit report, according to the paragraph classification results of step 4.3, information is extracted from the text content of the target chapter paragraph by paragraph, and the post-processing algorithm is used to complete the acquisition of information fields related to the audit issues;
[0053] Furthermore, the post-processing algorithm in step 4.4 is specifically as follows:
[0054] S1: Initialize the audit question dictionary;
[0055] S2: Classify the natural segment. If it is classified into problem categories, update the value of the corresponding keyword in the audit problem dictionary and enter S2.1;
[0056] S2.1: Classify the next paragraph. This paragraph should be a question title or a question description. It may also be misjudged as a question category by the structured LLM model of the audit report. If the result is a question title or a question category, update the value of the question title keyword in the audit question dictionary and proceed to S2.1.1. If the result is a question description, proceed to S2.2.
[0057] S2.1.1: The next paragraph should be the problem description. Skip the classification of the structured LLM model of the audit report, and directly extract the problem amount, qualitative basis, treatment opinions and other information for the paragraph, and update the values of the corresponding keywords in the audit problem dictionary;
[0058] S2.1.2: Classify the next paragraph. If it is a problem description, extract the problem amount, qualitative basis, treatment opinions and other information from the paragraph in turn, and update the value of the corresponding keyword in the audit problem dictionary; otherwise, save the current audit problem dictionary and enter S2.4;
[0059] S2.2: Extract information such as question title, question amount, qualitative basis, etc. from this paragraph in turn, and update the values of corresponding keywords in the audit question dictionary;
[0060] S2.3: Classify the next paragraph. If it is a problem description, return to S2.2; otherwise, go to S2.4.
[0061] S2.4: If all paragraphs have been processed, exit; otherwise, return to S1.
[0062] The audit question dictionary saved by the above process is the extracted information related to the audit questions in the audit report processed this time.
[0063] Furthermore, the construction of the audit report structured LLM model has a specific implementation example as follows:
[0064] S1: Collect and organize audit reports from previous years and build the basic database Database1;
[0065] S2: For step 3, the data of the extraction task in Database1 is annotated and organized in the form of triples (task prompt word, context information, answer), such as:
[0066] Prompt: "You need to extract the entities of [audit authority], [audit report number], [audit project name], [audit project type], [audited unit] and [audited object] from the following sentence"
[0067] Context: "Office of the Audit Committee of the XX County Party Committee\nXX County Audit Bureau\nAudit Report\nXX Audit Committee Office Report
[2021] No. 4\nAudit Project: Economic Responsibility Audit of Comrade Lin XX, Secretary of XX Town, XX County, during his term of office (after leaving office)\n"
[0068] Answer: "```json\n{\"Auditing authority\":\"XX County Audit Bureau\",\"Audit report number\":\"XX Audit Committee Office Report
[2021] No. 4\",\"Audit project name\":\"Economic responsibility audit of Comrade Lin XX, Secretary of XX Town, XX County, during his term of office (after leaving office)\",\"Audit project type\":\"Economic responsibility audit\",\"Audited unit\":\"XX Town, XX County\",\"Audited object\":[\"Lin XX\"]}\n```";
[0069] S3: For step 4.2, the first-level title data of Database1 is annotated and organized in the form of triples (task prompt words, context information, answers) to obtain the target chapter title, such as:
[0070] Prompt: "This is an audit report title identification task. You need to identify the chapter where [Audit Findings] is located from the title list below."
[0071] Context: "Main work done to fulfill economic responsibilities and overall evaluation\nMain issues found in the audit and responsibility determination\nAudit recommendations"
[0072] Answer: "Main issues found in the audit and determination of responsibilities"
[0073] S4: For step 4.3, the paragraph category data of Database1 is annotated and organized in the form of triples (task prompt words, context information, answers). The categories include question category, question title, question description and irrelevant.
[0074] S5: For step 4.4, perform data annotation for different field information extraction for different categories of paragraphs, and organize them in the form of triples (task prompt words, context information, answer). For example, extract the question amount field from the question description category paragraph:
[0075] Prompt: "Understand the meaning of the following sentence and tell me the amount in question. If there is no amount, answer "None"."
[0076] Context: "As of October 2016, the town government had a book balance of other receivables of RMB 8,274,467.51, including: 9 loans from 7 people including Chen and a factory before 2007 totaling RMB 144,097.20; 2 accounts of project construction funds in 2008 that were not settled and transferred totaling RMB 572,292.62; 8,000 yuan of forest resource asset assessment fees in 2009 that were not transferred; In 2013, there were 6 temporary loans for a village and a passenger station road, totaling 419,625.32 yuan; in 2012, there were 2 construction loans for greening projects, totaling 354,462 yuan; in 2013, there were 3 construction loans for a village land consolidation project, totaling 30,956 yuan; in 2014, there were 4 loans for a village, totaling 246,124.50 yuan; in 2015, there were 5 untransferred accounts for the construction of a comprehensive agricultural development project, totaling 359,111.60 yuan.
[0077] Answer: "8274467.51 yuan"
[0078] S6: The annotation results of steps S2-S5 are randomly divided into training set, validation set and test set in the ratio of 7:2:1. The training sets of each step together constitute the training set TrainDataset required for LLM model construction, the validation sets of each step together constitute the validation set ValDataset required for LLM model construction, and the test sets of each step together constitute the test set TestDataset required for LLM model construction;
[0079] S7: Based on TrainDataset and ValDataset, the LLM model is fine-tuned using the Lora fine-tuning framework, and the model with the best performance on TestDataset is saved as the audit report structured LLM model.
[0080] The above is only a specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed by the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims
1. An intelligent audit report information extraction method based on LLM technology, characterized in that: The following steps are involved: Step 1: Read the audit report, read the text content in the audit report; Step 2: Use regularized matching technology to divide the entire audit report into three modules: cover page, body and end page; Step 3: Through the structured LLM model of the audit report, extract information from the text content of the cover page module obtained in the above step to complete the acquisition of information fields related to the audit project; Step 4: Through the structured LLM model of the audit report, extract information from the text content of the main module obtained in the above steps to complete the acquisition of information fields related to the audit issues. Among them, the information fields related to the audit project and the information fields related to the audit issues together constitute the structured information of the entire audit report.
2. The method according to claim 1, characterized in that The specific process of step 4 is as follows: S41 uses regularized matching technology to obtain the text content of the first-level title in the text module; S42 inputs the first-level title text obtained in the above step into the structured LLM model of the audit report to obtain the chapter title where the information field to be extracted is located, thereby obtaining the text content under the chapter title; S43 classifies the text content of the target chapter obtained in the above step paragraph by paragraph through the structured LLM model of the audit report; S44 extracts information from the text content of the target chapter paragraph by paragraph based on the paragraph classification results of the above steps through the structured LLM model of the audit report, and uses the post-processing algorithm to complete the acquisition of information fields related to the audit issues.
3. The method according to claim 2, characterized in that The post-processing algorithm in step S44 is specifically as follows: S1: Initialize the audit question dictionary; S2: Classify the natural paragraph. If it is classified as a problem category or a problem title, update the value of the corresponding keyword in the audit problem dictionary and enter S2.1; if it is classified as a problem description, enter S2.2, otherwise, return to S2 to continue judging the next natural paragraph; S2.1: Classify the next paragraph. This paragraph should be a question title or a question description. It may also be misjudged as a question category by the structured LLM model of the audit report. If the result is a question title or a question category, update the value of the question title keyword in the audit question dictionary and proceed to S2.1.
1. If the result is a question description, proceed to S2.
2. S2.1.1: The next paragraph should be the problem description. Skip the classification of the structured LLM model of the audit report, and directly extract the problem amount, qualitative basis, treatment opinions and other information for the paragraph, and update the values of the corresponding keywords in the audit problem dictionary; S2.1.2: Classify the next paragraph. If it is a problem description, extract the problem amount, qualitative basis, treatment opinions and other information from the paragraph in turn, update the value of the corresponding keyword in the audit problem dictionary, and return to S2.1.2; otherwise, save the current audit problem dictionary and enter S2.4; S2.2: Extract information such as question title, question amount, qualitative basis, etc. for this paragraph, update the value of the corresponding keyword in the audit question dictionary, and enter S2.3; S2.3: Classify the next paragraph. If it is a problem description, return to S2.
2. Otherwise, save the current audit problem dictionary and enter S2.
4. S2.4: If all paragraphs have been processed, exit; otherwise, return to S1.
4. The method according to claim 3, characterized in that The construction of the structured LLM model of the audit report is as follows: S51: Collect and organize audit reports from previous years and build the basic database Database1; S52: for step 3, annotate the data of the extraction task on Database 1 and organize them in the form of triples; S53: with respect to step S42, the first-level title data of Database1 is annotated and organized in the form of triples to obtain the target chapter title; S54: for step S43, the paragraph category data of Database1 is annotated and organized in the form of triples, and the categories include question category, question title, question description and irrelevant; S55: With respect to step S44, data annotations are performed for different categories of paragraphs by extracting different field information, and organized in the form of triples: S56: randomly divide the annotation results of steps S52-S55 into training set, validation set and test set according to proportion, the training sets of each step together constitute the training set TrainDataset required for LLM model construction, the validation sets of each step together constitute the validation set ValDataset required for LLM model construction, and the test sets of each step together constitute the test set TestDataset required for LLM model construction; S57: Based on TrainDataset and ValDataset, the LLM model is fine-tuned and trained using the LLM fine-tuning framework, and the model with the best performance on TestDataset is saved as the audit report structured LLM model.
Citation Information
Patent Citations
Document content identification method and device, electronic equipment and medium
CN112541359A
Method for extracting information in file, computer equipment and storage device
CN113626655A
Method and device for extracting project and company basic information in bidding document
CN115730581A
Low-cost bulletin data extraction method driven by large language model
CN117592470A
Cited By
Text recommendation system and method for interpreting audit report based on large model
CN119088950A
Auditing information extraction method and system based on large language model
CN121234922A
