A model determination method and related device

By adjusting and supervising the summary information generated by training, the problem of poor summary information quality in the existing technology is solved, and high-quality summary extraction of text works is achieved, especially in scripts and other fields, which can accurately reflect the main plot.

CN118467722BActive Publication Date: 2024-09-27TENCENT TECHNOLOGY (SHENZHEN) CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410915165.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-09
Publication Date
2024-09-27
Estimated Expiration
2044-07-09

AI Technical Summary

Technical Problem

When the existing technology generates abstracts of written works, the quality of the generated summary information is poor and cannot accurately reflect the main content of the work. Especially in fields such as scripts, the summary information is too general and cannot reflect the key points of the plot.

Method used

By inputting the content to be processed into the initial generative model, after generating the initial summary information, the historical summary information with similar content conditions is screened from the reference library, and its expression is adjusted to generate high-quality second summary information and use it as training Samples are used to supervised training of the initial generative model to form a high-quality summary generation model.

Benefits of technology

The quality and accuracy of the summary information are improved, so that the generated summary information can better reflect the core content of the target content field, and the expression is reasonable and smooth, and is suitable for written works in specific fields.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118467722B
    Figure CN118467722B
Patent Text Reader

Abstract

The present application discloses a model determination method and related devices. The first summary information can be generated for the content to be processed through the initial generative model. The reference summary information determined from the reference library through the content similarity condition is not only similar to the first summary information in content, but also has a smooth and correct content expression. Based on the reference summary information, the first summary information is adjusted to conform to the content to be processed, and the content expression of the obtained second summary information is better. The second summary information can be used as a sample label of the corresponding content to be processed, and the content to be processed and the second summary information can be used as training samples. Such a large number of high-quality training samples that can be quickly obtained by the above method can complete the supervised training of the initial generative model, and the obtained summary generation model can extract high-quality summary information for the content to be identified in the target content field.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of model processing, and in particular to a model determination method and related devices. Background Art

[0002] With the rapid development of science and technology, for long and wordy scripts, novels and other written works in various fields, in order to meet the needs of users to quickly understand their core content in a short period of time, it is necessary to extract summary information from these written works to reflect the key information of the written works.

[0003] In related technologies, existing generative models are often used to extract the core content of input content to generate corresponding summary information. For example, a known generative pre-trained 4 (GPT4) model is used to generate summary information.

[0004] However, the summary information generated by this method is not accurate enough and cannot well reflect the main content of the text work. For example, the summary information extracted from a script is "a series of events occurred", which is too general for the script and cannot reflect the main plot of the script. It does not use appropriate content expression methods to express text works in the script field, and the quality of the extracted summary information is poor. Summary of the invention

[0005] In order to solve the above technical problems, the present application provides a model determination method and related devices, which can quickly obtain a large number of high-quality training samples to complete the supervised training of the initial generative model, and the obtained summary generation model can extract high-quality summary information for the content to be identified in the target content field. The embodiment of the present application discloses the following technical solutions:

[0006] In one aspect, the present application provides a model determination method, comprising:

[0007] Using the content to be processed as a model input, obtaining first summary information of the content to be processed through an initial generative model, wherein the content to be processed belongs to a target content domain, and the first summary information is used to abbreviate the content to be processed;

[0008] Determine from a reference library historical summary information having content similar to the first summary information as reference summary information, wherein the reference library includes a plurality of historical summary information published in the target content field;

[0009] Based on the content expression mode of the reference summary information, adjusting the first summary information to conform to the content to be processed, so as to obtain second summary information of the content to be processed;

[0010] The content to be processed is used as sample content, and the corresponding second summary information is used as sample label to perform supervised training on the initial generative model to obtain a summary generation model, wherein the summary generation model is used to extract summary information of the content to be identified in the target content field.

[0011] In another aspect, the present application provides a model determination device, comprising:

[0012] A first determination unit is used to use the content to be processed as a model input, and obtain first summary information of the content to be processed through an initial generative model, wherein the content to be processed belongs to a target content field, and the first summary information is used to abbreviate the content to be processed;

[0013] A second determining unit is used to determine historical summary information having content similarity with the first summary information from a reference library as reference summary information, wherein the reference library includes a plurality of historical summary information published in the target content field;

[0014] an adjusting unit, configured to adjust the first summary information to conform to the content to be processed based on the content expression mode of the reference summary information, so as to obtain second summary information of the content to be processed;

[0015] The training unit is used to use the content to be processed as sample content and the corresponding second summary information as sample labels to perform supervised training on the initial generative model to obtain a summary generation model, wherein the summary generation model is used to extract summary information from the content to be identified in the target content field.

[0016] In another aspect, the present application provides a computer device, the computer device comprising a processor and a memory:

[0017] The memory is used to store computer programs;

[0018] The processor is configured to execute the method according to the computer program.

[0019] On the other hand, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer device, the method described above is implemented.

[0020] In yet another aspect, the present application provides a computer program product comprising a computer program, which, when executed on a computer device, enables the computer device to perform the method.

[0021] It can be seen from the above technical solution that in order to improve the extraction quality of summary information related to the target content field, it is necessary to be able to quickly generate a large number of high-quality training samples to train the initial generative model. Since the initial generative model has not learned the summary extraction knowledge related to the target content field, the generated first summary information is also an abbreviated expression of the content to be processed, but the summary quality is poor. To this end, a plurality of historical summary information are introduced to form a reference library. Since the historical summary information has been published in the target content field, the quality can be guaranteed. The reference summary information determined from the reference library through the content similarity condition is not only similar to the first summary information content, but also has a smooth and correct content expression. The reference summary information can be used as a basis to adjust the first summary information to conform to the content to be processed, so that the second summary information is not only still an abbreviated expression of the content to be processed, but also has a better content expression than the first summary information. High-quality summary information such as the second summary information can be used as sample labels for the corresponding content to be processed, and the content to be processed and the second summary information can be used as training samples. A large number of such high-quality training samples that can be quickly obtained in the above manner are used to complete the supervised training of the initial generative model. The obtained summary generation model can extract high-quality summary information for the content to be identified in the target content field. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0023] Figure 1 A schematic diagram of a scenario of a model determination method provided in an embodiment of the present application;

[0024] Figure 2 A schematic diagram of a flow chart of a model determination method provided in an embodiment of the present application;

[0025] Figure 3 A schematic diagram of a training sample for forming a summary generation model provided in an embodiment of the present application;

[0026] Figure 4 A schematic diagram of a training sample for forming a summary quality evaluation model provided in an embodiment of the present application;

[0027] Figure 5 A schematic diagram of the structure of an abstract quality evaluation model provided in an embodiment of the present application;

[0028] Figure 6A schematic diagram of a model application process provided in an embodiment of the present application;

[0029] Figure 7 A schematic diagram of a model determination device provided in an embodiment of the present application;

[0030] Figure 8 A structural diagram of a terminal device provided in an embodiment of the present application;

[0031] Fig. 9 A structural diagram of a server provided in an embodiment of the present application. DETAILED DESCRIPTION

[0032] The embodiments of the present application are described below in conjunction with the accompanying drawings.

[0033] As described in the background technology, when the existing model is used to extract the summary of the text work, the quality of the generated summary information is poor. In the related art, there are the following ways to extract the summary. One way is to directly use the existing trained generative model for extraction. For example, a summary generation model trained based on news data is used. When the model is used to extract the summary of the script, it is easy to have more factual errors and incorrect wording, and it is impossible to use a reasonable content expression method to generate the summary of the text works in the field of the script. Another way is to use the script and the summary information corresponding to the script to train the existing model to obtain the summary generation model. However, since the script and the summary information are generated using a known generative model, there is still the problem that the summary information uses an unreasonable content expression method to express the script. If the summary information of the script is extracted manually, it will lead to too high labor costs, a small number of summaries, and too few training sample sets, and it is impossible to perform model training well.

[0034] The present application provides a model determination method and related devices, which can quickly obtain a large number of high-quality training samples, thereby completing the supervised training of the initial generative model. In this way, the obtained summary generation model can extract high-quality summary information for the content to be identified in the target content field, thereby improving the rationality and accuracy of the summary information.

[0035] The model determination method provided in the embodiment of the present application can be implemented by a computer device, which can be a terminal device or a server, wherein the server can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server providing cloud computing services. Terminal devices include but are not limited to mobile phones, computers, intelligent voice interaction devices, smart home appliances, vehicle-mounted terminals, aircraft, etc. The terminal device and the server can be directly or indirectly connected via wired or wireless communication, and this application does not limit this.

[0036] Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results. In other words, artificial intelligence is a comprehensive technology in computer science that attempts to understand the essence of intelligence and produce a new intelligent machine that can respond in a similar way to human intelligence. Artificial intelligence is to study the design principles and implementation methods of various intelligent machines so that machines have the functions of perception, reasoning and decision-making.

[0037] Artificial intelligence technology is a comprehensive discipline that covers a wide range of fields, including both hardware-level and software-level technologies. Basic artificial intelligence technologies generally include sensors, dedicated artificial intelligence chips, cloud computing, distributed storage, big data processing technology, operating / interactive systems, mechatronics and other technologies. Artificial intelligence software technologies mainly include computer vision technology, speech processing technology, natural language processing technology, as well as machine learning / deep learning, autonomous driving, smart transportation and other major directions.

