Model evaluation method and device, electronic equipment and storage medium

By using the second model to evaluate the output results of the first model, the problems of low model evaluation efficiency and strong subjectivity of results in the existing technology are solved, more efficient and accurate evaluation results are achieved, and manual evaluation work is reduced.

CN118585604APending Publication Date: 2024-09-03BEIJING BAIDU NETCOM SCI & TECH CO LTD

Patent Information

Application Number
CN202410634594.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-21
Publication Date
2024-09-03

AI Technical Summary

Technical Problem

Existing model evaluation methods are inefficient and the results are highly subjective, which cannot meet the evaluation needs of high-speed iteration. Moreover, manual annotation requires a large amount of human resources, and the evaluation results are easily affected by human subjectivity.

Method used

By obtaining the evaluation set, inputting it into the first model to generate answers, and using the second model to evaluate the output results of the first model according to the preset strategy, manual evaluation work is reduced and evaluation accuracy is improved.

Benefits of technology

It improves the efficiency and accuracy of model evaluation, reduces manual evaluation work, reduces subjective fluctuations in evaluation results, and supports rapid iteration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118585604A_ABST
    Figure CN118585604A_ABST
Patent Text Reader

Abstract

The invention provides a model evaluation method and device, electronic equipment and a storage medium, and relates to the technical field of computers, in particular to the technical field of artificial intelligence. According to the specific implementation scheme, an evaluation set is obtained, wherein the evaluation set comprises at least one evaluation problem for executing an evaluation task; inputting the evaluation set into a first model, and obtaining an evaluation answer for the evaluation question through the first model; and evaluating the output result of the first model by using the second model according to a preset evaluation strategy and the evaluation answer to obtain an evaluation result for the first model. The output result of the first model is evaluated through the second model, so that the evaluation efficiency of the first model is improved, and in addition, auxiliary evaluation is performed through the preset evaluation strategy, so that the accuracy of the evaluation result of the first model can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, specifically to the field of artificial intelligence technology, and in particular to a model evaluation method, device, electronic device, and storage medium. Background Art

[0002] Generative big models are generally used to automatically generate corresponding answers based on questions asked by users. In order to evaluate the accuracy of the answers given by generative big models, manual annotation is often used to improve the accuracy of the answers given by the big models. However, this method not only has low evaluation efficiency, but also has highly subjective evaluation results. Summary of the invention

[0003] The present invention provides a model evaluation method, device, electronic device and storage medium.

[0004] According to one aspect of the present disclosure, a model evaluation method is provided, comprising:

[0005] Obtaining an evaluation set, wherein the evaluation set includes at least one evaluation question for performing an evaluation task;

[0006] Inputting the evaluation set into a first model, and obtaining an evaluation answer to the evaluation question through the first model;

[0007] The output result of the first model is evaluated using the second model according to the preset evaluation strategy and the evaluation answer to obtain the evaluation result for the first model.

[0008] According to another aspect of the present disclosure, a model evaluation device is provided, comprising:

[0009] An acquisition module, used to acquire an evaluation set, wherein the evaluation set includes at least one evaluation question for performing an evaluation task;

[0010] A first processing module, configured to input the evaluation set into a first model, and obtain an evaluation answer to the evaluation question through the first model;

[0011] The second processing module is used to evaluate the output result of the first model using the second model according to the preset evaluation strategy and the evaluation answer to obtain the evaluation result for the first model.

[0012] According to a third aspect of the present disclosure, there is provided an electronic device, including:

[0013] at least one processor; and

[0014] a memory communicatively connected to the at least one processor; wherein,

[0015] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute any method in any of the above technical solutions.

[0016] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any one of the methods described in the above technical solutions.

[0017] According to a fifth aspect of the present disclosure, a computer program product is provided, including a computer program, wherein the computer program implements any one of the methods described in the above technical solutions when executed by a processor.

[0018] The present disclosure provides a model evaluation method, device, equipment and storage medium. The present disclosure uses a second model to evaluate the output result of the first model according to a preset evaluation strategy and the evaluation answer obtained by the first model. In this way, the output result of the first model is evaluated by the second model, thereby reducing the manual evaluation work of the model, which is conducive to improving the evaluation efficiency of the first model. In addition, by evaluating the output result of the first model through the preset evaluation strategy, the accuracy of the evaluation result of the first model can be improved.

