Model evaluation device, model evaluation method, and model evaluation program

The model evaluation device efficiently evaluates generative AI responses using comprehensiveness and accuracy metrics, facilitating rapid performance improvement for non-technical developers by generating clear evaluation results and suggestions.

JP2026185281AActive Publication Date: 2026-11-27NTT EAST JAPAN CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2025082281
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2025-05-16
Publication Date
2026-11-27
Estimated Expiration
2045-05-16

AI Technical Summary

Technical Problem

Citizen developers face difficulties in evaluating the performance of generative AI models, particularly when using Retrieval-Augmented Generation (RAG), due to the complexity of interpreting evaluation metrics and identifying areas for improvement.

Method used

A model evaluation device and method that utilizes first and second metrics to assess the comprehensiveness and accuracy of responses generated by text generation models, providing an efficient evaluation process through a system that includes a terminal device, database server, and model evaluation device, which generates evaluation results and improvement suggestions.

Benefits of technology

Enables efficient evaluation of generative AI responses, allowing non-technical developers to understand and improve model performance quickly and intuitively, reducing the burden of manual analysis and specialized knowledge requirements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2026185281000001_ABST
    Figure 2026185281000001_ABST
Patent Text Reader

Abstract

Efficiently evaluate responses generated by text generation models trained using machine learning. [Solution] The first indicator indicates the degree to which the answer to the query, generated by a text generation model trained using machine learning, covers all the information contained in the correct answer to the query. The second indicator indicates the degree to which the answer contains information unrelated to the query. Based on the first and second indicators, the computer generates an evaluation result of the answer and outputs the generated evaluation result.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] The present invention relates to a model evaluation technology. [Background Art]

[0002] In recent years, generative Artificial Intelligence (AI) trained by machine learning, including Large Language Models (LLMs), has been utilized. Along with generative AI, a technology called Retrieval-Augmented Generation (RAG) is sometimes used.

[0003] Typically, an LLM generates an answer to a query based on internal knowledge, which is knowledge accumulated during machine learning. Therefore, it is difficult to generate answers regarding information not included in internal knowledge, such as the latest news content or company-specific internal manuals.

[0004] On the other hand, RAG provides reference information as context to the LLM, and causes the LLM to generate an answer based on the reference information. This enables the generation of answers using information not included in the internal knowledge of the LLM, making it possible to automate the task of responding to inquiries regarding company service regulations.

[0005] Regarding LLMs using RAG, libraries for evaluating answers generated by LLMs are known (for example, see Non-Patent Document 1 and Non-Patent Document 2). [Prior Art Documents] [Non-Patent Documents]

[0006] [Non-Patent Document 1] “Ragas”, [online], Exploding Gradients, January 21, 2025, [Retrieved April 22, 2025], Internet<URL:https: / / docs.ragas.io / en / latest / > [Non-Patent Document 2] “RAGChecker: A Fine-grained Framework For Diagnosing RAG”, [online], Amazon Science, [Accessed April 22, 2025], Internet<URL:https: / / github.com / amazon-science / RAGChecker> [Overview of the Initiative] [Problems that the invention aims to solve]

[0007] In recent years, the difficulty of implementing generative AI has decreased, making it possible to develop applications using generative AI without writing any code. This has created a situation where many citizen developers can participate in the development of applications using generative AI. Furthermore, by using RAG (Resource Aggregation) in conjunction with generative AI, it is possible to generate answers using information not included in the generative AI's internal knowledge.

[0008] However, it is difficult for citizen developers who are not familiar with information technology to evaluate the performance of generative AI. For example, methods for evaluating the answers generated by generative AI using RAG include human evaluation and evaluation using libraries such as Non-Patent Literature 1 and Non-Patent Literature 2. However, for citizen developers, neither evaluation method is easy.

[0009] Furthermore, this problem arises not only when evaluating responses generated by a generative AI using RAG, but also when evaluating responses generated by various machine learning models using various types of information.

[0010] In one aspect, the present invention aims to efficiently evaluate responses generated by a text generation model trained using machine learning. [Means for solving the problem]

[0011] According to one embodiment, the first metric indicates the degree to which the answer to a query, generated by a machine learning-trained text generation model, covers all the information contained in the correct answer to the query. The second metric indicates the degree to which the answer contains information unrelated to the query. Based on the first and second metrics, the computer generates an evaluation result of the answer and outputs the generated evaluation result. [Effects of the Invention]

[0012] In one respect, it allows for the efficient evaluation of responses generated by text generation models trained using machine learning. [Brief explanation of the drawing]

[0013] [Figure 1] This is a functional configuration diagram of the model evaluation device according to the embodiment. [Figure 2] This is a flowchart of the first model evaluation process. [Figure 3] A diagram illustrating the configuration of the model evaluation system. [Figure 4] This is a functional configuration diagram of the model evaluation device included in the model evaluation system. [Figure 5] This figure shows the correspondence between combinations of comprehensiveness A and accuracy B, and categories and E2E scores. [Figure 6] This diagram shows the relationship between the correct answer information and the answer information. [Figure 7] This is a flowchart of the second model evaluation process. [Figure 8] This is a hardware configuration diagram of an information processing device. [Modes for carrying out the invention]

[0014] The embodiments will be described in detail below with reference to the drawings.

[0015] In order to utilize RAG effectively, it is essential to improve the response performance of generative AI. As a method for evaluating the response performance of generative AI, a method of creating an evaluation dataset based on evaluation data prepared in advance or a collection of actual response examples and evaluating the responses generated by generative AI can be considered. However, manually evaluating a large number of responses increases labor costs and time costs.

[0016] Therefore, in recent years, a method called LLM-as-a-judge has been used. In this method, responses generated by generative AI are evaluated by an LLM. As libraries used in LLM-as-a-judge, Ragas from Non-Patent Document 1, RAGChecker from Non-Patent Document 2, etc., have been developed.

