Many systems in nature, from the economy to molecular biology, can be described as Markov Jump Processes (MJPs). These are systems that stay in a discrete state (like a specific protein shape) for a random amount of time before "jumping" to another state.
This paper introduces a Foundation Inference Model (FIM) for MJPs, allowing for "zero-shot" parameter estimation. By training a neural network on a massive, diverse synthetic dataset of simulated processes, the authors created a single model that can instantly infer the dynamics of physical systems—like protein folding or ion channels—without needing any task-specific training or fine-tuning.
The Challenge of MJP Inference
The core challenge is inference: given a noisy, sparse, and irregularly sampled time series of these jumps, how do we figure out the underlying "rate matrix" (the probabilities of jumping between states) and the initial conditions?
Traditionally, this is an unsupervised learning problem where researchers must train a complex, custom model for every new dataset they encounter. This process is computationally expensive, requires expert tuning, and the resulting models rarely generalize to other systems.
Methodology: Amortized Inference
The authors pivot from the traditional "optimize-per-dataset" approach to amortized inference. Their methodology consists of two main pillars:
1. Massive Synthetic Pretraining
Instead of training on real-world data, they designed a "data factory" that generates tens of thousands of different synthetic MJPs.
They don't just vary the jump rates; they vary the number of states (from 2 to 6), the connectivity of the states (using Erdős-Rényi graphs), the observation frequency, and the noise levels. This creates a "broad prior" that covers many possible real-world scenarios, teaching the model the abstract concept of an MJP.
2. The Recognition Model (FIM)
They built a neural network architecture designed to process multiple "paths" (realizations) of a process simultaneously.
- Path Encoder: A bidirectional LSTM (or Transformer) processes individual time series.
- Learnable Query Attention: An attention mechanism aggregates information from all paths into a single global representation. This is crucial because it allows the model to handle a variable number of observations and paths.
- Output Heads: Simple feed-forward networks then predict the rate matrix ($\hat{F}$) and the initial state distribution ($\hat{\pi}_0$).
The "magic" is that once this model is trained on synthetic data, it can be applied to real-world data in a single forward pass—no further training required.
Zero-Shot Generalization and Key Results
The model was trained on a synthetic dataset of 45,000 MJPs. To prove its "foundation" capabilities, the authors evaluated it (zero-shot) on several distinct benchmarks, including a theoretical Brownian motor (Discrete Flashing Ratchet), molecular dynamics of Alanine Dipeptide (ADP), experimental ion channel data, and protein folding simulations.
- On Par with Specialists: In the Alanine Dipeptide and Ion Channel tests, the FIM achieved results (stationary distributions and relaxation times) that were statistically indistinguishable from specialized models like NeuralMJP or VampNets—despite never seeing this data during training.
- Time-Scale Invariance: By normalizing all observation times to a unit interval during processing and then rescaling the output, the model handles processes that evolve over nanoseconds or minutes using the exact same weights.
- Robustness to Noise: The model remained accurate even when 10% of the state labels in the input data were intentionally corrupted.
- Efficiency: While traditional Bayesian methods (like MCMC) might take hours of sampling to infer parameters for a complex molecular system, the FIM provides an estimate in milliseconds.
Limitations and Future Work
While powerful, the current model has a state space ceiling, capped at a maximum of $C=6$ states. While many systems can be coarse-grained to this level, more complex biological pathways would require scaling the architecture to handle dozens or hundreds of states. Additionally, if a real-world process has a rate distribution that deviates significantly from the synthetic prior (e.g., power-law distributed rates found in "glassy" systems), the model's performance degrades.
Future directions include extending the framework to Birth-Death processes (where states are ordered, like population counts) and exploring more complex energy-landscape-based priors for the rate matrices.
Summary updated