Research
GGraph: A GPU-Accelerated Library for Graph-Based Robot Deployment and Learning
Mobile robots need a spatial representation that is sparse enough to plan in large, unknown environments but rich enough to carry geometry, semantics, and learned scores.

- arXiv
- 2610.28953 · Preprint · not peer-reviewed
- Published
- 2026-10-20
- Authors
- Yash Rampuria, Rohan Garg, Daniele Gammelli, Marco Pavone
In plain words
Mobile robots need a spatial representation that is sparse enough to plan in large, unknown environments but rich enough to carry geometry, semantics, and learned scores.
AI summary
Overview
Research area: Robotics software infrastructure — GPU-accelerated spatial representations for robot navigation, exploration, and reinforcement learning.
Technical level: Intermediate. The paper assumes familiarity with occupancy grids and elevation maps, graph search, ROS 2, CUDA-style GPU programming, and standard deep RL tooling (PPO, SAC, graph neural networks).
Scope (one sentence): The paper presents GGraph, an open-source library that keeps a robot's navigation graph resident on the GPU as parallel tensors, so that the same kernels serve single-robot deployment over ROS 2 and batched reinforcement-learning across hundreds of simulated robots.
What This Paper Is About
Mobile robots need a spatial representation that is sparse enough to plan in large, unknown environments but rich enough to carry geometry, semantics, and learned scores. Graphs are a natural fit — they underpin both classical exploration planners and a growing class of graph-neural-network policies — yet no shared tool builds and maintains them: planners grow graphs inside single-robot, planner-specific code, while learning pipelines rebuild every environment's graph on the CPU, which caps parallel training at a few dozen environments. GGraph closes that gap with a GPU-resident graph library whose insertions, merges, pruning, search, and loop-closure corrections are all vectorized operations, usable unchanged for one robot or many.
Key Contributions
- An open-source GPU navigation-graph library. Graph state is stored as parallel tensors with stable node identities, and an extensible layer system attaches geometric, semantic, and learned attributes per node. ROS 2 interfaces and a batched training interface let the same code serve deployment and learning.
- Validation in both deployment and policy learning. The authors build 3-D graphs from real sensor data, attach frontier and semantic layers, and correct the whole graph after loop closure in one vectorized pass; used as a batched RL environment, GGraph trains graph-based exploration policies that match prior learned policies in a fraction of the training time and outperform baselines on held-out maps, on a ground vehicle in a high-fidelity simulator, and on a real robot.
- Scalability benchmarks. Graph updates take tens of milliseconds as graphs grow to a million nodes, and environment-step throughput scales with the number of parallel robots, reaching 27× that of a state-of-the-art baseline.
- A reformulation of graph operations for GPUs. Graph search is recast as edge-parallel Bellman–Ford plus pointer-jumping connected components, and per-observation merging is recast as one batched nearest-neighbor assignment plus one line-of-sight kernel over all candidate edges — avoiding the priority queues and per-node objects that serialized prior builders.
Main Findings
- Single-robot update cost stays small as the world grows. A full update takes about 7 ms at 100,000 nodes, roughly 120× faster than a baseline built on SWAGGER and NetworkX, and 62 ms at a million nodes. At a 0.5 m node sampling distance, a million nodes can cover a 500 × 500 m area. Building the local graph, selecting candidate edges, and checking collisions cost about 3 ms at every size; the growth comes from merging nodes, de-duplicating edges, and pruning node degrees.
- Loop closure is a single vectorized pass. On a closed square trajectory with a combined drift of 22% scale error and 160 mm/m additive world-frame bias, the pre-correction loop-closure gap was 14.08 m, and the full correction pipeline restored the closed loop in 2.26 ms. Because each node stores the index of the odometry frame that created it, correction needs no graph traversal, sensor re-integration, or occupancy reprojection.
- Throughput scales with parallel robots. Measured against ARiADNE's CPU-based graph manager (16 Ray workers) over 200 training maps with H = 128 steps per robot, the advantage grew from approximately 6× at N = 16 robots to 26× at N = 256, then leveled off at about 6,500 environment-steps per second at N = 512 versus 244 for ARiADNE — a 27× speedup.
- Rollout allocation matters. Holding the batch at N × T = 16,384 transitions, 512 × 32 trained fastest early and stayed among the highest-reward configurations over a two-hour run; N = 2048 and N = 4096 slowed early learning because rollouts shrank to 8 and 4 steps, truncating return estimates.
- Better policies in less wall-clock time on 2-D grid worlds. At a 6 h budget, PPO (512 × 32) reached a mean path length of 1255 px with 97% success, against 1333 px and 91% for ARiADNE's released policy trained for 24 h with 32 robots. PPO fell below the released checkpoint's path length after roughly 2 h. The gain was largest on complex maps (2050 → 1825 px). SAC-512, also at 6 h, reached the highest completion rate at 98% and the shortest paths on easy maps, while the released policy remained best on medium maps. A greedy nearest-frontier baseline using the ARiADNE builder averaged 1896 px with a 0.44 success rate.
- Simulated ground-vehicle results. In the 150 × 150 m forest world of the CMU autonomous exploration development environment, ARiADNE's recipe trained for 2 h with its own code drove 1469 m in 801 s, TARE drove 1229 m in 668 s, ARiADNE's released checkpoint drove 1143 m in 642 s, GGraph-trained SAC (2 h, 512 robots) drove 1139 m in 615 s, and GGraph-trained PPO (1.5 h, 512 robots) drove the shortest path, 1040 m in 655 s — 9% shorter than the released checkpoint. At the same 2 h budget, the GGraph SAC policy drove 22% less than the one trained with ARiADNE's code. GRATE reports a best path length of 1026 m under its own completion rule with about 36 h of training.
- Indoor generalization. The same PPO policy in the 130 × 100 m corridors world reached 1048 ± 64 m across 10 seeds after 1.5 h of training, against a reported ARiADNE baseline of 1042 m from a policy trained with SAC for 24 h.
- Zero-shot transfer to a real robot. The PPO policy, trained entirely on 2-D grid-world maps and never exposed to real data, explored an office floor on a Spot robot with on-board cameras only, driving a 157 m path. Where cameras saw through glass doors, nodes were sampled in unreachable closed rooms; the graph builder's connectivity check dropped them from the robot's graph component and the policy moved on to reachable frontiers.
Methodology in Plain English
GGraph treats the navigation graph as the primary representation rather than a derived structure sitting on top of a dense map. Dense occupancy grids or elevation maps are only transient inputs.
For each new observation, a frontier kernel scans the map once to produce a free-space mask and frontier set. A waypoint sampler then fills the free space with well-spaced nodes using three passes: a skeleton pass along the medial axis, a boundary pass along inflated obstacle contours, and a free-space pass driven by a GPU distance transform. This is a tensorized version of NVIDIA's SWAGGER builder logic; a world-anchored lattice can be swapped in when prior work's uniform grid is needed. For 2.5-D elevation input, a slope and step-height stage lifts the map into a 3-D traversability volume so ramps and stairs produce usable graphs.
Merging a local graph into the persistent world-frame graph is one batched nearest-neighbor assignment: each local node either snaps to an existing global node or is appended with a fresh, unique identifier. Candidate edges come from a radius query and are validated by GPU-parallel line-of-sight checks against obstacle memory, subject to a per-node degree cap and periodic pruning; a retention rule removes long-unobserved nodes to bound graph size. Because node and edge arrays are tensors, every mutation is a vectorized gather or scatter.
Attributes live in registered layers. A compute layer runs a user kernel against the graph each frame (the built-in frontier layer), while an external layer ingests asynchronous scores from outside the library and persists them (the terrain-semantics layer). Merge policies — overwrite, blend, moving average — control how repeated observations combine.
For planning, the graph is materialized in compressed-sparse-row form and served by parallel breadth-first search, a Bellman–Ford kernel for single- and multi-source shortest paths, and pointer-jumping connected components. Bellman–Ford was chosen over Dijkstra because it relaxes all edges in one kernel launch, whereas a priority queue serializes. Loop closure exploits the fact that each node records its parent odometry frame: correcting the graph is an O(N) gather that translates nodes by their frame's displacement, followed by a GPU remerge of spatially coincident nodes and a recheck that demotes boundary nodes now interior to free space.
For learning, N independent builders share the same kernels and step together each simulator tick, emitting padded position, adjacency, frontier, and attribute tensors that a graph-conditioned policy consumes directly. The RL pipeline follows the massively parallel training setup of prior locomotion work: separate actor and critic networks shared across all environments, with graph maintenance, environment updates, and observation and reward computation all on the GPU to avoid CPU–GPU transfers. Policy training uses SAC or PPO with ARiADNE's attention-based encoder–decoder (6 layers, 8 heads, 128-d embeddings). The reward is a × frontier cells removed minus b × distance traveled, with a = 1/64, b = 1/50, and a completion bonus of 20. PPO uses 4 epochs of 4 mini-batches, clip 0.2, γ = 1, λ = 0.95, entropy coefficient 0.01, and an adaptive learning rate starting at 10⁻⁴ with a KL target of 0.01.
Evaluation uses ARiADNE's public training maps plus 150 newly generated validation maps — excluded from training, grouped into easy, medium, and complex tiers of 50 each, with difficulty increasing through dead-end corridors and the free-space boundary-to-area ratio.
Why This Matters
Research impact. The paper argues by analogy with occupancy grids, GPU elevation mapping, OpenCV, PyTorch, and massively parallel simulators: a design tool is valuable when one implementation serves both deployment and training, so improvements on either side transfer. Graph-based exploration RL has been bottlenecked by CPU graph construction, which caps parallelism at thread count and forces multi-day training runs; moving that workload to the GPU makes on-policy methods like PPO practical and lets results be reproduced in hours. The library also makes a cross-cutting claim testable — that the graph itself, not the raw sensor stream, can be the policy's observation, which is the mechanism behind the zero-shot grid-world-to-Spot transfer.
Real-world applications.
- Search and rescue and subterranean inspection, where graph-based planners have already been fielded in settings like the DARPA Subterranean Challenge.
- Campus- and building-scale 3-D mapping from legged robots carrying LiDAR-camera payloads, as demonstrated with Spot and a Manifold Odin1.
- Semantic mapping for navigation, where foundation-model modules such as ExploRFM score nodes as grass or pavement from the camera view.
- Rapid policy development in high-fidelity simulators before hardware trials, as shown on a simulated skid-steer vehicle with a Velodyne VLP-16.
Industry relevance. The library ships ROS 2 interfaces, so it slots into existing robot stacks rather than requiring a bespoke planner. Sub-10 ms updates at 100,000 nodes and 62 ms at a million nodes set expectations for what a single onboard computer can maintain in real time, and loop-closure correction in 2.26 ms removes a common reason to re-integrate sensor data after a SLAM correction. For teams training policies, the 27× environment-step speedup translates directly into shorter iteration cycles and lower compute cost.
Future Directions
- Learned node sampling. Replacing per-platform tuning of sampling parameters with learned placement of graph nodes.
- Dynamic obstacles. Extending the graph update pipeline, which currently reasons over static obstacle memory, to moving obstacles.
- Image-conditioned policies. Because node attributes are already tensors, a vision encoder could write per-node embeddings from an RGB feed — the semantic layer already demonstrates this pattern — extending the batched environment beyond geometric and frontier features.
- Consolidating the deployment/learning split further. The paper positions GGraph as one design tool for both sides, but its deployment validation is a real-world mapping and exploration demonstration while its learning results are primarily 2-D grid worlds; closing that gap across more map types and robot embodiments is left open.
Target Audience
Robotics engineers and researchers building navigation or exploration stacks, particularly those working with ROS 2 and 3-D mapping on legged or ground vehicles. RL researchers who train graph-neural-network policies and are constrained by CPU-bound environment simulation. Practitioners evaluating GPU-accelerated spatial representations who want concrete update-time and throughput numbers before adopting a library. Readers new to the area can follow the problem framing and benchmark tables, but the methodology sections assume comfort with CUDA execution models, graph search, and PPO/SAC internals.
Authors’ abstract
Autonomous mobile robots require spatial representations that capture geometry and semantics while staying sparse enough for planning in large, unknown environments. Graphs provide a natural representation for this purpose and underpin both classical planning methods and a growing class of reinforcement-learning (RL) policies. However, RL training needs hundreds to thousands of parallel environments, each constructing and updating its own graph. Existing graph libraries are…
The full abstract on arXivRelated papers
- CQDC-Warp: GPU-Accelerated Differentiable Quasi-Dynamic Simulation for Contact-Rich Manipulation 2026-10-15 · cs.RO · Key terms of the title in common
- cuArms: GPU-Accelerated Conflict-Based Planning for Multi-Arm Manipulation 2026-10-26 · cs.RO · Key terms of the title in common
- GLST: Global-Local Spatio-Temporal Memory Decomposition Framework for Online Chained-Goal Navigation 2026-10-13 · cs.RO · Also by Marco Pavone
- Full-Order Safety for Nonlinear Reduced-Order MPC 2026-10-13 · cs.RO · Also by Marco Pavone
- GPU-accelerated Incremental Euclidean Distance Transform for Online Motion Planning of Mobile Robots 2026-10-30 · cs.RO · Key terms of the title in common