[0017] For example, the score called faithfulness included in both Ragas and RAGChecker is an index that measures whether the information in the generated response is included in the reference information provided as context. As the reference information, information representing objective facts is used.

[0018] By using faithfulness, it is possible to analyze whether a response is generated based on the reference information. If the faithfulness is low, there is a possibility that a response containing inaccurate information, such as information based on internal knowledge rather than information based on the reference information, has been generated.

[0019] By calculating and analyzing a score such as faithfulness, problems with responses generated by generative AI can be clarified. However, for citizen developers who are not familiar with information technology, detailed analysis of the score and consideration of specific improvement methods based on the analysis results are not easy.

[0020] Firstly, interpreting the score values ​​is difficult for citizen developers. For example, if the faithfulness score is 0.7, it's unclear what that value means. Specifically, it's difficult to determine whether the faithfulness score needs to be further improved to 1.0, or whether 0.7 is sufficient to satisfy the user.

[0021] Secondly, it is difficult for citizen developers to identify areas for improvement in the generating AI based on the score. For example, if the faithfulness score is 0.5, citizen developers will understand that half of the information in the generated response is not based on reference information. In this case, citizen developers need to identify the information that is not based on reference information and analyze the reasons why such information was generated, which increases the burden of identifying areas for improvement.

[0022] Thirdly, it is difficult for citizen developers to concretize improvement proposals. For example, if they want to improve the faithfulness of the AI, citizen developers need to understand and appropriately adjust the diverse inputs and parameters of the generative AI, which makes it difficult. Specifically, they need to consider whether it is sufficient to only modify the prompts for the generative AI, whether they should change any parameters related to the AI's response generation, or whether they need to review the settings of the parameters for searching for reference information.

[0023] Acquiring the analytical skills necessary for such performance improvements requires a great deal of time and practical experience, which is a significant burden for citizen developers.

[0024] Figure 1 shows an example of the functional configuration of a model evaluation device according to an embodiment. The model evaluation device 101 in Figure 1 includes an evaluation unit 111 and an output unit 112.

[0025] Figure 2 is a flowchart showing an example of the first model evaluation process performed by the model evaluation device 101 in Figure 1.

[0026] The evaluation unit 111 generates an evaluation result of the response to the query, which was generated by the text generation model, based on the first and second indicators (step 201), and the output unit 112 outputs the generated evaluation result (step 202).

[0027] A text generation model is an example of generative AI, and is a machine learning model trained using machine learning. The first metric indicates the degree to which the generated response covers all the information contained in the correct answer to the query. The second metric indicates the degree to which the response contains information unrelated to the query.

[0028] According to the model evaluation device 101 in Figure 1, responses generated by a text generation model trained using machine learning can be efficiently evaluated.

[0029] Figure 3 shows an example configuration of a model evaluation system including the model evaluation device 101 shown in Figure 1. The model evaluation system in Figure 3 includes a terminal device 311, a model evaluation device 312, and a database server 313. The model evaluation device 312 corresponds to the model evaluation device 101 in Figure 1.

[0030] Terminal device 311 is the developer's information processing device (computer). The developer develops an application that includes a response generation model and uses the model evaluation device 101 to evaluate the application's performance. The response generation model is an example of a text generation model. The developer may be a citizen developer.

[0031] The database server 313 is an information processing device that stores the database. The database contains reference information that is provided as context to the response generation model included in the application. The reference information may include the latest news reports, information publicly available on the internet, or company-specific internal manuals. Company-specific internal manuals may include documents related to internal regulations such as service rules.

[0032] To improve searchability and other factors, each document in the reference information may be divided into chunks of a certain length, and these chunks may be stored in the database. Alternatively, each of multiple documents may be stored in the database as a chunk.

[0033] The model evaluation device 312 communicates with the terminal device 311 and the database server 313 via the communication network 321. The communication network 321 is, for example, a LAN (Local Area Network) or a WAN (Wide Area Network).

[0034] The terminal device 311 sends evaluation samples to the model evaluation device 312 according to instructions from the developer. The evaluation samples include a combination of a query for the application and the correct answer to the query. For example, the ideal answer to the query (Ground Truth, GT) may be used. The terminal device 311 may also send an evaluation dataset containing multiple evaluation samples to the model evaluation device 312.

[0035] The model evaluation device 312 retrieves relevant information related to the query from the database server 313 based on the query contained in the received evaluation sample. Then, the model evaluation device 312 inputs the query and relevant information into the answer generation model, causing the answer generation model to generate an answer to the query.

[0036] Next, the model evaluation device 312 evaluates the generated responses using the correct answers included in the evaluation samples to generate an evaluation result for the responses, and based on the evaluation result, generates improvement suggestions for the application. Then, the model evaluation device 312 transmits the evaluation result and improvement suggestions to the terminal device 311.

[0037] The terminal device 311 displays the received evaluation results and improvement suggestions on its screen. This allows the developer to obtain evaluation results that show the application's response performance and suggestions for improvement to the application.

[0038] Figure 4 shows an example of the functional configuration of the model evaluation device 312 in Figure 3. The model evaluation device 312 in Figure 4 includes a communication unit 411, a response generation unit 412, an evaluation unit 413, an improvement proposal generation unit 414, and a storage unit 415. The evaluation unit 413 and the communication unit 411 correspond to the evaluation unit 111 and the output unit 112 in Figure 1, respectively.

[0039] The communication unit 411 communicates with the terminal device 311 and the database server 313 via the communication network 321.

[0040] The memory unit 415 stores the application 421 to be evaluated, the end-to-end (E2E) evaluation model 422 used to evaluate the application 421, and the improvement proposal generation model 423 used to generate improvement proposals for the application 421.

