Skip to content
AI.info

Research

TRACE: Spatiotemporal Contact Memory Graph Network Simulator for Granular Dynamics

TRACE: Spatiotemporal Contact Memory Graph Network Simulator for Granular Dynamics Overview Research area: Scientific machine learning / learned physics simulation — specifically graph neural network

arXiv
2609.02991
Published
2026-09-02
Authors
Changjian Zhou, Negin Yousefpour, Jie Qi, Junfeng Fang, Guillermo A. Narsilio, Hans Petter Jostad

AI summary

TRACE: Spatiotemporal Contact Memory Graph Network Simulator for Granular Dynamics

Overview

Research area: Scientific machine learning / learned physics simulation — specifically graph neural network (GNN) surrogates for granular dynamics, sitting at the intersection of machine learning, geotechnics, and computational mechanics.

Technical level: Advanced. The paper assumes familiarity with the Encoder–Processor–Decoder graph network paradigm, message passing, GRUs, attention mechanisms, and classical contact mechanics (Coulomb friction, tangential spring models from the Discrete Element Method).

Scope: The paper introduces TRACE, a graph-network simulator that stores interaction history on contact edges rather than nodes, and evaluates it against two learned baselines (GNS, NMGNS) and a material point method (MPM) reference solver on 2D and 3D granular column-collapse benchmarks.

What This Paper Is About

Learned graph simulators are fast alternatives to high-fidelity granular solvers, but granular motion depends strongly on the history of inter-particle contacts — and that history is hard to preserve when contacts constantly form, break, and rearrange. Existing simulators store temporal information in node features or node-level memory, even though the physically meaningful history variables in contact mechanics (such as accumulated tangential displacement) are properties of a pair of particles. TRACE addresses this mismatch by attaching a persistent memory state directly to each contact edge, maintaining it across a changing contact graph, and giving it a concrete mechanical role in the force decoder.

Key Contributions

  1. Edge-level spatiotemporal memory. TRACE assigns a persistent memory vector to every active contact edge rather than to nodes. The memory is initialized when the edge forms, updated throughout its lifetime, and removed when the edge disappears.

  2. A memory-management mechanism for dynamic graphs. Each contact is given a time-invariant identifier (eid(i,j) = i·N + j, with canonical ordering i < j) plus an identity dictionary mapping that identifier to a row of the memory matrix. This lets the model reliably retrieve the correct memory state even though the contact graph is rebuilt from scratch at every step and edge ordering is not preserved.

  3. Attention + GRU memory updates. Each edge memory is updated by a GRU whose input fuses the edge latent with a spatial context aggregated by attention over the other contacts incident to the same two particles. The result reflects both the edge's own history and its current local multi-contact environment.

  4. A physics-structured decoder and two-stage training. The decoder predicts normal and tangential contact forces, projects the tangential force onto the Coulomb friction cone, and applies equal-and-opposite forces to the two particles (conserving linear momentum by construction). Training proceeds by single-step pretraining followed by autoregressive rollout fine-tuning.

Main Findings

  • Accuracy over long rollouts: Compared with graph network simulator (GNS) and node-memory graph neural simulator (NMGNS), TRACE reduces long-rollout position error by 31–62% and final-deposit error by 58–89% across the two benchmarks (2D and 3D granular column collapse).

  • Stable, physically consistent rollouts: In both the 2D and 3D cases, TRACE produces stable long-horizon rollouts that closely reproduce the final deposit geometry and the kinetic energy released during collapse.

  • Near-zero interpenetration: TRACE maintains near-zero particle interpenetration, while achieving the accuracy gains above with fewer parameters than the baselines.

  • Speedup over the reference solver: TRACE achieves 12.2× and 8.9× speedups over the material point method (MPM) reference solver in 2D and 3D, respectively.

  • Not reported in the available content: Exact particle counts, domain sizes, time-step values, latent dimension D, memory dimension d_m, number of message-passing rounds K, pretraining window length T_W, fine-tuning segment length T_ft, and wall-clock training times are not reported in the paper content available here (the content is truncated at the end of the Methodology section).

Methodology in Plain English

