Physics-Aware Combinatorial Assembly Sequence Planning Using Data-Free Action Masking

Ruixuan Liu, Alan Chen, Weiye Zhao, Changliu Liu

TL;DR

This paper tackles the complex problem of planning physically executable assembly sequences for building objects from standardized bricks (like Lego). They introduce a novel "physics-aware action mask" that uses deep reinforcement learning to filter out invalid moves, ensuring that planned sequences are stable and can be built in the real world, achieving a 100% success rate on Lego assembly tasks.

What Problem Does This Paper Address?

Robotic assembly is a key area for automation, but planning how to build complex structures from basic components, especially when the exact final layout isn't fixed (combinatorial assembly), is incredibly challenging. The core difficulty lies in ensuring that the planned sequence of actions is not only goal-oriented but also physically feasible. This means avoiding collisions, ensuring bricks are placed correctly, and crucially, that the structure doesn't collapse at any stage. Traditional assembly planning often assumes unique parts and a fixed goal, making it ill-suited for combinatorial assembly where numerous permutations of parts and layouts can achieve the same goal. The paper specifically addresses the problem of planning assembly sequences for Lego bricks, which involves complex interlocking mechanisms and a vast action space, making it a particularly difficult benchmark.

Methods

The authors propose a deep reinforcement learning (RL) framework for combinatorial assembly sequence planning (ASP). The key innovation is a physics-aware action mask. This mask acts as a real-time filter during both training and deployment, identifying and pruning invalid actions based on several physical constraints:

  • Task-oriented: Ensures actions contribute to building the target shape.
  • Collision-free: Prevents placing bricks where they would overlap with existing ones.
  • Inventory: Checks if the required brick is available.
  • Operability: Verifies there's enough space for insertion (e.g., not blocked from above or below).
  • Structural Stability: This is the most novel aspect. Instead of relying on a full physics engine (which is difficult for Lego), they use an optimization-based analysis to estimate internal stress and predict if a brick placement would cause collapse.

This action mask is "data-free," meaning it's computed numerically and doesn't require a pre-existing dataset of valid/invalid moves or a complex physics simulation. The RL agent learns a policy that outputs actions from this masked distribution, effectively guiding it towards physically valid solutions. They also extend this to robot execution by incorporating robot-specific constraints like workspace availability.

Datasets

The paper evaluates their method on several datasets:

  • Hand-crafted shapes: 10 shapes manually designed to be challenging, with overhanging structures.
  • Self-supervised generated shapes: 150 shapes automatically generated by their method to ensure feasibility, ranging from 1-30 steps.
  • StableLego dataset: A subset of 100 stable and 20 unstable (Hard StableLego) designs from the StableLego dataset.

Key Insights and Ideas

  • Physics as a hard constraint, not just a reward: Instead of just penalizing instability in the reward function, the action mask enforces physical validity before an action is taken. This is crucial for preventing the agent from learning to recover from physically impossible states.
  • Data-free physics estimation: Developing a method to estimate structural stability without a full physics engine is a significant contribution, especially for complex interlocking systems like Lego. Their optimization-based approach is key here.
  • Action masking for combinatorial complexity: The vast action space in combinatorial ASP is a major hurdle. The physics-aware action mask effectively prunes this space, making RL training more efficient and ensuring deployment safety.
  • RL vs. Search for ASP: The paper highlights a trade-off between RL (faster inference, requires training) and MCTS (slower inference, training-free). Their RL approach demonstrates a wider exploration space and better performance.

Key Results

  • 100% success rate: The proposed method (RL + FullMask) achieved a 100% success rate in planning physically valid assembly sequences for all tested scenarios (Hand-crafted, Self-supervised, StableLego, Hard StableLego).
  • Outperforms baselines: Compared to various RL and MCTS baselines with different masking strategies, their method consistently achieved higher success rates, especially on more challenging shapes. Baselines often failed to produce physically executable sequences or got stuck in dead-ends.
  • Robot execution demonstrated: The method was successfully extended to plan for a bimanual robotic system, demonstrating real-world assembly capabilities.

Limitations and Future Work

  • Computation Time: The stability analysis for the action mask is computationally intensive, accounting for a significant portion of the total planning time. Future work aims to use an NN-based approach for faster mask inference.
  • Policy Generalization: The current policy structure is not heavily tuned. Future work will focus on improving the policy to generalize better to unseen 3D shapes and different inventories.
  • Hierarchical Planning: The current step-by-step approach can fail on very long-horizon tasks. Exploring hierarchical assembly strategies is suggested for more complex structures.

Summary updated

BibTeX
@article{liu2025physics,
  author = {Ruixuan Liu and Alan Chen and Weiye Zhao and Changliu Liu},
  title = {{Physics-Aware Combinatorial Assembly Sequence Planning Using Data-Free Action Masking}},
  journal = {IEEE Robotics Autom. Lett.},
  year = {2025},
  doi = {10.1109/lra.2025.3555074},
}
Figure