[0019] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] The accompanying drawings are used to better understand the present solution and do not constitute a limitation of the present disclosure.

[0021] Figure 1 is a schematic diagram of the steps of the model evaluation method in the embodiment of the present disclosure;

[0022] Figure 2 is a system schematic diagram corresponding to the model evaluation method in one embodiment of the present disclosure;

[0023] Figure 3 is a flowchart corresponding to the model evaluation method in one embodiment of the present disclosure;

[0024] Figure 4 A functional block diagram of a model evaluation device in an embodiment of the present disclosure;

[0025] Figure 5 It is a block diagram of an electronic device used to implement the model evaluation method of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope and spirit of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0027] In related technical solutions, manual methods are often used to manually annotate the accuracy of the answers given by large models. The main problems of this method are low evaluation efficiency and strong subjectivity of the evaluation results.

[0028] The low evaluation efficiency is reflected in the fact that the diversity of generated results brings difficulties to the evaluation. Since the answers are not unique, the traditional automatic evaluation based on annotation cannot meet the requirements. It relies on manual subjective scoring and the human-sea tactics for evaluation, which cannot meet the evaluation needs of high-speed iteration. For example, it takes half a day to complete the evaluation of hundreds of data, and as the test scenarios increase, the number of evaluation sets increases, and the evaluation time increases linearly. Evaluators need to invest a lot of manpower in pure manual annotation, which is also an unreasonable use of human resources. In addition, the strong subjectivity of the evaluation results is reflected in the fact that due to different understandings of the evaluation standards, the evaluators will be replaced. With the replacement of evaluators, the evaluation results will also bring unreasonable fluctuations due to the subjectivity of the evaluators, which will create additional workload for the analysis of the evaluation results. It can be seen that the existing model evaluation methods not only have low evaluation efficiency, but also highly subjective evaluation results.

[0029] In order to solve the above technical problems, the present disclosure provides a model evaluation method, see Figure 1 As shown, including:

[0030] Step S101, obtaining an evaluation set, where the evaluation set includes at least one evaluation question for executing an evaluation task.

[0031] Specifically, the evaluation set contains at least one evaluation question. The evaluation set is generally located on a remote server. By specifying the number corresponding to the evaluation set, the evaluation set is automatically downloaded, so that the evaluation set can be obtained. After obtaining the evaluation set, the integrity of the evaluation set needs to be checked, so as to facilitate obtaining a complete evaluation set.

[0032] Step S102: input the evaluation set into the first model, and obtain the evaluation answer for the evaluation question through the first model.

[0033] Specifically, the first model can automatically generate answers corresponding to questions asked by users. After obtaining the evaluation set, the evaluation questions contained in the evaluation set are input into the first model, and the answers corresponding to the evaluation questions can be obtained through the first model, that is, the evaluation answers are obtained. That is, the questions in the evaluation set are read, the request structure is assembled, a request is initiated to the first model A, and the returned results are stored in the storage medium.

[0034] Step S103, using the second model to evaluate the output result of the first model according to the preset evaluation strategy and evaluation answer, to obtain the evaluation result for the first model.

[0035] Specifically, after obtaining the evaluation answer to the evaluation question through the first model, the second model is used to evaluate the evaluation answer, that is, the output result of the first model is evaluated through the second model to evaluate whether the answer corresponding to the question generated by the first model is correct, so as to detect the accuracy of the first model. In addition, when the output result of the first model is evaluated by the second model, it is also evaluated according to the preset evaluation strategy to ensure the accuracy of the evaluation result. Among them, it should be noted that the first model and the second model belong to the same category, the first model and the second model are both generative large models, and the accuracy of the second model is relatively high. In addition, it should be noted that the number of the second model can be one or more, and those skilled in the art can set it according to actual needs, which is not limited here.

[0036] The present disclosure provides a model evaluation method, device, equipment and storage medium. The present disclosure uses a second model to evaluate the output result of the first model according to a preset evaluation strategy and the evaluation answer obtained by the first model. In this way, the output result of the first model is evaluated by the second model, thereby reducing the manual evaluation work of the model, which is conducive to improving the evaluation efficiency of the first model. In addition, by evaluating the output result of the first model through the preset evaluation strategy, the accuracy of the evaluation result of the first model can be improved.