[0041] Application 421 includes a RAG function 441 and a response generation model 442. The RAG function 441 is a function that retrieves information related to the input information from the database server 313.

[0042] The response generation model 442 is a text generation model trained using machine learning. The response generation model 442 may be an LLM such as GPT (Generative Pre-trained Transformer), or it may be a multimodal model. A publicly available LLM may be used as the response generation model 442, or an LLM that has been fine-tuned in any way may be used as the response generation model 442. The parameters of the LLM can be set in any way.

[0043] The E2E evaluation model 422 and the improvement suggestion generation model 423 are text generation models trained by machine learning. The E2E evaluation model 422 and the improvement suggestion generation model 423 may also be LLMs such as GPT. The type of LLM used as the E2E evaluation model 422 and the improvement suggestion generation model 423, whether or not fine-tuning is performed, the prompts, parameters, and implementation method are arbitrary.

[0044] The response generation unit 412 receives evaluation samples from the terminal device 311 via the communication unit 411 and stores the query 424 and correct answer 425 contained in the received evaluation sample in the storage unit 415. The query 424 and correct answer 425 are, for example, text written in natural language. If the response generation model 442 is a multimodal model, the query 424 may include images, audio, etc.

[0045] Next, the response generation unit 412 uses the RAG function 441 to search the database server 313 for one or more related pieces of information 426 related to the query 424. When searching for related pieces of information 426, the response generation unit 412 sends the query 424 to the database server 313 via the communication unit 411.

[0046] The database server 313 may select related information 426 by keyword search using words contained in query 424, or it may select related information 426 using a word embedding model.

[0047] The database server 313, for example, uses a word embedding model to convert the text contained in query 424 and the text of each chunk contained in the database into numerically represented vectors, and then calculates the similarity between the two resulting vectors.

[0048] The database server 313 then selects one or more chunks from among the chunks with similarity above a threshold, sorted in descending order of similarity, as related information 426, and sends them to the model evaluation device 312. An index such as cosine similarity can be used to measure the similarity between two vectors.

[0049] The database server 313 may select related information 426 using a Reranker model. The Reranker model is a machine learning model that calculates the semantic similarity between two given sentences based on deep learning or the like.

[0050] Next, the response generation unit 412 receives related information 426 from the database server 313 via the communication unit 411 and stores it in the storage unit 415. Then, the response generation unit 412 generates a response 427 to the query 424 using the response generation model 442 and stores it in the storage unit 415. The response 427 is, for example, text written in natural language.

[0051] The response generation unit 412 generates a prompt with the query 424 and related information 426 embedded, and inputs the prompt to the response generation model 442. The related information 426 is embedded in the prompt as context. The response generation model 442 generates and outputs the response 427 according to the input prompt. The format of the input prompt is arbitrary. The response generation unit 412 may generate the response 427 using techniques to improve accuracy, such as HyDE (Hypothetical Document Embeddings).

[0052] Next, the response generation unit 412 generates response generation parameter information 428, which includes various search settings parameters used to generate the response 427, the response generation model 442, various parameters of the response generation model 442, prompts, etc., and stores it in the storage unit 415. The various search settings parameters include, for example, the type of word embedding model, the similarity threshold, whether or not a Reranker model is used, the Reranker model, the chunk generation method, etc. The various parameters of the response generation model 442 include, for example, Temperature, Top-P, Top-K, etc.

[0053] The evaluation unit 413 evaluates the answer 427 using the E2E evaluation model 422, generates an evaluation result 429 for the answer 427, and stores it in the storage unit 415. At this time, the evaluation unit 413 generates a prompt embedded with the query 424, the correct answer 425, and related information 426, and inputs the prompt to the E2E evaluation model 422. The E2E evaluation model 422 generates and outputs the evaluation result 429 according to the input prompt.

[0054] The evaluation unit 413 then outputs the evaluation result 429 to the terminal device 311 by transmitting the evaluation result 429 to the terminal device 311 via the communication unit 411.

[0055] The E2E evaluation model 422 generates evaluation results 429 by performing an E2E evaluation. In the E2E evaluation, the E2E evaluation model 422 determines the comprehensiveness A and accuracy B of the responses 427 as evaluation indicators, and determines the category of the responses 427 based on comprehensiveness A and accuracy B. Then, the E2E evaluation model 422 generates evaluation results 429 that include the categories of the responses 427.

[0056] Comprehensiveness A indicates the degree to which answer 427 covers all the information contained in the correct answer 425, while accuracy B indicates the degree to which answer 427 contains information unrelated to query 424. Information unrelated to query 424 is, for example, information that is unnecessary or incorrect as an answer to query 424. Hereafter, information unrelated to query 424 may simply be referred to as superfluous information. Comprehensiveness A is an example of the first indicator, and accuracy B is an example of the second indicator.

[0057] Comprehensiveness A is expressed as one of the following levels, for example, A-1, A-2, or A-3. A-1 means that answer 427 contains all the information contained in the correct answer 425. A-2 means that answer 427 contains some of the information contained in the correct answer 425. A-3 means that answer 427 contains none of the information contained in the correct answer 425.

[0058] Accuracy B is expressed as either level B-1 or B-2, for example. B-1 indicates that answer 427 does not contain any extraneous information. B-2 indicates that answer 427 contains extraneous information.

[0059] The E2E evaluation model 422 may also generate the basis for the required comprehensiveness A and accuracy B. In this case, the evaluation result 429 may include comprehensiveness A, accuracy B, the basis for comprehensiveness A, and the basis for accuracy B.

[0060] The basis for comprehensiveness A may be that answer 427 contains all the information included in the correct answer 425, that answer 427 partially contains the information included in the correct answer 425, or that answer 427 does not contain any of the information included in the correct answer 425. The basis for accuracy B may be that answer 427 contains any superfluous information.

