AI evaluation method and system based on AI generation content quality evaluation
By constructing and jointly training AI generation and evaluation models, and using gradient descent and backpropagation algorithms, the efficiency and consistency issues of quality assessment of AI-generated content are solved, and efficient, accurate assessment and quality optimization of AI-generated content are achieved.
Patent Information
- Application Number
- CN202410339457.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-03-22
- Publication Date
- 2024-08-23
AI Technical Summary
Existing technologies lack effective methods for evaluating the quality of artificial intelligence-generated content, especially for highly creative content. Existing methods limit creativity, and manual annotation is inefficient and inconsistent, making it difficult to achieve fair and effective evaluation.
By constructing and jointly training the initial AI generation model and evaluation model, and using gradient descent optimization algorithm and backpropagation algorithm, the optimal AI evaluation model and generation model are formed, and the quality assessment and generation process of AI generated content are optimized.
It achieves accurate quality assessment of AI-generated content, improves the quality and assessment efficiency of generated content, improves the credibility and consistency of assessment results, and solves the limitations of creativity assessment and the problem of low manual annotation efficiency.
Smart Images

Figure CN118535882A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of artificial intelligence (AI) and evaluation technology under the background of artificial intelligence, and in particular to an AI evaluation method and system based on AI-generated content quality evaluation. Background Art
[0002] AIGC (AI-generated content) has gradually moved from concept to reality. As the name suggests, AIGC is content created and produced by AI. In more and more scenarios such as AI writing, AI drawing, and AI composition, AIGC has given many amazing results. Taking AI drawing as an example, you only need to enter text, and the AI drawing tool can generate pictures based on the text. There are currently several companies that provide such services, and there are also many ways in academia to complete AI painting.
[0003] Compared with the rapid development of AI creation methods, there has not been much progress in the evaluation of AI-generated content. Using AI-generated content to compare with existing real-world content is the earliest practice. Taking AI painting as an example, comparing the real-life photo corresponding to the text with the AI-generated picture using the text, and calculating the gap is this evaluation method. This method is very useful when the quality of AI raw pictures is not high in the early days, because at this time, the closer the AI-generated pictures are to the real-life photos, the better the generation quality. But when the quality of AI-generated pictures reaches a certain level, this method of calculating the gap with real-life pictures often limits creativity, because a certain picture in reality is definitely not the only solution to the text. Stunning AI-generated pictures are often very different from existing photos, so this method is not very suitable for evaluating creative pictures.
[0004] Recent AI mapping papers have begun to use manual annotation methods to evaluate the quality of generated images. Due to the difficulty of looking at a picture and annotating the picture quality score in the case of manual annotation, and the annotation consistency is low, so the paper adopts a relative evaluation scheme, that is, looking at two pictures and asking the annotator to judge which picture is better. Although this relative evaluation scheme solves the problems of annotation difficulty and data consistency, the annotation efficiency is also reduced due to the increase in the number of annotations. Especially when a large number of comparisons are required, manual annotation requires a lot of time to perform repetitive annotations. And the relative evaluation annotation consistency is already higher than the absolute evaluation annotation consistency, but the annotation consistency of different annotators is still an important obstacle to the credibility of the evaluation results, and often more and more detailed annotations are required to alleviate the problem of poor consistency.
[0005] Therefore, there is a need to find more fair, effective and universal AI evaluation methods and systems based on the quality assessment of AI-generated content, while solving the problems of explainability and controllability of AI-generated content. In addition, it is also necessary to face and solve the ethical issues of artificial intelligence. Summary of the invention
[0006] In order to solve the problems existing in the prior art, the present invention provides the following technical solutions: an AI evaluation method and system based on AI generated content quality evaluation, which uses an AI model to perform quality evaluation of AI generated content. The AI model is trained to form an evaluator, which can accurately evaluate the quality of new AI generated content by learning a large amount of annotated data; at the same time, the generation quality of the AI generation model that generates AI generated content is optimized.
[0007] On the one hand, the present invention provides an AI evaluation method based on AI-generated content quality evaluation, comprising:
[0008] S1, constructing an initial AI generation model and an initial AI evaluation model, wherein the initial AI generation model is used to generate output data according to input data, and the initial AI evaluation model is used to perform quality evaluation on the AI generated content generated by the initial AI generation model;
[0009] S2, jointly training the initial AI generation model and the initial AI evaluation model to obtain an optimal AI generation model and an optimal AI evaluation model, thereby ensuring that the evaluation result of the optimal AI evaluation model can provide a relatively good evaluation result of the generation quality of AI generated content of most AI generation models from general to optimal AI generation models, and at the same time optimizing the generation quality of AI generated content of the optimal AI generation model;
[0010] S3, generating and evaluating AI generated content based on the optimal AI generation model and the optimal AI evaluation model.
[0011] Preferably, the input data is any one or more of text, image, audio or video.
[0012] Preferably, the input data is input into an AI generation model to obtain the output data, and the output data is any one or more of text, image, audio or video; the types of the input data and the output data do not need to be consistent.
[0013] Preferably, S2 includes:
[0014] S21, preparing training data required for training the initial AI evaluation model;
[0015] S22, training the initial AI evaluation model based on the training data to obtain an optimal AI evaluation model, where the optimal AI evaluation model can accurately evaluate the quality of new AI-generated content;
[0016] S23, training the initial AI generation model based on the optimal AI evaluation model to obtain an optimal AI generation model;
[0017] Preferably, S21 includes: collecting a large amount of annotated data that meets the training standard, and the annotated data is used to train the initial AI evaluation model; the training standard is that each annotated data includes at least the following data items: an input data, an output data generated by the AI generation model, and a manual quality evaluation of the AI generated content corresponding to the output data;
[0018] Preferably, the S23 includes:
[0019] (1) Based on a gradient descent optimization algorithm, the content generated by the initial AI generation model obtains a higher evaluation score than the optimal AI evaluation model;
[0020] (2) fine-tuning the parameters of the initial AI generation model based on the evaluation scores and the back-propagation algorithm to optimize the quality of the AI-generated content;
[0021] (3) Iterate steps (1) and (2) in a loop to obtain the optimal AI generation model.
[0022] Preferably, the gradient descent optimization algorithm includes the full gradient descent algorithm FG, the stochastic gradient descent algorithm SG, the mini-batch gradient descent algorithm mini-batch or the stochastic average gradient descent algorithm SAG.
[0023] A second aspect of the present invention is to provide an AI evaluation system for generating content quality evaluation based on AI, comprising:
[0024] An initial model construction module, used to construct an initial AI generation model and an initial AI evaluation model, wherein the initial AI generation model is used to generate output data according to input data, and the initial AI evaluation model is used to perform quality evaluation on the AI generated content generated by the initial AI generation model;
[0025] A joint training module, used to jointly train the initial AI generation model and the initial AI evaluation model to obtain an optimal AI generation model and an optimal AI evaluation model, so that the evaluation result of the optimal AI evaluation model can accurately reflect the generation quality of the AI generated content of the optimal AI generation model, and at the same time optimize the generation quality of the AI generated content of the optimal AI generation model;
[0026] The AI evaluation module is used to generate and evaluate AI generated content based on the optimal AI generation model and the optimal AI evaluation model.
[0027] A third aspect of the present invention provides an electronic device, comprising a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is configured to read the instructions and execute the method described in the first aspect.
[0028] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor and execute the method described in the first aspect.
[0029] The AI evaluation method, system and electronic device based on AI-generated content quality evaluation provided by the present invention have the following beneficial effects:
[0030] An AI model is used to evaluate the quality of AI-generated content. The AI model is trained to form an evaluator, and by learning a large amount of labeled data, it is able to accurately evaluate the quality of new AI-generated content; at the same time, the generation quality of the AI generation model that generates AI-generated content is optimized. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] Figure 1 This is a flow chart of an AI evaluation method for generating content quality evaluation based on AI according to a preferred embodiment of the present invention.
[0032] Figure 2 This is a schematic diagram of the principle architecture of an AI evaluation system for generating content quality evaluation based on AI according to a preferred embodiment of the present invention. DETAILED DESCRIPTION
[0033] In order to better understand the above technical solution, the above technical solution will be described in detail below in conjunction with the accompanying drawings and specific implementation methods.
[0034] The method provided by the present invention can be implemented in the following terminal environment, and the terminal may include one or more of the following components: a processor, a memory, and a display screen. The memory stores at least one instruction, and the instruction is loaded and executed by the processor to implement the method described in the following embodiment.
[0035] The processor may include one or more processing cores. The processor uses various interfaces and lines to connect various parts of the entire terminal, and executes various functions of the terminal and processes data by running or executing instructions, programs, code sets or instruction sets stored in the memory, and calling data stored in the memory.
[0036] The memory may include random access memory (RAM) or read-only memory (ROM). The memory may be used to store instructions, programs, codes, code sets or instructions.
[0037] Embodiment 1
[0038] See also Figure 1 , this embodiment provides an AI evaluation method based on AI generated content quality evaluation, including: S1, constructing an initial AI generation model and an initial AI evaluation model, wherein the initial AI generation model is used to generate output data according to input data, and the initial AI evaluation model is used to perform quality evaluation on the AI generated content generated by the initial AI generation model. In this embodiment, the input data is any one or more of text, image, audio or video; the input data is input into the AI generation model to obtain the output data, and the output data is any one or more of text, image, audio or video; the input data and the output data do not need to be of the same type.
[0039] It also includes S2, jointly training the initial AI generation model and the initial AI evaluation model to obtain the optimal AI generation model and the optimal AI evaluation model, so as to ensure that the evaluation result of the optimal AI evaluation model can provide a better evaluation result of the generation quality of the AI generated content of most AI generation models from general to optimal AI generation models, and optimize the generation quality of the AI generated content of the optimal AI generation model, specifically including: S21, preparing the training data required for training the initial AI evaluation model. In this embodiment, the preparation of training data includes: collecting a large amount of annotated data (more than 1 million) that meets the training standards, and the annotated data is used to train the initial AI evaluation model; the training standard is that each annotated data includes at least the following data items: an input data, an output data generated by the AI generation model, and a manual quality evaluation of the AI generated content corresponding to the output data (in this embodiment, for example, a score range of 1-5 points is used for manual quality evaluation, if the annotated data is used). S22, based on the training data, the initial AI evaluation model is trained to obtain the optimal AI evaluation model, and the optimal AI evaluation model can accurately evaluate the quality of new AI generated content. S23, training the initial AI generation model based on the optimal AI evaluation model to obtain the optimal AI generation model.
[0040] In this embodiment, S23 includes:
[0041] (1) Based on a gradient descent optimization algorithm, the content generated by the initial AI generation model obtains a higher evaluation score than the optimal AI evaluation model. In this embodiment, the optimization algorithm of gradient descent is iterated so that the parameters of the initial AI generation model are continuously updated along the negative gradient, and the objective function gradually converges to the local minimum. The following can be used: Full gradient descent algorithm FG: Calculate all sample errors in the training set, sum them up and take the average value as the objective function; Stochastic gradient descent algorithm SG: Select a sample for assessment each time. In order to solve the problem of updating the weight once, all sample errors need to be recalculated. For the case of too many training samples, the efficiency is too low and it is easy to fall into the local optimal solution; Mini-batch gradient descent algorithm mini-batch: Select a part of the samples for consideration, randomly extract a small sample set from the training sample set each time, and use FG iteration to update the weight on the small sample set; The number of sample points is usually a power of 2; Stochastic average gradient descent algorithm SAG: Maintain an average value for each sample, refer to the average value in the later calculation, maintain an old gradient for each sample in the memory, randomly select the i-th sample to update the gradient of this sample, and keep the gradients of other samples unchanged, then calculate the average value of all gradients, and then update the model parameters.
[0042] (2) Based on the evaluation score and the backpropagation algorithm, fine-tune the parameters of the initial AI generation model to optimize the quality of the AI generated content. In this embodiment, in the backpropagation algorithm, the model continuously updates its own parameters by backpropagation to achieve the learning process; the backpropagation algorithm mainly includes backpropagation in some way and continuously adjusting the parameter values of the model according to the error. Specifically, it includes: data is output from the input layer through the hidden layer; the error between the model output result and the true result is calculated; the error is backpropagated from the output layer to the hidden layer and finally reaches the input layer; the model parameters are adjusted based on the error.
[0043] (3) Iterate steps (1) and (2) in a loop to obtain the optimal AI generation model.
[0044] It also includes S3, generating and evaluating AI generated content based on the optimal AI generation model and the optimal AI evaluation model.
[0045] Application and verification examples of the method:
[0046] 1. Validation of the optimal AI evaluation model
[0047] By using the validation set data for testing, it was found that the correlation between the evaluation results of the optimal AI evaluation model and the manual evaluation results was as high as 0.9, proving the effectiveness of the optimal AI evaluation model.
[0048] This embodiment uses the Pearson correlation coefficient to measure the correlation between the evaluation results of the optimal AI evaluation model and the manual evaluation results, as shown in formula (1):
[0049] r=∑(xi-μx)(yi-μy) / √[(∑(xi-μx)^2(∑(yi-μy)^2)] (1).
[0050] Among them, r represents the Pearson correlation coefficient; xi and yi represent the evaluation results of the optimal AI evaluation model and the manual evaluation results, respectively; μx and μy represent the means of the evaluation results of the optimal AI evaluation model and the manual evaluation results, respectively.
[0051] 2. Verification of optimization effect of the optimal AI generation model
[0052] By continuously training the AI generation model, we observed that the quality of AI-generated content was significantly improved, and the manual evaluation scores increased by an average of 1.5 points, proving the optimization effect of the optimal AI generation model.
[0053] In this embodiment, the mean square error is used to measure the optimization effect of the optimal AI generation model, as shown in formula (2):
[0054] MSE=1 / n∑(xi-yi)^2 (2).
[0055] Among them, MSE represents the mean square error of the optimal AI generation model; xi represents the evaluation score of the generated content generated by the optimal AI generation model; yi represents the manual evaluation score of the corresponding generated content; and n represents the total data volume.
[0056] Embodiment 2
[0057] See also Figure 2 , this embodiment provides an AI evaluation system based on AI generated content quality evaluation, including: an initial model construction module 101, used to construct an initial AI generation model and an initial AI evaluation model, the initial AI generation model is used to generate output data according to input data, and the initial AI evaluation model is used to perform quality evaluation on the AI generated content generated by the initial AI generation model; a joint training module 102, used to jointly train the initial AI generation model and the initial AI evaluation model to obtain an optimal AI generation model and an optimal AI evaluation model, so that the evaluation result of the optimal AI evaluation model can accurately reflect the generation quality of the AI generated content of the optimal AI generation model, and at the same time optimize the generation quality of the AI generated content of the optimal AI generation model; an AI evaluation module 103, used to generate and evaluate AI generated content based on the optimal AI generation model and the optimal AI evaluation model.
[0058] The present invention also provides a memory storing a plurality of instructions, wherein the instructions are used to implement the method as in the first embodiment.
[0059] The present invention also provides an electronic device, including a processor and a memory connected to the processor, wherein the memory stores a plurality of instructions, and the instructions can be loaded and executed by the processor so that the processor can execute the method as in the first embodiment.
[0060] Although preferred embodiments of the present invention have been described, additional changes and modifications may be made to these embodiments by those skilled in the art once the basic inventive concepts are known. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments and all changes and modifications that fall within the scope of the present invention. Obviously, those skilled in the art may make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. An AI evaluation method based on AI-generated content quality evaluation, characterized in that: include: S1, constructing an initial AI generation model and an initial AI evaluation model, wherein the initial AI generation model is used to generate output data based on input data, and the initial AI evaluation model is used to perform quality evaluation on AI-generated content generated by the initial AI generation model; S2, jointly training the initial AI generation model and the initial AI evaluation model to obtain an optimal AI generation model and an optimal AI evaluation model, thereby ensuring that the evaluation results of the optimal AI evaluation model can accurately reflect the generation quality of the AI-generated content of the optimal AI generation model, and at the same time optimizing the generation quality of the AI-generated content of the optimal AI generation model; S3, generating and evaluating AI-generated content based on the optimal AI generation model and the optimal AI evaluation model.
2. The AI evaluation method for AI-generated content quality evaluation according to claim 1, characterized in that: The input data is any one or more of text, image, audio or video.
3. The AI evaluation method based on AI-generated content quality evaluation according to claim 2, characterized in that: The input data is input into the AI generation model to obtain the output data, where the output data is any one or more of text, image, audio or video; the types of the input data and the output data do not need to be consistent.
4. The AI evaluation method for AI-generated content quality evaluation according to claim 3, characterized in that: The S2 includes: S21, preparing training data required for training the initial AI evaluation model; S22, training the initial AI evaluation model based on the training data to obtain an optimal AI evaluation model, where the optimal AI evaluation model can accurately evaluate the quality of new AI-generated content; S23, training the initial AI generation model based on the optimal AI evaluation model to obtain the optimal AI generation model.
5. The AI evaluation method based on AI-generated content quality evaluation according to claim 4, characterized in that: The S21 includes: collecting a large amount of labeled data that meets the training standards, and the labeled data is used to train the initial AI evaluation model; the training standards are that each piece of labeled data includes at least the following data items: one input data, one output data generated by the AI generation model, and a manual quality evaluation of the AI generated content corresponding to the output data.
6. The AI evaluation method for AI-generated content quality evaluation according to claim 5, characterized in that: The S23 includes: (1) Based on a gradient descent optimization algorithm, the content generated by the initial AI generation model obtains a higher evaluation score than the optimal AI evaluation model; (2) fine-tuning the parameters of the initial AI generation model based on the evaluation scores and the back-propagation algorithm to optimize the quality of the AI-generated content; (3) Iteratively execute steps (1) and (2) to obtain the optimal AI generation model.
7. The AI evaluation method for AI-generated content quality evaluation according to claim 6, characterized in that: The gradient descent optimization algorithm includes the full gradient descent algorithm FG, the stochastic gradient descent algorithm SG, the mini-batch gradient descent algorithm mini-batch or the stochastic average gradient descent algorithm SAG.
8. An AI evaluation system for generating content quality evaluation based on AI, used to implement the evaluation method according to any one of claims 1 to 7, characterized in that: include: An initial model construction module (101) is used to construct an initial AI generation model and an initial AI evaluation model, wherein the initial AI generation model is used to generate output data based on input data, and the initial AI evaluation model is used to perform quality evaluation on the AI generated content generated by the initial AI generation model; A joint training module (102) is used to jointly train the initial AI generation model and the initial AI evaluation model to obtain an optimal AI generation model and an optimal AI evaluation model, so that the evaluation result of the optimal AI evaluation model can accurately reflect the generation quality of the AI generated content of the optimal AI generation model, and at the same time optimize the generation quality of the AI generated content of the optimal AI generation model; An AI evaluation module (103) is used to generate and evaluate AI generated content based on the optimal AI generation model and the optimal AI evaluation model.
9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a plurality of instructions, and the processor is configured to read the instructions and execute the method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a plurality of instructions, and the plurality of instructions can be read by a processor to execute the method according to any one of claims 1 to 7.
