GOPHER: Categorical probabilistic forecasting with graph structure via local continuous-time dynamics

Ke Alexander Wang, Danielle C. Maddix, Yuyang Wang

Forecasting the probability of events across interconnected locations—such as predicting the next epicenter of an earthquake or the spread of a virus across counties—is a complex challenge. These scenarios require categorical probabilistic forecasting, where the goal is to predict a discrete probability distribution over nodes in a graph at any given continuous time $t$.

Traditionally, these problems are difficult because the "flow" of probability depends heavily on the local connectivity of the graph, and events occur at irregular, continuous intervals, making standard discrete-time models (like RNNs) difficult to apply effectively. A recent paper investigates whether incorporating two specific inductive biases—the known graph structure and the continuous-time nature of the dynamics—actually improves forecasting performance.

The GOPHER Framework and Baselines

To tackle this, researchers introduced GOPHER (Graph-structured Categorical Probabilistic Forecasting). GOPHER utilizes a Neural ODE to model how node embeddings evolve over time. Instead of modeling the probability $p(t)$ directly (which must always sum to 1), GOPHER models the evolution of latent embeddings in a continuous space. The rate of change is defined by a Graph Neural Network (GNN), ensuring that a node's state is updated based on its neighbors. To convert these embeddings back to probabilities, the model applies a shared projection and a Softmax function.

To isolate which components drive performance, GOPHER was compared against two baselines:

  • NAIVEMLP: A simple model that ignores both the graph structure and the ODE, relying only on node IDs and time.
  • NAIVEGNN: A model that uses the graph structure but treats time as just another input feature, bypassing the complex ODE integration.

Experimental Setup

The models were evaluated on both synthetic and real-world datasets:

  1. Synthetic Advection: "Ring Graphs" and "Random Geometric Graphs" where probability mass flows across edges according to a known differential equation.
  2. Real-World COVID-19: Using New York Times data to model the daily probability of new COVID-19 cases across 21 counties in New Jersey, treating counties as nodes and shared borders as edges.

Key Findings

The Power of Graph Structure

The most significant takeaway is that utilizing the graph structure is paramount. Graph-aware models (GOPHER and NAIVEGNN) achieved a massive 10x improvement in accuracy (measured by KL divergence) and were significantly more sample-efficient than the naive MLP.

Sample efficiency comparison showing graph-based models outperforming the naive MLP.

The Continuous-Time Surprise

Despite the underlying synthetic data being generated by a continuous-time process, the authors revealed a surprising "negative" result: explicitly modeling continuous-time dynamics with a Neural ODE (GOPHER) offered almost no benefit over the simpler NAIVEGNN. Explicitly modeling the "physics" of time did not provide the expected edge, suggesting that the GNN alone was sufficient to capture the necessary spatial dependencies.

Real-World Application: COVID-19 Forecasting

The qualitative results on the COVID-19 dataset starkly illustrate the necessity of graph-aware modeling. The NAIVEMLP completely failed to capture temporal variations, essentially predicting a flat line for case probabilities. In contrast, both GOPHER and NAIVEGNN successfully captured the rising and falling trends of the pandemic across different counties.

COVID-19 dataset predictions showing GOPHER and Naive GNN capturing trends while Naive MLP predicts flat lines.

Limitations: Extrapolation and Brittleness

While GOPHER performs well on interpolation, it struggles significantly with extrapolation. The model failed to accurately predict probabilities beyond the time window it was trained on, suggesting it was "fitting" the curves rather than truly learning the underlying dynamical laws. Furthermore, the model exhibited brittleness; when edges were deleted from the graph at test time, GOPHER’s performance dropped significantly, indicating a lack of robust generalization.

Conclusion and Future Directions

The primary limitation identified is that the learned dynamics in the latent embedding space do not necessarily correspond to the true dynamics in the probability space. Because the Softmax function "squashes" the latent space, the ODE might be performing unnecessary computations that do not translate to better probability forecasts.

Future work in this domain could focus on finding better ways to enforce probability conservation directly within the ODE itself, investigating why Neural ODEs struggle to extrapolate in these specific categorical settings, and testing these architectures on larger, more complex graphs where local dynamics might be more intricate.

Summary updated

BibTeX
@inproceedings{wang2021gopher,
  author = {Ke Alexander Wang and Danielle C. Maddix and Yuyang Wang},
  title = {{GOPHER: Categorical probabilistic forecasting with graph structure via local continuous-time dynamics}},
  booktitle = {ICBINB @ NeurIPS},
  year = {2021},
  url = {https://openreview.net/forum?id=p_58k3MoqLl},
}
Figure