[0061] If accuracy B is B-2, the E2E evaluation model 422 may determine whether the extraneous information included in response 427 is based on related information 426. Information based on related information 426 represents information generated from related information 426. Information generated from related information 426 is, for example, information contained in related information 426. If accuracy B is B-2, the basis for accuracy B may include a determination result indicating whether the extraneous information is based on related information 426.

[0062] By including the basis for comprehensiveness A and accuracy B in evaluation result 429, understanding comprehensiveness A and accuracy B becomes easier.

[0063] As an example of query 424, correct answer 425, and response 427, consider the following texts T1 to T3.

[0064] T1: "What kind of person was Einstein?"

[0065] T2: "Einstein was a German-born physicist. He proposed the theory of relativity."

[0066] T3: "Einstein was an Italian-born physicist. He proposed the theory of relativity."

[0067] Text T1 represents query 424, text T2 represents the correct answer 425, and text T3 represents answer 427. In this case, text T3 for answer 427 contains the information from text T2 of the correct answer 425, "He is a physicist" and "He proposed the theory of relativity," but does not contain the information from text T2, "He was born in Germany," so the comprehensiveness A is A-2. Also, text T3 for answer 427 contains the extraneous information "He was born in Italy," so the accuracy B is B-2.

[0068] The E2E evaluation model 422 determines the category and E2E score of the response 427 based on the combination of comprehensiveness A and accuracy B of the response 427. The evaluation result 429 may include the category and E2E score.

[0069] Figure 5 shows an example of the correspondence between combinations of comprehensiveness A and accuracy B, and the categories and E2E scores. The category for the combination of A-1 and B-1 is correct, and the E2E score is 1.0. The category for the combination of A-1 and B-2 is information overload, and the E2E score is 0.5.

[0070] The combination of A-2 and B-1 is insufficient information, and its E2E score is 0.5. The combination of A-2 and B-2 is partially correct, and its E2E score is 0.5. The combination of A-3 and B-2 is incorrect, and its E2E score is 0.0.

[0071] If response 427 means "I don't know," "I can't answer," etc., the E2E evaluation model 422 will determine it as no response. In this case, the category will be "Not answered," and the E2E score will be 0.0. The basis for comprehensiveness A and accuracy B is stated as follows: "Despite the existence of a correct answer 425, response 427 means 'I don't know,' 'I can't answer,' etc."

[0072] Furthermore, if the correct answer 425 is not received from terminal device 311, the E2E evaluation model 422 will assume that the correct answer 425 means "I don't know," "I can't answer," etc. In this case, the category will be incorrect, and the E2E score will be 0.0. The basis for comprehensiveness A and accuracy B is stated as follows: "Although the correct answer 425 means 'I don't know,' "I can't answer," etc., the answer 427 does not mean 'I don't know,' "I can't answer," etc.

[0073] However, if the correct answer 425 is not received from terminal device 311, and response 427 means "I don't know," "I can't answer," etc., the category will be correct and the E2E score will be 1.0. The basis for comprehensiveness A and accuracy B is stated as "both the correct answer 425 and response 427 mean 'I don't know,' 'I can't answer,' etc."

[0074] Figure 6 shows an example of the inclusion relationship between the information for the correct answer 425 and the information for the response 427. Figures 6(a) and 6(b) show examples of the inclusion relationship when the category is the correct answer.

[0075] Answer 427 in Figure 6(a) matches the correct answer 425. Therefore, comprehensiveness A is A-1 and accuracy B is B-1. Answer 427 in Figure 6(b) includes the correct answer 425 and, as information other than the correct answer 425, only includes additional information related to query 424. Therefore, comprehensiveness A is A-1 and accuracy B is B-1.

[0076] Figure 6(c) shows an example of inclusion relationships when a category is information-overloaded. Answer 427 in Figure 6(c) includes the correct answer 425, and also includes extraneous information other than the correct answer 425. Therefore, the comprehensiveness A is A-1 and the accuracy B is B-2.

[0077] Figure 6(d) shows an example of inclusion when a category is lacking information. The correct answer 425 in Figure 6(d) includes answer 427 and also contains information other than that in answer 427. Therefore, the comprehensiveness A is A-2 and the accuracy B is B-1.

[0078] Figure 6(e) shows an example of inclusion when a category is partially correct. Answer 427 in Figure 6(e) partially overlaps with the correct answer 425 and also contains extraneous information other than the correct answer 425. Therefore, the comprehensiveness A is A-2 and the accuracy B is B-2.

[0079] Figure 6(f) shows an example of inclusion when a category is an incorrect answer. Answer 427 in Figure 6(f) does not overlap with the correct answer 425 at all, and contains extraneous information other than the correct answer 425. Therefore, the comprehensiveness A is A-3 and the accuracy B is B-2.

[0080] In this way, by classifying the answers 427 into one of the following categories—correct, information overload, information underload, partially correct, incorrect, or no answer—based on a combination of comprehensiveness A and accuracy B, the answers 427 can be efficiently evaluated. By presenting the categories of the answers 427 as evaluation results 429 to the developers, even developers without specialized knowledge can qualitatively and intuitively analyze the quality of the answers 427, enabling rapid performance evaluation of the application 421.

[0081] By evaluating response 427 using query 424, contextual information showing what questions were asked and how they were answered is refined, so query 424 is expected to serve as a clue for evaluation.

[0082] Furthermore, by evaluating the response 427 using the related information 426 associated with query 424, it is possible to clarify whether the extraneous information in the response 427 is factual based on the related information 426, even if the accuracy B of the response 427 is lacking. This allows for the presentation of clear reasons for the lack of accuracy B.

