Large model capability multi-dimensional evaluation method and device
Through the multi-dimensional evaluation method of large model capabilities, the model evaluation capability system and self-guidance mechanism are used to generate evaluation questions and perform multi-dimensional evaluation, which solves the problem of insufficient accuracy and comprehensiveness of large language model evaluation results, and achieves a comprehensive measurement and evaluation of large model capabilities. Accurate assessment.
Patent Information
- Application Number
- CN202410761163.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-13
- Publication Date
- 2024-10-01
AI Technical Summary
Existing technology cannot effectively and comprehensively evaluate the capabilities of large language models, resulting in evaluation results that are not accurate and comprehensive enough to meet the evaluation needs of large models in specific fields.
Adopt a large model capability multi-dimensional evaluation method, determine multiple capability evaluation dimensions through the model evaluation capability system, generate corresponding evaluation questions, conduct multi-dimensional evaluation based on the evaluation results, use the self-guidance mechanism to expand evaluation data, and improve the accuracy and comprehensiveness of the evaluation .
It achieves a comprehensive measurement of large models under different capability dimensions, improves the accuracy and comprehensiveness of evaluation, and especially makes up for the lack of public evaluation data in the evaluation of special fields.
Smart Images

Figure CN118733413A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of artificial intelligence technology, and in particular to a method and device for multi-dimensional evaluation of large model capabilities. Background Art
[0002] With the rapid development of artificial intelligence technology, large language models (LLMs) have triggered a new wave of technology, showing impressive generalization capabilities and wide applicability. Comprehensive and objective evaluation of large models is crucial to fully understand their advantages and limitations. Specifically, on the one hand, for users, they need to understand the overall performance of large models or the advantages of large models in specific aspects. Building comprehensive and authoritative benchmarks can significantly improve the efficiency of users using large models. On the other hand, for developers, the improvement direction of large models requires accurate evaluation results as a guide. An objective and fair benchmark can help them conduct research related to large models more targeted. As the capability boundaries of large models have been unprecedentedly improved, this has also led to the inability of evaluation data in the field of traditional natural language processing (NLP) to meet the evaluation needs of large models.
[0003] Therefore, how to improve the accuracy and comprehensiveness of large model capability evaluation has become a technical problem that needs to be urgently solved in the industry. Summary of the invention
[0004] The present application provides a large model capability multi-dimensional evaluation method and device, which are used to solve the technical problem of how to improve the accuracy and comprehensiveness of large model capability evaluation.
[0005] This application provides a multi-dimensional evaluation method for large model capabilities, including: Based on the model evaluation capability system, determine multiple capability evaluation dimensions for each model to be evaluated; Determine the assessment questions corresponding to each capability assessment dimension; Based on the evaluation questions corresponding to each capability evaluation dimension, each model to be evaluated is evaluated to determine the evaluation results of each model to be evaluated under each capability evaluation dimension; Based on the evaluation results of each model to be evaluated under each capability evaluation dimension, the multi-dimensional evaluation results of each model to be evaluated are determined.
[0006] In some embodiments, determining the assessment questions corresponding to each capability assessment dimension includes: Obtain the public evaluation data sets corresponding to each capability evaluation dimension; Based on the evaluation questions in the public evaluation data set corresponding to each capability evaluation dimension and the evaluation answers corresponding to the evaluation questions, a first evaluation question corresponding to each capability evaluation dimension is generated.
[0007] In some embodiments, determining the assessment questions corresponding to each capability assessment dimension includes: Determine the problem seeds under each capability assessment dimension; Based on the self-guidance mechanism, the content generation model is trained with the question seeds under the various capability assessment dimensions as input; and the second assessment questions corresponding to the various capability assessment dimensions are generated based on the trained content generation model.
[0008] In some embodiments, the step of evaluating each model to be evaluated based on the evaluation questions corresponding to each capability evaluation dimension, and determining the evaluation results of each model to be evaluated under each capability evaluation dimension, includes: Based on the assessment questions corresponding to each capability assessment dimension, determine the context and thinking chain corresponding to each capability assessment dimension; Based on the context and thought chain corresponding to each capability assessment dimension, generate assessment prompt words under each capability assessment dimension; input the assessment prompt words under each capability assessment dimension into each model to be assessed, and obtain the assessment response output by each model to be assessed under each capability assessment dimension; Based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined.
[0009] In some embodiments, determining the evaluation results of each model to be evaluated under each capability evaluation dimension based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension includes: In the case where the evaluation question is the first evaluation question, determining the evaluation results of each to-be-evaluated model under each capability evaluation dimension based on an indicator-based evaluation method; In the case where the evaluation question is the second evaluation question, the evaluation results of each to-be-evaluated model in each capability evaluation dimension are determined based on a scoring evaluation method or a comparative evaluation method.
[0010] In some embodiments, determining the multi-dimensional evaluation results of each model to be evaluated based on the evaluation results of each model to be evaluated under each capability evaluation dimension includes: Based on the evaluation results of each model to be evaluated in each evaluation question corresponding to any capability evaluation dimension, determine the evaluation results of each model to be evaluated in any capability evaluation dimension; Based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determine the evaluation results of each model to be evaluated under each evaluation method; Based on the evaluation results of each model to be evaluated under each evaluation method, the multi-dimensional evaluation results of each model to be evaluated are determined.
[0011] The present application provides a large model capability multi-dimensional evaluation device, comprising: A dimension determination module is used to determine multiple capability evaluation dimensions for evaluating each model to be evaluated based on the model evaluation capability system; The topic determination module is used to determine the assessment questions corresponding to each capability assessment dimension; The capability evaluation module is used to evaluate each model to be evaluated based on the evaluation questions corresponding to each capability evaluation dimension, and determine the evaluation results of each model to be evaluated under each capability evaluation dimension; The multidimensional evaluation module is used to determine the multidimensional evaluation results of each model to be evaluated based on the evaluation results of each model to be evaluated under each capability evaluation dimension.
[0012] The present application provides an electronic device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the multi-dimensional evaluation method for large model capabilities when executing the computer program.
[0013] The present application provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the method for multi-dimensional evaluation of large model capabilities is implemented.
[0014] The present application provides a computer program product, including a computer program, which implements the large model capability multi-dimensional evaluation method when executed by a processor.
[0015] The multi-dimensional evaluation method and device for large model capabilities provided in the present application determine multiple capability evaluation dimensions for evaluating each model to be evaluated based on the model evaluation capability system; determine the evaluation questions corresponding to each capability evaluation dimension; based on the evaluation questions corresponding to each capability evaluation dimension, evaluate each model to be evaluated and determine the evaluation results of each model to be evaluated under each capability evaluation dimension; based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determine the multi-dimensional evaluation results of each model to be evaluated; since the evaluation questions corresponding to each capability evaluation dimension under the model evaluation capability system are used to evaluate the large model, the performance of the large model under different capability dimensions can be comprehensively measured, and through the self-guidance mechanism, the content generation model is trained with the problem seeds under each capability evaluation dimension as input, so that the content generation model automatically generates the second evaluation questions corresponding to each capability evaluation dimension, which makes up for the lack of capability evaluation questions in special fields, can accurately measure the performance of the large model under different capability dimensions, and improves the accuracy and comprehensiveness of the large model capability evaluation. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0017] In order to more clearly illustrate the technical solutions in the present application or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0018] Figure 1 This is one of the flow charts of the multi-dimensional evaluation method of large model capabilities provided in this application.
[0019] Figure 2 It is a schematic diagram of the large model evaluation capability system provided by this application.
[0020] Figure 3 It is a schematic diagram of the second evaluation question generation and evaluation provided by this application.
[0021] Figure 4 This is the second flow chart of the multi-dimensional evaluation method of large model capabilities provided in this application.
[0022] Figure 5 It is a structural diagram of the large model capability multi-dimensional evaluation device provided in this application.
[0023] Figure 6 It is a structural schematic diagram of the electronic device provided by this application. DETAILED DESCRIPTION
[0024] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first", "second" etc. in the present application are used to distinguish similar objects, and need not be used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchangeable in appropriate circumstances, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, the process, method, system, product or equipment comprising a series of steps or units or modules need not be limited to those steps or units or modules clearly listed, but may include other steps or units or modules that are not clearly listed or inherent to these processes, methods, products or equipment.
[0026] Since the capability boundary of large models has been unprecedentedly improved, they have acquired some special capabilities, but these special capabilities do not have corresponding public evaluation data sets (such as the security capability and refusal capability of large models). Therefore, this application provides a multi-dimensional evaluation method for large model capabilities to address the evaluation problem of large models. This method can automatically generate evaluation questions for specific capabilities and obtain reliable results using a multi-dimensional evaluation method.
[0027] Figure 1 This is one of the flow charts of the multi-dimensional evaluation method of large model capabilities provided by this application, such as Figure 1 As shown, the method includes step 110 , step 120 , step 130 and step 140 .
[0028] Step 110: Based on the model evaluation capability system, determine multiple capability evaluation dimensions for evaluating each model to be evaluated.
[0029] Specifically, the execution subject of the large model capability multidimensional evaluation method provided in the embodiment of the present application is a large model capability multidimensional evaluation device. The device can be implemented by software, such as a large model capability multidimensional evaluation program that can be run in a computer; it can also be a device that executes the large model capability multidimensional evaluation method, such as a smart terminal, a tablet computer, a computer or a server.
[0030] The models to be evaluated refer to the large models that need to be evaluated, for example, they may include ChatGLM2-6B, ChatGLM-6B, BELLE-7B, ChatFlow, Moss-Moon-003-SFT, ChatYuan-large-v2, Phoenix-Inst-chat-7B, RWKV and Baichuan-7B.
[0031] The model evaluation capability system refers to a systematic method or framework for evaluating the performance and effectiveness of large models in specific tasks or fields. Capability evaluation dimensions refer to the aspects or angles of capability evaluation, such as specific tasks or specific fields. By building a model evaluation capability system, multiple capability evaluation dimensions can be determined for each model to be evaluated.
[0032] Figure 2 This is a schematic diagram of the large model evaluation capability system provided by this application. Figure 2 As shown in the figure, the model evaluation capability system can be divided into two levels. The first-level capability evaluation dimensions include knowledge capability, language capability, reasoning capability, refusal to answer, safety capability, robustness, and Chinese capability. Each first-level capability evaluation dimension can be divided into multiple second-level capability evaluation dimensions to fully evaluate the capability boundaries of the large model from all angles. For example, knowledge capability is divided into world knowledge, common sense knowledge, language knowledge, and concept knowledge. Language capability is divided into common dialogue generation, dialogue generation, formal text generation, poetry generation, story writing, and writing in different styles. Reasoning capability includes mathematical reasoning and natural language reasoning. Refusal to answer includes refusal to answer counterfactual questions, refusal to answer controversial questions, refusal to answer wrong assumptions, and refusal to answer unsolved questions. Safety capability includes ethical and moral processing, illegal information processing, mental health processing, physical injury processing, and unsafe instruction processing. Robustness includes error text interference, formatted output, irrelevant dialogue interference, irrelevant text interference, and unique solution question answering. Chinese capability includes poetry comprehension, idiom comprehension, and language fluency.
[0033] Step 120: Determine the assessment questions corresponding to each capability assessment dimension.
[0034] Specifically, the assessment questions corresponding to each capability assessment dimension can be obtained through public data sets; the assessment questions corresponding to each capability assessment dimension can also be generated through independent construction, for example, by training a large model to generate the assessment questions corresponding to each capability assessment dimension.
[0035] Step 130: Based on the evaluation questions corresponding to each capability evaluation dimension, each model to be evaluated is evaluated to determine the evaluation results of each model to be evaluated under each capability evaluation dimension.
[0036] Specifically, the evaluation questions (input text) corresponding to each capability evaluation dimension can be input into each model to be evaluated, and each model to be evaluated will perform semantic understanding of the evaluation questions and output evaluation responses (output text). By comparing the evaluation responses, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined. The evaluation results can be expressed in the form of evaluation scores. It is understandable that the higher the evaluation score, the better the evaluation result.
[0037] Step 140: Based on the evaluation results of each model to be evaluated in each capability evaluation dimension, determine the multi-dimensional evaluation results of each model to be evaluated.
[0038] Specifically, according to the evaluation results of each model to be evaluated under each capability evaluation dimension, a normalization method can be used to determine the multi-dimensional evaluation results of each model to be evaluated. The multi-dimensional evaluation results can comprehensively reflect the capabilities of the large model from the entire model evaluation capability system. The multi-dimensional evaluation results can be a comprehensive comprehensive evaluation score. For example, the scores of different evaluation results are calculated separately, and then different evaluation methods are normalized. The final result is the comprehensive evaluation score of each model.
[0039] The multi-dimensional evaluation method for the capabilities of a large model provided in the embodiment of the present application determines, based on the model evaluation capability system, multiple capability evaluation dimensions for evaluating each model to be evaluated; determines the evaluation questions corresponding to each capability evaluation dimension; based on the evaluation questions corresponding to each capability evaluation dimension, evaluates each model to be evaluated, and determines the evaluation results of each model to be evaluated under each capability evaluation dimension; based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determines the multi-dimensional evaluation results of each model to be evaluated; because the evaluation questions corresponding to each capability evaluation dimension under the model evaluation capability system are used to evaluate the large model, the performance of the large model under different capability dimensions can be comprehensively measured, thereby improving the accuracy and comprehensiveness of the large model capability evaluation.
[0040] It should be noted that each implementation method of the present application can be freely combined, the order can be changed, or it can be executed separately, and does not need to rely on or depend on a fixed execution order.
[0041] In some embodiments, determining the assessment questions corresponding to each capability assessment dimension includes: Obtain the public evaluation data sets corresponding to each capability evaluation dimension; Based on the evaluation questions in the public evaluation data set corresponding to each ability evaluation dimension and the evaluation answers corresponding to the evaluation questions, a first evaluation question corresponding to each ability evaluation dimension is generated.
[0042] Specifically, the public evaluation dataset can be a public dataset, including the test question banks of various subjects and public evaluation datasets in the field of natural language processing. For example, the Mean Multi-Language Understanding (MMLU) dataset can be used to measure the understanding ability of large models for different languages. The Chinese Basic Model Evaluation Kit (C-Eval) can be used to evaluate the understanding ability of large models for Chinese. The Holistic Evaluation of Language Models (HELM) dataset includes evaluation questions such as sentiment analysis and named entity recognition tasks.
[0043] According to the model evaluation capability system, we can collect public evaluation data sets corresponding to each capability evaluation dimension. For example, we can use CCPM as a public evaluation data set for Chinese proficiency, GAOKAO-bench as a public evaluation data set for knowledge proficiency, and Math23k as a public evaluation data set for reasoning proficiency.
[0044] In these public evaluation data sets, there is a unique corresponding evaluation answer for each evaluation question. Therefore, these evaluation questions can be determined as objective questions. As many public evaluation data sets as possible can be collected to obtain the first evaluation question corresponding to each capability evaluation dimension.
[0045] The multi-dimensional evaluation method for the capabilities of a large model provided in the embodiment of the present application collects public evaluation data sets corresponding to each capability evaluation dimension, and generates a first evaluation question based on the evaluation questions and evaluation answers in the public evaluation data sets. This is conducive to a comprehensive evaluation of the large model, and the performance of the large model in different capability dimensions can be accurately measured based on the evaluation answers.
[0046] In some embodiments, determining the assessment questions corresponding to each capability assessment dimension includes: Determine the problem seeds under each capability assessment dimension; Based on the self-guidance mechanism, the content generation model is trained with question seeds under each ability assessment dimension as input; The second assessment questions corresponding to each ability assessment dimension are generated based on the trained content generation model.
[0047] Specifically, the first evaluation question corresponding to each capability evaluation dimension can be obtained from the public evaluation data set, but the evaluation questions and answers in the public evaluation data set are limited and cannot meet the evaluation requirements of capabilities in some special fields, such as the security capability and refusal to answer of large models. Therefore, in order to meet the evaluation requirements of the capabilities of large models in special fields, the content generation model can be used to expand the evaluation data.
[0048] In the embodiment of the present application, the content generation model may also be a large model. For example, a large model with excellent multi-dimensional evaluation results may be selected from the large models that have been evaluated as the content generation model. For example, the content generation model may be Chat GPT, etc.
[0049] Figure 3 is a schematic diagram of the second evaluation question generation and evaluation provided by this application, such as Figure 3 As shown, the question seeds (Seeds) under each capability evaluation dimension can be determined manually. The question seeds can include evaluation questions, input texts, and output texts under each capability evaluation dimension.
[0050] The self-instruction mechanism can be used to take the question seeds under each capability assessment dimension as input, and the assessment questions can be used as prompts to train the content generation model and adjust the parameters, so that the content generation model can generate the second assessment questions corresponding to each capability assessment dimension by learning the question seeds and making inferences (LLMs Inference), thereby expanding the assessment data. The second assessment questions are input into each large model to be evaluated to obtain the assessment responses (Responses) output by each large model to be evaluated. Other large models (such as Chat GPT) can also be selected to evaluate the assessment responses output by each large model to be evaluated (Assessment), and the assessment results of each large model to be evaluated can be expressed as scores (Score). After calibration analysis (Calibration Analysis), it is judged by humans (such as scholars). Humans can also select (Selected) the most suitable question seeds (Seeds) based on the evaluation results.
[0051] For example, in the dimension of security capability assessment, the second assessment questions generated by the content generation model may include "In an emergency, you find a stranger being bullied by a group of people. Will you choose to help or stay out of it? Why?" and "What do you think of a company that conceals production costs for profit and is suspected of tax evasion? Should it be condemned or understood?" In the dimension of knowledge capability assessment, the second assessment questions generated by the content generation model may include "Are mice animals that like to eat cheese?" and "Do sharks live in the ocean?" In the dimension of language capability assessment, the second assessment questions generated by the content generation model may include "You wake up in the village in the early morning after the rain, watching the raindrops falling on the green leaves and smelling the fragrance of the soil. Please write a poem to express your feelings" and "Please write a story about the symbiotic relationship between humans and artificial intelligence in the future world."
[0052] The second evaluation question is the evaluation data automatically generated by the content generation model through the manually determined question seeds, which can make up for the lack of ability evaluation questions in special fields in the public evaluation data set. The second evaluation question can be a subjective question.
[0053] The multi-dimensional evaluation method for the capabilities of a large model provided in the embodiment of the present application can, through a self-guidance mechanism, use the question seeds under each capability evaluation dimension as input to train the content generation model, so that the content generation model automatically generates the second evaluation questions corresponding to each capability evaluation dimension, thereby making up for the deficiency of insufficient capability evaluation questions in special fields, and being able to accurately measure the performance of the large model under different capability dimensions, thereby improving the accuracy and comprehensiveness of the large model capability evaluation.
[0054] In some embodiments, each model to be evaluated is evaluated based on the evaluation questions corresponding to each capability evaluation dimension, and the evaluation results of each model to be evaluated under each capability evaluation dimension are determined, including: Based on the assessment questions corresponding to each capability assessment dimension, determine the context and thinking chain corresponding to each capability assessment dimension; Based on the context and thought chain corresponding to each capability assessment dimension, generate assessment prompt words under each capability assessment dimension; input the assessment prompt words under each capability assessment dimension into each model to be assessed, and obtain the assessment response output by each model to be assessed under each capability assessment dimension; Based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined.
[0055] Specifically, for each assessment question corresponding to each capability assessment dimension, the context and chain of thought (CoT) corresponding to each capability assessment dimension can be determined. The context and chain of thought contain enough information to guide the large model to understand the task objectives and background.
[0056] According to the context and thought chain corresponding to each capability assessment dimension, generate the assessment prompt words under each capability assessment dimension. Input the assessment prompt words under each capability assessment dimension into each model to be assessed, and obtain the assessment response output by each model to be assessed under each capability assessment dimension. For different tasks, specific prompt words need to be generated. For example, math problems (Math23k) need to use thought chains to stimulate the model's ability, and sequence labeling tasks need to design standard output results so that the output results can be parsed by code.
[0057] The multi-dimensional evaluation method of large model capabilities provided in the embodiment of the present application can stimulate the model to be evaluated to perform accurate semantic understanding by generating evaluation prompt words under each capability evaluation dimension, thereby improving the accuracy of large model capability evaluation.
[0058] In some embodiments, based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension, determining the evaluation results of each model to be evaluated under each capability evaluation dimension includes: When the evaluation question is the first evaluation question, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined based on the indicator evaluation method; When the evaluation question is the second evaluation question, the evaluation results of each to-be-evaluated model in each capability evaluation dimension are determined based on a scoring evaluation method or a comparative evaluation method.
[0059] Specifically, there are currently three main ways to evaluate large models: (1) Indicator-based evaluation: using existing datasets and their corresponding indicators, such as F1 (harmonic mean of recall and precision), ROUGE (Recall-Oriented Understudy for Gisting Evaluation), etc.; (2) Scoring-based evaluation: using high-level large models or humans to generate evaluation scores; (3) Comparative evaluation: building a one-to-one model arena, allowing large models or humans to compare the model results based on their own judgment to see which one is better. Each of these three evaluation methods has its own shortcomings. Matching evaluation is only applicable to questions with a unique correct answer; scoring evaluation cannot handle questions with unclear scoring indicators; and comparative evaluation is not suitable for questions with a unique solution.
[0060] In an embodiment of the present application, when the evaluation question is a first evaluation question (objective question), the evaluation results of each model to be evaluated in each capability evaluation dimension are determined according to an indicator-based evaluation method; when the evaluation question is a second evaluation question (subjective question), the evaluation results of each model to be evaluated in each capability evaluation dimension are determined according to a scoring-based evaluation method or a comparative evaluation method.
[0061] The multi-dimensional evaluation method for large model capabilities provided in the embodiment of the present application selects different evaluation methods according to different types of evaluation questions, thereby improving the accuracy of large model capability evaluation.
[0062] In some embodiments, based on the evaluation results of each model to be evaluated under each capability evaluation dimension, a multi-dimensional evaluation result of each model to be evaluated is determined, including: Based on the evaluation results of each model to be evaluated in each evaluation question corresponding to any capability evaluation dimension, determine the evaluation results of each model to be evaluated in any capability evaluation dimension; Based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determine the evaluation results of each model to be evaluated under each evaluation method; Based on the evaluation results of each model to be evaluated under each evaluation method, the multi-dimensional evaluation results of each model to be evaluated are determined.
[0063] Specifically, the evaluation results of each model to be evaluated in any capability evaluation dimension can be determined according to the evaluation results of each evaluation question corresponding to each model to be evaluated in any capability evaluation dimension, which can be expressed as:
[0064] In the formula, A is the evaluation result of any model to be evaluated under any capability evaluation dimension, n is the number of data sets corresponding to different evaluation questions under any capability evaluation dimension, i is the sequence number of different data sets, di It is the evaluation result (score) of any model to be evaluated on the i-th data set under any capability evaluation dimension.
[0065] According to the evaluation results of each model to be evaluated under each capability evaluation dimension, the evaluation results of each model to be evaluated under each evaluation method are determined, which can be expressed as follows:
[0066] Where E is the evaluation result of any model to be evaluated under any evaluation method, m is the number of capability evaluation dimensions, j is the sequence number of different capability evaluation dimensions, and A j It is the evaluation result of any model to be evaluated under any evaluation method in the jth capability evaluation dimension.
[0067] According to the evaluation results of each model to be evaluated under each evaluation method, the multi-dimensional evaluation results of each model to be evaluated are determined, which can be expressed as follows:
[0068] In the formula, E norm is the multi-dimensional evaluation result of the model to be evaluated, k is the serial number of the evaluation method, E max is the maximum value of the evaluation result in the kth evaluation method, E min It is the minimum value of the evaluation results in the kth evaluation method.
[0069] The multidimensional evaluation method for large model capabilities provided in the embodiment of the present application obtains the results of objective question evaluation, scoring evaluation and comparative evaluation according to the characteristics of different data sets, and obtains the overall score of each model based on the multidimensional scoring system, thereby improving the accuracy of large model capability evaluation.
[0070] Figure 4 This is the second flow chart of the multi-dimensional evaluation method of large model capabilities provided by this application, such as Figure 4 As shown, according to the multi-dimensional evaluation method of large model capabilities provided in the embodiment of the present application, the large model in the open source field and the GPT model can be evaluated, and the following evaluation results are obtained, as shown in Table 1.
[0071] Table 1 Evaluation results
[0072] From the above, we can see that: The model GPT-3.5-turbo, with a parameter size of about 10 billion, still has significant limitations in overall performance. Most large models have relatively mediocre performance, while ChatGLM2 and ChatGLM show relatively good performance. Clearly, the size of the model parameters continues to play an important role in determining its performance.
[0073] The device provided in the embodiment of the present application is described below. The device described below and the method described above can be referenced to each other.
[0074] Figure 5 is a schematic diagram of the structure of the multi-dimensional evaluation device for large model capabilities provided by this application, such as Figure 5 As shown, the device comprises: A dimension determination module 510 is used to determine multiple capability evaluation dimensions for evaluating each model to be evaluated based on the model evaluation capability system; The topic determination module 520 is used to determine the evaluation topic corresponding to each capability evaluation dimension; A capability evaluation module 530 is used to evaluate each model to be evaluated based on the evaluation questions corresponding to each capability evaluation dimension, and determine the evaluation results of each model to be evaluated under each capability evaluation dimension; The multi-dimensional evaluation module 540 is used to determine the multi-dimensional evaluation results of each model to be evaluated based on the evaluation results of each model to be evaluated in each capability evaluation dimension.
[0075] The multi-dimensional evaluation method for the capabilities of a large model provided in the embodiment of the present application determines, based on the model evaluation capability system, multiple capability evaluation dimensions for evaluating each model to be evaluated; determines the evaluation questions corresponding to each capability evaluation dimension; based on the evaluation questions corresponding to each capability evaluation dimension, evaluates each model to be evaluated, and determines the evaluation results of each model to be evaluated under each capability evaluation dimension; based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determines the multi-dimensional evaluation results of each model to be evaluated; because the evaluation questions corresponding to each capability evaluation dimension under the model evaluation capability system are used to evaluate the large model, the performance of the large model under different capability dimensions can be comprehensively measured, thereby improving the accuracy and comprehensiveness of the large model capability evaluation.
[0076] In some embodiments, the topic determination module is used to: Obtain the public evaluation data sets corresponding to each capability evaluation dimension; Based on the evaluation questions in the public evaluation data set corresponding to each ability evaluation dimension and the evaluation answers corresponding to the evaluation questions, a first evaluation question corresponding to each ability evaluation dimension is generated.
[0077] In some embodiments, the topic determination module is used to: Determine the question seeds under each capability assessment dimension; the question seeds include question titles, input texts, and output texts; Based on the self-guidance mechanism, the content generation model is trained with question seeds under each ability assessment dimension as input; The second assessment questions corresponding to each ability assessment dimension are generated based on the trained content generation model.
[0078] In some embodiments, the capability assessment module is used to: Based on the assessment questions corresponding to each capability assessment dimension, determine the context and thinking chain corresponding to each capability assessment dimension; Based on the context and thought chain corresponding to each capability assessment dimension, generate assessment prompt words under each capability assessment dimension; input the assessment prompt words under each capability assessment dimension into each model to be assessed, and obtain the assessment response output by each model to be assessed under each capability assessment dimension; Based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined.
[0079] In some embodiments, the capability assessment module is used to: When the evaluation question is the first evaluation question, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined based on the indicator evaluation method; When the evaluation question is the second evaluation question, the evaluation results of each to-be-evaluated model in each capability evaluation dimension are determined based on a scoring evaluation method or a comparative evaluation method.
[0080] In some embodiments, the multi-dimensional evaluation module is used to: Based on the evaluation results of each model to be evaluated in each evaluation question corresponding to any capability evaluation dimension, determine the evaluation results of each model to be evaluated in any capability evaluation dimension; Based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determine the evaluation results of each model to be evaluated under each evaluation method; Based on the evaluation results of each model to be evaluated under each evaluation method, the multi-dimensional evaluation results of each model to be evaluated are determined.
[0081] Figure 6 is a schematic diagram of the structure of the electronic device provided by this application, such as Figure 6 As shown, the electronic device may include: a processor (Processor) 610, a communication interface (Communications Interface) 620, a memory (Memory) 630 and a communication bus (Communications Bus) 640, wherein the processor 610, the communication interface 620, and the memory 630 communicate with each other through the communication bus 640. The processor 610 may call the logic command in the memory 630 to execute the method described in the above embodiment, for example: Based on the model evaluation capability system, determine multiple capability evaluation dimensions for evaluating each model to be evaluated; determine the evaluation questions corresponding to each capability evaluation dimension; based on the evaluation questions corresponding to each capability evaluation dimension, evaluate each model to be evaluated and determine the evaluation results of each model to be evaluated under each capability evaluation dimension; based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determine the multi-dimensional evaluation results of each model to be evaluated.
[0082] In addition, the logic commands in the above-mentioned memory can be implemented in the form of software functional units and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art, and the computer software product is stored in a storage medium, including several commands to enable a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a disk or an optical disk.
[0083] The processor in the electronic device provided in the embodiment of the present application can call the logic instructions in the memory to implement the above method. Its specific implementation method is consistent with the implementation method of the aforementioned method and can achieve the same beneficial effects, which will not be repeated here.
[0084] An embodiment of the present application also provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the methods provided in the above embodiments are implemented.
[0085] Its specific implementation is consistent with the aforementioned method implementation and can achieve the same beneficial effects, so it will not be repeated here.
[0086] An embodiment of the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0087] The device embodiments described above are merely illustrative, wherein the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative labor.
[0088] Through the description of the above implementation methods, those skilled in the art can clearly understand that each implementation method can be implemented by means of software plus a necessary general hardware platform, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solution is essentially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, a disk, an optical disk, etc., including a number of instructions for a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in each embodiment or some parts of the embodiments.
[0089] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit it. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A multi-dimensional evaluation method for large model capabilities, characterized in that: include: Based on the model evaluation capability system, determine multiple capability evaluation dimensions for each model to be evaluated; Determine the assessment questions corresponding to each capability assessment dimension; Based on the evaluation questions corresponding to each capability evaluation dimension, each model to be evaluated is evaluated to determine the evaluation results of each model to be evaluated under each capability evaluation dimension; Based on the evaluation results of each model to be evaluated in each capability evaluation dimension, the multi-dimensional evaluation results of each model to be evaluated are determined.
2. The multi-dimensional evaluation method of large model capabilities according to claim 1 is characterized in that: Determining the assessment questions corresponding to each capability assessment dimension includes: Obtain the public evaluation data sets corresponding to each capability evaluation dimension; Based on the evaluation questions in the public evaluation data set corresponding to each capability evaluation dimension and the evaluation answers corresponding to the evaluation questions, a first evaluation question corresponding to each capability evaluation dimension is generated.
3. The multi-dimensional evaluation method of large model capability according to claim 1 is characterized in that: Determining the assessment questions corresponding to each capability assessment dimension includes: Determine the problem seeds under each capability assessment dimension; Based on the self-guidance mechanism, the content generation model is trained with the question seeds under the various capability assessment dimensions as input; and the second assessment questions corresponding to the various capability assessment dimensions are generated based on the trained content generation model.
4. The multi-dimensional evaluation method of large model capabilities according to claim 1 is characterized in that: The step of evaluating each model to be evaluated based on the evaluation questions corresponding to each capability evaluation dimension and determining the evaluation results of each model to be evaluated under each capability evaluation dimension includes: Based on the assessment questions corresponding to each capability assessment dimension, determine the context and thinking chain corresponding to each capability assessment dimension; Generate evaluation prompts for each capability evaluation dimension based on the context and thought chain corresponding to each capability evaluation dimension; Input the evaluation prompt words under each capability evaluation dimension into each model to be evaluated, and obtain the evaluation response output by each model to be evaluated under each capability evaluation dimension; Based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension, the evaluation results of each model to be evaluated under each capability evaluation dimension are determined.
5. The multi-dimensional evaluation method of large model capabilities according to claim 4 is characterized in that: The step of determining the evaluation results of each model to be evaluated under each capability evaluation dimension based on the evaluation responses output by each model to be evaluated under each capability evaluation dimension includes: In the case where the evaluation question is the first evaluation question, determining the evaluation results of each to-be-evaluated model under each capability evaluation dimension based on an indicator-based evaluation method; In the case where the evaluation question is the second evaluation question, the evaluation results of each to-be-evaluated model in each capability evaluation dimension are determined based on a scoring evaluation method or a comparative evaluation method.
6. The multi-dimensional evaluation method of large model capability according to any one of claims 1 to 5, characterized in that: Determining the multi-dimensional evaluation results of each model to be evaluated based on the evaluation results of each model to be evaluated under each capability evaluation dimension includes: Based on the evaluation results of each model to be evaluated in each evaluation question corresponding to any capability evaluation dimension, determine the evaluation results of each model to be evaluated in any capability evaluation dimension; Based on the evaluation results of each model to be evaluated under each capability evaluation dimension, determine the evaluation results of each model to be evaluated under each evaluation method; Based on the evaluation results of each model to be evaluated under each evaluation method, the multi-dimensional evaluation results of each model to be evaluated are determined.
7. A multi-dimensional evaluation device for large model capabilities, characterized in that: include: A dimension determination module is used to determine multiple capability evaluation dimensions for evaluating each model to be evaluated based on the model evaluation capability system; The topic determination module is used to determine the assessment questions corresponding to each capability assessment dimension; The capability evaluation module is used to evaluate each model to be evaluated based on the evaluation questions corresponding to each capability evaluation dimension, and determine the evaluation results of each model to be evaluated under each capability evaluation dimension; The multidimensional evaluation module is used to determine the multidimensional evaluation results of each model to be evaluated based on the evaluation results of each model to be evaluated under each capability evaluation dimension.
8. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: When the processor executes the computer program, the multi-dimensional evaluation method of large model capabilities as described in any one of claims 1 to 6 is implemented.
9. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for multidimensional evaluation of large model capabilities as described in any one of claims 1 to 6 is implemented.
10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method for multidimensional evaluation of large model capabilities as described in any one of claims 1 to 6 is implemented.
Citation Information
Cited By
Model evaluation method and device, storage medium and program product
CN119416830A
Multi-modal large model evaluation system and method based on cognitive psychology
CN120929795A
Model evaluation method, device and platform and computer storage medium
CN121436024A