[0037] In some optional embodiments, the output result of the first model is evaluated using the second model according to the preset evaluation strategy and evaluation answer to obtain the evaluation result for the first model, including:

[0038] Calculate the similarity between the test answer and the reference answer;

[0039] If the similarity between the evaluation answer and the reference answer is greater than the set threshold, the second model is used to evaluate the output result of the first model according to the evaluation points and the evaluation answer contained in the evaluation strategy to obtain the evaluation result for the first model.

[0040] Specifically, after obtaining the evaluation answer for the evaluation question through the first model, the similarity between the evaluation answer and the reference answer is calculated first, that is, the similarity result of the evaluation answer and the reference answer text is calculated based on the similarity between the evaluation answer and the reference answer text, and whether to use the second model to further evaluate the output result of the first model based on the relationship between the similarity and the set threshold. If the similarity between the evaluation answer and the reference answer is greater than the set threshold, the second model is used to further evaluate the output result of the first model.

[0041] In this way, the output results of the first model are simply evaluated by first calculating the similarity between the evaluation answer and the reference answer. If the similarity between the evaluation answer and the reference answer is greater than the set threshold, the output results of the first model are further evaluated by the second model to improve the accuracy of the evaluation results of the first model.

[0042] In some optional embodiments, before calculating the similarity between the evaluation answer and the reference answer, the method includes:

[0043] Input the evaluation questions included in the evaluation set into the second model, and obtain reference question-answer pairs corresponding to the evaluation questions through the second model;

[0044] Generalize and adjust the evaluation problem to obtain a generalized evaluation problem;

[0045] Input the generalized evaluation questions into the second model, and obtain the generalized reference question-answer pairs through the second model;

[0046] Based on the generalized reference question-answer pairs, the reference answers corresponding to the evaluation questions are obtained.

[0047] Specifically, after obtaining the evaluation set, in order to obtain the reference answers corresponding to the evaluation set questions, it is necessary to use the second model to pre-process the questions in the evaluation set to obtain the reference answers. By obtaining the reference answers, it is convenient to calculate the similarity between the evaluation answers and the reference answers based on the reference answers.

[0048] To facilitate understanding of the scheme of the disclosed embodiment, an example is given below. Assume that the evaluation question included in the evaluation set is: You are an expert in field A. Please generate questions and answers based on the following materials. The materials are as follows: A certain law stipulates that a limited liability company shall have a board of directors with three to thirteen members; however, this shall not apply if otherwise provided for in Article 50 of this Law. A limited liability company invested and established by more than two state-owned enterprises or more than two other state-owned investment entities shall have company employee representatives on its board of directors; other limited liability companies may have company employee representatives on their board of directors. The employee representatives on the board of directors shall be democratically elected by the company's employees through employee representative conferences, employee conferences or other forms. The board of directors shall have one chairman and may have one vice chairman. The method for selecting the chairman and vice chairman shall be stipulated in the company's articles of association.

[0049] After obtaining the evaluation set, the evaluation set is input into the second model, and the output result of the second model is:

[0050] Question 1: What is the range of the number of members on the board of directors of a limited liability company?

[0051] Answer 1: According to a certain law, the number of members of the board of directors of a limited liability company ranges from three to thirteen. However, this does not apply if Article 50 of this Law provides otherwise.

[0052] After obtaining the output results of the second model, question 1 in the output results of the second model is generalized. The so-called generalization refers to using different ways of asking the same question. For example, the generalized evaluation question is: You are an expert in field A. Please generate 3 generalized queries based on the following query: What is the range of the number of members of the board of directors of a limited liability company?

[0053] The generalized evaluation questions are input into the second model, and the output results obtained by the second model are: what is the minimum number of board members of a limited liability company; what is the maximum number of board members of a limited liability company; what is the general range of the number of board members of a limited liability company.

[0054] Finally, the reference answer corresponding to the assessment question is: According to a certain law, the number of members of the board of directors of a limited liability company ranges from three to thirteen.