[0083] The E2E evaluation model 422 may perform the process of determining comprehensiveness A and accuracy B multiple times, taking into account variations in the content of the responses 427 generated by the response generation model 442. In this case, the E2E evaluation model 422 integrates the results of the multiple processes to generate the evaluation result 429.

[0084] The E2E evaluation model 422 can, for example, integrate categories by taking a majority vote of the categories generated in each of multiple processing steps, and integrate evidence by taking a majority vote of the evidence generated in each of multiple processing steps. Furthermore, the E2E evaluation model 422 can integrate E2E scores by calculating the average value of the E2E scores generated in each of multiple processing steps.

[0085] By integrating the results of multiple processing iterations to generate evaluation result 429, it is possible to suppress fluctuations in evaluation result 429 caused by variations in the content of answer 427. If the average E2E score is 0.8, it becomes possible to interpret it as, "Answer 427 is almost correct, but there are minor issues."

[0086] The evaluation unit 413 may obtain other evaluation indicators in addition to comprehensiveness A, accuracy B, and E2E score, and the evaluation result 429 may include the other evaluation indicators and the basis for those other evaluation indicators. Examples of other evaluation indicators include fidelity C, relevant information accuracy D, or relevant information comprehensiveness E.

[0087] Fidelity C indicates the degree to which response 427 contains information based on related information 426. Related information accuracy D indicates the degree to which related information 426 is related to the correct answer 425. Related information comprehensiveness E indicates the degree to which the correct answer 425 contains information based on related information 426. Related information accuracy D and related information comprehensiveness E represent the evaluation results of related information 426. Fidelity C is an example of the third indicator, related information accuracy D is an example of the fourth indicator, and related information comprehensiveness E is an example of the fifth indicator.

[0088] When determining fidelity C, the memory unit 415 further stores the fidelity generation model MC. The fidelity generation model MC is a text generation model trained by machine learning. The fidelity generation model MC may be an LLM such as GPT. The type of LLM used as the fidelity generation model MC, whether or not fine-tuning is performed, the prompts, parameters, and implementation method are arbitrary.

[0089] The evaluation unit 413 uses the fidelity generation model MC to determine the fidelity C of the answer 427 and stores it in the memory unit 415. First, the fidelity generation model MC removes elements from the answer 427 that are not essentially relevant to the evaluation of the answer 427. Elements that are not essentially relevant to the evaluation include expressions that can be evaluated even if they are not included in the answer 427, such as "Yes! I will answer your question" or "If you would like to know more, please refer to the original document."

[0090] Next, the fidelity generative model MC uses query 424 as reference information to divide answer 427 into multiple short sentences. At this time, the fidelity generative model MC clarifies the relationships between demonstratives and supplements the content so that each short sentence does not contain demonstratives, thereby generating a single sentence that can be understood from the short sentences alone.

[0091] Next, the fidelity generation model MC determines whether the information in each divided short sentence is included in the related information 426. It assigns a score of 1 to short sentences included in the related information 426 and a score of 0 to short sentences not included in the related information 426. The fidelity generation model MC then calculates the fidelity C, which is a statistical value of the scores for each of the multiple short sentences. The statistical value used may be the mean, sum, etc.

[0092] Furthermore, the fidelity generation model MC also generates the rationale for fidelity C. In this case, the fidelity generation model MC may omit the rationale for short sentences assigned a score of 1 and generate only the rationale for short sentences assigned a score of 0. In this case, the rationale for a score of 0 indicates that the short sentence is not included in the related information 426.

[0093] By outputting the rationale for short sentences that were assigned a score of 0, it becomes easier to identify information in response 427 that does not originate from related information 426. Such information is important for improving the performance of application 421.

[0094] For example, if the above text T3 is generated as answer 427, text T3 will be split into sentences S1 to S3 as follows:

[0095] S1: "Einstein was born in Italy."

[0096] S2: "Einstein was a physicist."

[0097] S3: "Einstein proposed the theory of relativity."

[0098] If sentence S1 is assigned a score of 0, and sentences S2 and S3 are assigned a score of 1, the average of the scores for sentences S1 through S3 will be 2 / 3. Therefore, 2 / 3 will be output as the fidelity value C.

[0099] The fidelity generation model MC may perform the process of calculating fidelity C multiple times and calculate the average value of the fidelity C generated in each of the multiple processes.

[0100] When determining the accuracy of related information D, the memory unit 415 further stores the related information accuracy generation model MD. The related information accuracy generation model MD is a text generation model trained by machine learning. The related information accuracy generation model MD may also be an LLM such as GPT. The type of LLM used as the related information accuracy generation model MD, whether or not fine-tuning is performed, the prompts, parameters, and implementation method are arbitrary.

[0101] The evaluation unit 413 uses the related information accuracy generation model MD to determine the related information accuracy D of the related information 426 and stores it in the storage unit 415.

[0102] First, the related information accuracy generation model MD determines whether each of the multiple related information 426 retrieved from the database server 313 is related to the correct answer 425. Then, the related information accuracy generation model MD assigns a score of 1 to the related information 426 that is related to the correct answer 425, and a score of 0 to the related information 426 that is not related to the correct answer 425.

[0103] Related information 426 that is related to the correct answer 425 is, for example, information contained in the correct answer 425. Related information 426 that is related to the correct answer 425 is useful information, and related information 426 that is not related to the correct answer 425 is useless information.

[0104] Next, the related information accuracy generation model (MD) calculates the statistical value of the score for each of the 426 related information items as the related information accuracy D. The statistical value used may include the mean, sum, etc.

[0105] Furthermore, the related information accuracy generation model MD also generates the basis for related information accuracy D. The basis for related information accuracy D may include a judgment result indicating whether each related information 426 is related to the correct answer 425. Including the basis for related information accuracy D in the evaluation result 429 makes it easier to understand related information accuracy D.

