Fractional neural networks model social media engagement over time

Fractional physics-informed neural networks to model social media virality

Machine Learning

Summary

Predicting how posts become popular on social media is hard because past activity affects future interest in complicated ways. The authors introduce a new kind of neural network that can learn and represent these complex effects more flexibly than existing models. They tested this approach on simulated and real social media data, finding it can uncover interpretable patterns of how engagement grows and fades. Splitting the day into segments improves predictions, showing that social media activity changes in distinct phases.

What this means in practice

  • For social media analytics teams: Improve forecasts of user engagement by capturing complex time-dependent effects and phase-specific dynamics in social media posts.
  • For digital marketing analysts: Gain interpretable growth models of post popularity to better tailor marketing strategies in different time segments after posting.

Tested on one dataset.

Authors

Alex Koong, George Em Karniadakis

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.