[0055] In this way, by using the second model to process the evaluation set, it is helpful to obtain the reference answers corresponding to the evaluation questions, and by obtaining the reference answers, it is further helpful to subsequently calculate the similarity between the evaluation answers and the reference answers based on the reference answers.

[0056] In some optional embodiments, if the similarity between the evaluation answer and the reference answer is greater than a set threshold, the output result of the first model is evaluated using the second model according to the evaluation points and the evaluation answer included in the evaluation strategy to obtain the evaluation result for the first model, including:

[0057] Obtain the evaluation strategy, which includes multiple evaluation points;

[0058] Assembling multiple evaluation points to obtain assembled evaluation points;

[0059] The assembled evaluation points and evaluation answers are sent to the second model, and the evaluation answers are scored by the second model according to the assembled evaluation points to obtain the evaluation results for the first model.

[0060] Specifically, first obtain an evaluation strategy, wherein the evaluation strategy includes multiple evaluation points, and the design of the evaluation points can be designed according to actual needs. After designing multiple evaluation points, assemble the multiple evaluation points to obtain assembled evaluation points. Then, the output results of the first model are scored according to the assembled evaluation points by the second model, and whether the output results of the first model are correct can be obtained according to the scoring results. Finally, the model capability of the first model can be obtained by counting the correctness of the output results of the first model, that is, the evaluation results for the first model can be obtained.

[0061] In this way, by obtaining the evaluation strategy, the assembled evaluation points and evaluation answers are sent to the second model, and the second model scores the evaluation answers according to the assembled evaluation points, which is conducive to obtaining more accurate evaluation results for the first model.

[0062] In some optional embodiments, obtaining the evaluation strategy includes:

[0063] Determine the evaluation key points corresponding to the first model according to the result type output by the first model;

[0064] Obtaining knowledge basis according to the knowledge on which the output result of the first model is based;

[0065] Get strategic guidance according to the pre-set strategic guidance;

[0066] The key points of evaluation, knowledge basis and strategy guidance are combined to obtain the evaluation strategy.

[0067] Specifically, regarding the key points of evaluation: different key points of evaluation are designed for different types of evaluations. For example, when it comes to number of people, the key point of evaluation is whether the number of people is completely consistent; when it comes to address determination, the key point of evaluation is whether the address is completely matched or included in the match.

[0068] Regarding knowledge basis: Designing the prompt to include the knowledge that the first model uses to generate the answer will allow the second model to make better judgments.

[0069] For strategy guidance: Design some difficult cases or cases that are prone to evaluation errors in the prompt to guide the second model to learn the evaluation logic, so that the first model can be evaluated more accurately.

[0070] In this way, by setting scoring key points, knowledge basis and strategy guidance in the evaluation strategy, it is helpful to obtain more accurate evaluation results for the first model.

[0071] In some optional embodiments, the method further comprises:

[0072] If the similarity between the evaluation answer and the reference answer is less than or equal to the set threshold, the output result of the first model is determined to be wrong.

[0073] Specifically, if the similarity between the evaluation answer and the reference answer is less than or equal to the set threshold, it is considered that the difference between the evaluation answer and the reference answer is large, that is, it can be considered that the answer of the first model to the evaluation question is wrong, and the output result of the first model is directly determined to be wrong. This is conducive to reducing low-quality answers.

[0074] In order to understand the technical solution of the present disclosure as a whole, see Figure 2 , Figure 2It is a system diagram corresponding to the model evaluation method in one embodiment of the present disclosure. The system includes four parts: evaluation set production, prompt design, automated evaluation and result output. The evaluation set production part mainly includes two sub-steps, namely, question-answer pair generation and question-answer pair generalization. For question-answer pair generation, specifically, according to relevant policies and regulations, design prompts, and then use a large model to output question-answer pairs. For question generalization, specifically, according to the questions output in the previous step, design prompts, and then use a large model to output generalized queries. For prompt design, specifically, the prompt design is used to allow other large models to act as referees to automatically score the evaluation large model based on the prompt. The prompt design includes four key points, namely, reference answers, key points for judgment, knowledge basis, and guiding strategies. For reference answers: for each query, add the generalized data in the previous step to the reference answer. For key points of evaluation: Different key points of evaluation are designed for different types of evaluations. For example, when it comes to judging the number of people, the key point of evaluation is whether the number of people is completely consistent; when it comes to address judgment, the key point of evaluation is whether the address is completely matched or contains a match. For knowledge basis: Design the prompt to include the knowledge on which the large model A (also called the first model) produces the answer, so that the large model B (also called the second model) can better make the evaluation. For strategy guidance: Design the prompt to include some difficult cases / cases that are easy to evaluate incorrectly, and guide model B to learn the evaluation logic, so that model A can be evaluated more accurately.