[0106] For example, if three related pieces of information 426 are retrieved from the database server 313, and two of them are assigned a score of 1, the average score of each of the three related pieces of information 426 will be 2 / 3. Therefore, 2 / 3 will be output as the related information accuracy D.

[0107] The related information accuracy generation model MD may perform the process of determining related information accuracy D multiple times and calculate the average value of the related information accuracy D generated in each of the multiple processes.

[0108] When determining the related information coverage E, the memory unit 415 further stores the related information coverage generation model ME. The related information coverage generation model ME is a text generation model trained by machine learning. The related information coverage generation model ME may also be an LLM such as GPT. The type of LLM used as the related information coverage generation model ME, whether or not fine-tuning is performed, the prompts, parameters, and implementation method are arbitrary.

[0109] The evaluation unit 413 uses the related information coverage generation model ME to determine the related information coverage E of the correct answer 425 and stores it in the memory unit 415. First, the related information coverage generation model ME excludes elements from the correct answer 425 that are not essentially related to the evaluation of the answer 427, in the same manner as when determining the fidelity C.

[0110] Next, the Related Information Comprehensive Generating Model (ME) uses query 424 as reference information to divide the correct answer 425 into multiple short sentences. At this time, the Related Information Comprehensive Generating Model (ME) clarifies the relationships between demonstrative pronouns, supplements the content so that each short sentence does not contain demonstrative pronouns, and generates a single sentence that can be understood from the short sentences alone.

[0111] Next, the related information coverage generation model ME determines whether the information in each divided short sentence is included in related information 426. It assigns a score of 1 to short sentences included in related information 426 and a score of 0 to short sentences not included in related information 426. The related information coverage generation model ME then calculates the statistical value of the scores for each of the multiple short sentences as related information coverage E. The statistical value used may be the mean, sum, etc.

[0112] Furthermore, the related information comprehensiveness generation model ME also generates the basis for related information comprehensiveness E. In this case, the related information comprehensiveness generation model ME may omit the basis for short sentences assigned a score of 1 and generate only the basis for short sentences assigned a score of 0. In this case, the basis for a score of 0 indicates that the short sentence is not included in related information 426.

[0113] By outputting the rationale for short sentences that were assigned a score of 0, it becomes easier to identify information contained in the correct answer 425 that is not included in the related information 426. Such information is important for improving the performance of application 421.

[0114] For example, if the above text T2 is entered as the correct answer 425, text T2 will be split into sentences S4 to S6 as follows.

[0115] S4: "Einstein was born in Germany."

[0116] S5: "Einstein was a physicist."

[0117] S6: "Einstein proposed the theory of relativity."

[0118] If sentences S4 and S6 are assigned a score of 1, and sentence S5 is assigned a score of 0, the average score for sentences S4 through S6 will be 2 / 3. Therefore, 2 / 3 will be output as the related information coverage E.

[0119] The related information coverage generation model ME may perform the process of determining related information coverage E multiple times and calculate the average value of related information coverage E generated in each of the multiple processes.

[0120] Furthermore, the evaluation unit 413 may generate an executive summary, and the evaluation result 429 may include the executive summary. The executive summary is a summary of comprehensiveness A, accuracy B, the basis for comprehensiveness A, the basis for accuracy B, the category of the response 427, the E2E score, other evaluation metrics, and a summary of the other evaluation metrics.

[0121] In this case, the memory unit 415 further stores the summary generation model MS. The summary generation model MS is a text generation model trained by machine learning. The summary generation model MS may also be an LLM such as GPT. The type of LLM used as the summary generation model MS, whether or not fine-tuning is performed, the prompts, parameters, and implementation method are arbitrary.

[0122] The evaluation unit 413 generates an executive summary using a summary generation model MS and stores it in the storage unit 415. The summary generation model MS may generate a first executive summary by summarizing the micro-level evaluation results for a single evaluation sample using multiple evaluation indicators. Alternatively, the summary generation model MS may generate a second executive summary by summarizing the macro-level evaluation results for the entire evaluation dataset, which includes multiple evaluation samples.

[0123] The summary generation model MS may generate either the first executive summary or the second executive summary, or both. Furthermore, the summary generation model MS may generate executive summaries at any unit, such as the category unit of the 427 responses.

[0124] The improvement proposal generation unit 414 generates improvement proposals 430 for application 421 using the improvement proposal generation model 423 and stores them in the storage unit 415. At this time, the improvement proposal generation unit 414 generates a prompt that includes the query 424, the correct answer 425, related information 426, the answer 427, the answer generation parameter information 428, and the evaluation result 429. For example, the improvement proposal generation unit 414 includes the meaning and modifiable range of the search settings and various parameters of the answer generation model 442 included in the answer generation parameter information 428 in the prompt.

[0125] Next, the improvement suggestion generation unit 414 inputs the generated prompt to the improvement suggestion generation model 423. The improvement suggestion generation model 423 generates and outputs an improvement suggestion 430 according to the input prompt. The improvement suggestion 430 includes, for example, a suggestion to change one or more parameters among the various parameters of the search settings and answer generation model 442.

[0126] The improvement proposal generation unit 414 then outputs the improvement proposal 430 to the terminal device 311 by transmitting it to the terminal device 311 via the communication unit 411.

[0127] If the prompt includes evaluation results 429 for each of the multiple evaluation samples included in the evaluation dataset, the categories of the responses 427 included in each evaluation result 429 are input to the improvement proposal generation model 423. This allows the improvement proposal generation model 423 to obtain macroeconomic trends in the errors of the responses 427 across the entire evaluation dataset, and thus generate improvement proposals 430 that focus particularly on the trends of errors that should be improved.

[0128] The improvement proposal generation unit 414 may instruct the improvement proposal generation model 423 on specific parameters to be modified, or it may present pre-set design patterns. In addition, the improvement proposal generation model 423 may generate improvement proposals 430 for each evaluation sample included in the evaluation dataset, as well as for the entire evaluation dataset.

