Abstract
Modular robots can be reconfigured to create a variety of designs from a small set of components. But constructing a robot's hardware on its own is not enough -- each robot needs a controller. One could create controllers for some designs individually, but developing policies for additional designs can be time consuming. This work presents a method that uses demonstrations from one set of designs to accelerate policy learning for additional designs. We leverage a learning framework in which a graph neural network is made up of modular components, each component corresponds to a type of module (e.g., a leg, wheel, or body) and these components can be recombined to learn from multiple designs at once. In this paper we develop a combined reinforcement and imitation learning algorithm. Our method is novel because the policy is optimized to both maximize a reward for one design, and simultaneously imitate demonstrations from different designs, within one objective function. We show that when the modular policy is optimized with this combined objective, demonstrations from one set of designs influence how the policy behaves on a different design, decreasing the number of training iterations needed.
Introduction
Modular robotics provides a flexible solution for hardware design, allowing users to assemble specialized robots from a library of standard components like legs, wheels, and sensors. However, the software challenge of controlling these diverse configurations is significant. Traditionally, every new hardware arrangement requires training a new control policy from scratch. Standard Reinforcement Learning (RL) is often prohibitively slow for this task, as agents typically begin with random "flailing" that takes many iterations to refine into productive locomotion.
While Imitation Learning (IL) can jump-start this process by providing expert demonstrations, it conventionally requires the demonstration robot and the trainee to share the exact same physical design. This paper addresses the challenge of cross-design transfer: leveraging existing motion data from one set of modular robots to accelerate the learning of entirely new, unseen configurations.
Methodology: Modular Policies and Combined Objectives
To enable cross-design transfer, the researchers utilize two primary innovations: Modular Policies and a hybrid RL+IL objective function.
Modular Policies via Graph Neural Networks (GNNs)
Instead of a single, monolithic neural network, the control policy is structured as a Graph Neural Network (GNN). In this architecture, each node represents a physical module of the robot. Crucially, all modules of the same type (e.g., all leg modules) share the same neural weights. This allows the policy to be instantly reconfigured to match any robot topology by simply rearranging the GNN nodes to reflect the physical hardware. This version of the modular policy is also recurrent, allowing it to better handle the temporal flow and rhythmic gaits required for locomotion.
The RL+IL Objective
The training process optimizes a single loss function that combines reinforcement learning and imitation learning: $L = L_{RL} + \lambda L_{IL}$.
- RL Component: A model-based RL approach that rewards forward distance and penalizes instability.
- IL Component: A behavioral cloning loss that minimizes the difference between the policy's actions and those in a demonstration dataset.
The algorithm employs a "prior" strategy: it begins with a high weight on imitation ($\lambda$) to establish a behavioral baseline, then gradually decays this weight. This allows the RL component to fine-tune the motion for the specific nuances of the new hardware configuration once basic movement is established.
Experimental Results
The framework was evaluated using the NVIDIA IsaacGym simulator. Expert demonstrations were gathered for two "source" designs: a four-wheeled car and a six-legged hexapod. The researchers then tested how quickly the system could learn policies for these designs and new "hybrid" designs, such as a "leg-leg-wheel" configuration.
Faster Convergence and Reduced Variance
The most significant finding was the drastic reduction in training time for complex designs. For the hexapod, the RL+IL method reached peak performance in just 2 iterations, whereas pure RL was still struggling after 5. Furthermore, the RL+IL approach showed much lower variance across trials, indicating a more stable and reliable learning process.
Successful Cross-Design Transfer
The hybrid "leg-leg-wheel" robot provided the ultimate test for cross-design transfer. By imitating the leg modules of the hexapod and the wheel modules of the car, the hybrid robot converged significantly faster than it did with pure RL. This confirms that the modular policy effectively transfers specific component-level knowledge across different robot topologies.
Conclusion and Future Work
By combining modular GNN-based policies with a hybrid RL+IL objective, this research demonstrates that robots can learn to move by "watching" other designs. This significantly lowers the barrier to deploying new modular hardware. Future work will explore applying this framework to more complex environments, such as uneven terrain, and validating the sim-to-real transfer on physical modular hardware.
Summary updated