Learning-based Motion Planning in Dynamic Environments Using GNNs and Temporal Encoding

Ruipeng Zhang, Chenning Yu, Jingkai Chen, Chuchu Fan, Sicun Gao

TL;DR

Researchers have developed GNN-TE, a novel motion planning framework that combines Graph Neural Networks (GNNs) with Transformer-style temporal encoding to navigate dynamic environments. By imitating an expert "safe interval" planner, GNN-TE reduces computationally expensive collision checks by over 1000x and accelerates planning time by up to 95% compared to state-of-the-art complete algorithms, all while maintaining high success rates in complex, multi-robot scenarios.

What Problem Does This Paper Address?

Motion planning—finding a collision-free path for a robot from point A to point B—is a largely solved problem in static environments. However, introducing moving obstacles, such as a second robot arm or a human coworker, makes the problem exponentially harder.

Graph representation of a dynamic obstacle moving through the configuration space over time.

In dynamic settings, the planner must reason about temporal-spatial interactions. A path that is safe at $t=1$ might be a collision site at $t=2$. Traditional "complete" algorithms like Safe Interval Path Planning (SIPP) are effective but computationally heavy because they must search a massive space of time-stamped configurations. Heuristic-based methods are faster but often fail in "hard" instances where the timing is tight. The authors aim to bridge this gap by achieving the speed of a heuristic with the reliability and intelligence of a complete search algorithm.

Methods

The authors propose GNN-TE (Graph Neural Network with Temporal Encoding), which consists of two main stages designed to mimic how humans plan—looking at the big picture first, then focusing on immediate steps.

The two-stage GNN-TE architecture featuring a Global GNN Encoder and a Local Planner.
  1. Stage 1: Global GNN Encoder ($N_G$) This stage takes a sampled graph of the robot's configuration space and the predicted trajectories of obstacles. It uses Attention Mechanisms to model how the robot and obstacles interact across the entire environment. Crucially, it uses Temporal Encoding (sine and cosine functions, similar to those in Transformers and NeRF) to help the network understand high-frequency patterns in the obstacles' movements.

  2. Stage 2: Local Planner ($N_P$) As the robot moves, this stage looks at the local neighborhood of the current graph node. It considers a specific "time window" of the obstacle's trajectory to predict which outgoing edge has the highest priority (i.e., is most likely to lead to a safe, fast path).

Training via DAgger: The model is trained using Imitation Learning. It initially watches an "expert" (SIPP) solve problems. However, because simple imitation often leads to "distribution drift" (where a small mistake leads the robot into a state the expert never visited), the researchers use DAgger (Dataset Aggregation). This allows the robot to explore, make mistakes, and then query the expert to refine its policy.

Key Insights and Ideas

  • Time as a Feature, Not Just a Constraint: By using positional encoding for time, the network treats the "when" of an obstacle's position as a fundamental signal, allowing it to "see" windows of opportunity in the configuration space that open and close.
  • The Power of Attention: The use of attention allows the model to selectively focus on the most relevant obstacles at any given time, which is vital for scaling to environments with multiple moving parts.
  • Efficiency through Prioritization: Instead of checking every possible edge for collisions (the most expensive part of motion planning), the GNN learns to rank edges. By only checking the highest-priority edges, it avoids thousands of useless calculations.

Datasets and Key Results

The researchers evaluated their method on several simulated robotic environments, ranging from simple 2-DoF arms to complex 7-DoF KUKA industrial arms. They specifically tested the model on "hard" instances where standard heuristic-based planners (like Dijkstra with distance-to-goal heuristics) fail completely.

  • Massive Speedup: GNN-TE reduced the number of collision checks by over 1000x compared to SIPP. This translated to a 95% reduction in total online computation time.
  • High Success Rates: On "hard" problems where traditional heuristics had a 0% success rate, GNN-TE achieved success rates between 82% and 98% depending on the complexity of the robot arm.
  • Near-Optimal Paths: The paths found by GNN-TE were nearly as short as those found by the optimal expert (SIPP), with a path time ratio close to 1.0 in most cases.
  • Ablation Success: Removing the temporal encoding or the global obstacle information significantly degraded performance, proving that both "where" and "when" are essential for the model's success.

Limitations and Future Work

The current model assumes obstacle trajectories are known or can be predicted over a fixed window. In highly unpredictable environments, this might be more difficult to manage. Furthermore, while GNN-TE is highly successful, it is a learning-based method and does not provide the absolute completeness guarantees of SIPP.

Future directions include integrating "safe intervals" directly into the neural architecture and exploring even more compact models to further reduce the computational footprint for deployment on low-power embedded hardware.

Summary updated

BibTeX
@inproceedings{zhang2022learning,
  author = {Ruipeng Zhang and Chenning Yu and Jingkai Chen and Chuchu Fan and Sicun Gao},
  title = {{Learning-based Motion Planning in Dynamic Environments Using GNNs and Temporal Encoding}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=0KKFIamBG_j},
}
Figure