[0129] By presenting developers with improvement suggestions 430 for application 421, even developers without specialized knowledge can quickly improve the performance of application 421. Because the performance improvement cycle, including evaluation and correction of application 421, can be easily and quickly repeated, anyone can deploy a high-quality application 421.

[0130] According to the model evaluation system in Figure 3, the process from inputting evaluation samples to outputting evaluation results 429 and improvement proposals 430 can be executed in a single, end-to-end manner.

[0131] Figure 7 is a flowchart showing an example of the second model evaluation process performed by the model evaluation device 312 in Figure 4. First, the answer generation unit 412 receives an evaluation sample including the query 424 and the correct answer 425 from the terminal device 311 via the communication unit 411 (step 701).

[0132] Next, the response generation unit 412 uses the RAG function 441 to search the database server 313 for one or more related pieces of information 426 related to the query 424. When searching for related information 426, the response generation unit 412 sends the query 424 to the database server 313 via the communication unit 411 (step 702) and receives the related information 426 from the database server 313 (step 703).

[0133] Next, the response generation unit 412 generates a response 427 from the query 424 and related information 426 using the response generation model 442 (step 704), and generates response generation parameter information 428 (step 705).

[0134] Next, the evaluation unit 413 generates an evaluation result 429 of the response 427 using the E2E evaluation model 422, the fidelity generation model MC, the related information accuracy generation model MD, the related information comprehensiveness generation model ME, and the summary generation model MS (step 706). Then, the evaluation unit 413 transmits the evaluation result 429 to the terminal device 311 via the communication unit 411 (step 707).

[0135] Next, the improvement proposal generation unit 414 generates improvement proposals 430 for application 421 using the improvement proposal generation model 423 (step 708), and transmits the improvement proposals 430 to terminal device 311 via communication unit 411 (step 709).

[0136] When the model evaluation device 312 in Figure 4 is implemented using an information processing device, the application for model evaluation processing is described using a program. The application for model evaluation processing includes, for example, application 421, E2E evaluation model 422, improvement proposal generation model 423, fidelity generation model MC, related information accuracy generation model MD, related information comprehensiveness generation model ME, and summary generation model MS.

[0137] Model evaluation processing applications may be created using libraries such as LangChain® or no-code tools such as Dify®. No-code tools refer to platforms or tools that allow applications to be developed without writing code.

[0138] Applications created using Dify® can implement an API (Application Programming Interface) and execute HTTP (Hypertext Transfer Protocol) requests internally. In this case, the processing performed by the response generation unit 412, the evaluation unit 413, and the improvement proposal generation unit 414 may be implemented individually, and the application for model evaluation processing may call each process via HTTP request to obtain the processing results. Alternatively, all processing may be implemented directly in the application for model evaluation processing.

[0139] In addition to the model evaluation processing application, an application for version control of evaluation results 429, etc., may be implemented. Alternatively, an application that runs in a browser and imports and visualizes evaluation results 429, etc., may be implemented. An application that performs model evaluation processing, version control, and visualization in a single operation may also be implemented.

[0140] The configuration of the model evaluation device 101 shown in Figure 1 is merely an example, and some components may be omitted or changed depending on the intended use or conditions of the model evaluation device 101.

[0141] The configuration of the model evaluation system shown in Figure 3 is merely an example, and some components may be omitted or modified depending on the application or conditions of the model evaluation system. For example, if the model evaluation device 312 stores a database containing reference information, the database server 313 can be omitted. The model evaluation system may include multiple database servers 313.

[0142] The configuration of the model evaluation device 312 shown in Figure 4 is merely an example, and some components may be omitted or changed depending on the application or conditions of the model evaluation device 312. For example, if it is not necessary to generate improvement proposals 430, the improvement proposal generation unit 414 can be omitted.

[0143] The flowcharts shown in Figures 2 and 7 are merely examples, and some processes may be omitted or modified depending on the configuration or conditions of the model evaluation device. For example, if it is not necessary to generate improvement proposals 430 in the model evaluation device 312 of Figure 4, steps 708 and 709 of Figure 7 can be omitted.

[0144] The comprehensiveness A, accuracy B, categories, and E2E scores shown in Figure 5 are merely examples, and other comprehensiveness A, accuracy B, categories, and E2E scores may be used.

[0145] The inclusion relationship between correct answers and responses shown in Figure 6 is just one example; the inclusion relationship between correct answers and responses changes depending on the evaluation sample.

[0146] Figure 8 shows an example of the hardware configuration of an information processing device used as the model evaluation device 101 in Figure 1 and the model evaluation device 312 in Figure 4. The information processing device in Figure 8 includes a CPU (Central Processing Unit) 801, memory 802, input device 803, output device 804, auxiliary storage device 805, media drive device 806, and network connection device 807. These components are hardware and are connected to each other by a bus 808.

[0147] Memory 802 is, for example, a semiconductor memory such as ROM (Read Only Memory) or RAM (Random Access Memory), and stores the program and data used for processing. Memory 802 may also operate as the storage unit 415 in Figure 4.

[0148] The CPU 801 (processor) operates as the evaluation unit 111 in Figure 1, for example, by executing a program using the memory 802. The CPU 801 also operates as the answer generation unit 412, evaluation unit 413, and improvement proposal generation unit 414 in Figure 4, by executing a program using the memory 802.

[0149] The input device 803 is, for example, a keyboard, a pointing device, etc., and is used for inputting instructions or information from the user or operator. The output device 804 is, for example, a display device, a printer, a speaker, etc., and is used for inquiries or instructions to the user or operator, and for outputting processing results. The output device 804 may also operate as the output unit 112 in Figure 1. The processing results may be evaluation results 429 or improvement suggestions 430.