[0075] For automated evaluation: Specifically, automated evaluation includes three steps, namely, automatically pulling the evaluation set, automatically pulling the results of model A, and automated scoring. Automatically pulling the evaluation set: The evaluation set is generally located on a remote server. By specifying the number corresponding to the evaluation set, the evaluation set is automatically downloaded and the integrity of the evaluation set is checked. Automatically obtain the results of model A: read the questions in the evaluation set, assemble the request structure, initiate a request to model A, and return the result to the storage medium. Automated scoring: read the results of model A and the reference answer, first calculate the similarity results of the two based on text similarity. If the similarity is lower than the threshold, automatically determine that the output of model A is wrong. If the similarity is higher than the threshold, assemble the prompt, and then initiate a request to model B to judge the output of model A. The judgment results and the explanation of the judgment results are placed in the storage medium. Here, multiple large models can be used as referees to score model A, such as model B, model C, etc.

[0076] Specifically, the result output includes the first version of the result output, review, and final version of the result output. For the publication of the result output: output to the visualization result file according to the evaluation results and the description of the evaluation results in the previous step. For the review: manual sampling is performed on the visualization result file produced in the previous step. For the final version of the result output: the review results are output to the visualization file, and finally the final results are statistically calculated.

[0077] In the actual application of the project, the accuracy of automated evaluation can be effectively improved by designing four key points in the prompt (reference answers, key points for judgment, knowledge basis, and guidance strategies). By using the output of model A (also called the first model) and using similarity and reference answers to make judgments, the amount of data for low-quality answers to be identified by model B (also called the second model) can be effectively reduced, which can effectively reduce the time spent on automated evaluation. As the accuracy rate increases, the time for manual review will be greatly reduced, which can support rapid iteration of the project.

[0078] Correspondingly, refer to Figure 3 , Figure 3 It is a flow chart corresponding to the model evaluation method in one embodiment of the present disclosure, which includes reading the evaluation set, requesting model A (also referred to as the first model) according to the evaluation set, and obtaining the output of model A. Calculate the similarity between the output of model A and the reference answer. If the similarity is higher than the threshold, assemble the prompt, which includes: the reference answer, the key points of judgment, the knowledge basis and the guidance strategy, and then request model B (also referred to as the second model) or model C for evaluation, so as to obtain the automatic evaluation result. If the similarity is lower than the threshold, the automatic evaluation result is directly obtained.

[0079] The following describes an embodiment of the device of the present application, which can be used to execute the model evaluation method in the above embodiment of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the model evaluation method in the above embodiment of the present application.

[0080] The present disclosure also provides a model evaluation device 400, such as Figure 4 As shown, including:

[0081] An acquisition module 401 is used to acquire an evaluation set, where the evaluation set includes at least one evaluation question for performing an evaluation task;

[0082] A first processing module 402 is used to input the evaluation set into the first model and obtain the evaluation answer to the evaluation question through the first model;

[0083] The second processing module 403 is used to evaluate the output result of the first model using the second model according to the preset evaluation strategy and evaluation answer to obtain the evaluation result for the first model.

[0084] In some optional embodiments, the second processing module 403 uses the second model to evaluate the output result of the first model according to the preset evaluation strategy and the evaluation answer, and obtains the evaluation result for the first model, including:

[0085] Calculate the similarity between the test answer and the reference answer;

[0086] If the similarity between the evaluation answer and the reference answer is greater than the set threshold, the second model is used to evaluate the output result of the first model according to the evaluation points and the evaluation answer contained in the evaluation strategy to obtain the evaluation result for the first model.

