Social media false news detection method and device based on large language model interaction

Through an interaction method based on a large language model, through fine-tuning and multiple rounds of interaction of the generator and discriminator, the problem of insufficient accuracy and reliability in social media fake news detection is solved, and higher detection accuracy and reliability are achieved. .

CN118820902APending Publication Date: 2024-10-22NINGBO ARTIFICIAL INTELLIGENCE RES INST OF SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
CN202411050544.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-01
Publication Date
2024-10-22

AI Technical Summary

Technical Problem

Existing technologies have insufficient accuracy and reliability in detecting fake news on social media, especially when dealing with complex contexts and diverse information.

Method used

Using an interactive method based on a large language model, a fake news detector is built through fine-tuning and multiple rounds of interaction between the generator and the discriminator, and the information exchange and negotiation between the generator and the discriminator are used to improve the reliability of the detection results.

Benefits of technology

It significantly improves the accuracy and reliability of fake news detection on social media and meets the requirements for high accuracy and reliability. Through the multi-round interaction process of the generator and the discriminator, the detection results are made more reliable.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118820902A_ABST
    Figure CN118820902A_ABST
Patent Text Reader

Abstract

The invention discloses a social media false news detection method and device based on large language model interaction, and relates to the technical field of natural language processing, and the method comprises the following steps: 1, obtaining news information to be detected and carrying out the preprocessing; 2, finely adjusting the large language model 1 to obtain a generator; 3, finely adjusting the large language model 2 to obtain a discriminator; step 4, integrating the generator and the discriminator to obtain a false news detector; step 5, training a false news detector; and step 6, inputting the preprocessed news information to be detected into the trained false news detector, and outputting prediction information. The device comprises a data processor module, a generator module, a discriminator module, a false news detector module, a trainer module and a predictor module.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of natural language processing, and in particular to a method and device for detecting fake news in social media based on large language model interaction. Background Art

[0002] The proliferation of the internet, smartphones, and social media platforms has triggered a surge in false information, including fabricated news and fake reviews that spread across different online platforms. Fake news has the power to sway public sentiment, influence decision-making frameworks, and undermine confidence in authoritative sources. Therefore, it is imperative to develop effective methods to identify and mitigate deceptive content spread through online channels. Large language models (LLMs) are popular for their superior performance in various applications, especially in tasks related to natural language processing. The superior performance of LLMs stems from their unique technical characteristics and complex neural network architecture: First, LLMs typically contain billions or even hundreds of billions of parameters. This large-scale parameterization greatly enhances the representation ability of the model, enabling it to capture and understand complex language patterns and semantic relationships. Second, LLMs have accumulated a broad knowledge base through pre-training on massive text data, which enables them to perform well in dealing with a variety of fields and tasks. In addition, LLMs adopt a multi-level deep learning mechanism, allowing the model to abstract and understand semantic information at different levels, thereby generating highly natural and coherent text. Furthermore, LLMs have strong adaptive capabilities and can dynamically adjust outputs according to context and specific tasks, thereby providing highly accurate and personalized solutions.

[0003] However, LLM is not reliable in directly detecting false information and cannot be used to analyze the authenticity of news articles. Currently, the method of using large language models for fake news detection usually uses LLM as an executor of a subtask to assist the final decision.

[0004] Therefore, technicians in this field are committed to developing a method and device for detecting fake news on social media that is completely performed by a large language model, so as to improve the reliability of LLM in directly detecting false information. Summary of the invention

[0005] In view of the above-mentioned defects of the prior art, the technical problem to be solved by the present invention is how to improve the accuracy and reliability of fake news detection in social media and overcome the limitations of the existing methods in processing complex contexts and diverse information.

[0006] To achieve the above object, the present invention provides a social media fake news detection method based on large language model interaction, comprising the following steps: Step 1: Obtain the news information to be detected and perform preprocessing; Step 2: Fine-tune the large language model 1 to obtain a generator; Step 3: Fine-tune the large language model 2 to obtain a discriminator; Step 4: Integrate the generator and the discriminator to obtain a fake news detector; Step 5: training the fake news detector; Step 6: Input the preprocessed news information to be detected into the trained fake news detector and output prediction information.

[0007] Furthermore, in step 1, the acquired news information to be detected includes at least a news title and a news text.