[0150] The auxiliary storage device 805 is, for example, a magnetic disk drive, an optical disk drive, a magneto-optical disk drive, a tape drive, etc. The auxiliary storage device 805 may also be a hard disk drive or an SSD (Solid State Drive). The information processing device can store programs and data in the auxiliary storage device 805 and load them into the memory 802 for use. The auxiliary storage device 805 may also operate as the storage unit 415 in Figure 4.

[0151] The media drive unit 806 drives the portable recording medium 809 and accesses its recorded contents. The portable recording medium 809 can be a memory device, a flexible disk, an optical disk, a magneto-optical disk, etc. The portable recording medium 809 may also be a CD-ROM (Compact Disk Read Only Memory), a DVD (Digital Versatile Disk), a USB (Universal Serial Bus) memory, etc. The user or operator can store programs and data on the portable recording medium 809 and load them into the memory 802 for use.

[0152] Thus, the computer-readable recording medium that stores the programs and data used in the processing is a physical (non-temporary) recording medium such as memory 802, auxiliary storage device 805, or portable recording medium 809.

[0153] The network connection device 807 is a communication device connected to the communication network 321 that performs data conversion associated with communication. The information processing device can receive programs and data from external devices via the network connection device 807 and load them into the memory 802 for use. The network connection device 807 may operate as the output unit 112 in Figure 1 or the communication unit 411 in Figure 4.

[0154] The information processing device may further include devices such as a GPU (Graphics Processing Unit).

[0155] Note that the information processing device does not need to include all the components shown in Figure 8, and some components may be omitted depending on the application or conditions. For example, if an interface with a user or operator is not required, the input device 803 and output device 804 may be omitted. If the portable recording medium 809 or communication network 321 is not used, the media drive device 806 or network connection device 807 may be omitted.

[0156] The terminal device 311 and database server 313 in Figure 3 can be the same information processing devices as those in Figure 8.

[0157] While embodiments of the disclosure and their advantages have been described in detail, those skilled in the art will be able to make various modifications, additions, and omissions without departing from the scope of the invention as expressly stated in the claims. [Explanation of Symbols]

[0158] 101, 312 Model evaluation device 111, 413 Evaluation Department 112 Output section 311 Terminal device 313 Database Server 321 Communication Network 411 Communications Department 412 Answer generation part 414 Improvement proposal generation department 415 Storage section 421 Applications 422 E2E evaluation models 423 Improvement Proposal Generation Model 424 queries 425 Correct answer 426 Related Information 427 answers 428 Response generation parameter information 429 Evaluation Results 430 Improvement proposal 441 RAG function 442 Response Generation Models 801 CPU 802 memory 803 Input device 804 Output device 805 Auxiliary storage 806 Media drive unit 807 Network Connection Device 808 Bus 809 Portable recording media

Claims

1. Based on a first indicator indicating the degree to which the response to a query, generated by a text generation model trained using machine learning, covers all the information contained in the correct answer to the query, and a second indicator indicating the degree to which the response contains information unrelated to the query, an evaluation result of the response is generated. Output the evaluation results mentioned above. A model evaluation method characterized by having a computer perform the processing.

2. The model evaluation method according to claim 1, characterized in that the evaluation results include any of the following categories of responses: correct answer, information overload, information underload, partially correct answer, incorrect answer, or no answer.

3. The model evaluation method according to claim 1, characterized in that the evaluation result includes the first indicator, the second indicator, the basis for the first indicator, and the basis for the second indicator.

4. The model evaluation method according to claim 1, characterized in that the process for generating the evaluation result includes a process of inputting the query and the correct answer into another text generation model trained by machine learning, thereby causing the other text generation model to generate the evaluation result.

5. Based on the aforementioned response, the evaluation results, and the parameter information used to generate the aforementioned response, a proposed improvement for the text generation model is generated. Output the aforementioned improvement proposal. The model evaluation method according to claim 1, characterized in that the computer further performs the processing.

6. The model evaluation method according to claim 5, characterized in that the process for generating the improvement proposal includes a process of inputting the answer, the evaluation result, and the parameter information used to generate the answer into another text generation model trained by machine learning, thereby causing the other text generation model to generate the improvement proposal.

7. The model evaluation method according to any one of claims 1 to 6, characterized in that the text generation model generates the answer using the query and related information related to the query retrieved from a database based on the query.

8. If the response contains information unrelated to the query, the computer further performs a process to determine whether the information unrelated to the query is based on the relevant information. The model evaluation method according to claim 7, characterized in that the process for generating the evaluation result includes a process for generating the evaluation result based on a determination result indicating whether or not the information unrelated to the query is information based on the related information.

9. The model evaluation method according to claim 7, characterized in that the evaluation result includes a third indicator showing the degree to which the response contains information based on the related information.

10. The model evaluation method according to claim 7, characterized in that the evaluation result includes a fourth indicator showing the degree to which the related information is related to the correct answer.

11. The model evaluation method according to claim 7, characterized in that the evaluation result includes a fifth index indicating the degree to which the correct answer contains information based on the related information.

12. An evaluation unit generates an evaluation result for a response to a query, based on a first indicator indicating the degree to which the response generated by a text generation model trained by machine learning covers all the information contained in the correct answer to the query, and a second indicator indicating the degree to which the response contains information unrelated to the query. An output unit that outputs the evaluation results, A model evaluation device characterized by comprising the following features.

13. Based on a first indicator indicating the degree to which the response to a query, generated by a text generation model trained using machine learning, covers all the information contained in the correct answer to the query, and a second indicator indicating the degree to which the response contains information unrelated to the query, an evaluation result of the response is generated. Output the evaluation results mentioned above. A model evaluation program that allows a computer to perform a process.