Fractional physics-informed neural networks to model social media virality

Alex Koong, George Em KarniadakisarXiv 2026 · arXiv

TL;DR

Researchers have developed a Fractional Physics-Informed Neural Network (fPINN) that "discovers" the hidden differential equations governing social media virality. By combining fractional calculus with symbolic regression, the model learns how a post's history drives its future growth, outperforming classical models like Bass diffusion by nearly 45% in high-precision trajectory reconstruction.

What Problem Does This Paper Address?

Predicting how a post goes viral is notoriously difficult. Existing approaches generally fall into two camps: growth-curve models (like the Logistic or Bass models) and self-exciting point processes (like Hawkes processes).

The problem is that growth curves are "Markovian"—they assume future growth depends only on the current state, ignoring the post's history. Conversely, point processes capture history but often require event-level timestamps that are hard to get, and they usually assume a fixed "memory kernel" rather than learning it from the data.

The authors aim to bridge this gap by using Scientific Machine Learning (SciML) to discover an interpretable governing equation that learns both the nonlinear growth law and the strength of temporal memory directly from noisy, hourly engagement data.

Methods

The core of the approach is a Fractional PINN. Unlike standard derivatives that look only at the instantaneous rate of change, the Caputo fractional derivative ($D^\beta_t$) integrates over a post's entire history. The order of the derivative, $\beta$, acts as a "memory" parameter: as $\beta \to 0$, history becomes dominant; as $\beta \to 1$, the system becomes a standard, memoryless differential equation.

Key technical innovations include:

  • Equation Discovery: A neural network represents the unknown growth law, which is later "distilled" into a human-readable equation using symbolic regression (PySR).
  • Fully Whitened Residual: The authors discovered that standard PINN loss functions fail on noisy fractional data because the fractional operator spreads noise across time steps, creating a "scale artifact" that biases the results. They developed a noise-aware loss function that accounts for the full covariance of the residual.
  • Teacher-Student Forcing: Recognizing that virality dynamics change over time, they partitioned the 24-hour window into four segments, training independent PINNs on each to capture the transition from "burst" to "relaxation" phases.

Datasets

  • Synthetic Data: Used to validate that the model could accurately recover known parameters ($\beta$ and the growth law) from clean and noisy data.
  • Real-world X (Twitter) Data: A custom dataset of 503 posts (348 for training, 86 for testing) collected between November 2025 and January 2026. The data tracks cumulative engagements (likes, comments, reposts, quotes) at hourly intervals for the first 24 hours.

Key Insights and Ideas

  • Memory is Non-Stationary: One of the biggest "aha" moments was that a single $\beta$ cannot describe a post's entire life. Virality starts as a deeply memory-dependent "burst" ($\beta \approx 0.23$) and evolves into a nearly memoryless, integer-order "relaxation" ($\beta \approx 0.99$).
  • The Noise Trap: In fractional systems, noise isn't just a nuisance; it's a structural threat. Without the "fully whitened" loss, the optimizer would incorrectly drive the memory parameter to its lower bound just to minimize the scale of the error.
  • Velocity Over Followers: When calculating a post's "viral potential," the model found that early engagement velocity was a far more significant predictor than the author's follower count.

Key Results

The segmented fPINN model significantly outperformed nine classical baselines.

  • High Precision: At a strict Mean Squared Error (MSE) threshold of 0.01, the fPINN reconstructed 64.0% of held-out trajectories. The strongest classical baseline, Bass diffusion, managed only 44.2%.
  • Parameter Recovery: In synthetic tests, the model recovered the fractional order $\beta$ with high accuracy. As shown in Table 1, the "burn-in" variant of the L1 discretization scheme was particularly effective at reducing systematic bias at early time nodes.
TABLE 1: Recovered ˆβ at T = 24 for each residual formulation (signed error in parentheses).
  • Interpretability: The model successfully distilled the learned dynamics into four distinct phase laws, showing a progression from near-linear growth to logistic spread, and finally to saturating decay.

Limitations and Future Work

  • Scale vs. Shape: The current model predicts the shape of the engagement curve (normalized to 1.0) but does not yet predict the absolute magnitude (i.e., will it get 100 likes or 100,000?).
  • Niche Data: The dataset was limited to tech and AI-related posts on X. The authors note that different topics or platforms (like Reddit) likely follow different dynamics.
  • Continuous Evolution: Future work aims to replace the piecewise segments with a variable-order operator $\beta(t)$, allowing memory to evolve continuously rather than in discrete jumps.

Summary updated

Abstract

Existing models of social media virality either prescribe the functional form of engagement growth or assume a fixed mechanism by which past activity influences future engagement. We present a fractional physics-informed neural network that learns both the temporal memory and nonlinear growth dynamics of social media engagement, using symbolic regression to translate the learned dynamics into interpretable equations. Synthetic experiments at the deployment resolution of 24 hourly observations demonstrate that the fractional order and reaction law can be jointly recovered from clean data. Under observation noise, however, the standard pointwise physics residual drives the fractional order toward its lower bound through a scale artifact. We address this failure using a fully whitened residual that propagates observation noise through the fractional operator. Applying the framework to 348 posts from X (formerly Twitter), we find that a single-window model estimates strongly memory-dependent dynamics but fails to accurately reconstruct held-out trajectories. Partitioning the 24-hour window into four teacher-forced segments substantially improves performance, yielding segment-specific fractional orders that increase from 0.23 to 0.99 and interpretable growth laws for each phase. The segmented model reconstructs 64% of held-out trajectories within a mean squared error of 0.01, compared with 44% for the strongest of nine classical baselines. Together, these results demonstrate the potential of fractional physics-informed equation discovery to uncover interpretable engagement dynamics while highlighting the importance of noise-aware estimation and temporal segmentation.
BibTeX
@misc{koong2026fractional,
  author = {Alex Koong and George Em Karniadakis},
  title = {{Fractional physics-informed neural networks to model social media virality}},
  year = {2026},
  eprint = {2611.07215},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.07215},
}
Figure