[0038] Natural language processing (NLP) is an important direction in the fields of computer science and artificial intelligence. It studies various theories and methods that can achieve effective communication between people and computers using natural language. Natural language processing is a science that integrates linguistics, computer science, and mathematics. Therefore, research in this field will involve natural language, that is, the language people use in daily life, so it is closely related to the study of linguistics. Natural language processing technology usually includes text processing, semantic understanding, machine translation, robot question answering, knowledge graph and other technologies.

[0039] Machine Learning (ML) is a multi-disciplinary subject involving probability theory, statistics, approximation theory, convex analysis, algorithm complexity theory and other disciplines. It specializes in studying how computers simulate or implement human learning behavior to acquire new knowledge or skills and reorganize existing knowledge structures to continuously improve their performance. Machine learning is the core of artificial intelligence and the fundamental way to make computers intelligent. Its applications are spread across all areas of artificial intelligence. Machine learning and deep learning usually include artificial neural networks, belief networks, reinforcement learning, transfer learning, inductive learning, and self-learning.

[0040] With the research and advancement of artificial intelligence technology, artificial intelligence technology has been studied and applied in many fields, such as common smart homes, smart wearable devices, virtual assistants, smart speakers, smart marketing, unmanned driving, automatic driving, drones, robots, smart medical care, smart customer service, Internet of Vehicles, automatic driving, smart transportation, etc. I believe that with the development of technology, artificial intelligence technology will be applied in more fields and play an increasingly important role.

[0041] The solution provided in the embodiments of the present application involves natural language processing, machine learning and other technologies of artificial intelligence. Natural language processing technology can be used to perform text representation on text content such as content to be processed, content to be identified and summary information, extract feature identifiers, etc., and machine learning technology can be used to train to obtain a summary generation model and a summary quality evaluation model, which is specifically explained in the following embodiments.

[0042] refer to Figure 1 FIG. 1 is a schematic diagram of a scenario of a model determination method provided in an embodiment of the present application. The model determination method can be applied to a server. Figure 1 The server is used as an example of the aforementioned computer device for explanation.

[0043] The content to be processed may be a text work that needs to be extracted by abstract. The content to be processed belongs to the target content field, for example, the script field. The content to be processed is the script "XX Campus Life". The detailed content of the script is as follows:

