Introduction
While Large Language Models (LLMs) have demonstrated remarkable persuasive capabilities in dyadic interactions, their ability to navigate and influence the complex dynamics of social networks remains a nascent field of study. Traditional methods for evaluating social influence, such as live A/B testing on platforms like X (formerly Twitter), are often prohibitively slow and raise significant ethical concerns. This research, presented at KDD '25, introduces a novel framework for training LLMs to generate content optimized for "virality" by leveraging simulated social environments.
The RLSF Framework
The core contribution of this work is the Reinforcement Learning from Simulated Feedback (RLSF) pipeline. Unlike standard Reinforcement Learning from Human Feedback (RLHF), which relies on human preferences, RLSF uses a mathematical simulation of information diffusion to provide reward signals to the model.
The process begins with a query $q$, which the LLM uses to generate content $t$. This content is then "injected" into a simulated social network. The simulation calculates the resulting information cascade based on two integrated models:
- Independent Cascade Model: Governs how information spreads from an activated node to its neighbors.
- Bounded Confidence Model: Simulates psychological resistance, where users only engage with content that aligns closely with their pre-existing opinions.
The resulting engagement metric (e.g., number of "activated" users) serves as the reward for fine-tuning the model via Proximal Policy Optimization (PPO).
Methodology and Datasets
The researchers fine-tuned a Gemma-2B model, focusing on its ability to adapt linguistic style and sentiment to different network topologies. The study utilized both synthetic networks (generated via the LFR model to vary homophily and modularity) and real-world datasets:
- Brexit Dataset: Comprising ~7,500 users and over 500k follow relationships from the 2016 UK referendum.
- Italian Referendum Dataset: Featuring ~2,900 users and 161k edges.
These environments allow the model to learn how to "read the room"—identifying whether a positive, neutral, or negative sentiment will trigger the largest cascade within a specific cluster.
Key Insights
Specialized Tuning vs. Model Scale
One of the most striking findings is that a fine-tuned 2B-parameter model consistently outperformed massive zero-shot models like Llama-3.1 (70B) and GPT-4o. While GPT-4o often produces "helpful" and "polite" content, it frequently fails to resonate in adversarial or highly polarized environments where a more aggressive or aligned sentiment is required for engagement.
The Role of Network Structure
The speed and success of the learning process are heavily influenced by the model's position within the network. LLMs placed in "central" nodes (those with high betweenness centrality) learned optimal strategies significantly faster than those in the periphery. This suggests that structural advantage translates directly into faster policy convergence.
Sentiment Alignment over Length
The research debunked the notion that longer, more detailed posts lead to higher engagement. Instead, the primary driver of success was sentiment alignment. In a network dominated by negative opinions, the LLM learned to pivot away from its default "polite" persona to generate content that mirrored the community's sentiment, thereby maximizing its reach.
Conclusion and Ethical Considerations
The study demonstrates that LLMs can be effectively trained to master social network dynamics through simulation. The authors validated their approach against real-world retweet data from the Brexit dataset, achieving a high correlation ($R^2 = 0.86$).
However, the "dual-use" nature of this technology cannot be ignored. While RLSF can be used for constructive purposes, such as optimizing public health campaigns, it also provides a blueprint for automated, high-engagement disinformation. Future work aims to explore the integration of Retrieval-Augmented Generation (RAG) to further enhance the factual resonance of generated content while continuing to investigate the ethical boundaries of automated social influence.
Summary updated