Data processing method, device, electronic device, medium and program product
Through multi-dimensional evaluation of natural language generation models, the problem of lack of interpretability and reliance on large-scale training of fact verification methods in the existing technology is solved, and more accurate and comprehensive verification of information authenticity is achieved.
Patent Information
- Application Number
- CN202310668213.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-07
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2043-06-07
AI Technical Summary
Existing fact verification methods only rely on simple literal or semantic matching, lack interpretability, and require training on large-scale supervised corpus, so their effects are limited.
The trained natural language generation model is used to evaluate the information to be verified and related information from multiple dimensions. Evaluation information is generated through evaluation dimensions such as text semantics, text logic, and proof power to comprehensively determine the authenticity of the information.
It improves the decision-making effect of fact verification and uses the general problem-solving capabilities of natural language generation models to evaluate information from different dimensions and provide comprehensive verification results without relying on well-labeled corpus training models.
Smart Images

Figure CN116401339B
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of data processing technology, in particular to knowledge graph technology, and specifically to a data processing method, device, electronic device, computer-readable storage medium and computer program product. Background Art
[0002] The fact verification task refers to retrieving relevant knowledge as evidence from a large-scale text corpus and using this evidence to verify the authenticity of the statement.
[0003] The methods described in this section are not necessarily methods that have been previously conceived or employed. Unless otherwise indicated, it should not be assumed that any method described in this section is considered to be prior art simply because it is included in this section. Similarly, unless otherwise indicated, the issues mentioned in this section should not be considered to have been recognized in any prior art. Summary of the invention
[0004] The present disclosure provides a data processing method, apparatus, electronic device, computer-readable storage medium, and computer program product.
[0005] According to one aspect of the present disclosure, a data processing method is provided, including: determining first information to be verified and at least one second information related to the first information; processing the first information and the at least one second information based on respective evaluation dimensions using a trained natural language generation model to obtain evaluation information respectively for the multiple evaluation dimensions; determining a verification result of the first information based on the first information, the at least one second information and the evaluation information, wherein the verification result indicates the authenticity of the first information.
[0006] According to another aspect of the present disclosure, a data processing device is provided, including: an information acquisition unit, configured to determine first information to be verified and at least one second information related to the first information; an evaluation unit, configured to process the first information and the at least one second information based on each evaluation dimension using a trained natural language generation model to obtain evaluation information for the multiple evaluation dimensions respectively; a verification unit, configured to determine a verification result of the first information based on the first information, the at least one second information and the evaluation information, wherein the verification result indicates the authenticity of the first information.
[0007] According to another aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute the aforementioned method.
[0008] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute the aforementioned method.
[0009] According to another aspect of the present disclosure, a computer program product includes a computer program, wherein the computer program implements the aforementioned method when executed by a processor.
[0010] According to one or more embodiments of the present disclosure, the first information and the second information can be evaluated from multiple dimensions using a trained natural language generation model, thereby obtaining a verification result indicating the authenticity of the first information. Using the above method, the first information and the second information can be evaluated from different dimensions and using external knowledge with the help of the general problem-solving ability of the trained natural language generation model, and an evaluation result can be comprehensively given based on the results obtained from the evaluation.
[0011] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0012] The accompanying drawings exemplarily illustrate the embodiments and constitute a part of the specification, and together with the text description of the specification, are used to explain the exemplary implementation of the embodiments. The embodiments shown are for illustrative purposes only and do not limit the scope of the claims. In all drawings, the same reference numerals refer to similar but not necessarily identical elements.
[0013] Figure 1 A schematic diagram showing an exemplary system in which the various methods described herein may be implemented according to an embodiment of the present disclosure;
[0014] Figure 2 An exemplary flow chart of a data processing method according to an embodiment of the present disclosure is shown;
[0015] Figure 3 An exemplary block diagram showing a data processing technique according to an embodiment of the present disclosure;
[0016] Figure 4 An exemplary block diagram of a data processing device according to an embodiment of the present disclosure is shown;
[0017] Figure 5 A structural block diagram of an exemplary electronic device that can be used to implement the embodiments of the present disclosure is shown. DETAILED DESCRIPTION
[0018] The following is a description of exemplary embodiments of the present disclosure in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be recognized by those of ordinary skill in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, the description of well-known functions and structures is omitted in the following description.
[0019] In the present disclosure, unless otherwise specified, the use of the terms "first", "second", etc. to describe various elements is not intended to limit the positional relationship, temporal relationship, or importance relationship of these elements, and such terms are only used to distinguish one element from another element. In some examples, the first element and the second element may refer to the same instance of the element, and in some cases, based on the description of the context, they may also refer to different instances.
[0020] The terms used in the description of various examples in this disclosure are only for the purpose of describing specific examples and are not intended to be limiting. Unless the context clearly indicates otherwise, if the number of elements is not specifically limited, the element can be one or more. In addition, the term "and / or" used in this disclosure covers any one of the listed items and all possible combinations.
[0021] The embodiments of the present disclosure will be described in detail below with reference to the accompanying drawings.
[0022] Figure 1 FIG. 1 is a schematic diagram of an exemplary system 100 in which various methods and apparatuses described herein may be implemented according to an embodiment of the present disclosure. Figure 1 , the system 100 includes one or more client devices 101, 102, 103, 104, 105, and 106, a server 120, and one or more communication networks 110 coupling the one or more client devices to the server 120. The client devices 101, 102, 103, 104, 105, and 106 may be configured to execute one or more applications.
[0023] In an embodiment of the present disclosure, the server 120 may run one or more services or software applications that enable execution of the method according to an embodiment of the present disclosure.
[0024] In some embodiments, server 120 may also provide other services or software applications, which may include non-virtualized environments and virtualized environments. In some embodiments, these services may be provided as web-based services or cloud services, such as provided to users of client devices 101, 102, 103, 104, 105, and / or 106 under a software as a service (SaaS) model.
[0025] exist Figure 1 In the configuration shown, the server 120 may include one or more components that implement the functions performed by the server 120. These components may include software components, hardware components, or a combination thereof that can be executed by one or more processors. Users operating client devices 101, 102, 103, 104, 105, and / or 106 may in turn utilize one or more client applications to interact with the server 120 to utilize the services provided by these components. It should be understood that a variety of different system configurations are possible, which may differ from the system 100. Therefore, Figure 1 is one example of a system for implementing the various methods described herein and is not intended to be limiting.
[0026] The user may use client devices 101, 102, 103, 104, 105 and / or 106 to input information and obtain verification results for the information. The client device may provide an interface that enables the user of the client device to interact with the client device. The client device may also output information to the user via the interface. Figure 1 Only six client devices are depicted, but one skilled in the art will appreciate that the present disclosure may support any number of client devices.
[0027] Client devices 101, 102, 103, 104, 105 and / or 106 may include various types of computer devices, such as portable handheld devices, general-purpose computers (such as personal computers and laptops), workstation computers, wearable devices, smart screen devices, self-service terminal devices, service robots, game systems, thin clients, various messaging devices, sensors or other sensing devices, etc. These computer devices may run various types and versions of software applications and operating systems, such as MICROSOFT Windows, APPLE iOS, UNIX-like operating systems, Linux or Linux-like operating systems (such as GOOGLE Chrome OS); or include various mobile operating systems, such as MICROSOFT Windows Mobile OS, iOS, Windows Phone, Android. Portable handheld devices may include cellular phones, smart phones, tablet computers, personal digital assistants (PDAs), etc. Wearable devices may include head-mounted displays (such as smart glasses) and other devices. Game systems may include various handheld game devices, Internet-enabled game devices, etc. Client devices are capable of executing a variety of different applications, such as various Internet-related applications, communication applications (such as email applications), short message service (SMS) applications, and may use various communication protocols.
[0028] The network 110 may be any type of network known to those skilled in the art that may support data communications using any of a variety of available protocols, including but not limited to TCP / IP, SNA, IPX, etc. By way of example only, the one or more networks 110 may be a local area network (LAN), an Ethernet-based network, a token ring, a wide area network (WAN), the Internet, a virtual network, a virtual private network (VPN), an intranet, an extranet, a blockchain network, a public switched telephone network (PSTN), an infrared network, a wireless network (e.g., Bluetooth, WIFI), and / or any combination of these and / or other networks.
[0029] Server 120 may include one or more general purpose computers, dedicated server computers (e.g., PC (personal computer) servers, UNIX servers, mid-range servers), blade servers, mainframe computers, server clusters, or any other suitable arrangement and / or combination. Server 120 may include one or more virtual machines running virtual operating systems, or other computing architectures involving virtualization (e.g., one or more flexible pools of logical storage devices that may be virtualized to maintain a server's virtual storage device). In various embodiments, server 120 may run one or more services or software applications that provide the functionality described below.
[0030] The computing units in the server 120 may run one or more operating systems including any of the above operating systems and any commercially available server operating systems. The server 120 may also run any of a variety of additional server applications and / or middle-tier applications, including HTTP servers, FTP servers, CGI servers, JAVA servers, database servers, etc.
[0031] In some implementations, server 120 may include one or more applications to analyze and consolidate data feeds and / or event updates received from users of client devices 101, 102, 103, 104, 105, and / or 106. Server 120 may also include one or more applications to display data feeds and / or real-time events via one or more display devices of client devices 101, 102, 103, 104, 105, and / or 106.
[0032] In some embodiments, the server 120 may be a server of a distributed system, or a server combined with a blockchain. The server 120 may also be a cloud server, or an intelligent cloud computing server or intelligent cloud host with artificial intelligence technology. A cloud server is a host product in a cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and virtual private servers (VPS) services.
[0033] The system 100 may also include one or more databases 130. In some embodiments, these databases may be used to store data and other information. For example, one or more of the databases 130 may be used to store information such as audio files and video files. The databases 130 may reside in various locations. For example, the database used by the server 120 may be local to the server 120, or may be remote from the server 120 and may communicate with the server 120 via a network-based or dedicated connection. The databases 130 may be of different types. In some embodiments, the databases used by the server 120 may be, for example, relational databases. One or more of these databases may store, update, and retrieve data to and from the databases in response to commands.
[0034] In some embodiments, one or more of the databases 130 may also be used by applications to store application data. The databases used by the applications may be different types of databases, such as a key-value store, an object store, or a conventional store backed by a file system.
[0035] Figure 1 The system 100 may be configured and operated in various ways to enable the application of various methods and apparatuses described in the present disclosure.
[0036] According to related technologies, fact-checking methods usually only use simple literal or semantic matching operations, which are not interpretable. The effect is limited to a certain extent, and it needs to be trained on a large-scale supervised corpus to achieve practical performance.
[0037] According to another related technology, the ProoFVer verification algorithm uses a seq2seq model to generate reasoning based on natural logic as proof. Specifically, this technology constructs a proof by combining the spams of multiple evidence sentences and using the entity mentions connecting these sentences. The authenticity of the statement is verified by following certain deduction rules on this proof. In this way, ProoFVer first provides better explainability, and the effect is greatly improved compared to the previous method of using only evidence for fact verification.
[0038] However, related technologies only mine information from the data itself and require training based on large-scale supervised corpus.
[0039] In order to improve the decision-making effect of fact verification tasks, the present disclosure provides a new data processing method.
[0040] Figure 2 An exemplary flow chart of a data processing method according to an embodiment of the present disclosure is shown.
[0041] In step S202, first information to be verified and at least one item of second information related to the first information are determined.
[0042] In step S204, the first information and at least one item of second information are processed based on each evaluation dimension using a trained natural language generation model to obtain evaluation information for each of the multiple evaluation dimensions.
[0043] In step S206 , a verification result of the first information is determined based on the first information, at least one item of second information, and the evaluation information, wherein the verification result indicates the authenticity of the first information.
[0044] By using the data processing method provided by the embodiments of the present disclosure, the first information and the second information can be evaluated from multiple dimensions using the trained natural language generation model, thereby obtaining a verification result indicating the authenticity of the first information. By using the above method, the first information and the second information can be evaluated from different dimensions and using external knowledge with the help of the general problem-solving ability of the trained natural language generation model, and an evaluation result can be comprehensively given based on the evaluation results.
[0045] The principles of the present disclosure will be described in detail below.
[0046] In step S202, first information to be verified and at least one item of second information related to the first information may be determined.
[0047] The first information may be declaration information. The second information may be evidence information. The content of the evidence information is related to the content of the declaration information. For example, the first information may be a declaration that "sweating does not equal fat burning". For example, the evidence information may be "the only way to get rid of fat is to increase your heart rate through aerobic exercise". The first information and the second information may be obtained by user input, by reading from a database storing information, or from a network. The specific method of obtaining the first information and the second information is not limited in the embodiments of the present disclosure.
[0048] In step S204, the first information and at least one item of second information may be processed based on various evaluation dimensions using a trained natural language generation model to obtain evaluation information for each of the multiple evaluation dimensions.
[0049] Among them, the above-mentioned natural language generation model can be a large language model (Large Language Model, LLM, also known as a large model). A large language model refers to a natural language generation model that has been trained with a large-scale data set, such as a generative pre-trained Transformer model. The large-scale data set mentioned here refers to a data set with a training data volume of at least GB. The natural language generation model trained in this way has a parameter set of at least hundreds of millions. In some examples, the natural language generation model can be a question-and-answer model, such as a generative dialogue model. The natural language generation model trained with a large-scale data set has a certain general problem-solving ability, and can understand and judge the currently processed information with the help of external knowledge, without the need to annotate the corpus for fact verification tasks and use the annotated corpus to train the model.
[0050] In some embodiments, the multiple evaluation dimensions may include one or more of the following: text semantics, text logic, proof power, and the relationship between the first information and each second information. By understanding and judging the content of the first information and the second information from different evaluation dimensions, the authenticity of the first information can be comprehensively verified from multiple angles.
[0051] The text semantics may include an explanation of at least one word in the first information and / or the second information. By explaining at least one word in the first information and / or the second information and giving a corresponding interpretation, it can help understand the text meaning of the entire declaration information or evidence information.
[0052] The text logic may include the internal consistency of the first information and / or the second information. For example, the language logic, information rationality, legality, etc. of the first information and / or the second information may be evaluated to obtain an evaluation result of whether the content of the first information and / or the second information has internal consistency. Internal consistency can reflect the reliability of information and affect the verification result of the authenticity of the information.
[0053] The probative force may include at least one of the credibility, completeness, accuracy, timeliness, bias, and integration results of the second information. By evaluating the probative force of the second information, it is possible to evaluate whether the second information can provide the ability to verify the authenticity of the first information.
[0054] The relationship between the first information and each second information may also be evaluated. For example, the relationship between the first information and the second information may be one of implication, equivalence, conflict, and neutrality. By evaluating the relationship between the first information and each second information, the authenticity of the content of the first information may be evaluated based on the content of the second information.
[0055] In some embodiments, the evaluation information for multiple dimensions obtained in step S204 may include at least one of the following: knowledge information for each evaluation dimension; and preliminary verification information on the authenticity of the first information for each evaluation dimension.
[0056] In some examples, the first information to be verified and / or the second information related to the first information can be input into a natural language generation model, and the natural language generation model is used to generate knowledge information of each evaluation dimension. The knowledge information of each evaluation dimension describes the specific content of the evaluation result of each evaluation dimension in a natural language. In some examples, a prompt can be added to the input to control the amount of information given by the natural language generation model, such as controlling the number of words in the answer.
[0057] An example of determining knowledge information for each dimension is given below.
[0058] For the evaluation dimension of the text semantics of the first information, the natural language generation model can be input with the following input: "Please indicate which words in the following statement need to be explained and give corresponding definitions. The explanation of these words will help people understand the meaning of the entire statement. Your answer should be as clear and concise as possible. Please keep it within 100 words and try not to repeat the given text in large quantities. Statement: Sweating does not mean burning fat." The response of the natural language generation model can be determined as the knowledge information for the text semantics of the first information.
[0059] For the evaluation dimension of the text logic of the first information, the natural language generation model can be input with the following input: "Please evaluate the internal consistency of the following statement, including the logic of the statement, the rationality and legality of the information, etc. When judging the logic of the statement, please do not use external common sense knowledge, you should only consider the content of the statement itself. When judging the rationality and legality of the information in the statement, you should consider using external knowledge, or based on your existing knowledge, make a scientific judgment about the statement. Your answer should be as clear and concise as possible. Please keep it within 100 words, and try not to repeat the given text in large quantities. Statement: Sweating does not mean burning fat", and determine the response of the natural language generation model as the knowledge information for the text logic of the first information.
[0060] Regarding the evaluation dimension of the probative force of the second information, the natural language generation model can be input with the following input: "Evaluate the credibility, completeness, accuracy, timeliness, and bias of each piece of evidence in the following evidence set for verifying the authenticity of the statement. Please do not give the relationship between different pieces of evidence, and do not cross-understand multiple pieces of evidence. The judgment of each piece of evidence can be based on the statement (each piece of evidence exists only to help verify the authenticity of the statement). The judgment results you give are required to be naturally readable and consistent with human thinking logic. Your answer should be as clear and concise as possible. Please keep it within 300 words, and try not to repeat the given text in large quantities. Evidence: The only way to make fat disappear is to increase your heart rate through aerobic exercise." The response of the natural language generation model is determined as the knowledge information regarding the probative force of the second information (the credibility, completeness, accuracy, timeliness, and bias of the second information).
[0061] Regarding the evaluation dimension of the probative force of the second information, you can also input "Given the set of evidence shown below. Integrate the evidence set and give your understanding and judgment of the integrated content. The integration process requires that you should not simply splice, but should conform to human thinking logic. And the given judgment results are naturally readable. Your answer should be as clear and concise as possible. Please keep it within 300 words, and try not to repeat the given text in large quantities. Evidence: The only way to make fat disappear is to increase your heart rate through aerobic exercise" into the natural language generation model, and determine the response of the natural language generation model as the knowledge information regarding the probative force of the second information (the integration result of the second information).
[0062] For the evaluation dimension of the relationship between the first information and each second information, the natural language generation model can be input with the following input: "Given the statement and evidence set shown below. Please judge the relationship between the statement and each piece of evidence in the evidence set, and determine whether it is implication, equivalence, conflict, or neutrality? And please give your opinion on each piece of evidence to verify the authenticity of the statement, whether it will give a conclusion of support, opposition, or insufficient information. Your answer should be as clear and concise as possible. Please keep it within 300 words, and try not to repeat the given text in large quantities. Statement: Sweating does not mean burning fat. Evidence: The only way for fat to disappear is to increase your heart rate through aerobic exercise.", and determine the response of the natural language generation model as the knowledge information for the relationship between the first information and each second information.
[0063] In other examples, the first information to be verified and / or the second information related to the first information can be input into the natural language generation model, and the natural language generation model is used to generate preliminary verification information of the authenticity of the first information for each evaluation dimension. In this example, the length of the evaluation result output by the natural language is controlled in the form of an option. In the example, the natural language model outputs preliminary verification information of the authenticity verification of the statement from different evaluation dimensions.
[0064] An example of determining preliminary verification information of each dimension is given below. In some implementations, the knowledge information of each evaluation dimension may be input into a natural language generation model to obtain preliminary verification information. In some examples, the knowledge information of each evaluation dimension may be generated by a natural language generation model.
[0065] For the evaluation dimension of text semantics, the natural language generation model can be input with "It is known that the authenticity verification of a statement can be subdivided into the following five labels: \n Completely correct: statements based on reliable evidence and facts are widely believed to be correct. \n Mostly correct: These statements are mainly correct, but there may be some small uncertainties or disputes. \n Uncertain: In these statements, neither the correctness nor the error can be determined, usually due to a lack of sufficient information or evidence. \n Mostly wrong: These statements are mainly wrong, but there may be some small correctness or disputes. \n Completely wrong: statements based on reliable evidence and facts are widely believed to be wrong. \n \n From the perspective of dimension 1: "Text understanding for statements and evidence separately", which of the five labels do you think this statement belongs to? Please choose an answer from these five labels, and it is forbidden to give your explanation process. Statement: Sweating does not mean burning fat. Evidence: The only way for fat to disappear is to increase your heart rate through aerobic exercise." The natural language generation model will give preliminary verification information on the authenticity of the statement in terms of text semantics based on the above input information, including one selected from the above five labels. In some examples, the information input into the natural language generation model may also include knowledge information of the text semantic dimension. The input knowledge information may be determined by the user or generated using the natural language generation model.
[0066] For the evaluation dimension of text logic, the natural language generation model can be input with "It is known that the authenticity verification of a statement can be subdivided into the following five labels: \n Completely correct: statements based on reliable evidence and facts are widely believed to be correct. \n Mostly correct: These statements are mainly correct, but there may be some small uncertainties or disputes. \n Uncertain: In these statements, neither the correctness nor the error can be determined, usually due to a lack of sufficient information or evidence. \n Mostly wrong: These statements are mainly wrong, but there may be some small correctness or disputes. \n Completely wrong: statements based on reliable evidence and facts are widely believed to be wrong. \n \n From the perspective of dimension 2: "Evaluate the rationality and legitimacy of information for statements and evidence respectively. You should consider using external knowledge, or based on your existing knowledge, to make scientific judgments on statements and evidence respectively", which of the five labels do you think this statement belongs to? Please choose an answer from these five labels, and it is forbidden to give your explanation process. Statement: Sweating does not mean burning fat. Evidence: The only way to make fat disappear is to increase your heart rate through aerobic exercise." The natural language generation model will provide preliminary verification information on the authenticity of the statement in terms of text logic based on the above input information, including one selected from the above five tags. In some examples, the information input to the natural language generation model may also include knowledge information of the text logic dimension. The input knowledge information may be determined by the user or generated using the natural language generation model.
[0067] Regarding the evaluation dimension of the probative force of the text, the natural language generation model can be input with "It is known that the authenticity verification of the statement can be subdivided into the following five labels: \n Completely correct: statements based on reliable evidence and facts are widely believed to be correct. \n Mostly correct: These statements are mainly correct, but there may be some small uncertainties or disputes. \n Uncertain: In these statements, neither the correctness nor the error can be determined, usually due to the lack of sufficient information or evidence. \n Mostly wrong: These statements are mainly wrong, but there may be some small correctness or disputes. \n Completely wrong: statements based on reliable evidence and facts are widely believed to be wrong. \n \n From the perspective of dimension 3: "Integrating the information of all evidence in the evidence set requires that you should not simply splice in the integration process, but should conform to the logic of human thinking", which of the five labels do you think this statement belongs to? Please choose an answer from these five labels, and it is forbidden to give your explanation process. Statement: Sweating does not mean burning fat. Evidence: The only way for fat to disappear is to increase your heart rate through aerobic exercise". The natural language generation model will give preliminary verification information on the authenticity of the statement in terms of the probative force of the evidence based on the above input information, including one selected from the above five labels. In some examples, the information input into the natural language generation model may also include knowledge information of the proof force dimension. The input knowledge information may be determined by the user or generated using the natural language generation model.
[0068] For the evaluation dimension of the relationship between the first information and the second information, the natural language generation model can be input with "It is known that the authenticity verification of the statement can be subdivided into the following five labels: \n Completely correct: statements based on reliable evidence and facts are widely believed to be correct. \n Mostly correct: These statements are mainly correct, but there may be some small uncertainties or disputes. \n Uncertain: In these statements, neither the correctness nor the error can be determined, usually due to the lack of sufficient information or evidence. \n Mostly wrong: These statements are mainly wrong, but there may be some small correctness or disputes. \n Completely wrong: statements based on reliable evidence and facts are widely believed to be wrong. \n \n From the perspective of dimension 4: "Evaluate the relationship between the statement and each piece of evidence, whether it is strong correlation, weak correlation, neutral, strong conflict, or weak conflict", which of the five labels do you think this statement belongs to? Please choose an answer from these five labels, and it is forbidden to give your explanation process. Statement: Sweating does not mean burning fat. Evidence: The only way for fat to disappear is to increase your heart rate through aerobic exercise." The natural language generation model will provide preliminary verification information on the authenticity of the statement based on the above input information, including one selected from the above five tags. In some examples, the information input to the natural language generation model may also include knowledge information on the relationship dimension between the statement and the evidence. The input knowledge information may be determined by the user or generated using the natural language generation model.
[0069] In step S206 , a verification result of the first information may be determined based on the first information, the at least one item of second information, and the evaluation information, wherein the verification result indicates the authenticity of the first information.
[0070] In some embodiments, the information to be verified for the first information can be determined based on the first information, at least one item of the second information, and the evaluation information, and the verification result can be determined based on the information to be verified. In some examples, the information to be verified can be obtained by directly splicing or combining the first information, at least one item of the second information, and the evaluation information. In other examples, the first information, at least one item of the second information, and the evaluation information can be integrated, deleted, deformed, etc., and then the information to be verified is generated.
[0071] In some implementations, the information to be verified may be classified to obtain a verification result. The information to be verified may be input into a trained classification model, and the verification result may be determined based on the classification result of the classification model. The information to be verified may be obtained by directly concatenating the first information, at least one second information, and the evaluation information. The classification model may be any commonly used classification model in the art, such as logistic regression, support vector machine, convolutional network, etc. The classification model may be configured to output three classification results, including "correct", "wrong", and "uncertain". The label of the classification result may correspond to the determined verification result.
[0072] In other implementations, the information to be verified can be input into a natural language generation model to obtain a verification result. In some examples, the information to be verified can be directly input into a natural language generation model to obtain a verification result. For example, when the natural language generation model does not generate knowledge information of each evaluation dimension for each evaluation dimension, but only gives an evaluation result in the form of an option, the information to be verified can be directly input into the natural language generation model to obtain a verification result. In other examples, in order to enable the natural language generation model to have the ability to infer the verification result based on the information to be verified, the natural language generation model can be fine-tuned in a manner based on a few-shot prompting. The content of the few prompts can be determined using sample information. After the natural language generation model generates knowledge information of each evaluation dimension for each evaluation dimension, the natural language generation model can be fine-tuned using a specific reasoning process.
[0073] The following steps can be performed before inputting the information to be verified into the natural language generation model: determining multiple sample evaluation information for multiple evaluation dimensions for the first sample information based on the first sample information and at least one item of second sample information; a sample reasoning process based on the sample evaluation information for verifying the first sample information; and inputting the sample reasoning process into the natural language generation model.
[0074] In some examples, first sample information and at least one item of second sample information related to the first sample information may be determined.
[0075] For example, the first sample information may include a sample statement: Sweating equals fat burning.
[0076] The at least one second sample information may include a sample evidence set:
[0077] Evidence 1: But this is not true. There is no necessary relationship between sweating and fat burning.
[0078] Evidence 2: Fat is stored calories in the body, and the only way to make them disappear is to raise your heart rate through aerobic exercise and put yourself in a state of caloric deficit, not measured by how much sweat you sweat;
[0079] Evidence 3: Therefore, sweating does not prove that fat is burning, and sweating a lot does not mean that the fat burning effect is good;
[0080] Evidence 4: It is true that if you sweat more, your weight will decrease, but what is lost is water in the body, not fat.
[0081] Based on the aforementioned multiple evaluation dimensions, multiple sample evaluation information for the first sample information for multiple evaluation dimensions can be determined based on the first sample information and at least one item of the second sample information. For example, the text of the sample statement and the sample evidence set can be semantically understood, the credibility, completeness, accuracy, timeliness and bias of each piece of evidence in the sample evidence set can be evaluated, and the relationship between the sample statement and each piece of evidence in the sample evidence set can be evaluated.
[0082] The sample evaluation information can be used to verify the sample reasoning process of the first sample information. In the example, the authenticity of the sample statement can be verified by reasoning based on the following steps:
[0083] Step 1: Understand the claim and evidence. The claim states that "sweating equals burning fat", while evidence 1, 2, 3, and 4 provide information related to the claim and deny the claim;
[0084] Step 2: Evaluate the evidence. Based on the credibility, completeness, accuracy, timeliness and bias of the evidence, it is concluded that all four pieces of evidence have high credibility and accuracy, and there is no obvious bias;
[0085] Step 3: Analyze the relationship between the statement and the evidence. There is a conflict between the statement and evidence 1, 2, 3, and 4, and all the evidence refutes the statement;
[0086] In summary, the evidence all provides information related to the claim, and all refutes the claim, and the evidence has a high degree of credibility and accuracy. So we can draw the final conclusion: against the claim "sweating equals fat burning".
[0087] The above-mentioned statement, evidence set and sample reasoning process can be input into the natural language generation model to fine-tune the natural language generation model so that the natural language generation model learns the ability to perform authenticity verification reasoning based on the statement, evidence and evaluation information.
[0088] Figure 3 An exemplary block diagram of a data processing technique according to an embodiment of the present disclosure is shown.
[0089] like Figure 3 As shown, in block 310 , first information to be verified (claim 311 ) and second information for verifying the first information (evidence 312 ) may be determined.
[0090] At block 320, input information for obtaining evaluation information from multiple evaluation dimensions may be determined. The input information may prompt the trained natural language generation model to output an evaluation result according to the requirements in the input information.
[0091] At block 330, the input information may be processed using a natural language generation model to obtain evaluation results 340 for each evaluation dimension. Figure 2 Step S204 described above is used to generate the evaluation result.
[0092] At block 350, a verification result for the first information may be generated based on the first information, the second information, and the evaluation result. Figure 2 The verification result is generated by step S206 described above.
[0093] Figure 4 An exemplary block diagram of a data processing device according to an embodiment of the present disclosure is shown.
[0094] like Figure 4 As shown, the data processing device 400 may include an information acquisition unit 410 , an evaluation unit 420 , and a verification unit 430 .
[0095] The information acquisition unit 410 may be configured to determine first information to be verified and at least one item of second information related to the first information.
[0096] The evaluation unit 420 may be configured to process the first information and at least one item of the second information based on various evaluation dimensions using a trained natural language generation model to obtain evaluation information for each of the multiple evaluation dimensions.
[0097] The verification unit 430 may be configured to determine a verification result of the first information based on the first information, the at least one item of the second information, and the evaluation information, wherein the verification result indicates authenticity of the first information.
[0098] In some embodiments, the plurality of evaluation dimensions may include one or more of the following: text semantics, text logic, the probative force of the second information, and the relationship between the first information and each second information.
[0099] In some embodiments, the text semantics may include an explanation for at least one word in the first information and / or the second information.
[0100] In some embodiments, the text logic may include internal consistency of the first information and / or the second information.
[0101] In some embodiments, the proof may include at least one of the credibility, completeness, accuracy, timeliness, bias, and multi-text integration results of the second information.
[0102] In some embodiments, the evaluation information for multiple evaluation dimensions may include at least one of the following: knowledge information for each evaluation dimension; and preliminary verification information on the authenticity of the first information for each evaluation dimension.
[0103] In some embodiments, the verification unit may be configured to: determine information to be verified for the first information based on the first information, at least one item of second information, and the evaluation information; and determine a verification result based on the information to be verified.
[0104] In some embodiments, determining the verification result based on the information to be verified may include: classifying the information to be verified to obtain the verification result.
[0105] In some embodiments, determining the verification result based on the information to be verified may include: inputting the information to be verified into a natural language generation model to obtain the verification result.
[0106] In some embodiments, the data processing device may further include a training unit, which may be configured to: determine first sample information and at least one second sample information related to the first sample information; determine multiple sample evaluation information for multiple evaluation dimensions for the first sample information based on the first sample information and at least one second sample information; verify a sample reasoning process for the first sample information based on the sample evaluation information; and input the sample reasoning process into a natural language generation model.
[0107] In some embodiments, the natural language generation model may be a question answering model.
[0108] In some embodiments, the first information may be declaration information, and the at least one item of the second information may be evidence information.
[0109] It should be understood that Figure 4 The various modules or units of the apparatus 400 shown in FIG. 4 can be used in conjunction with the reference Figure 2 The steps in the method 200 described above correspond to each other. Therefore, the operations, features and advantages described above for the method 200 are also applicable to the device 400 and the modules and units included therein. For the sake of brevity, some operations, features and advantages are not described in detail here.
[0110] Although specific functionality is discussed above with reference to specific modules, it should be noted that the functionality of the various units discussed herein may be separated into multiple units, and / or at least some functionality of multiple units may be combined into a single unit.
[0111] It should also be understood that various techniques may be described herein in the general context of software hardware elements or program modules. Figure 4 The various units described may be implemented in hardware or in hardware in combination with software and / or firmware. For example, these units may be implemented as computer program codes / instructions, which are configured to be executed in one or more processors and stored in a computer-readable storage medium. Alternatively, these units may be implemented as hardware logic / circuits. For example, in some embodiments, one or more of units 410 to 430 may be implemented together in a system on chip (System on Chip, SoC). SoC may include an integrated circuit chip (which includes a processor (e.g., a central processing unit (CPU), a microcontroller, a microprocessor, a digital signal processor (DSP), etc.), a memory, one or more communication interfaces, and / or one or more components in other circuits), and may optionally execute the received program code and / or include embedded firmware to perform functions.
[0112] According to another aspect of the present disclosure, an electronic device is also provided, including: at least one processor; and a memory communicatively connected to the at least one processor; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the data processing method according to an embodiment of the present disclosure.
[0113] According to another aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is also provided, where the computer instructions are used to enable the computer to execute the data processing method according to the embodiment of the present disclosure.
[0114] According to another aspect of the present disclosure, a computer program product is further provided, including a computer program, wherein the computer program implements the data processing method according to the embodiment of the present disclosure when executed by a processor.
[0115] In the technical solution of the present disclosure, the collection, storage, use, processing, transmission, provision and disclosure of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0116] refer to Figure 5, a block diagram of an electronic device 500 that can be used as a server or client of the present disclosure will now be described, which is an example of a hardware device that can be applied to various aspects of the present disclosure. The electronic device is intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workbenches, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or required herein.
[0117] like Figure 5 As shown, the electronic device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. In the RAM 503, various programs and data required for the operation of the electronic device 500 can also be stored. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.
[0118] Multiple components in the electronic device 500 are connected to the I / O interface 505, including: an input unit 506, an output unit 507, a storage unit 508, and a communication unit 509. The input unit 506 can be any type of device that can input information to the electronic device 500. The input unit 506 can receive input digital or character information and generate key signal input related to user settings and / or function control of the electronic device, and can include but is not limited to a mouse, a keyboard, a touch screen, a track pad, a track ball, a joystick, a microphone, and / or a remote controller. The output unit 507 can be any type of device that can present information, and can include but is not limited to a display, a speaker, a video / audio output terminal, a vibrator, and / or a printer. The storage unit 508 can include but is not limited to a disk, an optical disk. The communication unit 509 allows the electronic device 500 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks, and can include but is not limited to a modem, a network card, an infrared communication device, a wireless communication transceiver, and / or a chipset, such as a Bluetooth device, an 802.11 device, a WiFi device, a WiMax device, a cellular communication device, and / or the like.
[0119] The computing unit 501 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various dedicated artificial intelligence (AI) computing chips, various computing units running machine learning model algorithms, digital signal processors (DSPs), and any appropriate processors, controllers, microcontrollers, etc. The computing unit 501 performs the various methods and processes described above, such as method 200. For example, in some embodiments, the method 200 may be implemented as a computer software program, which is tangibly contained in a machine-readable medium, such as a storage unit 508. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the method 200 described above may be performed. Alternatively, in other embodiments, the computing unit 501 may be configured to perform the method 200 in any other appropriate manner (e.g., by means of firmware).
[0120] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0121] The program code for implementing the method of the present disclosure may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, enables the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0122] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or device, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0123] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).
[0124] The systems and techniques described herein may be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), and the Internet.
[0125] A computer system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The relationship of client and server is generated by computer programs running on respective computers and having a client-server relationship with each other. The server may be a cloud server, a server of a distributed system, or a server combined with a blockchain.
[0126] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially or in different orders, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved, and this document does not limit this.
[0127] Although the embodiments or examples of the present disclosure have been described with reference to the accompanying drawings, it should be understood that the above-mentioned methods, systems and devices are merely exemplary embodiments or examples, and the scope of the present invention is not limited by these embodiments or examples, but only by the claims after authorization and their equivalent scope. Various elements in the embodiments or examples can be omitted or replaced by their equivalent elements. In addition, each step can be performed in an order different from that described in the present disclosure. Further, the various elements in the embodiments or examples can be combined in various ways. It is important that with the evolution of technology, many elements described herein can be replaced by equivalent elements that appear after the present disclosure.
Claims
1. A data processing method, comprising: Determining first information to be verified and at least one second information related to the first information; The first information and the at least one second information are processed based on multiple evaluation dimensions using a trained natural language generation model to obtain corresponding evaluation information for each evaluation dimension, wherein the evaluation information includes knowledge information for each evaluation dimension, and the knowledge information for each evaluation dimension describes the evaluation results of each evaluation dimension for the first information and each item of the second information in a natural language, and wherein the multiple evaluation dimensions include at least two of the following: text semantics, text logic, the probative force of the second information, and the relationship between the first information and each item of the second information; determining a verification result of the first information based on the first information, the at least one item of second information, and the evaluation information, wherein the verification result indicates authenticity of the first information, Wherein, determining the verification result of the first information based on the first information, the at least one item of the second information, and the evaluation information includes: determining information to be verified for the first information based on the first information, the at least one item of second information, and the evaluation information; Inputting the information to be verified into the natural language generation model to obtain the verification result, Before inputting the information to be verified into the natural language generation model, the method further includes: Determine first sample information and at least one item of second sample information related to the first sample information; Determine, based on the first sample information and the at least one item of second sample information, a plurality of sample evaluation information for the first sample information for the plurality of evaluation dimensions; a sample reasoning process for verifying the first sample information based on the sample evaluation information; The first sample information, the second sample information and the sample reasoning process are input into the natural language generation model, so that the natural language generation model learns the ability to perform authenticity verification reasoning.
2. The data processing method according to claim 1, wherein: The relationship between the first information and each of the second information is one of implication, equivalence, conflict, and neutrality.
3. The data processing method according to claim 1, wherein: The text semantics includes an explanation of at least one word in the first information and / or the second information.
4. The data processing method according to claim 1, wherein: The text logic includes internal consistency of the first information and / or the second information.
5. The data processing method according to claim 1, wherein: The proof force includes at least one of the credibility, completeness, accuracy, timeliness, bias, and multi-text integration results of the second information.
6. The data processing method according to any one of claims 1 to 5, wherein: The evaluation information for the multiple evaluation dimensions also includes: Preliminary verification information on the authenticity of the first information for each evaluation dimension.
7. The data processing method according to any one of claims 1 to 5, wherein: The natural language generation model is a question-answering model.
8. The data processing method according to any one of claims 1 to 5, wherein the first information is declaration information, and the at least one item of second information is evidence information.
9. A data processing device, comprising: an information acquisition unit, configured to determine first information to be verified and at least one second information related to the first information; An evaluation unit is configured to process the first information and the at least one second information based on a plurality of evaluation dimensions using a trained natural language generation model to obtain corresponding evaluation information for each evaluation dimension, wherein the evaluation information includes knowledge information for each evaluation dimension, the knowledge information for each evaluation dimension describes the evaluation results of each evaluation dimension for the first information and each item of the second information in a natural language, and wherein the plurality of evaluation dimensions include at least two of the following: text semantics, text logic, the probative force of the second information, and a relationship between the first information and each item of the second information; a verification unit configured to determine a verification result of the first information based on the first information, the at least one item of second information, and the evaluation information, wherein the verification result indicates the authenticity of the first information, Wherein, the verification unit is configured to: determining information to be verified for the first information based on the first information, the at least one item of second information, and the evaluation information; Inputting the information to be verified into the natural language generation model to obtain the verification result, The data processing device further comprises a training unit, which is configured to: Determine first sample information and at least one item of second sample information related to the first sample information; Determine, based on the first sample information and the at least one item of second sample information, a plurality of sample evaluation information for the first sample information for the plurality of evaluation dimensions; a sample reasoning process for verifying the first sample information based on the sample evaluation information; The first sample information, the second sample information and the sample reasoning process are input into the natural language generation model, so that the natural language generation model learns the ability to perform authenticity verification reasoning.
10. The data processing apparatus according to claim 9, wherein: The relationship between the first information and each of the second information is one of implication, equivalence, conflict, and neutrality.
11. The data processing apparatus according to claim 9, wherein: The text semantics includes an explanation of at least one word in the first information and / or the second information.
12. The data processing apparatus according to claim 9, wherein: The text logic includes internal consistency of the first information and / or the second information.
13. The data processing apparatus according to claim 9, wherein: The proof force includes at least one of the credibility, completeness, accuracy, timeliness, bias, and multi-text integration results of the second information.
14. The data processing device according to any one of claims 9 to 13, wherein: The evaluation information for the multiple evaluation dimensions also includes: Preliminary verification information on the authenticity of the first information for each evaluation dimension.
15. The data processing device according to any one of claims 9 to 13, wherein: The natural language generation model is a question-answering model.
16. The data processing apparatus according to any one of claims 9 to 13, wherein the first information is declaration information, and the at least one item of second information is evidence information.
17. An electronic device comprising: at least one processor; as well as a memory communicatively coupled to the at least one processor; in The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 8.
18. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-8.
19. A computer program product comprising a computer program, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 8 is implemented.
