Language model detection method and device, computer equipment, readable storage medium and program product
By detecting language models for a variety of question types in financial business scenarios, combined with comprehensive detection strategies and indicators, the problem of inaccurate language model detection results in the existing technology is solved, and a more accurate and reliable model performance evaluation is achieved.
Patent Information
- Application Number
- CN202410727101.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-06
- Publication Date
- 2024-09-06
AI Technical Summary
The existing technology is difficult to accurately detect the training effect of language models in financial business scenarios, resulting in inaccurate detection results.
Provide a language model detection method. By obtaining test questions of multiple types of questions related to the target financial business scenario, input the language model to be tested, obtain comprehensive detection strategies and detection indicators, and determine the detection of the language model under different question types. The results are comprehensively analyzed to obtain accurate model detection results.
It improves the detection accuracy and reliability of the language model in financial business scenarios, avoids the analysis of different question types by a single model or a single detection indicator, ensures the fairness, objectivity and rationality of the detection results, and reduces misjudgments.
Smart Images

Figure CN118606187A
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a language model detection method, apparatus, computer equipment, computer-readable storage medium, and computer program product. Background Art
[0002] With the development of computer technology, artificial intelligence models have been widely used. After the language model is trained, it is often necessary to test the model training effect and then further optimize it based on the test results.
[0003] In related technologies, language models are mainly tested using evaluation sets that are open to the public. Specifically, the evaluation sets are mainly multiple-choice questions, and during testing, only a simple matching task is required to determine whether the answer output by the language model is accurate and obtain the test result.
[0004] However, the inventors found in practice that when it is necessary to detect the training effect of the language model in different financial business scenarios, the above method is difficult to obtain accurate detection results. Summary of the invention
[0005] Based on this, it is necessary to provide a language model detection method, device, computer equipment, computer-readable storage medium and computer program product that can improve the accuracy and reliability of language model detection results in financial business scenarios in response to the above technical problems.
[0006] In a first aspect, the present application provides a language model detection method, comprising:
[0007] Get test questions of various types related to target financial business scenarios;
[0008] Inputting the test question into a language model to be tested, and obtaining answer information output by the language model for the test question;
[0009] Obtaining a comprehensive testing strategy for each question type and various testing indicators involved in the comprehensive testing strategy;
[0010] For each of the test questions of the question type, determine a first detection result of each of the detection indicators according to the answer information of the test question, and determine a second detection result of the language model when processing the test question of the question type according to each of the first detection results and the comprehensive detection strategy of the question type;
[0011] According to the second detection results corresponding to the plurality of question types, a model detection result of the language model in the target financial business scenario is obtained.
[0012] In one embodiment, for each of the test questions of the question type, determining a first detection result of each of the detection indicators according to the answer information of the test question, and determining a second detection result of the language model when processing the test question of the question type according to each of the first detection results and the comprehensive detection strategy of the question type, includes:
[0013] If the question type is of the first type, determining the first detection result of the matching detection indicator in each of the detection indicators according to the answer information of the test question, and when the first detection result meets the threshold condition, determining the second detection result of the language model when processing the test question of the first type according to the comprehensive detection strategy of the first type;
[0014] If the question type is of the second type, the first detection result of the multi-ability dimension detection indicator in each of the detection indicators is determined according to the answer information containing valid answer content, and the second detection result of the language model when processing the test question of the second type is determined according to the first detection result of the multi-ability dimension detection indicator and the comprehensive detection strategy of the second type; the multi-ability dimension detection indicators include at least two of the detection indicators of the model basic ability dimension, the detection indicators of the financial field knowledge understanding ability dimension, and the detection indicators of the scenario task processing ability dimension of the target financial business scenario.
[0015] In one embodiment, before the step of determining the first test result of the multi-ability dimension test indicator in each of the test indicators according to the answer information containing the valid answer content, it also includes:
[0016] Inputting the answer information of the test question into a trained semantic understanding model to obtain a semantic understanding result output by the semantic understanding model;
[0017] If the matching degree between the semantic understanding result and the standard answer information of the test question reaches a matching degree threshold, it is determined that the answer information of the test question includes the valid answer content.
[0018] In one embodiment, determining the second detection result of the language model when processing the test question of the second type according to the first detection result of the multi-ability dimension detection indicator and the second type of comprehensive detection strategy includes:
[0019] Determining, according to the comprehensive detection strategy of the second type, a threshold value of the detection indicator of the multi-capability dimension;
[0020] For the detection indicator of each capability dimension in the multiple capability dimension detection indicators, the first detection result is compared with the standard-reaching threshold to obtain a comparison result of the detection indicator of each capability dimension;
[0021] The second detection result of the language model when processing the test question of the second type is determined according to the comparison result of the detection index of each ability dimension.
[0022] In one embodiment, the obtaining of test questions of various types related to the target financial business scenario includes:
[0023] Acquiring financial business data related to the target financial business scenario;
[0024] Determine a test question construction template corresponding to each question type, and determine guidance information for guiding the generation of the test question content of the question type;
[0025] The financial business data, the guiding information of the multiple question types and the test question construction template are input into a test question generation model to obtain the test questions of the multiple question types output by the test question generation model.
[0026] In one embodiment, obtaining various detection indicators involved in the comprehensive detection strategy includes:
[0027] Determine a matching degree detection index representing the matching degree between the answer information and the standard answer information, determine the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension, and the detection index of the scenario task processing ability dimension of the target financial business scenario;
[0028] Based on the matching degree detection index, the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension and the detection index of the scenario task processing ability dimension of the target financial business scenario, the various detection indicators involved in the comprehensive detection strategy are obtained.
[0029] In one embodiment, obtaining the model detection result of the language model in the target financial business scenario according to the second detection results corresponding to the plurality of question types includes:
[0030] Acquire report information of a report item for each of the target detection indicators according to the first detection results of the plurality of target detection indicators in each of the detection indicators;
[0031] According to the second detection results corresponding to the plurality of question types and the report information, a model detection result of the language model in the target financial business scenario is obtained.
[0032] In a second aspect, the present application also provides a language model detection device, comprising:
[0033] A test question acquisition module is used to acquire test questions of various types related to the target financial business scenario;
[0034] An answering module, used for inputting the test question into the language model to be tested, and obtaining answer information output by the language model for the test question;
[0035] A strategy acquisition module, used to acquire a comprehensive test strategy for each question type and various test indicators involved in the comprehensive test strategy;
[0036] an indicator processing module, for determining, for each of the test questions of the question type, a first detection result of each of the detection indicators according to the answer information of the test question, and determining, according to each of the first detection results and the comprehensive detection strategy of the question type, a second detection result of the language model when processing the test question of the question type;
[0037] A detection result acquisition module is used to obtain the model detection result of the language model in the target financial business scenario according to the second detection results corresponding to the multiple question types.
[0038] In a third aspect, the present application further provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the processor executes the computer program, the following steps are implemented:
[0039] Get test questions of various types related to target financial business scenarios;
[0040] Inputting the test question into a language model to be tested, and obtaining answer information output by the language model for the test question;
[0041] Obtaining a comprehensive testing strategy for each question type and various testing indicators involved in the comprehensive testing strategy;
[0042] For each of the test questions of the question type, determine a first detection result of each of the detection indicators according to the answer information of the test question, and determine a second detection result of the language model when processing the test question of the question type according to each of the first detection results and the comprehensive detection strategy of the question type;
[0043] According to the second detection results corresponding to the plurality of question types, a model detection result of the language model in the target financial business scenario is obtained.
[0044] In a fourth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the following steps are implemented:
[0045] Get test questions of various types related to target financial business scenarios;
[0046] Inputting the test question into a language model to be tested, and obtaining answer information output by the language model for the test question;
[0047] Obtaining a comprehensive testing strategy for each question type and various testing indicators involved in the comprehensive testing strategy;
[0048] For each of the test questions of the question type, determine a first detection result of each of the detection indicators according to the answer information of the test question, and determine a second detection result of the language model when processing the test question of the question type according to each of the first detection results and the comprehensive detection strategy of the question type;
[0049] According to the second detection results corresponding to the plurality of question types, a model detection result of the language model in the target financial business scenario is obtained.
[0050] In a fifth aspect, the present application further provides a computer program product, including a computer program, which implements the following steps when executed by a processor:
[0051] Get test questions of various types related to target financial business scenarios;
[0052] Inputting the test question into a language model to be tested, and obtaining answer information output by the language model for the test question;
[0053] Obtaining a comprehensive testing strategy for each question type and various testing indicators involved in the comprehensive testing strategy;
[0054] For each of the test questions of the question type, determine a first detection result of each of the detection indicators according to the answer information of the test question, and determine a second detection result of the language model when processing the test question of the question type according to each of the first detection results and the comprehensive detection strategy of the question type;
[0055] According to the second detection results corresponding to the plurality of question types, a model detection result of the language model in the target financial business scenario is obtained.
[0056] The above-mentioned language model detection method, device, computer equipment, computer-readable storage medium and computer program product can obtain test questions of various types related to the target financial business scenario, input the test questions into the language model to be detected, and obtain the answer information output by the language model for the test questions; then obtain the comprehensive detection strategy for each question type and the various detection indicators involved in the comprehensive detection strategy, for each test question type, determine the first detection result of each detection indicator according to the answer information of the test question, and determine the second detection result of the language model when processing the test question of the question type according to the various first detection results and the comprehensive detection strategy of the question type; and then, according to the second detection results corresponding to the various question types, obtain the model detection result of the language model in the target financial business scenario. The beneficial effects include: on the one hand, by testing the language model with a variety of question types related to the target financial business scenario, the training effect of the language model in a specific financial business scenario can be effectively detected; on the other hand, by configuring a corresponding comprehensive detection strategy and a corresponding detection indicator for each question type, and then determining a second detection result based on the first detection result of the detection indicator and the comprehensive detection strategy, the answer information output by the language model can be comprehensively analyzed, avoiding the use of a single model or a single detection indicator to analyze test questions of different question types, accurately identifying the valid content of the scoring points in the answer information output by the language model, and ensuring from different detection angles that the answer information to be analyzed obtains a fair, objective and reasonable second detection result, reducing the occurrence of misjudgments, and thus effectively improving the accuracy and reliability of the model detection results when detecting the model performance of the language model in a specific financial business scenario. BRIEF DESCRIPTION OF THE DRAWINGS
[0057] In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the drawings required for use in the embodiments of the present application or related technical descriptions will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other related drawings can be obtained based on these drawings without paying creative work.
[0058] Figure 1 A flow chart of a language model detection method in an embodiment;
[0059] Figure 2 A schematic diagram of a flow chart of a step of obtaining a second detection result in an embodiment;
[0060] Figure 3 A flowchart of a step of obtaining a test question in an embodiment;
[0061] Figure 4 is a flow chart of another language model detection method in one embodiment;
[0062] Figure 5 is a structural block diagram of a language model detection device in one embodiment;
[0063] Figure 6 The figure is a diagram of the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0064] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0065] It should be noted that the acquisition, transmission, storage, use, and processing of data in the technical solution of this application comply with the relevant provisions of national laws and regulations; in addition, in the embodiments of this application, certain software, components, models, and other existing solutions in the industry may be mentioned, and they should be regarded as exemplary. Their purpose is only to illustrate the feasibility of implementing the technical solution of this application, but it does not mean that the applicant has or will necessarily use the solution.
[0066] In order to enable those skilled in the art to better understand the present application, the following introduces the related art method of detecting language models.
[0067] With the development of computer technology, artificial intelligence models have been widely used. After the language model is trained, it is often necessary to test the model training effect and then further optimize it based on the test results.
[0068] In some related technologies, the training effect of the language model is tested manually, for example, open-ended questions are input into the language model, and after the model outputs the answer, the staff will score the answer to test the model training effect. Alternatively, the language model is tested using a test set open to the public. The test set mainly consists of multiple-choice questions. After the language model outputs the options for the multiple-choice questions, it can complete a simple matching task to know whether the answer output by the language model is accurate and obtain the test result. For other types of questions in the test set, after the language model outputs the answer information for the question, it can call an externally provided trained test model, which will score the answer information output by the language model, and determine the general ability of the language model based on the scoring results.
[0069] However, in the above methods, the manual detection method requires multiple testers to spend a lot of time and energy and is relatively inefficient; using a public evaluation set to detect the model, although the efficiency has been improved, it is difficult for the general evaluation set to detect the training effect of the language model in different financial business scenarios, and there is a lack of data analysis for specific financial business scenarios. At the same time, calling an externally trained detection model often costs a certain amount of money. As the number of financial business scenarios continues to increase, calling an external detection model to test the language model also costs more. It can be seen that the relevant technology is difficult to efficiently and accurately obtain the detection results of the language model in a specific financial business scenario. In this regard, the present application provides a language model detection method, device, computer equipment, readable storage medium and program product to at least solve the above technical problems.
[0070] In one embodiment, Figure 1 As shown, a language model detection method is provided. This embodiment uses the method applied to a server as an example for illustration. It can be understood that the method can also be applied to a terminal, and can also be applied to a system including a terminal and a server, and is implemented through the interaction between the terminal and the server. In this embodiment, the method includes the following steps:
[0071] S101, obtaining test questions of various types related to a target financial business scenario.
[0072] The target financial business scenario may be any designated financial business scenario, and each financial business scenario involves using a language model to perform corresponding analysis and processing tasks on relevant text data, and different financial business scenarios may involve different scenario tasks and business needs. In some embodiments, when the financial business scenario includes sensing user intentions or needs, such as interacting with users through intelligent customer service, it involves using a language model to analyze user intentions; when the financial business scenario includes risk checking, it involves using a language model to analyze financial business data and identify financial business risks therefrom; when the financial business scenario includes filling out a user work order, it involves using a language model to analyze the semantics of the work order filled out by the user.
[0073] In this step, for the specified target financial business scenario, multiple test questions related to the target financial business scenario can be obtained, wherein the multiple test questions may involve multiple question types. In some embodiments, the multiple question types may include objective questions and subjective questions, objective questions may include at least one of multiple-choice questions and true-or-false questions, and subjective questions may include at least one of fill-in-the-blank questions, essay questions, and code development questions. In other embodiments, the question types can also be divided in combination with at least one of the financial field knowledge involved and the segmented business scenarios to obtain test questions of different question types. For example, the test questions can be divided into fill-in-the-blank questions under financial field knowledge K1 and fill-in-the-blank questions under financial field knowledge K2 according to the different financial field knowledge involved.
[0074] S102, inputting the test question into the language model to be tested, and obtaining answer information output by the language model for the test question.
[0075] After obtaining the test questions, each of the multiple types of test questions can be input into the language model to be tested. After the language model analyzes and processes the input test questions, the corresponding answers are determined and output as answer information.
[0076] In one embodiment, the language model may be a large language model (LLM), which has the characteristics of large model structure capacity, many structure parameters, and a large amount of data used for pre-training the large model.
[0077] S103, obtaining a comprehensive testing strategy for each question type and various testing indicators involved in the comprehensive testing strategy.
[0078] In the specific implementation, different types of test questions have different processing methods, and the form and content of the answer information output by the language model are also different. In this regard, different comprehensive detection strategies can be configured for different question types. Among them, the comprehensive detection strategy can be understood as the detection logic used when testing the ability of the language model. Each detection logic will involve corresponding detection indicators. Through the data of the language model under the corresponding detection indicators and the comprehensive detection logic, the performance of the language model in processing the corresponding test questions can be identified.
[0079] In this step, after inputting test questions of multiple question types into the language model, the comprehensive detection strategy for each question type and the various detection indicators involved in each comprehensive detection strategy can be obtained. In some embodiments, the comprehensive detection strategy may involve a single detection indicator or multiple detection indicators.
[0080] In some embodiments, the first detection result of the detection indicator can be determined by a model that calculates indicator data, such as BLEU (Bilingual Evaluation Understudy, an indicator for automatically evaluating the quality of machine translation), ROUGE (a set of indicators for evaluating the similarity between automatically generated summaries or excerpts and reference summaries), etc.
[0081] S104, for each type of test question, determine the first detection result of each detection indicator according to the answer information of the test question, and determine the second detection result of the language model when processing the test question of the question type according to each first detection result and the comprehensive detection strategy of the question type.
[0082] Specifically, for each test question of each question type, the test results of the relevant test indicators can be determined based on the answer information of each test question. For the sake of distinction, this test result is called the first test result. Then, based on the comprehensive detection strategy of the question type, each first test result can be analyzed and processed, and the test result of the language model when processing the test question of this question type can be determined by combining the first test results. This test result is also called the second test result.
[0083] In this step, for test questions of different types, the answer information output by the language model can be comprehensively analyzed in combination with the comprehensive detection strategy corresponding to the question type and the first detection results under the detection indicators involved to obtain the second detection result, thereby avoiding the use of a single model or a single detection indicator to analyze test questions of different types, accurately identifying the valid content of the scoring points in the answer information output by the language model, and ensuring from different detection angles that the answer information to be evaluated obtains a fair, objective and reasonable second detection result, thereby reducing the occurrence of misjudgments.
[0084] S105, obtaining a model detection result of the language model in a target financial business scenario according to the second detection results corresponding to the multiple question types.
[0085] After obtaining the second test results corresponding to various question types, the second test results can be combined to analyze the language model's processing of test questions of different question types, and the model detection results of the language model in the target financial business scenario can be obtained.
[0086] In the above-mentioned language model detection method, test questions of various question types related to the target financial business scenario can be obtained, and the test questions are input into the language model to be detected to obtain the answer information output by the language model for the test questions; then the comprehensive detection strategy for each question type and the various detection indicators involved in the comprehensive detection strategy are obtained, and for the test questions of each question type, the first detection result of each detection indicator is determined according to the answer information of the test questions, and the second detection result of the language model when processing the test questions of the question type is determined according to the various first detection results and the comprehensive detection strategy of the question type; and then the model detection result of the language model in the target financial business scenario can be obtained according to the second detection results corresponding to the various question types. In this embodiment, on the one hand, by testing the language model with a variety of question types related to the target financial business scenario, the training effect of the language model in a specific financial business scenario can be effectively detected. On the other hand, by configuring a corresponding comprehensive detection strategy and a corresponding detection indicator for each question type, and then determining a second detection result based on the first detection result of the detection indicator and the comprehensive detection strategy, the answer information output by the language model can be comprehensively analyzed to avoid using a single model or a single detection indicator to analyze test questions of different question types, accurately identify the valid content of the scoring points in the answer information output by the language model, and ensure that the answer information to be analyzed obtains a fair, objective and reasonable second detection result from different detection angles, thereby reducing the occurrence of misjudgments, thereby effectively improving the accuracy and reliability of the model detection results when detecting the model performance of the language model in a specific financial business scenario.
[0087] In one embodiment, in step S104, for each type of test question, determining the first detection result of each detection indicator according to the answer information of the test question, and determining the second detection result of the language model when processing the test question of the question type according to each first detection result and the comprehensive detection strategy of the question type, may include the following steps:
[0088] If the question type is of the first type, then the first detection result of the matching detection indicator among the various detection indicators is determined according to the answer information of the test question, and when the first detection result meets the threshold condition, the second detection result of the language model when processing the first type of test question is determined according to the comprehensive detection strategy of the first type; if the question type is of the second type, then the first detection result of the multi-ability dimension detection indicator among the various detection indicators is determined according to the answer information containing valid answer content, and the second detection result of the language model when processing the second type of test question is determined according to the first detection result of the multi-ability dimension detection indicator and the comprehensive detection strategy of the second type; the multi-ability dimension detection indicators include at least two of the detection indicators of the model basic ability dimension, the detection indicators of the financial field knowledge understanding ability dimension, and the detection indicators of the scenario task processing ability dimension of the target financial business scenario.
[0089] If the question type is the first type, since the first type of question is to select one or more from a plurality of candidate answer information provided in advance as the actual answer information, the first type of comprehensive detection strategy may involve a matching detection indicator among various detection indicators, which reflects the degree of matching between the answer information and the standard answer information. In one example, the first type may be an objective question type, such as a multiple-choice question, a judgment question, etc.
[0090] After obtaining the answer information of the first type of test questions, the matching degree between the answer information and the standard answer information of the test questions can be determined to obtain a first detection result of the matching degree index, and then when the first detection result meets the threshold condition, the second detection result of the language model when processing the first type of test questions can be determined according to the first type of comprehensive detection strategy. For example, the principle of complete matching can be adopted to filter out the answers corresponding to the options from the language model answers through regular matching, and then match them with the standard answers. When they are completely matched, points can be scored, otherwise no points will be scored.
[0091] If the question type is the second type, since the second type of test questions are test questions in which the test takers organize the answer content and generate the answer information by themselves, such as fill-in-the-blank questions, short-answer questions, calculation questions, etc., the assessment methods of this type of test questions are more flexible and diverse, and the language model involves more ability dimensions when processing this type of test questions. In this regard, when the answer information of the test question contains valid answer content, the first detection result of the multi-ability dimension detection index can be determined according to the answer information, wherein the multi-ability dimension detection index can include at least two of the detection indicators of the model basic ability dimension, the detection indicators of the financial field knowledge understanding ability dimension, and the detection indicators of the scenario task processing ability dimension of the target financial business scenario. Furthermore, the second detection result of the language model when processing the second type of test questions can be determined based on the first detection result of the multi-ability dimension detection indicator and the second type of comprehensive detection strategy.
[0092] In addition, if the multiple test types also include code-type questions, one or more of the code format review detection indicators, program operation status detection indicators, and program output result detection indicators can be obtained from various detection indicators to verify the language model training effect.
[0093] In this embodiment, for test questions of different types, by using different comprehensive detection strategies and detection indicators respectively, matching and detailed detectable content (such as scoreable points) can be set for the answer information output by the language model for different reminders, avoiding the one-size-fits-all approach of simply using one detection strategy or one detection indicator to directly output the model detection results, and effectively ensuring that the answer information to be analyzed obtains fair and reasonable detection results from different detection angles.
[0094] In one embodiment, before the step of determining the first test result of the multi-ability dimension test indicator in each test indicator according to the answer information containing the valid answer content, the following steps may be further performed to detect whether there is valid answer content in the answer information:
[0095] The answer information of the test question is input into the trained semantic understanding model to obtain the semantic understanding result output by the semantic understanding model; if the matching degree between the semantic understanding result and the standard answer information of the test question reaches the matching degree threshold, it is determined that the answer information of the test question contains valid answer content.
[0096] Among them, the effective answer content can be understood as the answer information that can be used to detect the effect of model training.
[0097] In this embodiment, the answer information of the test questions can be input into a trained semantic understanding model, wherein the semantic understanding model can be a deep learning model trained based on a deep learning framework, such as an artificial neural network model, which can achieve high-level abstract expression and learning through multi-layer nonlinear transformations. Then, the semantic understanding result output by the semantic understanding model is matched with the standard answer information of the test questions for similarity, and the semantic understanding result can be the semantics expressed by the answer information after the semantic understanding model performs semantic understanding on the answer information.
[0098] If the semantic understanding result does not match the standard answer information of the test question to the matching threshold, it can be determined that the test question does not contain valid answer content, and it can be determined that the language model failed to obtain a score when processing the test question. If the semantic understanding result matches the standard answer information of the test question to the matching threshold, it can be determined that the test question contains valid answer content and can be further processed in combination with the comprehensive detection strategy.
[0099] In this embodiment, the language model is tested by combining a semantic understanding model with multiple detection indicators, and further analysis can be performed when it is determined that the answer information contains valid answer content. This avoids the time and effort of traditional manual detection methods, does not require reliance on external trained detection models, does not require a large amount of model detection costs, and is no longer limited by network factors that cause external model call failures and inability to detect models.
[0100] In one embodiment, Figure 2 As shown, according to the first detection result of the multi-ability dimension detection indicator and the second type of comprehensive detection strategy, determining the second detection result of the language model when processing the second type of test questions may include the following steps:
[0101] S201, determining the thresholds of the multi-capability dimension detection indicators according to the second type of comprehensive detection strategy.
[0102] In a specific implementation, each question type may have a corresponding comprehensive detection strategy and a threshold setting to comprehensively determine the second detection result of the model. In this step, the threshold of each ability dimension detection indicator in the multi-ability dimension detection indicators involved in the comprehensive detection strategy may be determined according to the second type of comprehensive detection strategy, wherein the same ability dimension detection indicator may have one or more thresholds.
[0103] S202, for the detection indicator of each capability dimension in the multi-capability dimension detection indicators, compare the first detection result with the standard-reaching threshold to obtain a comparison result of the detection indicator of each capability dimension.
[0104] In this step, for the detection indicator of each capability dimension, the first detection result of the detection indicator can be compared with each standard-reaching threshold of the capability dimension to obtain the comparison result of the detection indicator of the capability dimension.
[0105] S203: Determine a second detection result of the language model when processing a second type of test question according to the comparison result of the detection index of each ability dimension.
[0106] Under different thresholds, the evaluation (such as the test score) that the language model can obtain for the ability dimension test indicator is different. By comparing the results, the rating result or test score level of the language model under the ability dimension test indicator can be determined. Then, based on the comparison results of the test indicators of each ability dimension, the rating result of the language model under the test indicators of each ability dimension can be obtained, and the second test result can be obtained by combining multiple rating results.
[0107] For example, a semantic understanding model and multi-ability dimension detection indicators can be used for joint scoring. The semantic understanding model first determines the similarity between the answer information and the standard answer. After the similarity reaches the set conditions, the multi-ability dimension detection indicators are used for secondary confirmation. If both scores are higher than the set threshold, a high score is given. Otherwise, when different conditional branches are reached, corresponding scores are given according to the set achievement threshold and weight.
[0108] In this embodiment, by comparing the first detection result with the standard threshold, the comparison result of the detection index of each ability dimension is obtained, which can quickly and effectively identify the overall training performance and training effect of the language model under different detection indicators, and help relevant personnel to intuitively perceive the model training effect.
[0109] In one embodiment, Figure 3 As shown, in step S101, obtaining test questions of various types related to the target financial business scenario may include:
[0110] S301, obtaining financial business data related to a target financial business scenario.
[0111] In practical applications, the financial business data generated in the target financial business scenario can be collected to obtain financial business data related to the target financial business scenario. For example, if the target financial business scenario includes risk inspection, the financial business documents to be inspected (such as risk inspection rules set by the enterprise or other entities, business data with financial business risks, etc.) can be used as relevant financial business data; if the target financial business scenario includes user work order filling, the work order filled by the user and the feedback information returned for the work order can be used as relevant financial business data.
[0112] S302, determining a test question construction template corresponding to each question type, and determining guidance information for guiding the generation of test question content of the question type.
[0113] The test question construction template is also called a task seed. Each question type may have one or more corresponding test question construction templates, and various different tasks may be generated through the test question construction templates. In one example, the test question construction template may provide a test question type structure framework, such as a questioning method.
[0114] The guidance information can be used to guide the test question generation model to generate test question content, such as the knowledge points involved in the question, the financial knowledge field or the number of words in the question, etc. In one example, the guidance information can be a prompt information prompt, which is a prompt text or question input into the test question generation model, which can be a paragraph, a question or a group of related dialogues. The test question generation model can generate a corresponding response or complete the specified question setting task according to the prompt information prompt.
[0115] S303, inputting financial business data, guidance information of various question types and test question construction templates into a test question generation model, and obtaining test questions of various question types output by the test question generation model.
[0116] In a specific implementation, after obtaining the real financial business data in the target financial business scenario, the financial business data, the test question construction templates corresponding to the various question types, and the guidance information can be integrated into multiple evaluation set construction instructions, which are input into the trained test question generation model. Exemplarily, the test question generation model can be a trained language model that is not used for detection. After receiving the evaluation set construction instruction, the test question generation model can batch generate test questions of various question types according to the financial business data, guidance information, and test question construction templates therein. In this way, it is possible to automatically provide an evaluable financial data set for the financial field, reduce the workload of model detection personnel in setting questions, and provide a variety of evaluation data sets for the language models trained in the financial field. Compared with the public data set, it can include test questions with richer question types and more in line with the target financial business scenario.
[0117] In some embodiments, the ability dimensions that a language model relies on when processing different test questions may be different. For example, when processing test question A, the a ability dimension of the language model needs to be used, and when processing test question B, the a and b ability dimensions of the language model need to be used. After the test question generation model outputs test questions of various types, it can also add corresponding ability labels to each test question. The ability labels can indicate the ability dimensions that the language model needs to use when processing the test question.
[0118] Exemplarily, the capability label may include a first-level capability label, a second-level capability label, and a third-level capability label. Among them, the first-level capability label may correspond to the general capability of the language model, and the first-level capability label may include at least one of the following: information extraction, reading comprehension, code generation and review, mathematical calculation, security compliance, and logical reasoning; the second-level capability label can be used to analyze the performance of the language model in a specific financial knowledge field, and the second-level capability label may include at least one of the following: financial risk knowledge, company private financial knowledge, and channel operation financial knowledge; the third-level capability label is the most fine-grained financial business label for the financial business scenario, which can facilitate model training personnel to quickly locate the data performance of the language model in which financial business scenario is poor, and make timely adjustment strategies. At the same time, for the business party who proposes the financial business scenario demand, the third-level capability label can also be used to assist the trial operation test data, and use this as a reference to grasp the current language model's capability score in specific business demand items. In one example, the third-level capability label can be composed of the demand party and the corresponding business demand content, such as "operation center-user perception demand", "operation center-risk verification demand", etc.
[0119] In some embodiments, the test questions output by the test question generation model may also be analyzed according to the test question quality detection strategy to determine the data quality of the generated test questions, and then the test questions whose data quality meets the quality conditions are selected to form the final evaluation set for testing the language model.
[0120] In this embodiment, by inputting relevant financial business data, test question construction templates corresponding to various question types and guiding information into the test question generation model, it is possible to quickly and accurately generate test questions of various question types that meet the target financial business scenario detection requirements in batches, thereby improving the matching of various test questions with given business scenarios. Compared with the use of general field evaluation set detection models in related technologies, which makes it impossible to reflect the capabilities of the language model in specific financial business scenarios, this embodiment helps to accurately measure the scenario task processing capabilities of the language model in a given financial business scenario through the test questions.
[0121] In addition, compared with the related art that uses public evaluation sets for model testing and causes early leakage of evaluation data, this embodiment can also avoid the early public leakage of evaluation data by flexibly regenerating corresponding test questions based on financial business data in business scenarios.
[0122] In one embodiment, obtaining various detection indicators involved in the comprehensive detection strategy may include the following steps:
[0123] Determine the matching detection index that represents the matching degree between the answer information and the standard answer information, determine the detection index of the model basic capability dimension, the detection index of the financial field knowledge understanding capability dimension and the detection index of the scenario task processing capability dimension of the target financial business scenario; according to the matching detection index, the detection index of the model basic capability dimension, the detection index of the financial field knowledge understanding capability dimension and the detection index of the scenario task processing capability dimension of the target financial business scenario, obtain the various detection indicators involved in the comprehensive detection strategy.
[0124] In practical applications, a matching degree detection index can be set, and the matching degree detection index can intuitively reflect the accuracy of the model output answer. In addition, in this embodiment, multiple capability dimension detection indicators are set, including detection indicators of the model basic capability dimension, detection indicators of the financial field knowledge understanding capability dimension, and detection indicators of the scenario task processing capability dimension, so that the capabilities of the language model at multiple levels can be detected and reflected from multiple different dimensions.
[0125] Specifically, the detection indicators of the model basic capability dimension can also be called the first-level capability detection indicators. The model basic capability dimension indicators can correspond to the general capabilities of the model and be associated with the capability detection indicators commonly used in the external public general data sets. In other words, through the detection indicators of the model basic capability dimension, the language model can be compared with other models that use the capability detection indicators commonly used in external general data sets. Therefore, for relevant personnel in non-financial fields, the model basic capability dimension can be used to understand what capabilities the language model needs to have when processing a certain test question. For example, the model basic capability dimension can include at least one of the following: information extraction, reading comprehension, code generation and review, mathematical calculation, security compliance, and logical reasoning.
[0126] The detection indicators of the financial domain knowledge comprehension ability dimension can map business scenarios with financial domain knowledge. In this way, the performance of the language model in the specified financial knowledge field can be accurately analyzed with the help of the detection indicators of the financial domain knowledge comprehension ability. Through the secondary ability label, the more fine-grained labels of the business scenario can be set aside to understand the overall financial knowledge ability of the language model in the larger financial field. Exemplarily, the financial domain knowledge comprehension ability dimension can include at least one of the following: financial risk knowledge, company private financial knowledge, and channel operation financial knowledge.
[0127] The detection index of the scenario task processing capability dimension may be the detection index of the most fine-grained capability for the financial business scenario. By obtaining the detection results under the detection index of this dimension, it is convenient for model training personnel to quickly locate in which financial business scenario the language model has poor data performance and make timely adjustments. Exemplarily, the scenario task processing capability dimension may include at least one of the following: user intention or demand perception, risk verification, and user work order completion.
[0128] In this embodiment, on the one hand, by setting the matching degree detection index, the accuracy of the language model output result can be quickly and intuitively known; on the other hand, by setting the detection index related to the model basic ability dimension, the detection index related to the financial field knowledge understanding ability dimension, and the detection index related to the scenario task processing ability dimension, not only can the general performance of the language model be conveniently compared with other external models, but also the language model's ability to understand financial field knowledge and its performance in specific financial business scenarios can be reflected, which is helpful for subsequent targeted model optimization.
[0129] In one embodiment, step S105, obtaining a model detection result of the language model in a target financial business scenario according to the second detection results corresponding to the multiple question types, may include the following steps:
[0130] According to the first detection results of multiple target detection indicators in each detection indicator, report information of the report item for each target detection indicator is obtained; according to the second detection results and report information corresponding to multiple question types, the model detection results of the language model in the target financial business scenario are obtained.
[0131] In a specific implementation, after obtaining the first detection result of each detection indicator, multiple detection indicators can be extracted as target detection indicators, and based on the first detection result of the target detection indicator, report information of the report item for each target detection indicator can be obtained, wherein the report item is the report item in the model detection report.
[0132] In some optional embodiments, the target detection indicator can be selected according to the capability dimension, that is, among the various detection indicators, the various detection indicators related to the capability dimension can be selected as the target detection indicators, so that the report information can also be reflected and reported according to the capability dimension. For example, various detection indicators related to the model basic capability dimension can be selected as target detection indicators, and then the report information can be obtained according to the first detection result of the target detection indicator, and the report information can characterize the performance of the language model under the model basic capability dimension. Thus, different groups of people can obtain corresponding report information according to different capability labels and the first detection results of the detection indicators under the specified capability dimension involved, and can quickly confirm the training effect of the key model capabilities of concern in the model training, which helps different groups of people to conveniently lock the situation of the language model in the specific capability dimension through the report information corresponding to the detection indicators of the specific capability dimension, and conduct analysis and discussion.
[0133] After obtaining multiple report information, a model detection report can be generated according to the second detection results and report information corresponding to the multiple question types as the model detection result of the language model in the target financial business scenario.
[0134] In this embodiment, by obtaining report information based on the first detection result of the target detection indicator, and obtaining the model detection result based on the second detection result and the report information, it can be convenient for different groups of people to consult and analyze, so that relevant personnel can quickly locate the training status of the language model under the detection indicator of concern. The model detection result is clear at a glance, which improves the efficiency of relevant personnel in understanding the model training status and helps to better carry out subsequent analysis work.
[0135] In order to enable those skilled in the art to better understand the above steps, the embodiment of the present application is illustrated below by using an example, but it should be understood that the embodiment of the present application is not limited to this.
[0136] like Figure 4As shown in the figure, the evaluation set construction module can receive financial business data, integrate task seeds and prompts with different question types into multiple data set construction instructions, input them into the test question generation model, batch generate test questions of various question types related to the target financial business scenario, and label them with ability tags. Then, expert rules can be used to formulate strategies to automatically determine the quality of the generated test questions, and qualified data can be taken to form the final evaluation set.
[0137] The test questions in the evaluation set are then input into the fusion language model to be tested, and the model answers the questions, generating a result file with answer information, which is then input into the question type judgment module. This module sends multiple result files to different processing branches according to different question types. Different processing branches correspond to different comprehensive detection logics, and each processing branch is scored according to different evaluation standards and evaluation methods.
[0138] During the detection process, the principle of complete matching can be implemented first. If the match fails, different deep learning models are called to perform semantic understanding and judgment, and the similarity matching with the standard answer is used to determine whether the model answer has scoring points, that is, valid answer content; when it is determined that there is valid answer content, different detection indicators such as BLEU, ROUGE, etc. can be combined for secondary verification. Different question types have different logical strategies and different threshold settings to comprehensively give the final result, that is, the second detection result.
[0139] In one embodiment, it can be selected whether to conduct manual spot check on the detection process. If not, the result chart data is directly output as the model detection result; if so, manual spot check is initiated. During the spot check, the detection data results of K (K is a positive integer) test questions of each question type can be randomly selected and returned to the user. The user manually verifies whether the detection result is correct. If the score data effect of more than N (0<N<K, N is a positive integer) test questions of each question type is significantly different from the actual manual scoring, the scoring is determined to be incorrect, and the score of this question type is reviewed. All questions and scoring results of this question type are automatically called out for manual comparison and review. It can also be selected whether to re-execute the above process and perform a second automatic scoring through the deep learning model and detection indicators. The scoring results of other question types remain unchanged.
[0140] The final model detection results can be used to form statistical data according to different capability labels, which can be convenient for different groups of people to consult and analyze. For model trainers, they can quickly locate the training status of various business scenarios; for practitioners in the financial field, they can understand the capabilities of the model in different financial fields; and for non-financial industry practitioners, they can see the general capabilities of the model. The chart data formed visualizes the various capability dimensions of the model, which is clearer and more straightforward, providing effective auxiliary help for algorithm engineers, and can quickly locate business scenarios with poor results, providing data support for rapid iteration and online models.
[0141] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0142] Based on the same inventive concept, the embodiment of the present application also provides a language model detection device for implementing the above-mentioned language model detection method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more language model detection device embodiments provided below can refer to the limitations of the language model detection method above, and will not be repeated here.
[0143] In an exemplary embodiment, Figure 5 As shown, a language model detection device is provided, comprising:
[0144] A test question acquisition module 501 is used to acquire test questions of various types related to a target financial business scenario;
[0145] The answering module 502 is used to input the test question into the language model to be tested, and obtain the answer information output by the language model for the test question;
[0146] A strategy acquisition module 503 is used to acquire a comprehensive test strategy for each question type and various test indicators involved in the comprehensive test strategy;
[0147] An indicator processing module 504 is used to determine, for each of the test questions of the question type, a first detection result of each of the detection indicators according to the answer information of the test question, and determine, according to each of the first detection results and the comprehensive detection strategy of the question type, a second detection result of the language model when processing the test question of the question type;
[0148] The detection result acquisition module 505 is used to obtain the model detection result of the language model in the target financial business scenario according to the second detection results corresponding to the multiple question types.
[0149] In one embodiment, the indicator processing module 504 is used to:
[0150] If the question type is of the first type, determining the first detection result of the matching detection indicator in each of the detection indicators according to the answer information of the test question, and when the first detection result meets the threshold condition, determining the second detection result of the language model when processing the test question of the first type according to the comprehensive detection strategy of the first type;
[0151] If the question type is of the second type, the first detection result of the multi-ability dimension detection indicator in each of the detection indicators is determined according to the answer information containing valid answer content, and the second detection result of the language model when processing the test question of the second type is determined according to the first detection result of the multi-ability dimension detection indicator and the comprehensive detection strategy of the second type; the multi-ability dimension detection indicators include at least two of the detection indicators of the model basic ability dimension, the detection indicators of the financial field knowledge understanding ability dimension, and the detection indicators of the scenario task processing ability dimension of the target financial business scenario.
[0152] In one embodiment, the indicator processing module 504 is further used to:
[0153] Inputting the answer information of the test question into a trained semantic understanding model to obtain a semantic understanding result output by the semantic understanding model;
[0154] If the matching degree between the semantic understanding result and the standard answer information of the test question reaches a matching degree threshold, it is determined that the answer information of the test question includes the valid answer content.
[0155] In one embodiment, the indicator processing module 504 is used to:
[0156] Determining, according to the comprehensive detection strategy of the second type, a threshold value of the detection indicator of the multi-capability dimension;
[0157] For the detection indicator of each capability dimension in the multiple capability dimension detection indicators, the first detection result is compared with the standard-reaching threshold to obtain a comparison result of the detection indicator of each capability dimension;
[0158] The second detection result of the language model when processing the test question of the second type is determined according to the comparison result of the detection index of each ability dimension.
[0159] In one embodiment, the test question acquisition module 501 is used to:
[0160] Acquiring financial business data related to the target financial business scenario;
[0161] Determine a test question construction template corresponding to each question type, and determine guidance information for guiding the generation of the test question content of the question type;
[0162] The financial business data, the guiding information of the multiple question types and the test question construction template are input into a test question generation model to obtain the test questions of the multiple question types output by the test question generation model.
[0163] In one embodiment, the policy acquisition module 503 is used to:
[0164] Determine a matching degree detection index representing the matching degree between the answer information and the standard answer information, determine the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension, and the detection index of the scenario task processing ability dimension of the target financial business scenario;
[0165] Based on the matching degree detection index, the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension and the detection index of the scenario task processing ability dimension of the target financial business scenario, the various detection indicators involved in the comprehensive detection strategy are obtained.
[0166] In one embodiment, the detection result acquisition module 505 is used to:
[0167] Acquire report information of a report item for each of the target detection indicators according to the first detection results of the plurality of target detection indicators in each of the detection indicators;
[0168] According to the second detection results corresponding to the plurality of question types and the report information, a model detection result of the language model in the target financial business scenario is obtained.
[0169] Each module in the above-mentioned language model detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in a computer device in the form of hardware, or can be stored in a memory in a computer device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.
[0170] In an exemplary embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as shown in FIG. Figure 6 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store test question data. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a language model detection method is implemented.
[0171] Those skilled in the art will understand that Figure 6 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0172] In one embodiment, a computer device is provided, including a memory and a processor, wherein a computer program is stored in the memory, and the processor implements the steps in the above-mentioned method embodiments when executing the computer program.
[0173] In one embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments are implemented.
[0174] In one embodiment, a computer program product is provided, including a computer program, which implements the steps in the above-mentioned method embodiments when executed by a processor. It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with relevant regulations.
[0175] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile memory and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, an artificial intelligence (AI) processor, etc., but are not limited to this.
[0176] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this application.
[0177] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A language model detection method, characterized in that: The method comprises: Get test questions of various types related to target financial business scenarios; Inputting the test question into a language model to be tested, and obtaining answer information output by the language model for the test question; Obtaining a comprehensive testing strategy for each question type and various testing indicators involved in the comprehensive testing strategy; For each of the test questions of the question type, determine a first detection result of each of the detection indicators according to the answer information of the test question, and determine a second detection result of the language model when processing the test question of the question type according to each of the first detection results and the comprehensive detection strategy of the question type; According to the second detection results corresponding to the plurality of question types, a model detection result of the language model in the target financial business scenario is obtained.
2. The method according to claim 1, characterized in that The step of determining, for each of the test questions of the question type, a first detection result of each of the detection indicators according to the answer information of the test question, and determining, according to each of the first detection results and the comprehensive detection strategy of the question type, a second detection result of the language model when processing the test question of the question type, includes: If the question type is of the first type, determining the first detection result of the matching detection indicator in each of the detection indicators according to the answer information of the test question, and when the first detection result meets the threshold condition, determining the second detection result of the language model when processing the test question of the first type according to the comprehensive detection strategy of the first type; If the question type is of the second type, the first detection result of the multi-ability dimension detection indicator in each of the detection indicators is determined according to the answer information containing valid answer content, and the second detection result of the language model when processing the test question of the second type is determined according to the first detection result of the multi-ability dimension detection indicator and the comprehensive detection strategy of the second type; the multi-ability dimension detection indicators include at least two of the detection indicators of the model basic ability dimension, the detection indicators of the financial field knowledge understanding ability dimension, and the detection indicators of the scenario task processing ability dimension of the target financial business scenario.
3. The method according to claim 2, characterized in that Before the step of determining the first test result of the multi-ability dimension test indicator in each of the test indicators according to the answer information containing the valid answer content, the step further includes: Inputting the answer information of the test question into a trained semantic understanding model to obtain a semantic understanding result output by the semantic understanding model; If the matching degree between the semantic understanding result and the standard answer information of the test question reaches a matching degree threshold, it is determined that the answer information of the test question includes the valid answer content.
4. The method according to claim 2, characterized in that: The determining, based on the first detection result of the multi-ability dimension detection indicator and the second type of the comprehensive detection strategy, a second detection result of the language model when processing the second type of the test question includes: Determining, according to the comprehensive detection strategy of the second type, a threshold value of the detection indicator of the multi-capability dimension; For the detection indicator of each capability dimension in the multiple capability dimension detection indicators, the first detection result is compared with the standard-reaching threshold to obtain a comparison result of the detection indicator of each capability dimension; The second detection result of the language model when processing the test question of the second type is determined according to the comparison result of the detection index of each ability dimension.
5. The method according to claim 1, characterized in that The obtaining of test questions of various types related to the target financial business scenario includes: Acquiring financial business data related to the target financial business scenario; Determine a test question construction template corresponding to each question type, and determine guidance information for guiding the generation of the test question content of the question type; The financial business data, the guiding information of the multiple question types and the test question construction template are input into a test question generation model to obtain the test questions of the multiple question types output by the test question generation model.
6. The method according to any one of claims 1 to 5, characterized in that Obtain various detection indicators involved in the comprehensive detection strategy, including: Determine a matching degree detection index representing the matching degree between the answer information and the standard answer information, determine the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension, and the detection index of the scenario task processing ability dimension of the target financial business scenario; Based on the matching degree detection index, the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension and the detection index of the scenario task processing ability dimension of the target financial business scenario, the various detection indicators involved in the comprehensive detection strategy are obtained.
7. The method according to any one of claims 1 to 5, characterized in that The acquiring, according to the second detection results corresponding to the plurality of question types, a model detection result of the language model in the target financial business scenario, comprises: Acquire report information of a report item for each of the target detection indicators according to the first detection results of the plurality of target detection indicators in each of the detection indicators; According to the second detection results corresponding to the plurality of question types and the report information, a model detection result of the language model in the target financial business scenario is obtained.
8. A language model detection device, characterized in that: The device comprises: A test question acquisition module is used to acquire test questions of various types related to the target financial business scenario; An answering module, used for inputting the test question into the language model to be tested, and obtaining answer information output by the language model for the test question; A strategy acquisition module, used to acquire a comprehensive test strategy for each question type and various test indicators involved in the comprehensive test strategy; an indicator processing module, for determining, for each of the test questions of the question type, a first detection result of each of the detection indicators according to the answer information of the test question, and determining, according to each of the first detection results and the comprehensive detection strategy of the question type, a second detection result of the language model when processing the test question of the question type; A detection result acquisition module is used to obtain the model detection result of the language model in the target financial business scenario according to the second detection results corresponding to the multiple question types.
9. The device according to claim 8, characterized in that The indicator processing module is used to: If the question type is of the first type, determining the first detection result of the matching detection indicator in each of the detection indicators according to the answer information of the test question, and when the first detection result meets the threshold condition, determining the second detection result of the language model when processing the test question of the first type according to the comprehensive detection strategy of the first type; If the question type is of the second type, the first detection result of the multi-ability dimension detection indicator in each of the detection indicators is determined according to the answer information containing valid answer content, and the second detection result of the language model when processing the test question of the second type is determined according to the first detection result of the multi-ability dimension detection indicator and the comprehensive detection strategy of the second type; the multi-ability dimension detection indicators include at least two of the detection indicators of the model basic ability dimension, the detection indicators of the financial field knowledge understanding ability dimension, and the detection indicators of the scenario task processing ability dimension of the target financial business scenario.
10. The device according to claim 9, characterized in that The indicator processing module is also used for: Inputting the answer information of the test question into a trained semantic understanding model to obtain a semantic understanding result output by the semantic understanding model; If the matching degree between the semantic understanding result and the standard answer information of the test question reaches a matching degree threshold, it is determined that the answer information of the test question includes the valid answer content.
11. The device according to claim 9, characterized in that The indicator processing module is used to: Determining, according to the comprehensive detection strategy of the second type, a threshold value of the detection indicator of the multi-capability dimension; For the detection indicator of each capability dimension in the multiple capability dimension detection indicators, the first detection result is compared with the standard-reaching threshold to obtain a comparison result of the detection indicator of each capability dimension; The second detection result of the language model when processing the test question of the second type is determined according to the comparison result of the detection index of each ability dimension.
12. The device according to claim 8, characterized in that The test question acquisition module is used to: Acquiring financial business data related to the target financial business scenario; Determine a test question construction template corresponding to each question type, and determine guidance information for guiding the generation of the test question content of the question type; The financial business data, the guiding information of the multiple question types and the test question construction template are input into a test question generation model to obtain the test questions of the multiple question types output by the test question generation model.
13. The device according to any one of claims 8 to 12, characterized in that The strategy acquisition module is used to: Determine a matching degree detection index representing the matching degree between the answer information and the standard answer information, determine the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension, and the detection index of the scenario task processing ability dimension of the target financial business scenario; Based on the matching degree detection index, the detection index of the model basic ability dimension, the detection index of the financial field knowledge understanding ability dimension and the detection index of the scenario task processing ability dimension of the target financial business scenario, the various detection indicators involved in the comprehensive detection strategy are obtained.
14. The device according to any one of claims 8 to 12, characterized in that The detection result acquisition module is used to: Acquire report information of a report item for each of the target detection indicators according to the first detection results of the plurality of target detection indicators in each of the detection indicators; According to the second detection results corresponding to the plurality of question types and the report information, a model detection result of the language model in the target financial business scenario is obtained.
15. A computer device comprising a memory and a processor, wherein the memory stores a computer program, wherein: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
16. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