[0008] Further, in the step 1, the preprocessing includes text cleaning and noise removal; The text cleaning includes removing irrelevant characters, punctuation marks and special characters, and correcting text format and encoding errors through regular expressions; The noise removal includes removing obviously off-topic or low-quality entries in the dataset, removing non-text elements, and correcting formatting and coding errors.

[0009] Furthermore, the large language model 1 and the large language model 2 may be open source or closed source language models.

[0010] Furthermore, the large language model 1 is fine-tuned on the politifact dataset, and the training dataset includes news titles, news texts and news labels (true / false).

[0011] Furthermore, the large language model 2 is fine-tuned on a politifact dataset containing the prediction results and analysis of the generator, and the training dataset contains news titles, news texts, news labels (true / false), and the prediction results and analysis of the generator.

[0012] Furthermore, in step 4, the generator and the discriminator reach a consensus through repeated information exchange and negotiation to obtain the fake news detector.

[0013] Furthermore, the fake news detector is trained on a gossipcop dataset, where the training dataset contains news samples pre-labeled with true or false identifiers.

[0014] The present invention also provides a social media fake news detection device based on large language model interaction, comprising: A data processor module, the data processor module is used to process the news information to be detected; A generator module, the generator module is connected to the data processor module and is used to predict whether the news is true or false; A discriminator module, the discriminator module is connected to the generator module and is used to evaluate the reliability of the generator's news prediction; A fake news detector module, wherein the fake news detector module is an integrated module for integrating the generator module and the discriminator module to obtain a fake news detector; A trainer module, the trainer module is connected to the fake news detector module and is used to train the fake news detector; The predictor module is used to input the news information to be detected processed by the data processor into the trained fake news detector and output the predicted information of the news.

[0015] Furthermore, the data processor module includes text cleaning and noise removal.

[0016] The method and device for detecting fake news on social media based on large language model interaction provided by the present invention have at least the following technical effects: 1. Compared with the existing technology, the technical solution provided by the present invention is based on an in-depth analysis of the existing fake news detection methods, and improves the detection accuracy and robustness of the system by introducing the interactive mechanism of a large language model.

[0017] 2. The technical solution provided by the present invention makes the detection results more reliable through multiple rounds of interaction between the generator and the discriminator, which meets the requirements of high accuracy and high reliability in practical applications.

[0018] The concept, specific structure and technical effects of the present invention will be further described below in conjunction with the accompanying drawings to fully understand the purpose, characteristics and effects of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] Figure 1 is a flow chart of a method for detecting fake news on social media according to a preferred embodiment of the present invention; Figure 2 It is a structural diagram of a social media fake news detection device according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0020] The following describes several preferred embodiments of the present invention with reference to the drawings in the specification, so that the technical content is clearer and easier to understand. The present invention can be embodied in many different forms of embodiments, and the protection scope of the present invention is not limited to the embodiments mentioned in the text.

[0021] The embodiment of the present invention proposes a social media fake news detection method based on large language model interaction, which realizes the preprocessing of news information and the coordination of generator and discriminator through fine-tuning of large language model and construction of interactive architecture. The method uses large language model to comprehensively analyze news text from multiple perspectives, including experience common sense, emotional tendency, writing style and writing intention, thereby improving the ability to identify fake news and significantly improving the accuracy and reliability of detection.

[0022] Example 1 like Figure 1 As shown, an embodiment of the present invention provides a social media fake news detection method based on large language model interaction, comprising the following steps: Step 1: Obtain the news information to be detected and perform preprocessing; Step 2: Fine-tune the large language model 1 to obtain a generator; Step 3: Fine-tune the large language model 2 to obtain a discriminator; Step 4: Integrate the generator and the discriminator to obtain a fake news detector; Step 5: Train fake news detector. Step 6: Input the preprocessed news information to be detected into the trained fake news detector and output the predicted information.

[0023] In particular, the acquired news information to be detected includes at least a news title and a news text.

[0024] In particular, in fake news detection, the quality of data directly affects the performance of the model. The preprocessing step aims to ensure the quality and consistency of the input data by removing irrelevant characters, advertisements, video links and other non-text elements through text cleaning and noise removal. This step not only improves the purity of the data, but also reduces the interference information processed by the model, so that the model can focus on the text content itself.

[0025] In step 1, preprocessing includes text cleaning and noise removal.

[0026] Text cleaning includes removing irrelevant characters, punctuation marks, and special characters, and correcting text formatting and encoding errors through regular expressions. Regular expressions are a powerful text processing tool that is widely used to match and replace strings that conform to specific patterns. Regular expressions are of irreplaceable importance in data cleaning and processing tasks.

