Abstract
Modeling complex systems where multiple objects interact and change behavior over time remains a significant challenge in machine learning. Traditional Switching Dynamical Systems (SDS) often assume object independence or fail to scale when treating groups as a single entity. This paper introduces GRASS (GRAph Switching dynamical Systems), a framework that incorporates a dynamic, latent interaction graph to learn how objects influence each other's behavioral modes. By leveraging amortized transition dynamics and hybrid inference, GRASS significantly outperforms existing methods in capturing the nuances of interacting systems, such as colliding particles or dancing couples.
Introduction
Many real-world phenomena—ranging from the microscopic interactions of immune cells to the coordinated movements of salsa dancers—exhibit complex, non-linear behaviors. Researchers typically model these using Switching Dynamical Systems (SDS), which decompose a complex trajectory into a sequence of simpler, discrete "modes" (e.g., moving forward, turning, or stopping).
However, a major gap exists in current SDS research regarding interaction. Most state-of-the-art models either assume objects move independently or treat the entire group as a single "super-object." The former fails to capture how one object's behavior triggers a change in another, while the latter suffers from poor scalability as the number of objects increases. GRASS addresses this by modeling per-object dynamics that depend on an unknown and dynamically changing subset of other objects.
Methodology
The core innovation of GRASS is the Dynamic Interaction Graph. Rather than assuming a fixed relationship between objects, the framework treats the connections between them as latent variables that can be "switched" on or off at each timestep.
Key Components
- Latent Edge Variables: The model learns a categorical distribution for edges. An edge can represent a specific type of interaction or a "no interaction" state, which encourages the graph to remain sparse and interpretable.
- Amortized Transition Dynamics: To ensure scalability, GRASS utilizes shared neural network weights to predict how pairs of objects interact. This avoids the need to learn unique transition matrices for every possible combination of objects.
- Hybrid Inference: The authors employ a combination of approximate variational inference (using Recurrent Neural Networks to handle continuous states and edge types) and an exact Forward-Backward algorithm to determine discrete modes and their durations.
- Mode Persistence: To prevent "jittering" or frequent, noise-induced mode switches, the model incorporates "count variables" that track how long an object remains in a specific mode.
Experimental Setup
The authors evaluated GRASS using two new benchmarks designed to test interacting systems:
- ODE-driven Particle Dataset: A synthetic dataset where particles move according to different Ordinary Differential Equations (e.g., Lotka-Volterra or Bouncing Ball). In this environment, particles only switch their movement mode upon collision, requiring the model to correctly infer the moment of interaction.
- Salsa Couple Dancing Dataset: A real-world dataset featuring 3D skeletal data from 17 videos of couples. Modes are annotated as specific dance maneuvers, such as "clockwise turning" or "moving backward."
GRASS was compared against established baselines, including rSLDS, SNLDS, and REDSDS.
Key Results and Insights
Superior Accuracy and Robustness
On the ODE particle dataset, GRASS improved segmentation accuracy by 9-10% over the previous best-performing model (REDSDS). Furthermore, GRASS achieved "Oracle-level" performance, matching a version of the model provided with ground-truth interaction edges. This demonstrates the framework's high proficiency in inferring latent interactions from raw movement data alone.
Sparsity and Interaction-Driven Transitions
A critical insight from the study is that interactions in multi-object systems are often rare. By explicitly allowing for a "no interaction" state, GRASS avoids overfitting to coincidental movements. The model successfully captures the "Aha!" moment where an interaction doesn't just change an object's velocity, but shifts its entire behavioral regime or "intent."
Qualitative Success
Visualizations indicate that GRASS identifies mode-switching behaviors with significantly fewer false transitions compared to independent-object models. The amortized architecture also ensures that the model remains accurate even as the number of objects or possible modes increases.
Conclusion and Future Work
While GRASS represents a significant step forward, the authors identify several avenues for future research. Currently, interactions primarily affect discrete mode transitions; future iterations could explore how objects influence fine-grained continuous motion within a single mode. Additionally, extending the model to process raw video pixels directly—rather than pre-extracted coordinates—and exploring higher-order (group) interactions remain promising directions for the evolution of Graph Switching Dynamical Systems.
Summary updated