TL;DR
Fifteen years ago, researchers built an AI planning engine called CuDPlan to explore whether graphics cards could find guaranteed shortest-cost solutions to complex puzzles—only for the codebase to slowly rot into uncompilable obscurity. Now, GPUs are roughly 100 times faster, and the authors have awakened this "sleeping beauty," patched its subtle bugs, and upgraded its brain with lightweight math lookups that fit modern GPU caches like a glove. The result? Raw, parallel brute-force paired with a cheap "good enough" compass can blow past sophisticated CPU planners on sprawling, regular problems—and team up with them to break overall benchmark records.
What Problem Does This Paper Address?
In classical AI planning, you want to find the cheapest sequence of actions to get from a starting state to a goal (think routing delivery trucks, mixing cocktails, or solving Sokoban). The gold-standard algorithm for finding optimal solutions is $A^*$ search, which relies on a heuristic—a mathematical rule of thumb that estimates how far any given state is from the goal without ever overestimating.
Historically, CPU planners win by using clever, computationally heavy heuristics that prune away vast swathes of the search tree. Moving $A^*$ to a GPU is tempting because state expansion is repetitive and memory-heavy, ideal for parallel SIMD hardware. Around 2010, CuDPlan proved you could batch-expand states on a GPU while using a lock-free CPU hash table to catch duplicates. However, the code relied on ancient CUDA quirks and tiny 64 KB constant-memory limits, eventually ceasing to compile. Meanwhile, GPUs evolved from 480 cores (GTX 480) to over 21,000 cores (RTX 5090). The authors ask: If we resurrect CuDPlan for modern hardware, can we give it a much stronger heuristic without ruining its simple, blazing-fast GPU architecture?
Methods
First, the authors performed archaeological restoration: they moved massive action tables into standard cached global memory, fixed two rare concurrency/bit-carry bugs uncovered by modern thread sanitizers, built a missing PDDL problem grounder, and ported the GPU kernels to Slang so the engine runs natively on both NVIDIA (CUDA) and Apple Silicon (Metal).
Next came the brain upgrade via finite-domain potential heuristics:
- What's standard: A potential heuristic assigns numerical weights to local features of a state and sums them up. Originally, CuDPlan only supported unary (atomic) potentials—checking single state bits in isolation.
- What's new: The authors extended this to conjunctive features, specifically pairwise variable combinations (e.g., "is the shaker clean and empty?").
- Offline MILP & Versioned Sidecars: Before search begins, an offline Mixed-Integer Linear Program (MILP) solves for integer feature weights that maximize the initial state's heuristic estimate while guaranteeing optimality. These weights are saved into a tiny auxiliary "version-2 sidecar" file (2–193 KB). Online, the core $A^*$ search code remains untouched: every GPU thread streams its own state while reading the exact same tiny weight table—a broadcast memory pattern modern GPU L1/L2 caches devour at near-peak bandwidth.
Datasets
No new datasets were introduced; the authors evaluated on established classical planning benchmarks:
- 15 International Planning Competition (IPC) domains (1–3 instances each, including
barman,elevators,blocks, andscanalyzer) for controlled unary vs. pairwise ablation studies. - The SoCS 2026 GPU-planning benchmark suite (1,827 tasks across 65 domains, plus an extra
quantum-layoutdomain bringing local runs to 1,023 attempted tasks) to compare against state-of-the-art CPU (Fast Downwardwith LM-cut) and GPU-accelerated $h^2$ planners.
Key Insights and Ideas
- Higher-dimensional heuristics aren't strictly monotonic: Adding pairwise features gives the offline MILP more freedom, but because the solver only maximizes the heuristic at the starting state $h(s_0)$, the resulting weight distribution can actually give worse guidance deeper in the search tree. Pairwise crushed
barmanandelevators, but actually expanded more states than unary onblocks,freecell, andscanalyzer! Feature complexity is a per-domain tuning knob, not a free lunch.
- Throughput vs. Pruning are complementary: CuDPlan shines when states are cheap to expand and the state space is huge and regular (solving all 17
tetristasks vs. LM-cut's 6). CPU planners with heavy heuristics win when smart pruning shrinks a 227-million-state search down to 643 states (parking). Combining them in a portfolio gets the best of both worlds. - The GPU isn't even the bottleneck anymore: On modern cards, GPU guard checks and action effects take ~7.5% of wall-clock time, while CPU hash-table duplicate detection eats ~46–51%.
- Unified memory is a natural fit: Because CuDPlan splits state expansion (GPU) and duplicate detection (CPU), Apple Silicon's unified memory eliminates RAM-to-VRAM copy overhead, yielding a 4.8$\times$ speedup over CPU emulation on
barman.
Key Results
- Massive state reductions: On
barman, pairwise potentials slashed generated states by 81.7% compared to unary (5.65M down to 1.04M), solving the task in 1.23 s on an RTX 5090 versus 51.4 s for Fast Downward's LM-cut. Across 40 solved IPC tasks, pairwise cut states by 82.3% over unary and 96.3% over blind search, hitting up to 2.7 million states/second. - Benchmark coverage: On the 1,827-task suite, CuDPlan with unary potentials solved 668 tasks in 5 minutes, beating a recent GPU-accelerated $h^2$ planner's 30-minute score of 642 (caveat: CuDPlan ran on a faster machine). Enlarging the closed-list RAM budget to 32 GiB solved 52 out-of-memory tasks, pushing one search over 1.04 billion states in under 5 minutes.
- Portfolio win: Running unary CuDPlan for 5 minutes before handing unsolved tasks to Fast Downward (LM-cut) for 25 minutes solved 1,003 tasks, beating LM-cut alone (968).
Limitations and Future Work
- Offline MILP scaling: On sprawling domains like
tidybot(5.58 million auxiliary variables), the pairwise MILP timed out at 600 seconds before search could even start. - Hardware & Memory Limits: Most failures (124 vs. 9 timeouts) happen because the closed list fills up RAM. Furthermore, cross-paper coverage comparisons mixed hardware setups, and a "skip after two failures" runner rule makes the authors' local coverage numbers conservative lower bounds. Version-2 sidecars also currently run only on CUDA, awaiting plumbing for the Slang/Metal path.
- Next steps: Moving duplicate detection onto the GPU to break the CPU bottleneck, decomposing large MILPs, using external memory to bypass RAM limits, and extending the Boolean grounder to support full numeric planning.
Summary updated