[0087] In some optional embodiments, before calculating the similarity between the evaluation answer and the reference answer, the second processing module 403 is further used to input the evaluation question included in the evaluation set into the second model, and obtain the reference question-answer pair corresponding to the evaluation question through the second model;

[0088] Generalize and adjust the evaluation problem to obtain a generalized evaluation problem;

[0089] Input the generalized evaluation questions into the second model, and obtain the generalized reference question-answer pairs through the second model;

[0090] Based on the generalized reference question-answer pairs, the reference answers corresponding to the evaluation questions are obtained.

[0091] In some optional embodiments, if the similarity between the evaluation answer and the reference answer is greater than a set threshold, the second processing module 403 uses the second model to evaluate the output result of the first model according to the evaluation points and the evaluation answer included in the evaluation strategy to obtain the evaluation result for the first model, including:

[0092] Obtain the evaluation strategy, which includes multiple evaluation points;

[0093] Assembling multiple evaluation points to obtain assembled evaluation points;

[0094] The assembled evaluation points and evaluation answers are sent to the second model, and the evaluation answers are scored by the second model according to the assembled evaluation points to obtain the evaluation results for the first model.

[0095] In some optional embodiments, the second processing module 403 obtains the evaluation strategy, including:

[0096] Determine the evaluation key points corresponding to the first model according to the result type output by the first model;

[0097] Obtaining knowledge basis according to the knowledge on which the output result of the first model is based;

[0098] Get strategic guidance according to the pre-set strategic guidance;

[0099] The key points of evaluation, knowledge basis and strategy guidance are combined to obtain the evaluation strategy.

[0100] In some optional embodiments, the second processing module 403 is further configured to determine that the output result of the first model is wrong if the similarity between the evaluation answer and the reference answer is less than or equal to a set threshold.

[0101] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0102] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium and a computer program product.

[0103] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement an embodiment of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.

[0104] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0105] A number of components in the device 500 are connected to the I / O interface 505, including: an input unit 506, such as a keyboard, a mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a disk, an optical disk, etc.; and a communication unit 509, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 509 allows the device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.

[0106] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as the model evaluation method. For example, in some embodiments, the model evaluation method may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the device 500 via ROM 502 and / or communication unit 509. When the computer program is loaded into RAM 503 and executed by the computing unit 501, one or more steps of the applet distribution described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the model evaluation method in any other appropriate manner (e.g., by means of firmware).

[0107] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0108] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.

[0109] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0110] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0111] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.

[0112] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.

[0113] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps recorded in this disclosure can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.

[0114] The above specific implementations do not constitute a limitation on the protection scope of the present disclosure. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present disclosure shall be included in the protection scope of the present disclosure.

Claims

1. A model evaluation method, include: Obtaining an evaluation set, wherein the evaluation set includes at least one evaluation question for performing an evaluation task; Inputting the evaluation set into a first model, and obtaining an evaluation answer to the evaluation question through the first model; The output result of the first model is evaluated using the second model according to the preset evaluation strategy and the evaluation answer to obtain the evaluation result for the first model.

2. The method according to claim 1, in, The step of using the second model to evaluate the output result of the first model according to the preset evaluation strategy and the evaluation answer to obtain the evaluation result for the first model includes: Calculating the similarity between the evaluation answer and the reference answer; If the similarity between the evaluation answer and the reference answer is greater than a set threshold, the output result of the first model is evaluated using the second model according to the evaluation points contained in the evaluation strategy and the evaluation answer to obtain an evaluation result for the first model.

3. The method according to claim 2, in, Before calculating the similarity between the evaluation answer and the reference answer, the method includes: Inputting the evaluation questions included in the evaluation set into the second model, and obtaining reference question-answer pairs corresponding to the evaluation questions through the second model; Generalizing and adjusting the evaluation problem to obtain a generalized evaluation problem; Inputting the generalized evaluation question into the second model, and obtaining a generalized reference question-answer pair through the second model; Based on the generalized reference question-answer pair, a reference answer corresponding to the evaluation question is obtained.

