Abstract
Modeling complex interactions across multiple interdependent time series remains a significant challenge in machine learning. While standard Recurrent Neural Networks (RNNs) excel at single-sequence modeling, they struggle with relational structures and varying network topologies. This paper introduces the Graphical RNN (gRNN) framework, which integrates the temporal modeling capabilities of RNNs with the structural flexibility of graphical models. By deploying RNNs at graph nodes and utilizing permutation-invariant set functions for state exchange, the gRNN achieves spatio-temporal generalization across diverse scenarios.
Introduction
Standard Recurrent Neural Networks (RNNs) are designed to model a single sequence of data over time. However, many real-world phenomena involve multiple interacting entities, such as sensors in a weather array, users in a social network, or robots in a swarm. In these contexts, traditional approaches typically fall into two categories: "siloed" models (one RNN per entity) or "concatenated" models (one massive RNN for all entities).
The siloed approach fails to capture relational dynamics (e.g., a weather pattern moving between sensors), while the concatenated approach lacks the flexibility to handle a changing number of entities or evolving network topologies. The Graphical RNN (gRNN) framework addresses these limitations by enabling the model to learn how information flows through a structure over time, allowing for robust spatio-temporal generalization.
The gRNN Framework
The gRNN architecture is built upon several key innovations designed to handle relational data efficiently:
RNNs at Nodes
In the gRNN framework, every entity (node) in a graph is assigned an RNN. At each discrete time step, a node's RNN processes three inputs: its own previous hidden state, its current local observation, and a "summary" of the hidden states of its neighbors. This allows the internal state of each node to be informed by the broader context of the network.
Summary Computation and Set Functions
To accommodate nodes with varying degrees (different numbers of neighbors), the framework employs set functions. These transformations—such as summation, averaging, or maximum pooling—are permutation-invariant and neighborhood-order agnostic. This decoupling of the architecture from the graph's degree is what allows a gRNN to be trained on a graph of one size and deployed on another without retraining.
Equivalence Classes and Parameter Sharing
To ensure scalability and statistical efficiency, the gRNN utilizes equivalence classes. Nodes that play similar roles (e.g., all temperature sensors in a weather network) share the same RNN parameters. This acts as a powerful inductive bias, informing the model that these entities behave according to similar underlying dynamics.
Temporal Propagation: The Inroll Parameter
The "Inroll" parameter allows the network to perform multiple message-passing cycles within a single time step. This mechanism acknowledges that the speed of interaction between entities may exceed the sampling rate of the observations. By "unrolling" the graph multiple times per step, information can propagate across multiple hops before the next observation is processed.
Experimental Evaluation
The authors evaluated the gRNN framework using both synthetic and real-world datasets to test its ability to route information and generalize across structures.
Synthetic ARMA Processes
Using Auto-Regressive Moving Average (ARMA) models on hierarchical and tree topologies, the authors established a theoretical "optimal loss." The gRNN demonstrated an ability to learn correct information routing across the graph, reaching near-optimal performance where standard RNN baselines failed.
Weather Prediction
The framework was applied to a public NOAA dataset containing daily temperature data from over 7,000 stations across the USA (2014–2015). A Delaunay Triangulation graph was constructed based on station coordinates to define the relational structure.
The gRNN, specifically utilizing an iRNN (RNN with ReLU activations) and average summaries, outperformed all baselines. It reduced the mean squared error to 87.33% of the steady-state baseline, significantly surpassing standard LSTMs (92.75%) and siloed iRNNs (91.01%). Notably, "average" summaries proved superior to "summation" in this context, likely because averaging normalizes the influence of neighbors in non-uniform station densities.
Discussion and Future Work
The gRNN framework represents a significant step toward flexible spatio-temporal modeling. However, several avenues for future research remain. Currently, the model treats all neighbors with equal weight; the integration of attention mechanisms could allow the model to dynamically prioritize specific neighbors. Additionally, while the current work focuses on static graphs, extending the framework to dynamic graphs—where edges appear and disappear over time—is a logical progression. Finally, to handle massive graphs (e.g., global social networks), the authors suggest Graph Sampling techniques to maintain computational efficiency during training.
Conclusion
By combining the strengths of RNNs and graphical models through set functions and parameter sharing, the gRNN framework provides a scalable solution for modeling interacting time series. Its success in both synthetic tasks and real-world weather prediction highlights its potential for broad application in complex, structured temporal domains.
Summary updated