Leveraging Large Language Models to Detect Influence Campaigns in Social Media

Luca Luceri, Eric Boniardi, Emilio FerraraarXiv 2023

TL;DR

Researchers have developed a novel way to detect social media influence campaigns by "textualizing" non-textual data—like network structures and user metadata—so that Large Language Models (LLMs) can process them. By fine-tuning Llama 2, the team achieved superior performance in identifying malicious actors across diverse, multilingual datasets, outperforming traditional linguistic-based detection methods on newer, unseen campaigns.

What Problem Does This Paper Address?

Social media influence operations (IOs) are a moving target. Malicious actors constantly shift their tactics, languages, and narratives to evade detection. Traditional detection methods often rely on static linguistic cues or manual feature engineering, which struggle to keep pace with the dynamic nature of these campaigns.

Furthermore, the rise of Generative AI has made it nearly impossible to distinguish human-generated content from synthetic propaganda. The authors identify a critical gap: current state-of-the-art (SOTA) methods experience significant performance degradation when applied to "unseen" campaigns—new operations with different tactics than those the models were trained on. This paper explores whether the inherent adaptability and reasoning capabilities of LLMs can bridge this gap.

Methods

The researchers focused on two primary tasks: Tweet Classification (identifying individual propaganda messages) and User Classification (identifying the "drivers" behind the campaigns).

The core innovation lies in how they fed diverse data types into the LLM (specifically Llama 2):

  • Textualizing the Graph: Instead of using traditional graph embeddings, they converted network information into natural language. For example, a retweet relationship was represented as: "User i is connected to j, k, m..."
  • Metadata Integration: User metadata (hashtags, URLs, mentions) was cleaned and formatted into descriptive sentences for the model.
  • Prompting Strategies: They tested three approaches:
  • Zero-Shot: Providing a prompt with or without a formal definition of an "Influence Campaign" or "InfoOp."
    1. Few-Shot: Providing the model with a few labeled examples of organic vs. driver content.
  • Fine-Tuning: Using the LLaMA Factory to adjust model weights specifically for detection tasks.
  • Multi-Input Models: They attempted to concatenate all features (content scores, network connections, centralities, and metadata) into a single, long-context prompt for a specialized version of the model (LLaMA-2-7B-32K).

Datasets

The study utilized a diverse array of real-world data from the Twitter Information Operations archive and Russian troll datasets:

  • Target Countries: Egypt & UAE, Ecuador, Venezuela, and Russia (2016 election trolls).
  • Control Data: "Organic" users and tweets collected by researchers at Indiana University to serve as a baseline for legitimate social media activity.
  • Scale: The datasets included thousands of users and hundreds of thousands of tweets, as detailed in the tables below.

Table 1: User distribution across datasets Table 2: Tweet distribution across datasets

Key Insights and Ideas

  • "Natural Language is All a Graph Needs": The paper validates the emerging idea that LLMs can effectively "reason" about network topology (like PageRank or degree centrality) if that topology is described in plain English. This bypasses the need for complex, specialized graph neural networks.
  • The Adaptability Edge: While traditional linguistic models are highly precise on familiar data, they fail when tactics change. LLMs proved more robust at identifying the intent behind campaigns, even when the specific keywords or narratives were new.
  • The Multi-Input Paradox: Surprisingly, the researchers found that models based on a single feature (like just metadata or just content) often outperformed the "Multi-Input" model. This suggests that simply concatenating different data types into a prompt can cause "interference," where the LLM struggles to weigh conflicting signals.
  • Definitions Matter: In zero-shot settings, providing a detailed definition of an influence campaign (as seen in Figure 4) led to near-perfect recall, though it often came at the cost of precision (the model became "trigger-happy" in labeling content as malicious).
Figure 4: Prompts used for zero-shot classification

Key Results

  • User Classification: The metadata-based LLM was the standout performer, achieving a high AUC of 91.18%. The content-based LLM also performed strongly with an AUC of 76.37%.
  • Tweet Classification: Fine-tuned LLMs achieved an AUC of ~69.6%, which was comparable to the linguistic baseline (69.2%) but showed better potential for generalization to new datasets.
  • Recall vs. Precision: Zero-shot models with definitions reached 95-98% recall, effectively acting as a wide net to catch potential threats, even if they required further human verification to filter out false positives.

Limitations and Future Work

  • Computational Bottlenecks: Due to resource constraints, the researchers only used a subset of available tweets (capping at 100 per user). They suggest that performance would likely scale with more data.
  • Prompt Sensitivity: The poor performance of the few-shot approach (which dropped to near zero in some metrics) was attributed to the subjective, manual selection of examples. Future work will look at automated, representative example selection.
  • Model Size: The study used the 7B parameter version of Llama 2. The authors anticipate that larger models (40B or 70B) would offer even better reasoning capabilities for complex network structures.
  • Feature Interference: The drop in performance for multi-input models highlights a need for better "fusion" techniques—finding ways to let the LLM process different data streams without them muddying the waters.

Summary updated

BibTeX
@misc{luceri2023leveraging,
  author = {Luca Luceri and Eric Boniardi and Emilio Ferrara},
  title = {{Leveraging Large Language Models to Detect Influence Campaigns in Social Media}},
  year = {2023},
  eprint = {2311.07816},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2311.07816},
}
Figure