4. The method according to claim 2, in, If the similarity between the evaluation answer and the reference answer is greater than a set threshold, the output result of the first model is evaluated using the second model according to the evaluation points contained in the evaluation strategy and the evaluation answer to obtain an evaluation result for the first model, including: Obtaining an evaluation strategy, wherein the evaluation strategy includes a plurality of evaluation points; Assembling the multiple evaluation points to obtain assembled evaluation points; The assembled evaluation points and the evaluation answers are sent to the second model, and the evaluation answers are scored by the second model according to the assembled evaluation points to obtain evaluation results for the first model.

5. The method according to claim 4, in, The acquisition evaluation strategy includes: Determining, according to the result type output by the first model, the evaluation key points corresponding to the first model; Obtaining knowledge basis according to the knowledge on which the output result of the first model is based; Get strategic guidance according to the pre-set strategic guidance; The evaluation key points, the knowledge basis and the strategy guidance are combined to obtain the evaluation strategy.

6. The method according to claim 2, in, The method further comprises: If the similarity between the evaluation answer and the reference answer is less than or equal to the set threshold, it is determined that the output result of the first model is wrong.

7. A model evaluation device, include: An acquisition module, used to acquire an evaluation set, wherein the evaluation set includes at least one evaluation question for performing an evaluation task; A first processing module, configured to input the evaluation set into a first model, and obtain an evaluation answer to the evaluation question through the first model; The second processing module is used to evaluate the output result of the first model using the second model according to the preset evaluation strategy and the evaluation answer to obtain the evaluation result for the first model.

8. The device according to claim 7, in, The second processing module uses the second model to evaluate the output result of the first model according to the preset evaluation strategy and the evaluation answer to obtain the evaluation result for the first model, including: Calculating the similarity between the evaluation answer and the reference answer; If the similarity between the evaluation answer and the reference answer is greater than a set threshold, the output result of the first model is evaluated using the second model according to the evaluation points contained in the evaluation strategy and the evaluation answer to obtain an evaluation result for the first model.

9. The device according to claim 8, in, The second processing module is further used to input the evaluation questions included in the evaluation set into the second model before calculating the similarity between the evaluation answer and the reference answer, and obtain a reference question-answer pair corresponding to the evaluation question through the second model; Generalizing and adjusting the evaluation problem to obtain a generalized evaluation problem; Inputting the generalized evaluation question into the second model, and obtaining a generalized reference question-answer pair through the second model; Based on the generalized reference question-answer pair, a reference answer corresponding to the evaluation question is obtained.

10. The device according to claim 8, in, If the similarity between the evaluation answer and the reference answer is greater than a set threshold, the second processing module uses the second model to evaluate the output result of the first model according to the evaluation points included in the evaluation strategy and the evaluation answer to obtain an evaluation result for the first model, including: Obtaining an evaluation strategy, wherein the evaluation strategy includes a plurality of evaluation points; Assembling the multiple evaluation points to obtain assembled evaluation points; The assembled evaluation points and the evaluation answers are sent to the second model, and the evaluation answers are scored by the second model according to the assembled evaluation points to obtain evaluation results for the first model.

11. The device according to claim 10, in, The second processing module obtains the evaluation strategy, including: Determining, according to the result type output by the first model, the evaluation key points corresponding to the first model; Obtaining knowledge basis according to the knowledge on which the output result of the first model is based; Get strategic guidance according to the pre-set strategic guidance; The evaluation key points, the knowledge basis and the strategy guidance are combined to obtain the evaluation strategy.

12. The device according to claim 8, in, The second processing module is also used to determine that the output result of the first model is wrong if the similarity between the evaluation answer and the reference answer is less than or equal to the set threshold.

13. An electronic device, include: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 6.

14. A non-transitory computer-readable storage medium storing computer instructions, in, The computer instructions are used to cause the computer to execute the method according to any one of claims 1-6.

15. A computer program product, comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Robot teaching evaluation method and device

    CN108039081A

  • Customer service robot evaluation method and device, computer equipment and storage medium

    CN110737759A

  • Model evaluation method, device and equipment, and computer readable medium

    CN110929967A

  • Machine reading understanding data processing method and device, electronic equipment and storage medium

    CN116028601A

  • Medical inquiry system based on AI model

    CN116313162A

Cited By

  • Large model evaluation system, large model evaluation method and product

    CN118861166A

  • Large education model evaluation method and apparatus, terminal device, and storage medium

    WO2026143923A1