[0027] Noise removal involves removing entries in the dataset that are obviously off-topic or of low quality, removing non-text elements such as images, video links, advertisements and irrelevant messages in the text, and correcting formatting and encoding errors such as irregular spaces and line breaks.

[0028] Example 2 Based on Example 1, the large language model 1 in step 2 and the large language model 2 in step 3 can be open source or closed source language models, and the large language model 1 and the large language model 2 are two different large language models.

[0029] The generator serves as a preliminary fake news identification module and is fine-tuned based on a large language model.

[0030] Fine-tuning refers to the process of further training and adjusting model parameters on a dataset related to a specific task based on a model that has been pre-trained on a large-scale general dataset.

[0031] Large language models need to be fine-tuned mainly because although pre-trained models have a wide range of language understanding and generation capabilities, this generality cannot fully meet the needs of specific tasks. Different tasks may involve different language patterns, background knowledge, and professional terms, and the knowledge gained by pre-trained models on general datasets is not always directly applicable to the data of specific tasks. Through fine-tuning, the model can further learn and adjust on the dataset of a specific task, so that it can better adapt to and handle the needs of the task, and improve the performance and accuracy of the model on specific tasks. This process can also help the model better understand and handle the professional terms and context of the field by introducing supervised learning in a specific field, thereby achieving optimization and application in specific tasks.

[0032] During the fine-tuning process, the political fact dataset (Politifact) was selected for training, and the language features and patterns of identifying fake news were learned through news samples in the Politifact dataset, where the news samples in the Politifact dataset were pre-labeled with true or false labels. The fine-tuning process enables the generator to capture the false information features hidden in the news text. The purpose of fine-tuning is to enable the generator to not only have general language understanding capabilities, but also to optimize for specific fake news features, thereby improving the accuracy of preliminary judgments.

[0033] The training dataset of the large language model 1 contains news titles, news texts, and news labels (true / false).

[0034] Example 3 Based on Example 1 or 2, in order to further improve the detection accuracy, a second large language model, the discriminator, is designed. The task of the discriminator is to review the output of the generator. By fine-tuning on a dataset containing the generator's preliminary judgments and analysis results, the discriminator can learn how to evaluate the generator's judgments and provide further analysis and feedback. This design idea draws on the human review process, that is, to improve the accuracy of judgments through multiple reviews.

[0035] Specifically, the generator and the discriminator interact with each other. The generator first provides a preliminary judgment, and the discriminator reviews it based on its own analysis and transmits feedback back to the generator. This cyclic interaction process is similar to a discussion between human experts, and after multiple feedback and adjustments, a consensus is finally reached. This design not only improves the reliability of judgment, but also continuously optimizes the performance of the generator through feedback from the discriminator.

[0036] The training dataset required for fine-tuning the large language model 2 is based on the politifact dataset and spliced ​​with the generator's predictions (true / false) and analysis of news, including news titles, news text, news labels (true / false), and the generator's predictions and analysis. The discriminator's task is to conduct a comprehensive analysis of the news text, the generator's predictions (true / false) and analysis of the news, and finally give a judgment (agree / disagree) and analysis of the generator's predictions.

[0037] Example 4 Based on Embodiment 1, 2 or 3, the generator and the discriminator reach a consensus through repeated information exchange and negotiation to obtain a fake news detector.

[0038] The generator and the discriminator make a judgment on the authenticity of news through a series of interactions. The generator first receives and analyzes the news sample to be tested and provides a preliminary judgment on the authenticity. Then, the news sample, the generator's preliminary judgment, and the detailed analysis results are transmitted to the discriminator.

[0039] The discriminator considers this information comprehensively, conducts in-depth analysis, and gives a final true or false judgment and detailed reasons for the judgment. If the discriminator agrees with the generator's preliminary judgment, the whole process ends. However, if the discriminator disagrees with the generator's judgment, it will pass the objection reason back to the generator.

[0040] After receiving feedback from the discriminator, the generator re-analyzes the news information and considers whether it needs to adjust its initial judgment. This iterative interaction process between the generator and the discriminator will continue until both parties reach an agreement or the preset maximum number of interactions is reached.

[0041] In step 5, the fake news detector is trained on the gossipcop dataset, where the news samples in the gossipcop dataset are pre-labeled with true or false labels.

