Can LLMs Forecast Internet Traffic from Social Media?

Jonatan Langlet, Mariano Scazzariello, Flavio Luciani, Marta Burocchi, Dejan Kostic, Marco ChiesaarXiv 2025 · DOI

Abstract

Traditional internet traffic forecasting relies on historical patterns, often failing to predict "black swan" events driven by societal interest. This paper introduces a socio-technical approach that leverages Large Language Models (LLMs) to interpret social media discourse and forecast traffic spikes. By scraping platforms like Reddit and using reasoning-focused LLMs to extract cultural context, the proposed system successfully predicted between 56% and 92% of significant traffic surges across major Content Delivery Networks (CDNs).

Introduction: The Context Blindness of Network Management

Internet traffic forecasting is typically a statistical exercise, focusing on seasonal trends and routine usage. However, this approach suffers from "context blindness," failing to account for non-recurring societal events—such as major video game releases, sporting events, or sudden news—that drive massive, unpredictable spikes in demand. Currently, network operators manage these anomalies manually, often relying on informal monitoring or expensive over-provisioning. The challenge lies in creating an autonomous system capable of "listening" to public discourse to estimate the digital footprint of upcoming events before they occur.

Methodology: A Socio-Technical Pipeline

The researchers developed a proof-of-concept AI pipeline that bridges the gap between social signals and network load. The architecture consists of several integrated stages:

  1. Baseline Forecasting: Standard time-series models establish a "normal" traffic baseline. Deviations (Z-score $\ge$ 3) are isolated as historical spikes for training and validation.
  2. Social Data Acquisition: The system scrapes Reddit, targeting high-engagement posts and outbound links to news or forums to capture a rich record of public discussion.
  3. LLM-Driven Event Inference: Using DeepSeek-R1, the system extracts structured event data (headlines, dates, times) from unstructured text. This is enriched via Retrieval-Augmented Generation (RAG) with Wikipedia data to estimate "hype" factors like audience size and geographic reach.
  4. Correlation and Forecasting: Transformer-based embeddings and k-means clustering group related discussions, allowing the model to correlate structured event abstractions with historical traffic patterns to predict future surges.
The proposed socio-technical forecasting architecture, integrating statistical baselines with social media event inference.

Datasets and Evaluation

The system was trained and evaluated using a multi-modal dataset including 38,000 scraped webpages (Reddit, news, Wikipedia) yielding approximately 10,000 unique traffic-driving events. Traffic data was sourced from real-world measurements at a major European Internet Exchange Point (IXP), specifically focusing on major CDNs. Evaluation was performed against a manually curated set of 29 verified event-spike pairs.

Key Results and Insights

The prototype demonstrated significant predictive power, identifying 56% to 92% of manually investigated traffic spikes across three major CDNs. This far exceeds the capabilities of traditional context-unaware models.

Comparison of manually explained traffic spikes versus events successfully found by the LLM-driven system across three CDNs.

Beyond raw accuracy, the research revealed several key insights:

  • Lead Times: Different event categories offer varying warning windows. TV and film events are often discussed a month in advance, while sports have shorter notice periods.
  • Cultural Context: LLMs act as "cultural translators," distinguishing between local and global events to better predict regional traffic impacts.
  • Aggregate Signal: While individual posts are noisy, the aggregate chatter provides a remarkably accurate lead indicator of digital demand.

Limitations and Future Directions

Despite its success, the system faces challenges. Increasing API costs and anti-scraping measures on social platforms make data acquisition difficult. Furthermore, "breaking news" events with zero lead time remain difficult to forecast, though the system can serve as a real-time explainer. Ethical considerations regarding the monitoring of semi-private spaces also remain a critical area for future policy development. Future work will explore correlating social signals with BGP route shifts to pinpoint specific network impacts.

Summary updated

Abstract

Societal events shape the Internet's behavior. The death of a prominent public figure, a software launch, or a major sports match can trigger sudden demand surges that overwhelm peering points and content delivery networks. Although these events fall outside regular traffic patterns, forecasting systems still rely solely on those patterns and therefore miss these critical anomalies. Thus, we argue for socio-technical systems that supplement technical measurements with an active understanding of the underlying drivers, including how events and collective behavior shape digital demands. We propose traffic forecasting using signals from public discourse, such as headlines, forums, and social media, as early demand indicators. To validate our intuition, we present a proof-of-concept system that autonomously scrapes online discussions, infers real-world events, clusters and enriches them semantically, and correlates them with traffic measurements at a major Internet Exchange Point. This prototype predicted between 56-92% of society-driven traffic spikes after scraping a moderate amount of online discussions. We believe this approach opens new research opportunities in cross-domain forecasting, scheduling, demand anticipation, and society-informed decision making.
BibTeX
@misc{langlet2025can,
  author = {Jonatan Langlet and Mariano Scazzariello and Flavio Luciani and Marta Burocchi and Dejan Kostic and Marco Chiesa},
  title = {{Can LLMs Forecast Internet Traffic from Social Media?}},
  year = {2025},
  eprint = {2509.20123},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.20123},
}
Figure