[0044] (Teacher Wang is checking students' reading progress in the library and sees Li Ming and Zhang Hua come in.)

[0045] Teacher Wang: (Smiling) Zhang Hua, is this your friend?

[0046] Zhang Hua: Yes, teacher. This is Li Ming, our new student.

[0047] Teacher Wang: Welcome, Li Ming. If you have any questions about your studies, you can always come to me.

[0048] Li Ming: Thank you, teacher. I will.

[0049] (The librarian comes over, holding a book.)

[0050] Librarian: It is a tradition in our school that every new student will receive a recommended book from the library.

[0051] (Hands a book to Li Ming)

[0052] Li Ming: (Takes the book and looks at it curiously) Wow, this book looks very interesting. Thank you!

[0053] The server can input the content to be processed, i.e., the script "Campus Life", into the initial generative model to obtain the first summary information, which is used to abbreviate the content to be processed. For example, the first summary information A is "Zhang Hua's new classmate Li Ming met Teacher Wang and the librarian, received a book and expressed his gratitude." However, for the script field, since the initial generative model has not learned the summary extraction knowledge related to the script field, such as whether to reflect the scene location, how to express smoothly, etc., the model cannot perform summary extraction in the script field well, and the first summary information obtained cannot properly express the content to be processed, and the quality of the first summary information is poor.

[0054] In order to improve the extraction quality of summary information related to the script field, it is necessary to be able to quickly generate a large number of high-quality training samples to train the initial generative model. Therefore, a reference library can be composed of multiple historical summary information in the script field, and since the historical summary information has been released to the public in this field, its summary quality can be guaranteed, with a smooth and correct content expression method. The server can compare the content of the historical summary information with the first summary information. If a certain historical summary information A' meets the content similarity condition with the first summary information A, it means that the specific contents of the two are relatively close. For example, both describe a plot in which multiple people meet at school. Based on the similar plot content, it means that the content expression method 1 used to express the historical summary information A' is also applicable to the first summary information A, and the historical summary information A' can be used as a reference summary information.

[0055] The server can adjust the first summary information A based on the content expression mode 1 of the reference summary information, so as to obtain the second summary information B that conforms to the content to be processed (i.e., the script "Campus Life"). The second summary information B can be, for example, "In the library, Zhang Hua and the new student Li Ming met Teacher Wang and the librarian. According to the school tradition, the librarian gave Li Ming a book." In this way, the second summary information B is not only still an abbreviated expression of the script "Campus Life", but also has a better content expression mode than the first summary information A because it refers to the content expression mode of the reference summary information.

[0056] The server can use the content to be processed as sample content, and the second summary information, such as high-quality summary information expressed in a certain content expression method, as sample labels to supervise the initial generative model, so that the model can learn how to extract summaries in the script field, that is, what content expression method to use to express summary information. The summary generation model obtained after training can extract high-quality summary information for the content to be identified in the target content field. For example, it can extract focused and fluent summary information for another script in the script field using the content expression method corresponding to the script, thereby improving the rationality and accuracy of the expression of the summary information.

[0057] refer to Figure 2 As shown, it is a flow chart of a model determination method provided in an embodiment of the present application. The method can be executed by a computer device. In this embodiment, the computer device is taken as an example of a server.

[0058] Step 201: Using the content to be processed as a model input, and obtaining first summary information of the content to be processed through an initial generative model.

[0059] In the process of determining the summary generation model, the content to be processed can be used as sample content for model supervised training. The content to be processed can be a text work, such as a script, novel, poem, etc. Since the text work is long and has many words, it is not easy for users to obtain its core content in a short time. It is necessary to extract the summary information corresponding to the content to be processed so that the summary information can be used as a sample label for supervised training to complete the supervised training process.

[0060] The server can input the content to be processed into the initial generative model to obtain the first summary information of the content to be processed. The first summary information can be used to abbreviate the content to be processed, that is, it includes some content extracted from the content to be processed. Compared with the content to be processed, the first summary information is more concise and has fewer words, which is convenient for users to read and understand in a short time.

[0061] The content to be processed has its own content domain. The content domain is a plurality of domains classified according to certain classification criteria. The classification criteria can be the genre type of the text work or the professional field involved in the text work. Regardless of the criteria used to divide the content domain, each content domain has a unique way of expressing the content. When the content domain is divided according to the genre type of the text work, the content domain may include the script field, the novel field, and the poetry field. When the content domain is divided according to the professional field involved in the text work, the content domain may include the physics field, the chemistry field, and the history field.

[0062] The content to be processed may belong to the target content field, and the target content field may be the content field corresponding to the content to be processed when multiple content fields are obtained by dividing according to certain standards. As an example, the content to be processed may be the script "XX Campus Life" as mentioned above, and the detailed content of the script will not be described in detail, so the target content field may be the script field.

[0063] Since the first summary information is obtained through the initial generative model, although the initial generative model can process various text works, for a specific target content field, the model has not learned how to extract accurate summary information about the target content field, and the quality of the generated first summary information may be poor. For example, when the content to be processed is the script "XX Campus Life", the first summary information is "Zhang Hua's new classmate Li Ming met Teacher Wang and the librarian, received a book and expressed his gratitude." The words "met" and "received a book" used in this example do not conform to the general public expression, the expression is not fluent and reasonable, and it is unclear who received the book, and the expression is easy to cause ambiguity.

[0064] For text works belonging to different content fields, the corresponding summary information may have different content expressions. The content expression can be understood as the format, degree of detail, logic and emphasis used when expressing the summary information in the corresponding content field. The content expression can indicate which content in the text work is the core content and needs to be reflected in the summary information. It can also indicate how to correctly express the core content, ensure the smoothness of the sentences, and ensure that the sentences in the summary information conform to the commonly used expressions in the corresponding content field.

[0065] For example, in the script field, users may need to pay more attention to the location and characters of the plot, so the summary information needs to reflect the location and characters, such as "in the library". In the poetry field, users may need to pay more attention to the thoughts and emotions that the author wants to express, so the summary information needs to reflect the description of the relevant thoughts and emotions, such as "sadness" and "joy". In the physics field, the summary information needs to use professional terms in the field to express.

[0066] That is to say, the first summary information generated by the initial generative model is of poor quality because the model has not learned the summary extraction knowledge related to the target content field, for example, it has not learned that the summary in the script field needs to reflect the location, characters, etc., which may lead to problems such as the inability to accurately extract the core content of the content to be processed, and the expression of the summary information is not smooth and reasonable.

[0067] In actual application, the initial generative model can be a generative model such as a GPT4 model, and the content to be processed can be provided to the initial generative model. For example, a paragraph is input: The following is a scene in the script (content to be processed), please return the corresponding summary information (first summary information), the script is: xxxxxxx. Then the initial generative model can output the first summary information: xxxx.

[0068] Step 202: determine historical summary information having content similar to the first summary information from the reference library as reference summary information.

[0069] In order to improve the quality of the initial generative model's extraction of summary information in the target content field, it is necessary to train it with high-quality summary information, which requires improving the quality of the first summary information with poor quality to make it more consistent with the content expression of the target content field.

[0070] The reference library may include multiple historical summary information that has been published in the target content field. Historical summary information can be understood as summary information of some text works in the past, for example, it can be the plot summary of a TV series that has been published on the Internet. Since these historical summary information have been published to the public, it means that they are highly accurate and credible, the expression is smooth, and they are in line with the content expression method of the content field to which they belong.

[0071] Since there are a lot of historical summary information in the reference library, the content expressed by each historical summary information may be different. For example, some summary information describes the script of a modern drama, while some summary information describes the script of a costume drama. For another example, some summary information describes the script of modern campus life, while some summary information describes the script of modern family life.

[0072] In order to more accurately determine the content expression method applicable to the first summary information, the historical summary information in the reference library can be compared with the first summary information in terms of content to see whether the two meet the content similarity condition. The content similarity condition can be understood as the similarity between the content of the historical summary information and the content of the first summary information meets the preset requirements, such as the content similarity exceeds 90%.

[0073] If it is determined from the reference library that a certain historical summary information has content similarity with the first summary information, it means that the contents expressed by the two summary information are basically the same, for example, both describe a plot in which multiple people meet in school. Based on the fact that the content expression methods used by summary information with similar contents are generally similar, it means that the content expression method used by the historical summary information is also applicable to the first summary information, and the historical summary information can be used as reference summary information, that is, the historical summary information with content similarity with the first summary information is used as reference summary information. Reference summary information can be understood as a certain historical summary information that the first summary information can imitate, and the first summary information can refer to the content expression method of the reference summary information.

[0074] For example, the reference summary information is the summary information extracted from an event in which multiple people meet in a classroom in another script, and the content expression method used reflects information such as the location and specific characters.

[0075] In this way, the server can determine reference summary information with content similar to the first summary information in the target content field, so that the content expression method adopted by the reference summary information is more consistent with the first summary information in both dimensions of the target content field and the specific content in the field.

[0076] In addition, although the historical summary information in the reference library has a content expression method and its summary quality is relatively good, it is impossible to use the reference summary information and the text works corresponding to the reference summary information as training samples for the summary generation model. This is because the text works corresponding to the reference summary information are often first-hand creative materials from the creator, which can be considered as the original text works, and the original text works will be published. However, in the subsequent links, the original text works are likely to be modified, resulting in changes in the content of the text works, and the modified text works are generally not published, while the historical summary information has been published, which will result in the historical summary information obtained from public channels not corresponding to the content of the original text works. The historical summary information is not an abbreviated expression of the original text works, and the contents of the two are likely to be quite different, which makes it impossible to use the two as training samples for model training.

[0077] For example, when the target content domain is the script domain, the historical summary information is the summary information of a certain script, and the script obtained from the Internet is the initial version created by the writer. After script review, shooting modification and other processes, the original script will undergo a lot of changes, and the modified script is basically not disclosed to the public. This results in the fact that the obtained publicly available historical summary information does not correspond to the publicly available script. The historical summary information corresponds to the undisclosed, modified script.

[0078] In one possible implementation, in order to be able to more accurately and quickly determine the reference summary information from the reference library, the following method can be specifically adopted: feature extraction is performed on the historical summary content to obtain the corresponding historical feature identifier, the historical summary content and the corresponding historical feature identifier are associated and stored in the reference library, feature extraction is performed on the first summary information to obtain the corresponding first feature identifier, similarity matching is performed based on the first feature identifier and the historical feature identifier in the reference library to obtain a target historical feature identifier that meets the content similarity condition, and the historical summary information corresponding to the target historical feature identifier is used as the reference summary information.

[0079] Specifically, feature extraction is performed on the historical summary information to obtain a historical feature identifier, which can uniquely identify the corresponding historical summary information, so that multiple historical summary information in the reference library can be more easily distinguished through the historical feature identifier.

[0080] For each historical summary information, the corresponding historical feature identifier is matched and stored in the reference library. For example, the historical summary information and the historical feature identifier can be represented and stored in a key-value pair (KV), where the historical summary information is the stored value (Value) and the historical feature identifier is the stored key (Key).

[0081] When the server determines the reference summary information that can be used for the first summary information, it can be determined by comparing and matching the feature identifiers. The feature identifiers are generally represented in the form of vectors (embedding), that is, the vectors can be used as indexes for matching. Specifically, the server can perform feature extraction on the first summary information to obtain the corresponding first feature identifier, and the first feature identifier can replace the first summary information to match the reference summary information. It should be noted that the method of extracting features from the first summary information is the same as the method of extracting features from the historical summary information. In this way, the extracted first feature identifier and the historical feature identifier are expressed in the same feature space and meet the conditions for similarity matching.

[0082] The server can perform similarity matching between each historical feature identifier in the reference library and the first feature identifier. If a historical feature identifier has a high similarity with the first feature identifier, it means that the two are successfully matched and the two meet the content similarity condition. Then, the historical feature identifier can be used as the target historical feature identifier, that is, the target historical feature identifier is the historical feature identifier that meets the content similarity condition with the first feature identifier. Furthermore, the historical summary information corresponding to the target historical feature identifier is the reference summary information.

[0083] In this way, by storing feature identifiers and summary information in an associated manner, using feature identifiers instead of summary information for similarity matching, and utilizing the fact that feature identifiers are more concise and representative, compared to matching using summary information with a larger amount of data, the matching efficiency can be greatly increased, the computational complexity during matching can be reduced, and the accuracy of matching can be guaranteed.

[0084] Step 203: Based on the content expression mode of the reference summary information, the first summary information is adjusted to conform to the content to be processed, so as to obtain second summary information of the content to be processed.

[0085] Based on the content expression method adopted by the reference summary information with similar content to the first summary information in the target content field, the server can use the content expression method as the basis for adjusting the first summary information, so that the first summary information can be expressed in the content expression method after adjustment. In addition, in order to ensure that the first summary information can still be abbreviated to the content to be processed after adjustment, it is also necessary to adjust according to the content to be processed, so as to ensure that the first summary information can be adjusted to meet the content to be processed, and the second summary information is obtained after adjustment. The second summary information is also an abbreviated expression of the content to be processed, and the summary quality is better.

[0086] In actual application, the server may adjust the first summary information using the target generative model, that is, the reference summary information, the first summary information and the content to be processed may all be input into the target generative model to obtain the second summary information of the content to be processed.

[0087] The target generative model may be a generative model that improves the quality of the first summary information of poor quality and can generate the second summary information of better quality. The target generative model may be the initial generative model that generates the first summary information, or may be other existing generative models.

[0088] When the target generative model and the initial generative model are the same model, compared with when the first summary information is generated, the model input is the content to be processed. When the second summary information is generated, the model input includes the content to be processed, the first summary information and the reference summary information. The model input has richer information. The model can learn the content expression of the reference summary information and can generate the second summary information with reference to the content expression. Therefore, even if the same model is used to generate the first summary information and the second summary information, the second summary information will be of better quality than the first summary information.

[0089] In this way, the second summary information is expressed in a certain content expression method, which can more accurately reflect the core content of the content to be processed and can be expressed in more fluent sentences. Compared with the first summary information, the content expression method adopted is more suitable for key extraction of the content to be processed, and the summary quality is better.

[0090] For example, a paragraph can be input into the target generative model: Given the summary information M (reference summary information) about a script (content to be processed), please refer to the summary information M to adjust the summary information N (first summary information) of the content to be processed, and output the adjusted summary information (second summary information). The summary information M is: xxx, the summary information N is: xxxxxx, and the content to be processed is: xxxxxxxxx.

[0091] Step 204: Use the content to be processed as sample content and the corresponding second summary information as sample labels to perform supervised training on the initial generative model to obtain a summary generation model.

[0092] When the server performs supervised training on the initial generative model, the content to be processed belonging to the target content field can be used as sample content. Since the second summary information has a better content expression method than the first summary information and can more accurately reflect the core content of the content to be processed, the second summary information can be used as a sample label.

[0093] That is to say, the content to be processed and the second summary information can be used as training samples, and by first using the initial generative model to generate first summary information of poor quality, and then using the content expression method of the reference summary information to optimize the quality of the first summary information, a large number of high-quality training samples of this type can be automatically and quickly generated to train the initial generative model, thereby greatly improving the sample size, sample generation efficiency and sample accuracy of the training samples.

[0094] refer to Figure 3 As shown, it is a schematic diagram of a training sample for forming a summary generation model provided by an embodiment of the present application. The content to be processed can be input into the initial generative model, and the first summary information is output. The corresponding reference summary information is determined in the reference library according to the first summary information, and the first summary information and the reference summary information are input into the target generative model. The content to be processed also needs to be input into the model (not shown in the figure), and the model outputs the second summary information. In this way, the second summary information and the content to be processed can constitute a training sample. The initial generative model is supervised and trained using the training sample to obtain the summary generation model.

[0095] In this way, by training with such high-quality training samples, the initial generative model can learn how to extract summary information for content belonging to the target content domain, that is, what appropriate content expression method should be used to represent the summary information.

[0096] The summary generation model obtained after training can extract summary information of the content to be identified in the target content field. That is, the content to be identified is input into the summary generation model, and the content to be identified is a text work that needs to be summarized in the target content field. Then, the summary generation model can output high-quality summary information, which can reflect the core content of the content to be identified, and the expression is reasonable and the wording is accurate, thereby improving the accuracy and rationality of the summary information.

[0097] In a possible implementation, in order to improve the content matching accuracy between the historical summary information and the first summary information as much as possible, the number of paragraphs in the historical summary information can be reduced as much as possible. Specifically, the server can obtain the historical overall summary information that has been published in the target content field, the historical overall summary information is used to abbreviate the historical content in the target content field, split the historical overall summary information into paragraphs, obtain multiple historical summary information, and build a reference library based on the multiple historical summary information.

[0098] That is to say, the server can obtain the historical overall summary information that has been released to the public in the target content field. The historical overall summary information is the summary information obtained by abbreviating the historical content. When the number of paragraphs in the historical overall summary information is relatively large, it means that its content is relatively complex. If it is directly used as the historical summary information, when the content similarity is subsequently matched with the first summary information, the historical summary information contains too much content, which will reduce the content similarity matching degree, and the determined reference summary information may not be accurate enough.

[0099] For example, the historical overall summary information may be a plot summary of a TV series collected from the Internet. The plot summary of a TV series episode includes 5 paragraphs, each of which is a relatively independent text, and each paragraph often represents a story. The first summary information is generally also a text. If these 5 plot summaries are stored as a whole as a historical summary information in the reference library, the first summary information will have a low content similarity with the 5 plot summaries as a whole, and the match will not be accurate enough.

[0100] Based on this, the server can split the historical overall summary information with a large number of paragraphs into paragraphs. For example, split a 5-paragraph plot summary into a plot summary of each paragraph, and take each paragraph as a historical summary information to obtain multiple historical summary information. In this way, each historical summary information will contain less content, and each paragraph will have its own key content. The reference library includes multiple such single-paragraph historical summary information.

[0101] In this way, historical overall summary information with a large number of paragraphs can be divided into multiple historical summary information including only one paragraph, and the content of a single historical summary information is significantly reduced, and each historical summary information expresses a story. When subsequently determining the reference summary information of the first summary information, compared with comparing it with multiple paragraphs of historical overall summary information, comparing the first summary information with one paragraph of historical summary information will make it easier and more accurate to find reference summary information with similar content, which can increase the sample size in the reference library, improve the optimization granularity, and improve the accuracy of the reference information summary.

[0102] In a possible implementation, for a target content field, there may be more than one content expression method for the summary information. When different content expressions are used to express the summary information, the format, degree of detail, logic or emphasis of the summary information may be different. For example, the summary information expressed by content expression method 1 may be more detailed and may be described by more professional terms than the summary information expressed by content expression method 2.

[0103] That is to say, the content expressions involved in the historical summary information in the reference library may include multiple ways, that is, some historical summary information in the reference library is expressed in a certain way, and some historical summary information is expressed in another way. In this way, the content expressions of the reference summary information determined by the server can also be multiple, and then the content expressions of the second summary information generated by imitating the reference summary information are also multiple, thereby improving the diversity of sample labels.

[0104] For example, when the target content domain is the script domain and the content to be processed is the script "XX Campus Life", the second summary information as the sample label is expressed using content expression method 1. When the content to be processed is the script "XX Youth Times", the corresponding second summary information is expressed using content expression method 2.

[0105] In short, by making the historical summary information in the reference library have multiple content expressions, sample labels with various content expressions can be obtained for the target content field, so that the summary generation model can learn multiple expression styles, and the generated summary information can have more diverse content expressions, improving the diversity and richness of the summary information expression. In addition, the sample labels have multiple content expressions, which can enable the model to capture more general knowledge during the learning process, such as the commonalities in multiple content expressions, improve the generalization ability of the model, avoid overfitting, and improve the quality of model training.

[0106] In a possible implementation, when the summary information belonging to the target content domain has multiple content expressions, in order to improve the learning ability of the summary generation model for each content expression, a summary generation model can be made to learn only one content expression. For example, the summary information generated by the summary generation model M is all expressed by content expression 1.

[0107] In the target content domain, the historical summary information released to the public can have multiple content expressions. The server can classify the historical summary information according to the content expression to obtain N historical summary information sets, where N>1. The historical summary information in the same historical summary information set is expressed in the same content expression, while different historical summary information sets have different content expressions. That is, each historical summary information set uses one content expression to express the historical summary information.

[0108] For example, all the historical summary information in a certain historical summary information set is expressed using content expression method 1, and all the historical summary information in another historical summary information set is expressed using content expression method 2.

[0109] The server can construct N reference libraries with N historical summary information sets, and the historical summary information in the same reference library has the same content expression method. That is, each historical summary information set can be used as a reference library, so that the content expression method of the historical summary information in the same reference library is the same, and different reference libraries correspond to different content expressions.

[0110] Among them, the N reference libraries may include at least a first reference library corresponding to a first content expression method and a second reference library corresponding to a second content expression method, that is, the first reference library N1 corresponds to the first content expression method 1, and the second reference library N2 corresponds to the second content expression method 2, and the first content expression method is different from the second content expression method.

[0111] The content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and the initial generative model is supervised and trained to obtain a summary generation model. Specifically, for the second summary information adjusted based on the first reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and the first initial generative model is supervised and trained to obtain a first summary generation model, and the summary information extracted by the first summary generation model is the first content expression. For the second summary information adjusted based on the second reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and the second initial generative model is supervised and trained to obtain a second summary generation model, and the summary information extracted by the second summary generation model is the second content expression.

[0112] That is, when the server determines from the first reference database that the reference summary information has content similar to the first summary information, and the content expression of the reference summary information is the first content expression, the target generative model can adjust the first summary information to conform to the content to be processed based on the first content expression to obtain the second summary information. In this way, the second summary information obtained by adjustment based on the first reference database is expressed in the first content expression.

[0113] Furthermore, when the first initial generative model is supervisedly trained, the sample label is the second summary information expressed in the first content expression mode. During the model training process, the first initial generative model can learn relevant knowledge about the first content expression mode, so that the first summary generation model obtained can generate summary information expressed in the first content expression mode. The first initial generative model can be an initial generative model that generates the first summary information for the content to be processed, or it can be other existing generative models.

[0114] For example, the target content field is the script field. In the first reference library, the content expression method used by the historical summary information is more concise and has fewer words. Then the description of the second summary information generated based on the content expression method of the historical summary information will also be relatively concise. The first summary generation model trained with the second summary information as a sample label also generates summary information with a concise style.

[0115] When the server determines from the second reference database that the reference summary information has content similar to the first summary information, and the content expression of the reference summary information is the second content expression, rather than other content expressions, the target generative model can adjust the first summary information to conform to the content to be processed based on the second content expression to obtain the second summary information. In this way, the second summary information obtained by adjustment based on the second reference database is expressed in the second content expression.

[0116] When the second initial generative model is supervisedly trained, the sample label is the second summary information expressed in the second content expression mode. During the model training process, the second initial generative model can learn relevant knowledge about the second content expression mode, so that the obtained second summary generation model can generate summary information expressed in the second content expression mode. The second initial generative model can be an initial generative model that generates the first summary information for the content to be processed, or it can be other existing generative models.

[0117] For example, the target content domain is the script domain. In the second reference library, the description of the content expression method used by the historical summary information is more complex and has more words. The summary information generated by the trained second summary generation model also has a complex style.

[0118] Therefore, in the model application stage, if you want to generate summary information in a concise style, you can input the content to be identified into the first summary generation model; if you want to generate summary information in a complex style, you can input the content to be identified into the second summary model. In this way, even in the same target content field, you can generate summary information with different content expressions, and the summary information is more accurate.

[0119] In summary, by dividing the historical summary information with different content expressions into different reference libraries, each reference library has only one expression style. Accordingly, a dedicated summary generation model is trained for each content expression. This enables a summary generation model to learn the relevant knowledge of a content expression more accurately, making the learning more targeted, improving the learning ability of each content expression, and improving the accuracy of the summary information.

[0120] In a possible implementation, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised training is performed on the initial generative model to obtain the summary generation model. Specifically, the output layer of the trained generative model for summary information extraction is replaced with the initial output layer to obtain the initial generative model, and the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised fine-tuning (Supervised Fine-tuning, SFT) is performed on the initial generative model to obtain the summary generation model.

[0121] The trained generative model is a generative model that has been trained to a certain extent, and the model can extract summaries of text works. That is, the server can input the content to be processed into the trained generative model and output the first summary information of the content to be processed.

[0122] Before the supervised training of the trained generative model, its output layer can be replaced by the initial output layer, and the input layer and the intermediate layer can be retained, so as to train the initial output layer to learn the relevant knowledge of how to output summary information with content expression.

[0123] The server can use the content to be processed and the corresponding second summary information as sample content and sample label respectively, and perform supervised fine-tuning SFT on the initial generative model with the initial output layer, and obtain the summary generation model after training. In this way, supervised training through supervised fine-tuning can minimize the extent of model changes and improve the training efficiency of the summary generation model.

[0124] As an example, the model structure and training process of the initial generative model can be explained next.

[0125] A large number of training samples need to be obtained during model training. The training samples include the content to be processed and the corresponding second summary information. The data format of each training sample can be expressed as:

[0126] {"id": "999", "conversations":[

[0127] {"from":"human","value":"The following is a scene from a script. Please return the corresponding summary information. The script is: xxxxxxx "},

[0128] {"from":"gpt","value":"xxxx"}

[0129] ]}

[0130] Among them, id is the serial number of the training sample, which can start from 1, the script xxxxxxx is the content to be processed, for example, it can be the text of a certain scene in a certain script, and the returned xxxx is the second summary information in the training sample, such as the summary information of a certain scene.

[0131] The initial generative model can be a multi-layer transformer stacked structure, as shown in Table 1 below. The layer names are Embedding_tokens, Model layers, and lm_head. The layer structures are Embedding (emb), Decoder Layer, and Full Connected Layer. The number of layers is 1, 32, and 1 respectively. The number of layers can be adjusted according to actual conditions.

[0132] Table 1

[0133]

[0134] Among them, the structure of the decoding layer can be shown in Table 2. The names of the layers in the decoding layer are input layer normalization (Input_layernorm), self-attention layer (Self Attention), post-attention layer normalization (Post_attention_layernorm) and multilayer perceptron (Multilayer Perceptron, MLP), and the structures of each layer are root mean square normalization (Root Mean Square Normalization, RMSNorm), attention layer (Attention), root mean square normalization and multilayer perceptron, and the number of each layer is 1.

[0135] Table 2

[0136]

[0137] During the training of the initial generative model, the model parameters can be initialized, the learning parameters can be set, all parameters can be fine-tuned, that is, all parameters of the model can be fine-tuned, or some reference fine-tuning can be performed. During the training process, for n training samples, Bs training samples that have not been learned can be randomly selected and a batch training can be performed. The above training is repeated until each training sample has been traversed once, thus completing an epoch. Multiple rounds of iterations are performed until the average batch loss (epoch loss) in a certain epoch no longer decreases. The average epoch loss is the average value of each batch loss in this round of iterations.

[0138] When learning each batch, you can follow the steps below. Get the training samples, perform the model forward, and for each training sample in the batch, input the "value" text content of "from human" (i.e., the content to be processed) into the model, get the model output, and generate the response text (i.e., the predicted summary information). Calculate the predicted summary information with the summary text of "value" of "from gpt" in the training sample (i.e., the second summary information) to calculate the loss. The total loss backhaul network calculates the gradients of each model parameter based on the loss (i.e., the model backward process), and updates each parameter in the initial generative model based on the gradients of each parameter to complete the model parameter update process.

[0139] Among them, when calculating the loss of the initial generative model, the cross entropy loss can be used to represent it. This loss can increase the probability of the model predicting the target word. The cross entropy loss is specifically:

[0140]

[0141] Among them, y iis the one-hot label of word i, which takes 1 if the word is a certain word, otherwise it takes 0, p i is the predicted probability of the word, and n is the number of training samples.

[0142] In one possible implementation, when the content to be identified is input into the summary generation model, since the summary generation model is a generative model, even if the same content is input each time, there will be some differences in the output results of the generative model. Therefore, in order to improve the accuracy of the summary information of the output content to be identified, it is necessary to select the best summary information output each time.

[0143] Specifically, in the model application stage, the server can obtain the content to be identified in the target content field, and determine multiple pending summary information for the content to be identified according to the summary generation model, wherein the multiple pending summary information are abbreviated expressions of the content to be identified, but there are still some slight differences in expression between them. In actual application, by setting a random seed, the summary generation model can randomly select words in the pending summary information each time it outputs the pending summary information, thereby obtaining multiple pending summary information.

[0144] It can be understood that no matter whether the historical summary information in the reference library has one or more content expressions, when extracting the summary of the content to be identified, the obtained pending summary information can only be expressed using one content expression. Therefore, even if there are multiple pending summary information, the multiple pending summary information are all expressed using the same content expression.

[0145] The server can select a summary information that meets the quality requirements as the content to be identified from multiple pending summary information. The quality of the pending summary information can be measured by whether its expression is smooth, whether the wording is in line with the context, whether it is an accurate abbreviation of the content to be identified, etc. Meeting the quality requirements can be understood as the pending summary information is relatively smooth, the wording is relatively accurate, there is no obvious wrong wording, and the content to be identified is accurately abbreviated.

[0146] That is, the server can measure whether the quality of multiple pending summary information meets the quality requirements, and select a summary information corresponding to the content to be identified, which can reasonably and accurately abbreviate the content to be identified. For example, the server can select the pending summary information with the best quality, or the pending summary information with the highest quality.

[0147] That is to say, in the application stage of the summary generation model, for the unidentified content that needs to be extracted, one with better quality can be selected from the multiple pending summary information output by the model as its corresponding summary information. In this way, by performing quality selection, it is possible to avoid using a poor pending summary information output by the model as the summary information, which can greatly improve the generation quality of the summary information.

[0148] In a possible implementation, when quality screening is performed on a plurality of pending summary information, in order to improve the accuracy of quality screening, a summary quality evaluation model may be used to perform quality evaluation on each of the pending summary information.

[0149] Selecting a summary information that meets the quality requirements as the content to be identified from multiple pending summary information can specifically include determining evaluation parameters corresponding to the multiple pending summary information respectively through a summary quality evaluation model according to the content to be identified, and selecting the pending summary information with the highest evaluation parameter as the summary information of the content to be identified.

[0150] Among them, the summary quality evaluation model can be used to evaluate the quality of the pending summary information. It can evaluate its quality, whether the expression of the pending summary information is smooth enough, whether the wording is accurate enough, whether it accurately corresponds to the content to be identified, etc.

[0151] Since the content to be identified is a text work with a large number of words and a long length, the language expressions therein are relatively reasonable, the words used are relatively accurate, and the content to be identified can be used to measure whether the pending summary information corresponds accurately to itself, so the server can input the content to be identified into the summary quality evaluation model. In addition, the pending summary information also needs to be input into the model.

[0152] The summary quality evaluation model can output the evaluation parameters corresponding to each pending summary information. The evaluation parameters can be understood as the evaluation results of the quality of the pending summary information. The evaluation results can be, for example, grades or specific values. The higher the evaluation parameters, the better the quality of the pending summary information. The expression and wording of the pending summary information will be more accurate, and the content to be identified can be more accurately abbreviated.

[0153] The server can determine the pending summary information with the highest evaluation parameter, which has the best quality and is optimal in terms of expression, wording, and whether it accurately corresponds to the content to be identified. Therefore, the pending summary information with the best quality can be used as the summary information corresponding to the content to be identified.

[0154] In short, by using the summary quality evaluation model to judge the quality of each pending summary information, since the model has a more unified evaluation standard, it can use the content to be identified as the basis, and output the corresponding evaluation parameters for each pending summary information more objectively and accurately, so that all pending summary information can be compared in the same dimension, thereby providing a guarantee for selecting more accurate summary information and outputting more accurate and reasonable summary information for the content to be identified.

[0155] In a possible implementation, in order to improve the prediction accuracy of the summary quality evaluation model, during the model training phase, a combination of positive training samples and negative training samples may be used to train the model.

[0156] The summary quality evaluation model can be trained in the following manner: determining negative training samples according to the content to be processed and the first summary information, and determining positive training samples according to the content to be processed and the second summary information, and training the initial evaluation model according to the positive training samples and the negative training samples to obtain the summary quality evaluation model.

[0157] Specifically, the second summary information of the content to be processed has been optimized in terms of content expression, and its summary quality is high. The content to be processed and the second summary information with good quality can be used as positive training samples to guide model training. The first summary information is obtained through the initial generative model, and its summary quality is poor. The content to be processed and the first summary information with poor quality can be used as negative training samples.

[0158] As an example, a positive training sample may be “(content to be identified, second summary information, 1)”, and a negative training sample may be “(content to be identified, first summary information, 0)”, where 0 and 1 are used to enable a computer to distinguish between positive training samples and negative training samples.

[0159] The server may train the initial evaluation model according to the positive training samples and the negative training samples, and obtain a summary quality evaluation model after the training is completed, wherein the initial evaluation model is a model that cannot perform a good evaluation on the quality of the summary information.

[0160] In this way, during the training stage of the summary quality evaluation model, not only positive training samples can be used for training, but also negative training samples can be combined. Positive training samples can enable the model to learn relevant knowledge about the second summary information with good quality, and negative training samples can enable the model to learn relevant knowledge about the first summary information with poor quality. In this way, the model can more accurately distinguish between summary information with good quality and poor quality, and can conduct a more comprehensive and integrated study of the quality, which can improve the accuracy of the model's evaluation of summary quality.

[0161] In a possible implementation, in order to further improve the quality of summary information in positive training samples and negative training samples, knowledge error correction may be performed on the summary information.

[0162] Specifically, before determining the negative training samples, the first summary information can be corrected for knowledge errors, and before determining the positive training samples, the second summary information can be corrected for knowledge errors. Among them, knowledge error correction can be understood as modifying obvious word errors and other problems, such as misattribution and fabrication. By correcting the knowledge errors of the second summary information, the rationality of the second summary information can be further guaranteed and the accuracy of the summary information can be improved.

[0163] refer to Figure 4 As shown, it is a schematic diagram of a training sample for forming a summary quality evaluation model provided by an embodiment of the present application. The first summary information and the second summary information can both be corrected for knowledge errors. The corrected first summary information and the content to be processed can constitute the negative training sample of the summary quality evaluation model, and the corrected second summary information and the content to be processed can constitute the positive training sample of the summary quality evaluation model. In addition, the corrected second training sample and the content to be processed can also be used as training samples of the summary generation model, thereby improving the accuracy of its training samples.

[0164] It can be seen that correcting the knowledge errors in the summary information of the training samples that constitute the summary quality evaluation model can avoid training with summary information with knowledge errors, which can greatly improve the accuracy of positive and negative training samples, and thus improve the evaluation quality of the summary quality evaluation model.

[0165] In a possible implementation, when generating summary information for the content to be identified through the summary generation model, not only can the summary generation model generate multiple pieces of pending summary information to provide more selectivity for the summary information, but more summary information can also be generated to further expand the selectable range of the summary information.

[0166] The server may determine historical summary information with content similar to the pending summary information from the reference library as the target reference summary information, and adjust the pending summary information to conform to the content to be identified based on the content expression of the target reference summary information to obtain the target pending summary information of the content to be identified. Selecting a summary information that meets the quality requirements as the content to be identified from multiple pending summary information may specifically include selecting a summary information that meets the quality requirements as the content to be identified from the target pending summary information and multiple pending summary information.

[0167] The target pending summary information is also an abbreviated expression of the content to be identified, and can also be used as an alternative to the summary information of the content to be identified. In other words, the pending summary information can be subjected to the matching and quality optimization process in the reference library as performed during model training, and the pending summary information can be matched with the historical summary information in the reference library for content similarity, and the target reference summary information of the pending summary information can be determined. The content expression of the target reference summary information is used as the basis for summary adjustment, and the content expression is learned. After adjustment, the target pending summary information of the content to be identified is obtained. The pending summary information and the target pending summary information are both abbreviated expressions of the content to be identified.

[0168] In practical applications, the target generative model can be used to optimize the content expression method, that is, the server can input the pending summary information, the target reference summary information of the pending summary information, and the content to be identified into the target generative model, so as to output the target pending summary information. In this way, not only can the content to be identified be abbreviated more times to expand the range of options, but also the target pending summary information can be guaranteed to have a good summary quality.

[0169] It is understandable that the number of target pending summary information is not specifically limited here, and the quality of each pending summary information can be optimized to generate the corresponding target pending summary information, or the quality of part of the pending summary information can be optimized.

[0170] In this way, multiple pending summary information can be obtained through the summary generation model, and at least one target pending summary information can be obtained through reference library matching and content expression learning, from which summary information of the content to be identified with better quality can be determined.

[0171] It can be seen that in the application stage of the summary generation model, the content to be identified can be expressed in another abbreviated form to obtain the target summary information, thereby expanding the selectable range of summary information of the content to be identified, providing more data for the screening of summary information, and ensuring that the target summary information has a good summary quality, thereby determining better quality summary information for the content to be identified.

[0172] As an example, the summary quality evaluation model may include a first encoder, a second encoder, a multi-layer perceptron and a prediction layer (predict), referring to Figure 5As shown, the first encoder is used to perform text representation on the input textual works such as scripts, the second encoder is used to perform text representation on the input summary information, and the multi-layer perceptron is used to predict the evaluation parameters of the summary information and calculate the loss between the predicted evaluation parameters and the real evaluation parameters, so as to adjust the model parameters according to the loss. Among them, the supervision information (i.e., label) of the loss can be 1 or 0 according to the quality, with a score of 1 for good quality and 0 for bad quality. The first encoder and the second encoder can be the same or different, and the encoder can be not updated, and only the multi-layer perceptron and the prediction layer are trained and updated.

[0173] Among them, the multilayer perceptron can include 4 linear layers and 4 activation layers (Dropoutlayer), and the prediction layer can be a linear layer with 1 channel, as shown in Table 3. The number of channels of the 4 linear layers are 1024, 128, 64 and 16 respectively, the ratio of random feature dropout of the 4 activation layers is 0.2, the number of each layer is 1, and the number of each layer can be adjusted according to the actual situation.

[0174] Table 3

[0175]

[0176] During the training process of the summary quality evaluation model, the model parameters can be initialized, and the Gaussian normal distribution with parameters (0, 1) can be used as the initialization for the MLP and predict structures. When setting the learning parameters, a learning rate of 0.005 can be used for all modules, and the Stochastic Gradient Descent (SGD) method can be used for training, and the learning rate is reduced to 0.1 times the original every 10 epochs.

[0177] Similarly, during the training process, the number of samples is n, and each Bs piece of training data can be used as a batch, with a total of n / Bs batches. Each completion of n / Bs batches represents the completion of one round of iteration. Each round of iteration processes all samples once until the average epoch loss no longer decreases under a certain epoch.

[0178] The training process of a batch can include model forward, model backward and model parameter update. In the model forward, the text works and corresponding summary information in the sample can be input into the model, and the respective emb vectors are extracted. The two vectors are multiplied at the same position and then input into the multi-layer perceptron and prediction layer to obtain the predicted evaluation parameters, and the loss between the predicted evaluation parameters and the real evaluation parameters is calculated. The total loss feedback network calculates the gradient of each model parameter according to the loss (model backward process), and updates the model parameters according to the parameter gradient.

[0179] The loss can be a binary cross entropy loss:

[0180]

[0181] Where n represents the number of samples, y i represents the label of sample i, is the predicted value of sample i.

[0182] In many application scenarios, the summary generation model can be used to extract summary information. For example, in the scenario of script review, the model can help script reviewers quickly understand and analyze the plot, and evaluate whether the script is suitable for filming. For example, for writers, the model can help them organize historical story lines during the creation process, so as to follow the development process of various characters and events and improve the creation efficiency. In addition, the summary generation model can also be used in areas such as content planning to extract summary information.

[0183] In an embodiment of the present application, the initial generative model used for summary extraction can be trained so that the content expression of the summary information generated by it conforms to the target content field to which the content to be identified belongs, and can be better applied to summary extraction.

[0184] In the model training phase, a large number of high-quality training samples need to be collected. If the content to be processed belongs to the target content field, the content to be processed can be input into the initial generative model to output the first summary information of poor quality. There are multiple historical summary information in paragraphs in the reference library. Reference summary information with content similarity to the first summary information is determined from the reference library so as to subsequently learn the content expression of the reference summary information. Among them, the reference library may have at least one content expression corresponding to the target content field. When performing content similarity matching, the first feature identifier of the first summary information can be compared with the historical feature identifier in the reference library, and the historical summary information corresponding to the historical feature identifier with consistent comparison is used as the reference summary information.

[0185] The first summary information, the reference summary information and the content to be processed can all be input into the target generative model to obtain the second summary information expressed in the content expression method, and the summary quality is high. The second summary information and the content to be processed are used as training samples to train the initial generation model, thereby obtaining a summary generation model.

[0186] refer to Figure 6As shown, it is a schematic diagram of a model application process provided by an embodiment of the present application. In the application stage of the summary generation model, the content to be identified in the same target content field can be used as the model input to obtain multiple pending summary information. The pending summary information can be input into the target generation model for quality optimization again. The optimized target pending summary information can be determined in combination with the reference library. The target pending summary information and the pending summary information can be input into the summary quality evaluation model, and the evaluation parameters are output. The summary information with the highest evaluation parameters is determined as the summary information corresponding to the content to be identified. In the training process of the summary quality evaluation model, positive and negative training samples that have been corrected for knowledge errors can be used for training.

[0187] refer to Figure 7 FIG. 1 is a schematic diagram of a model determination device provided in an embodiment of the present application. The model determination device 700 includes:

[0188] A first determining unit 701 is used to use the content to be processed as a model input, and obtain first summary information of the content to be processed through an initial generative model, wherein the content to be processed belongs to a target content field, and the first summary information is used to abbreviate the content to be processed;

[0189] A second determining unit 702 is configured to determine, from a reference library, historical summary information having content similarity to the first summary information as reference summary information, wherein the reference library includes a plurality of historical summary information that have been published in the target content field;

[0190] An adjusting unit 703 is configured to adjust the first summary information to conform to the content to be processed based on the content expression mode of the reference summary information, so as to obtain second summary information of the content to be processed;

[0191] The training unit 704 is used to use the content to be processed as sample content and the corresponding second summary information as sample labels to perform supervised training on the initial generative model to obtain a summary generation model, wherein the summary generation model is used to extract summary information from the content to be identified in the target content field.

[0192] Optionally, the device further comprises:

[0193] An extraction unit, used to extract features from the historical summary information to obtain corresponding historical feature identifiers;

[0194] A storage unit, used to associate and store the historical summary information and the corresponding historical feature identifier in the reference library;

[0195] The second determining unit is configured to:

[0196] Extracting features from the first summary information to obtain a corresponding first feature identifier;

[0197] Performing similarity matching between the first feature identifier and the historical feature identifier in the reference library to obtain a target historical feature identifier that meets the content similarity condition;

[0198] The historical summary information corresponding to the target historical feature identifier is used as the reference summary information.

[0199] Optionally, the device further comprises:

[0200] A first acquisition unit is used to acquire the historical overall summary information that has been published in the target content field, wherein the historical overall summary information is used to abbreviate the historical content in the target content field;

[0201] A splitting unit, used for splitting the overall historical summary information into paragraphs to obtain a plurality of historical summary information;

[0202] The first construction unit is used to construct the reference library according to the plurality of historical summary information.

[0203] Optionally, the historical summary information in the reference library may involve multiple content expressions.

[0204] Optionally, the device further comprises:

[0205] A classification unit, used to classify the historical summary information according to the content expression mode, to obtain N historical summary information sets, where N>1;

[0206] A second construction unit is used to construct N reference libraries from the N historical summary information sets, where the historical summary information in the same reference library has the same content expression mode, and the N reference libraries at least include a first reference library corresponding to the first content expression mode and a second reference library corresponding to the second content expression mode;

[0207] Training unit for:

[0208] For the second summary information obtained by adjusting based on the first reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label to perform supervised training on the first initial generative model to obtain a first summary generation model, wherein the summary information extracted by the first summary generation model is the first content expression;

[0209] For the second summary information adjusted based on the second reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised training is performed on the second initial generative model to obtain a second summary generation model. The summary information extracted by the second summary generation model is the second content expression.

[0210] Optionally, the device further comprises:

[0211] A second acquisition unit, used to acquire the content to be identified in the target content field;

[0212] A third determining unit, configured to determine a plurality of to-be-determined summary information for the to-be-identified content according to the summary generation model;

[0213] The screening unit is used to screen out a piece of summary information that meets the quality requirement as the summary information of the content to be identified from the plurality of summary information to be determined.

[0214] Optionally, the screening unit is used to:

[0215] According to the content to be identified, determining evaluation parameters respectively corresponding to the plurality of summary information to be determined by using a summary quality evaluation model;

[0216] The undetermined summary information with the highest evaluation parameter is used as the summary information of the content to be identified.

[0217] Optionally, the summary quality evaluation model is trained in the following manner:

[0218] Determine a negative training sample according to the content to be processed and the first summary information, and determine a positive training sample according to the content to be processed and the second summary information;

[0219] The initial evaluation model is trained according to the positive training samples and the negative training samples to obtain the summary quality evaluation model.

[0220] Optionally, the device further comprises:

[0221] A fourth determining unit, configured to determine, from the reference library, historical summary information having content similarity to the summary information to be determined as target reference summary information;

[0222] a fifth determining unit, configured to adjust the pending summary information to conform to the content to be identified based on the content expression mode of the target reference summary information, so as to obtain target pending summary information of the content to be identified;

[0223] Screening unit for:

[0224] A piece of summary information that meets the quality requirement is screened out from the target pending summary information and the plurality of pending summary information as the summary information of the content to be identified.

[0225] Optionally, the device further comprises:

[0226] The correction unit is configured to perform knowledge error correction on the first summary information before determining the negative training sample, and to perform knowledge error correction on the second summary information before determining the positive training sample.

[0227] Optionally, the training unit is used to:

[0228] Replacing the output layer of the trained generative model for extracting summary information with the initial output layer to obtain the initial generative model;

[0229] The content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised fine-tuning SFT is performed on the initial generative model to obtain a summary generation model.

[0230] The embodiment of the present application further provides a computer device, including a terminal device or a server, in which the aforementioned model determination device can be configured. The computer device is introduced below in conjunction with the accompanying drawings.

[0231] If the computer device is a terminal device, see Figure 8 As shown, the embodiment of the present application provides a terminal device, taking the terminal device as a mobile phone as an example:

[0232] Figure 8 The block diagram shows a partial structure of a mobile phone provided in an embodiment of the present application. Figure 8 The mobile phone includes: a radio frequency (RF) circuit 1410, a memory 1420, an input unit 1430, a display unit 1440, a sensor 1450, an audio circuit 1460, a wireless fidelity (WiFi) module 1470, a processor 1480, and a power supply 1490. Those skilled in the art will understand that Figure 8 The mobile phone structure shown in the figure does not constitute a limitation on the mobile phone, and may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently.

[0233] Combine the following Figure 8 A detailed introduction to the various components of the mobile phone:

[0234] The RF circuit 1410 may be used for receiving and sending signals during information transmission or communication or during a call. In particular, after receiving downlink information from a base station, the information is sent to the processor 1480 for processing. In addition, the uplink data is sent to the base station.

[0235] The memory 1420 can be used to store software programs and modules. The processor 1480 executes various functional applications and data processing of the mobile phone by running the software programs and modules stored in the memory 1420. The memory 1420 can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area can store data created according to the use of the mobile phone (such as audio data, a phone book, etc.), etc. In addition, the memory 1420 can include a high-speed random access memory, and can also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.

[0236] The input unit 1430 may be used to receive input digital or character information and generate key signal input related to user settings and function control of the mobile phone. Specifically, the input unit 1430 may include a touch panel 1431 and other input devices 1432 .

[0237] The display unit 1440 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The display unit 1440 may include a display panel 1441.

[0238] The mobile phone may also include at least one sensor 1450, such as a light sensor, a motion sensor, and other sensors.

[0239] The audio circuit 1460 , the speaker 1461 , and the microphone 1462 can provide an audio interface between the user and the mobile phone.

[0240] WiFi is a short-range wireless transmission technology. The mobile phone can help users send and receive emails, browse web pages and access streaming media through the WiFi module 1470. It provides users with wireless broadband Internet access.

[0241] Processor 1480 is the control center of the mobile phone. It uses various interfaces and lines to connect various parts of the entire mobile phone. It executes various functions of the mobile phone and processes data by running or executing software programs and / or modules stored in memory 1420 and calling data stored in memory 1420.

[0242] The mobile phone also includes a power source 1490 (such as a battery) for supplying power to various components.

[0243] In this embodiment, the processor 1480 included in the terminal device is also used to execute the steps in the methods of each embodiment of the present application.

[0244] If the computer device is a server, the present application embodiment also provides a server, see Fig. 9 As shown, Fig. 9 The structural diagram of the server 1500 provided in the embodiment of the present application, the server 1500 may have relatively large differences due to different configurations or performances, and may include one or more central processing units (CPU) 1522 (for example, one or more processors) and memory 1532, one or more storage media 1530 (for example, one or more mass storage devices) storing application programs 1542 or data 1544. Among them, the memory 1532 and the storage medium 1530 can be short-term storage or permanent storage. The program stored in the storage medium 1530 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the server. Furthermore, the central processing unit 1522 can be configured to communicate with the storage medium 1530 and execute a series of instruction operations in the storage medium 1530 on the server 1500.

[0245] The server 1500 may also include one or more power supplies 1526, one or more wired or wireless network interfaces 1550, one or more input and output interfaces 1558, and / or one or more operating systems 1541, such as Windows Server 2003 or Windows Server 2008. TM , Mac OS X TM , Unix TM , Linux TM , FreeBSD TM etc.

[0246] The steps performed by the server in the above embodiment can be based on Fig. 9 The server structure shown.

[0247] In addition, an embodiment of the present application further provides a storage medium, wherein the storage medium is used to store a computer program, and the computer program is used to execute the method provided in the above embodiment.

[0248] The embodiments of the present application also provide a computer program product including a computer program, which, when executed on a computer device, enables the computer device to execute the method provided in the above embodiments.

[0249] A person of ordinary skill in the art can understand that: all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium can be at least one of the following media: read-only memory (English: Read-only Memory, abbreviated: ROM), RAM, magnetic disk or optical disk, etc. Various media that can store computer programs.

[0250] In the embodiments of the present application, the term "module" or "unit" refers to a computer program or a part of a computer program that has a predetermined function and works together with other related parts to achieve a predetermined goal, and can be implemented in whole or in part by using software, hardware (such as processing circuits or memories), or a combination thereof. Similarly, a processor (or multiple processors or memories) can be used to implement one or more modules or units. In addition, each module or unit can be part of an overall module or unit that includes the function of the module or unit.

[0251] It should be noted that each embodiment in this specification is described in a progressive manner, and the same and similar parts between the embodiments can refer to each other, and each embodiment focuses on the differences from other embodiments. In particular, for the device and system embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and the relevant parts can refer to the partial description of the method embodiments. The device and system embodiments described above are merely schematic, in which the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of this embodiment. Ordinary technicians in this field can understand and implement it without paying creative work.

[0252] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions that can be easily thought of by a technician familiar with the technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application. Moreover, based on the implementation methods provided in the above aspects, the present application can also be further combined to provide more implementation methods. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A model determination method, characterized in that: The method comprises: Using the content to be processed as a model input, obtaining first summary information of the content to be processed through an initial generative model, wherein the content to be processed belongs to a target content domain, and the first summary information is used to abbreviate the content to be processed; Determine from a reference library historical summary information that has a content similarity condition with the first summary information as reference summary information, wherein the reference library includes a plurality of historical summary information that have been published in the target content field; the historical summary information is classified according to content expression methods; the content expression methods include at least one of the format, degree of detail, logic, and emphasis used when expressing summary information in the corresponding content field; the content similarity condition indicates that the content expression method of the reference summary information is applicable to the first summary information; Based on the content expression mode of the reference summary information, adjusting the first summary information to conform to the content to be processed, to obtain second summary information of the content to be processed, so that the second summary information expresses the first summary information in the content expression mode of the reference summary information; The content to be processed is used as sample content, and the corresponding second summary information is used as sample label to perform supervised training on the initial generative model to obtain a summary generation model, wherein the summary generation model is used to extract summary information of the content to be identified in the target content field.

2. The method according to claim 1, characterized in that The method further comprises: Extracting features from the historical summary information to obtain corresponding historical feature identifiers; storing the historical summary information and the corresponding historical feature identifier in association with each other in the reference library; The step of determining, from a reference library, historical summary information having content similar to the first summary information as reference summary information includes: Extracting features from the first summary information to obtain a corresponding first feature identifier; Performing similarity matching between the first feature identifier and the historical feature identifier in the reference library to obtain a target historical feature identifier that meets the content similarity condition; The historical summary information corresponding to the target historical feature identifier is used as the reference summary information.

3. The method according to claim 1, characterized in that The method further comprises: Acquire the historical overall summary information that has been published in the target content field, wherein the historical overall summary information is used to abbreviate the historical content in the target content field; The historical summary information is split into paragraphs to obtain multiple historical summary information; The reference library is constructed according to the plurality of historical summary information.

4. The method according to claim 1, characterized in that The historical summary information in the reference library may involve a variety of content expressions.

5. The method according to claim 1, characterized in that The method further comprises: After classifying the historical summary information according to the content expression mode, N historical summary information sets are obtained, where N>1; Constructing N reference libraries from N historical summary information sets, where the historical summary information in the same reference library has the same content expression, and the N reference libraries at least include a first reference library corresponding to a first content expression and a second reference library corresponding to a second content expression; The method of using the content to be processed as sample content and the corresponding second summary information as sample labels to perform supervised training on the initial generative model to obtain a summary generation model includes: For the second summary information obtained by adjusting based on the first reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label to perform supervised training on the first initial generative model to obtain a first summary generation model, wherein the summary information extracted by the first summary generation model is the first content expression; For the second summary information adjusted based on the second reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised training is performed on the second initial generative model to obtain a second summary generation model. The summary information extracted by the second summary generation model is the second content expression.

6. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Acquire the content to be identified in the target content field; Determining a plurality of to-be-determined summary information for the to-be-identified content according to the summary generation model; A piece of summary information meeting the quality requirement is screened out from the plurality of summary information to be determined as the summary information of the content to be identified.

7. The method according to claim 6, characterized in that The step of selecting a piece of summary information that meets the quality requirement as the summary information of the content to be identified from the plurality of summary information to be determined includes: According to the content to be identified, determining evaluation parameters respectively corresponding to the plurality of summary information to be determined by using a summary quality evaluation model; The undetermined summary information with the highest evaluation parameter is used as the summary information of the content to be identified.

8. The method according to claim 7, characterized in that The summary quality evaluation model is trained in the following way: Determine a negative training sample according to the content to be processed and the first summary information, and determine a positive training sample according to the content to be processed and the second summary information; The initial evaluation model is trained according to the positive training samples and the negative training samples to obtain the summary quality evaluation model.

9. The method according to claim 6, characterized in that The method further comprises: Determine, from the reference library, historical summary information having content similar to the summary information to be determined as target reference summary information; Based on the content expression mode of the target reference summary information, the pending summary information is adjusted to conform to the content to be identified, so as to obtain the target pending summary information of the content to be identified; The step of selecting a piece of summary information that meets the quality requirement as the summary information of the content to be identified from the plurality of summary information to be determined includes: A piece of summary information that meets the quality requirement is screened out from the target pending summary information and the plurality of pending summary information as the summary information of the content to be identified.

10. The method according to claim 8, characterized in that The method further comprises: Before determining the negative training sample, knowledgeable error correction is performed on the first summary information, and before determining the positive training sample, knowledgeable error correction is performed on the second summary information.

11. The method according to any one of claims 1 to 5, characterized in that: The method of using the content to be processed as sample content and the corresponding second summary information as sample labels to perform supervised training on the initial generative model to obtain a summary generation model includes: Replacing the output layer of the trained generative model for extracting summary information with the initial output layer to obtain the initial generative model; The content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised fine-tuning SFT is performed on the initial generative model to obtain a summary generation model.

12. A model determination device, characterized in that: The device comprises: A first determination unit is used to use the content to be processed as a model input, and obtain first summary information of the content to be processed through an initial generative model, wherein the content to be processed belongs to a target content field, and the first summary information is used to abbreviate the content to be processed; A second determining unit is used to determine, from a reference library, historical summary information that has a content similarity condition with the first summary information as reference summary information, wherein the reference library includes a plurality of historical summary information that have been published in the target content field; the historical summary information is classified according to content expression methods; the content expression methods include at least one of the format, degree of detail, logic, and emphasis used when expressing summary information in the corresponding content field; the content similarity condition indicates that the content expression method of the reference summary information is applicable to the first summary information; an adjusting unit, configured to adjust the first summary information to conform to the content to be processed based on the content expression mode of the reference summary information, to obtain second summary information of the content to be processed, so that the second summary information expresses the first summary information in the content expression mode of the reference summary information; The training unit is used to use the content to be processed as sample content and the corresponding second summary information as sample labels to perform supervised training on the initial generative model to obtain a summary generation model, wherein the summary generation model is used to extract summary information from the content to be identified in the target content field.

13. The device according to claim 12, characterized in that The device also includes: An extraction unit, used for extracting features from the historical summary information to obtain corresponding historical feature identifiers; A storage unit, used to associate and store the historical summary information and the corresponding historical feature identifier in the reference library; The second determining unit is configured to: Extracting features from the first summary information to obtain a corresponding first feature identifier; Performing similarity matching between the first feature identifier and the historical feature identifier in the reference library to obtain a target historical feature identifier that meets the content similarity condition; The historical summary information corresponding to the target historical feature identifier is used as the reference summary information.

14. The device according to claim 12, characterized in that The device also includes: A first acquisition unit is used to acquire the historical overall summary information that has been published in the target content field, wherein the historical overall summary information is used to abbreviate the historical content in the target content field; A splitting unit, used for splitting the overall historical summary information into paragraphs to obtain a plurality of historical summary information; The first construction unit is used to construct the reference library according to the plurality of historical summary information.

15. The device according to claim 12, characterized in that The historical summary information in the reference library may involve a variety of content expressions.

16. The device according to claim 12, characterized in that The device also includes: A classification unit, configured to obtain N sets of historical summary information after classifying the historical summary information according to content expression modes, where N>1; A second construction unit is used to construct N reference libraries from the N historical summary information sets, where the historical summary information in the same reference library has the same content expression mode, and the N reference libraries at least include a first reference library corresponding to the first content expression mode and a second reference library corresponding to the second content expression mode; The training unit is used to: For the second summary information obtained by adjusting based on the first reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label to perform supervised training on the first initial generative model to obtain a first summary generation model, wherein the summary information extracted by the first summary generation model is the first content expression; For the second summary information adjusted based on the second reference library, the content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised training is performed on the second initial generative model to obtain a second summary generation model. The summary information extracted by the second summary generation model is the second content expression.

17. The device according to any one of claims 12 to 16, characterized in that: The device also includes: A second acquisition unit, used to acquire the content to be identified in the target content field; A third determining unit, configured to determine a plurality of to-be-determined summary information for the to-be-identified content according to the summary generation model; The screening unit is used to screen out a piece of summary information that meets the quality requirement as the summary information of the content to be identified from the plurality of summary information to be determined.

18. The device according to claim 17, characterized in that The screening unit is used for: According to the content to be identified, determining evaluation parameters respectively corresponding to the plurality of summary information to be determined by using a summary quality evaluation model; The undetermined summary information with the highest evaluation parameter is used as the summary information of the content to be identified.

19. The device according to claim 18, characterized in that The summary quality evaluation model is trained in the following way: Determine a negative training sample according to the content to be processed and the first summary information, and determine a positive training sample according to the content to be processed and the second summary information; The initial evaluation model is trained according to the positive training samples and the negative training samples to obtain the summary quality evaluation model.

20. The device according to claim 17, characterized in that The device also includes: A fourth determining unit, configured to determine, from the reference library, historical summary information having content similarity to the summary information to be determined as target reference summary information; a fifth determining unit, configured to adjust the pending summary information to conform to the content to be identified based on the content expression mode of the target reference summary information, so as to obtain target pending summary information of the content to be identified; The screening unit is used for: A piece of summary information that meets the quality requirement is screened out from the target pending summary information and the plurality of pending summary information as the summary information of the content to be identified.

21. The device according to claim 19, characterized in that The device also includes: The correction unit is configured to perform knowledge error correction on the first summary information before determining the negative training sample, and to perform knowledge error correction on the second summary information before determining the positive training sample.

22. The device according to any one of claims 12 to 16, characterized in that: The training unit is used to: Replacing the output layer of the trained generative model for extracting summary information with the initial output layer to obtain the initial generative model; The content to be processed is used as sample content, and the corresponding second summary information is used as a sample label, and supervised fine-tuning SFT is performed on the initial generative model to obtain a summary generation model.

23. A computer device, characterized in that: The computer device comprises a processor and a memory: The memory is used to store computer programs; The processor is configured to execute the method according to any one of claims 1 to 11 according to the computer program.

24. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, and when the computer program is executed by a computer device, the method according to any one of claims 1 to 11 is implemented.

25. A computer program product comprising a computer program, which, when executed on a computer device, causes the computer device to execute the method according to any one of claims 1 to 11.