Skip to main content
QUICK REVIEW

[Paper Review] Hardware as Policy: Mechanical and Computational Co-Optimization using Deep Reinforcement Learning

Tianjian Chen, Zhanpeng He|arXiv (Cornell University)|Aug 11, 2020
Reinforcement Learning in RoboticsComputer Science37 references9 citations
TL;DR

This paper introduces 'Hardware as Policy' (HWasP), a deep reinforcement learning framework that co-optimizes mechanical hardware and computational control policies by modeling hardware parameters as differentiable components within a unified computational graph. By enabling gradient-based optimization of both hardware and control parameters, HWasP achieves faster convergence and superior performance compared to hyperparameter tuning and evolutionary strategies, demonstrated through a simulated mass-spring system and a real 3D-printed underactuated hand that achieves 100% grasp success on boxes and balls.

ABSTRACT

Deep Reinforcement Learning (RL) has shown great success in learning complex control policies for a variety of applications in robotics. However, in most such cases, the hardware of the robot has been considered immutable, modeled as part of the environment. In this study, we explore the problem of learning hardware and control parameters together in a unified RL framework. To achieve this, we propose to model the robot body as a "hardware policy", analogous to and optimized jointly with its computational counterpart. We show that, by modeling such hardware policies as auto-differentiable computational graphs, the ensuing optimization problem can be solved efficiently by gradient-based algorithms from the Policy Optimization family. We present two such design examples: a toy mass-spring problem, and a real-world problem of designing an underactuated hand. We compare our method against traditional co-optimization approaches, and also demonstrate its effectiveness by building a physical prototype based on the learned hardware parameters. Videos and more details are available at https://roamlab.github.io/hwasp/ .

Motivation & Objective

  • To address the limitation of treating robot hardware as immutable in traditional RL, where only control policies are learned.
  • To enable joint optimization of mechanical design and control policies using gradient-based methods, overcoming sample inefficiency in evolutionary strategies.
  • To demonstrate that modeling hardware as a differentiable policy enables efficient, scalable co-design of robotic systems.
  • To validate the approach on both a simple mechanical system and a real-world underactuated hand prototype with physical deployment.
  • To establish a framework where hardware and software co-design can be performed using standard RL toolkits with minimal algorithmic changes.

Proposed method

  • Hardware parameters (e.g., gear ratios, spring stiffness) are embedded as learnable parameters within a differentiable computational graph, analogous to neural network weights.
  • The entire system—comprising both computational policy and hardware policy—is trained end-to-end using policy gradient methods, with gradients backpropagated through the physics-compliant computational graph.
  • The method leverages auto-differentiable physics simulators to compute gradients of policy performance with respect to both control and hardware parameters.
  • A minimal variant (HWasP-Minimal) is introduced to test the approach with non-differentiable physics engines, using sampling-based policy gradients instead of analytical gradients.
  • The framework supports both single-task and multi-task optimization, with potential for extension to kinematics, morphology, and sensor design.
  • The approach is evaluated using standard RL algorithms (e.g., PPO) with modified computational graphs that include hardware parameters as part of the policy computation.

Experimental results

Research questions

  • RQ1Can hardware parameters be effectively optimized alongside control policies using gradient-based reinforcement learning?
  • RQ2How does the performance of gradient-based co-optimization compare to hyperparameter tuning and evolutionary strategies in hardware-software co-design?
  • RQ3To what extent can differentiable physics enable faster and more efficient co-design of mechanical and computational components?
  • RQ4Can a jointly optimized hardware and control policy generalize across diverse object shapes and grasping tasks in simulation and reality?
  • RQ5How does the inclusion of physics differentiability affect the scalability and robustness of the co-design process?

Key findings

  • HWasP achieved faster convergence and higher performance than hyperparameter tuning and gradient-free evolutionary strategies in both the mass-spring and hand design tasks.
  • The physical prototype of the 3D-printed underactuated hand, based on HWasP-optimized hardware, successfully performed stable grasps on boxes, balls, and cylinders in real-world experiments.
  • The optimized hand achieved a 100% success rate for Z-Grasp on boxes and balls, and 90% on cylinders, with 100% success on boxes and 80% on cylinders for 3D-Grasp.
  • The method demonstrated 50% success on balls in 3D-Grasp due to early contact-induced object displacement, highlighting a challenge in real-world perception.
  • HWasP-Minimal, which uses sampling-based gradients, performed at least as well as the best evolutionary baseline, showing broad applicability even without auto-differentiable physics.
  • The framework enables efficient co-design by allowing algorithm designers to tune the level of physics differentiability, balancing computational cost and implementation ease.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.