Local conditional information in anomalous diffusion beyond second-order statistics: A masked generative measurement

Yu Zhang, Zihan HuangarXiv 2026

TL;DR

When tracking a jiggling particle in a living cell or a fluctuating stock price, standard tools like correlations and Mean Squared Displacement (MSD) often miss the richest parts of the story. By treating particle trajectories like sentences in a language model—hiding a piece of the path and training a generative network to fill in the blank—researchers have found a way to measure hidden physical states directly from raw data, no underlying equations or labels required. This lets us tell apart seemingly identical random processes and automatically spot when a biological molecule changes its behavior.

What Problem Does This Paper Address?

Imagine watching a microscopic particle wander through the crowded soup of a living cell. This is the realm of anomalous diffusion—random motion that breaks the rules of classical Brownian motion. To understand how the particle moves, physicists look at the relationships between its steps (increments) over time. Usually, we rely on second-order statistics—tools like covariance, power spectra, and MSD. For well-behaved Gaussian processes, these statistics tell you everything there is to know.

Here’s the catch: nature is rarely Gaussian. A receptor in a cell membrane might get temporarily trapped in a molecular cage, or a motor protein might suddenly haul cargo in a straight line. In these non-Gaussian worlds, two completely different physical processes can have the exact same MSD and correlations ("Brownian-yet-non-Gaussian" diffusion). Standard summary diagnostics wash away the local, step-by-step context, while supervised machine learning requires you to guess the candidate physical models in advance to generate labeled training data. We lacked a model-free way to ask the raw trajectories themselves: How much do a particle's surrounding steps actually tell us about what happens in the middle?

Methods

The authors introduce a new physical quantity called local conditional information, $I(L)$, and a clever way to measure it using self-supervised masked learning (the same fill-in-the-blank trick behind BERT in natural language processing).

FIG. 1. Schematic diagram of a hidden stretch, its neighborhood, and masked learning. Top: a trajectory, drawn as one arrow per increment xt; the K increments of the hidden stretch (dashed) are removed and predicted from the L increments on either side (solid), while the rest of the trajectory (dotted) is not used. Middle: the same increments in time order, with the hidden stretch h and the two halves of the neighborhood nL marked. Bottom: masked learning on these increments. The encoder reads the two halves of the neighborhood and compresses them into a vector. The generative head, conditioned on this vector, transforms random noise into samples h′, h′′, . . . of the hidden stretch; the distribution of these samples is the prediction Pθ(h | nL). The recorded stretch h is the training target; after training, the prediction is scored against the recorded stretch by s(Pθ, h).
  1. Mask and Reconstruct: Take a trajectory of displacements, hide a short stretch of $K$ steps, and feed the $L$ steps immediately before and after it into a Transformer encoder.
  2. Generative Prediction: Because a missing stretch of random motion doesn't have one "right" answer, the encoder conditions a flow-matching generative head, which transforms random noise into a full probability distribution of plausible hidden stretches.
  3. Proper Scoring & Kriging Baseline: Predictions are evaluated against the true recorded stretch using the energy score—a strictly proper scoring rule that works even when probability densities collapse to a single point (like zero movement during a trap). Because the score is strictly proper, any imperfection in the neural network can only underestimate the true information. The authors compare the network's score improvement against kriging (Gaussian-process regression), which is mathematically optimal for second-order statistics. Any predictive gain the neural network achieves above kriging is guaranteed to be genuine higher-order physical information.

Finally, by using the flow network to compute exact log-densities along a path, they build an unsupervised changepoint decoder that segments multi-mechanism trajectories without ever seeing a changepoint label during training.

Datasets

  • Simulated Benchmarks: Five canonical models from the Anomalous Diffusion (AnDi) challenge—Fractional Brownian Motion (FBM), Scaled Brownian Motion (SBM), Continuous-Time Random Walk (CTRW), Annealed Transient Time Motion (ATTM), and Lévy Walk (LW)—plus standard Brownian motion and two Brownian-yet-non-Gaussian models (two-state switching diffusivity and diffusing-diffusivity, DD). They also construct a 3,360-trajectory multi-mechanism benchmark to test unsupervised segmentation.
  • Experimental Tracks: Openly available real-world microscopy datasets, including $\beta_2$-adrenergic receptors in living cell membranes, tracer beads in F-actin networks, and quantum dots actively transported by kinesin motors (plus lysosomes in supplemental tests).

Key Insights and Ideas

  • Persistence is the secret source: Through a general state-space theory, the authors prove why information exists beyond correlations. It comes down to a hidden state—like local diffusivity or velocity—that persists in time. If a hidden state only changes the width (variance) of steps rather than their direction, correlations remain completely blind to it (zero covariance), yet neighbors easily infer the current width!
  • Degeneracy is an illusion of second-order tools: Processes with identical MSDs, velocity autocorrelations, and power spectra are trivial to separate once you look at full conditional distributions, because just one neighboring step on either side reveals the local diffusivity state.
  • Neighbors prevent false alarms: When segmenting a trajectory where diffusivity naturally fluctuates, looking at a snippet in isolation causes constant false changepoint alarms. Conditioning on just four neighboring steps lets the model separate a routine change of state from a true change of mechanism.

Key Results

  • Recovering Hidden Information: On Gaussian processes, masked learning matches exact kriging within $0.3\%$. On non-Gaussian processes, it captures $75\%$ to $99\%$ of the theoretical maximum information beyond second order.
  • Breaking Second-Order Ties: When classifying single trajectories from Brownian motion, two-state, and DD processes, kriging is reduced to random guessing ($33.3\%$). Masked learning with no neighbors reaches $62.2\%$, and adding just a single neighbor ($L=1$) on each side rockets accuracy to $94.1\%$.
Separating processes with identical second-order statistics using a single neighbor.
  • Living Cell Discoveries: On membrane receptor tracks (evaluating inner steps to avoid camera localization-error artifacts), kriging finds $0\%$ information, whereas masked learning uncovers a clear $1.1\%$ excess gain ($3.0\%$ on the full stretch), proving model-free that receptors experience persistent transient trapping.
  • Unsupervised Segmentation: On simulated multi-mechanism paths, masked learning achieves a changepoint F1 score of $0.67$ at a $4.7\%$ false-alarm rate (versus $0.42$ F1 at a $59\%$ false-alarm rate for second-order evidence), boosting CTRW per-step recall from $2.5\%$ to $99.8\%$. It also cleanly segments experimental kinesin-driven quantum dot tracks into immobile, diffusive, and directed runs.

Limitations and Future Work

  • Localization Noise: Experimental camera tracking errors blur sharp local features (like exact zero steps in a trap). When simulated noise is added, segmentation F1 drops from $0.67$ to $0.40$, and superdiffusive mechanisms (LW vs. FBM) become hard to tell apart.
  • Fixed Mechanism Vocabulary: The segmentation test relies on seven pre-trained mechanism models, none of which explicitly model confined motion (though new models can easily be added, or trained directly on raw experimental recordings).
  • Broader Horizons: Their theoretical derivation assumes Markovian states with independent noise, though the measurement itself works on anything—opening doors to studying quenched spatial traps or viscoelastic cell environments. Conditioning on past steps alone, or on nearby particles, could turn masked learning into a general-purpose discovery engine across experimental physics.

Summary updated

BibTeX
@misc{zhang2026local,
  author = {Yu Zhang and Zihan Huang},
  title = {{Local conditional information in anomalous diffusion beyond second-order statistics: A masked generative measurement}},
  year = {2026},
  eprint = {2611.37503},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.37503},
}
Figure