The approach follows the standard graph-simulator recipe — turn particles into nodes, contacts into edges, learn to predict accelerations, and integrate them forward — but changes where memory lives.

  1. Build a graph each step. Two particles are connected by an edge if their separation is below a threshold proportional to their radii, α(r_i + r_j), where α is a "skin" factor that links particles slightly before they actually touch, giving the network early warning of imminent contact. Particles carry position, velocity, radius and a type label (mobile grain vs. fixed boundary/obstacle); edges carry only relative position, relative velocity and separation distance, so the encoding is translation invariant.

  2. Encode. Node features (dimension 2d+2) and edge features (dimension 2d+1) are each mapped to a latent space of dimension D through two-layer MLPs with SiLU activations and LayerNorm. Edge latents are computed once per time step and held fixed across all message-passing rounds — they represent instantaneous geometry, not history.

  3. Update contact memory. For each contact, the model asks: did this pair exist last step? A time-invariant identifier plus a dictionary answers this. Persistent contacts inherit their previous memory; new contacts get a starting state from a small trainable network (InitNet) applied to the raw edge features. Every contact — new or persistent — then goes through the same GRU update. The GRU input combines the edge's current latent with a spatial context: each endpoint particle pools the contacts acting on it via attention (a shared learned query scores each contact's key, softmax normalizes within the particle's pool, values are summed), and the contact's context is the average of its two endpoints' pooled summaries.

  4. Pass messages. Memory is injected into every message-passing round: each message is a learned function of the edge latent, the contact memory, and the two endpoint node latents. Messages are summed over each particle's contact neighborhood and applied as a residual update with RMSNorm. Stacking K rounds lets a particle receive information from particles up to K contacts away.

  5. Decode with physics built in. The decoder predicts normal and tangential force components per contact. The normal force is constrained non-negative; the raw tangential force is projected onto the Coulomb friction cone using a learned per-contact friction coefficient. Forces are applied to the two particles with equal magnitude and opposite direction, so linear momentum is conserved by construction. This gives the edge memory a concrete mechanical interpretation: it acts as a learned stand-in for the history-dependent tangential state variables used in classical contact models.

  6. Integrate and train. Accelerations are integrated with semi-implicit Euler. Training minimizes the discrepancy between predicted and reference accelerations in two stages: single-step pretraining (on normalized accelerations, over a window of length T_W), then autoregressive rollout fine-tuning over a supervised segment of length T_ft to combat error accumulation.

Why This Matters

Impact on research. The paper argues that node-level memory is a mismatched inductive bias for granular materials, because the key history-dependent mechanisms — accumulated tangential displacement, evolving sliding direction, force-chain evolution — are properties of pairwise contacts. Placing memory on edges is a small architectural change with a large conceptual payload: it connects learned simulators directly to the contact-law structure that DEM solvers have used for decades. The identity-dictionary mechanism also offers a general recipe for maintaining persistent state on graphs whose topology is rebuilt every step.

Real-world applications:

  • Landslide and debris-flow hazard assessment — fast, physically consistent simulation of granular collapse supports runout prediction and risk zoning.
  • Geotechnical engineering — the paper notes that high-fidelity simulations require recalibrating contact parameters for each new material, a burden that a learned simulator could reduce.
  • Industrial powder handling and granular processing — the introduction cites industrial powder handling among the domains governed by granular dynamics.
  • Granular robotics — listed in the paper's survey of learned-simulator research threads as an application area.

Industry relevance. The reported 12.2× and 8.9× speedups over MPM in 2D and 3D, combined with fewer parameters than the baselines, point toward surrogates that could make large-deformation granular simulation practical in design loops where a full high-fidelity solve is too slow. The authors have released code at https://github.com/Data-Driven-Computational-Geotechnics/TRACE.

Future Directions

  • Scaling beyond column collapse. The evaluation covers 2D and 3D granular column-collapse benchmarks only. Whether edge memory helps on larger particle counts, longer horizons, and more heterogeneous materials (polydisperse mixtures, non-spherical grains) is untested in the available content.
  • Physical interpretation of the learned memory. The paper motivates edge memory as a learned analogue of tangential contact state variables, but does not (in the available content) probe whether the memory vectors actually recover quantities such as accumulated tangential displacement.
  • Generalization across materials and contact parameters. The introduction raises parameter recalibration as a core pain point in engineering use; whether a single trained TRACE model transfers across friction coefficients or grain shapes is an open question.
  • Extension to other history-dependent physics. The identity-dictionary mechanism for persisting per-edge state is domain-agnostic and could be applied to other particle systems with breaking and reforming interaction networks.

Target Audience

Researchers and graduate students in scientific machine learning and computational mechanics who work on learned simulators for particle systems; geotechnical and geohazards engineers interested in fast surrogates for granular flow; and practitioners of GNN-based physical simulation who want a concrete architectural alternative to node-level memory. Readers need a working understanding of message passing, recurrent networks, and basic contact mechanics — this is not an entry-level paper.

Authors’ abstract

Learned graph simulators provide an efficient alternative to high-fidelity solvers for granular dynamics. However, granular motion depends strongly on inter-granular contact history, which is difficult to preserve when particle contacts form, break, and rearrange. Existing simulators mainly store temporal information in node features or node-level memory. Here we introduce TRACE, a graph-network simulator that stores interaction history directly on contact edges. Each edge maintains a persistent memory updated by attention-based message passing and a gated recurrent unit, while an edge-identity dictionary preserves this memory as the contact graph changes. A physics-structured decoder predicts inter-granular normal and tangential contact forces, enforces the Coulomb friction limit, and applies equal-and-opposite internal forces. The model is trained with single-step pretraining followed by autoregressive rollout fine-tuning. We evaluate TRACE on 2D and 3D granular column-collapse benchmarks. In both cases, TRACE produces stable, physically consistent long-horizon rollouts, closely reproducing the final deposit geometry and the kinetic energy released during collapse. Compared with graph network simulator (GNS) and node-memory graph neural simulator (NMGNS), TRACE reduces long-rollout position error by 31-62% and final-deposit error by 58-89% across the two benchmarks, while using fewer parameters and maintaining near-zero particle interpenetration. TRACE also achieves 12.2$\times$ and 8.9$\times$ speedups over the material point method (MPM) reference solver in 2D and 3D, respectively. Our code is available at https://github.com/Data-Driven-Computational-Geotechnics/TRACE.

Read the original paper