DAG-Plan: Generating Directed Acyclic Dependency Graphs for Dual-Arm Cooperative Planning

Zeyu Gao, Yao Mu, Jinye Qu, Mengkang Hu, Shijia Peng, Chengkai Hou, Lingyue Guo, Ping Luo, Shanghang Zhang, Yanfeng LuarXiv 2024

TL;DR

DAG-Plan is a novel task planning framework for dual-arm robots that replaces traditional linear action sequences with a Directed Acyclic Graph (DAG). By using a Large Language Model (LLM) as a one-time semantic parser to generate this graph, the system captures complex sub-task dependencies and parallel execution opportunities, achieving significantly higher efficiency and success rates than previous linear or iterative planning methods.

What Problem Does This Paper Address?

Dual-arm robots offer the promise of human-like efficiency, but coordinating two limbs for complex, long-horizon tasks is a planning nightmare. Current LLM-based planners generally fall into two traps:

  1. The Rigidity of Linear Sequences: Most planners generate a simple list of steps. This fails to account for tasks that can be done in parallel and makes it impossible to adapt if the environment changes mid-execution.
  2. The Inefficiency of Iterative Querying: To gain adaptability, some systems query the LLM at every single step. While this works, it is prohibitively slow due to API latency and extremely expensive in terms of token usage.

The authors argue that the root cause is the linear representation itself. It simply cannot express the non-linear dependencies (e.g., "I must open the drawer before I can put the sponge inside, but I can grasp the apple while opening the drawer") inherent in bimanual coordination.

Methods

The DAG-Plan framework breaks the planning process into two distinct phases:

1. DAG Generation

Instead of asking an LLM to "act," DAG-Plan asks it to "parse." The LLM takes a natural language instruction and an environment description to generate a structured DAG.

  • Nodes ($V$): Represent sub-tasks (e.g., Grasp, Pour, Wipe).
  • Edges ($E$): Represent temporal dependencies (Task A must finish before Task B starts).
  • Task Types: The system uses a specific typology—Occupy, Tool use, Release, Operate, Complete—to manage arm states and ensure logical soundness (e.g., you can't "Release" something you haven't "Occupied").

2. Task Planning Inference

Once the graph is generated, a dynamic execution engine takes over. This module continuously monitors the environment and the graph state to assign tasks to the arms in real-time.

An overview of the DAG-Plan pipeline, showing the transition from natural language to a structured graph and finally to dual-arm execution.

The engine performs three critical checks before execution:

  • Dependency Check: Ensures a node is "Ready" (all prerequisites are "Done").
  • Reachable Check: Confirms both target objects are within the robot's simultaneous workspace.
  • Across Avoidance: A geometric safety check to prevent the two arms from crossing paths and colliding.

Datasets

The authors introduced the Dual-arm Kitchen Benchmark, a new simulation and physical testing suite designed to fill the gap in long-sequence dual-arm evaluation.

  • Tasks: It includes five complex scenarios: Cleaning a table (Easy/Hard), Stacking bowls in a specific order, Making coffee, and Boiling vegetables.
  • Complexity: The benchmark comprises 44 distinct sub-tasks requiring precise temporal and spatial coordination.
  • Environment: Simulations were conducted in Sapien, using an Agilex CobotMagic platform.

Key Insights and Ideas

  • The "One-and-Done" LLM Strategy: By using the LLM only once to generate the structure, DAG-Plan avoids the crippling latency of iterative methods while retaining the LLM's "common sense" reasoning about task decomposition.
  • Explicit Parallelism: Because the DAG explicitly shows which nodes have no dependencies on each other, the system can natively identify and execute parallel actions, which is impossible with a linear list.
  • Occupy-Release Pairs: To prevent logical deadlocks, the system prioritizes completing an "occupy-release" sequence (like picking up and placing a mug) before the arm starts a new, unrelated task.
  • Bridging the Sim-to-Real Gap: The authors found that a logically sound plan often fails physically (e.g., arms colliding). Their runtime feasibility checks act as a filter, turning a high-level plan into a physically executable one.

Key Results

DAG-Plan was compared against several baselines, including single-arm planning (TP-S), dual-arm linear planning (TP-D), and multi-agent iterative methods like RoCo.

  • Success Rate: DAG-Plan achieved an 88% success rate in plan tests, significantly higher than the 40% achieved by linear dual-arm methods (TP-D).
  • Execution Efficiency: It demonstrated 84.1% higher execution efficiency than iterative querying methods by eliminating repeated LLM calls.
  • Cost Reduction: Compared to iterative methods like RoCo, DAG-Plan reduced token usage by nearly 20x, making it much more viable for real-world deployment.
  • Real-World Performance: The system was successfully deployed on a physical Agilex robot, maintaining high success rates even with the added noise of real-world depth sensors.
Comparison of success rates between simulation and real-world environments across the five benchmark tasks.

Limitations and Future Work

  • LLM Dependency Ceiling: The system's performance is still capped by the LLM's ability to correctly identify temporal dependencies. If the LLM generates a logically flawed graph, the execution engine cannot fix it.
  • Perception Sensitivity: In real-world tests, success rates were slightly lower than in simulation (as seen in Figure 6), primarily due to depth inaccuracies affecting the foundation models used for grasping and pose estimation.
  • Future Directions: The authors suggest improving the robustness of the underlying foundation models for execution and exploring ways to make the DAG generation even more resilient to complex, ambiguous instructions.

Summary updated

BibTeX
@misc{gao2024dag,
  author = {Zeyu Gao and Yao Mu and Jinye Qu and Mengkang Hu and Shijia Peng and Chengkai Hou and Lingyue Guo and Ping Luo and Shanghang Zhang and Yanfeng Lu},
  title = {{DAG-Plan: Generating Directed Acyclic Dependency Graphs for Dual-Arm Cooperative Planning}},
  year = {2024},
  eprint = {2406.09953},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.09953},
}
Figure