[0042] There are multiple benefits to choosing a different dataset as the training dataset for training the fake news detector than the one used to train the generator and discriminator. First, it can improve the generalization ability of the model, reduce the risk of overfitting, and make the model perform better on new data. Second, different datasets increase the diversity of the data, helping the model learn more features, thereby improving the robustness of the model. In addition, using multiple datasets can balance the possible bias of a single dataset, making the model more adaptable to various types of data.

[0043] Example 5 like Figure 2 As shown, an embodiment of the present invention provides a social media fake news detection device based on large language model interaction, comprising: A data processor module, the data processor module is used to process the news information to be detected; A generator module, which is connected to the data processor module and is used to predict whether news is true or false; The discriminator module is connected to the generator module and is used to evaluate the reliability of the generator's news prediction; Fake news detector module,The fake news detector module is an integrated module, which is used to integrate the generator module and the discriminator module to obtain a fake news detector; A trainer module, the trainer module is connected to the fake news detector module and is used to train the fake news detector; The predictor module is used to input the news information to be detected processed by the data processor into the trained fake news detector, output the predicted information of the news, and realize the fake news detection based on the interaction of the large language model.

[0044] In particular, the data processor module includes text cleaning and noise removal.

[0045] The preferred specific embodiments of the present invention are described in detail above. It should be understood that ordinary technicians in the field can make many modifications and changes based on the concept of the present invention without creative work. Therefore, all technical solutions that can be obtained by technicians in the technical field based on the concept of the present invention through logical analysis, reasoning or limited experiments on the basis of the prior art should be within the scope of protection determined by the claims.

Claims

1. A social media fake news detection method based on large language model interaction, characterized in that: The method comprises the following steps: Step 1: Obtain the news information to be detected and perform preprocessing; Step 2: Fine-tune the large language model 1 to obtain a generator; Step 3: Fine-tune the large language model 2 to obtain a discriminator; Step 4: Integrate the generator and the discriminator to obtain a fake news detector; Step 5: training the fake news detector; Step 6: Input the preprocessed news information to be detected into the trained fake news detector and output prediction information.

2. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: In step 1, the acquired news information to be detected includes at least a news title and a news text.

3. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: In the step 1, the preprocessing includes text cleaning and noise removal; The text cleaning includes removing irrelevant characters, punctuation marks and special characters, and correcting text format and encoding errors through regular expressions; The noise removal includes removing obviously off-topic or low-quality entries in the dataset, removing non-text elements, and correcting formatting and coding errors.

4. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: The large language model 1 and the large language model 2 may be open source or closed source language models.

5. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: The large language model 1 is fine-tuned on the politifact dataset, and the training dataset includes news titles, news texts and news labels (true / false).

6. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: The large language model 2 is fine-tuned on a politifact dataset containing the prediction results and analysis of the generator, and the training dataset contains news titles, news texts, news labels (true / false), and the prediction results and analysis of the generator.

7. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: In step 4, the generator and the discriminator reach a consensus through repeated information exchange and negotiation to obtain the fake news detector.

8. The social media fake news detection method based on large language model interaction as claimed in claim 1, characterized in that: The fake news detector is trained on the gossipcop dataset, which contains news samples pre-labeled with true or false identities.

9. A social media fake news detection device based on large language model interaction, characterized in that: include: A data processor module, the data processor module is used to process the news information to be detected; A generator module, the generator module is connected to the data processor module and is used to predict whether the news is true or false; A discriminator module, the discriminator module is connected to the generator module and is used to evaluate the reliability of the generator's news prediction; A fake news detector module, wherein the fake news detector module is an integrated module for integrating the generator module and the discriminator module to obtain a fake news detector; A trainer module, the trainer module is connected to the fake news detector module and is used to train the fake news detector; The predictor module is used to input the news information to be detected processed by the data processor into the trained fake news detector and output the predicted information of the news.

10. The social media fake news detection device based on large language model interaction as claimed in claim 9, characterized in that: The data processor module includes text cleaning and noise removal.

Citation Information

Patent Citations

  • Large-scale software system anomaly detection method based on generative adversarial network

    CN115659189A

  • False news detection method and device based on big language model analysis guidance

    CN117271768A

  • Machine generated text detection method and system based on block chain and generative adversarial network

    CN117371049A

  • False news detection method based on natural language processing technology

    CN117454882A

  • False news detection method based on large language model and multi-source information integration

    CN118246457A

Cited By

  • Large model forged information detection method based on news emotion and writing style

    CN119849453A