Skip to main content
QUICK REVIEW

[Paper Review] One Policy to Control Them All: Shared Modular Policies for Agent-Agnostic Control

Wenlong Huang, Igor Mordatch|arXiv (Cornell University)|Jul 9, 2020
Reinforcement Learning in RoboticsComputer Science36 references26 citations
TL;DR

This paper proposes Shared Modular Policies (SMP), a single, reusable neural network module that controls diverse agent morphologies by enabling local actuator control with inter-module message passing. Trained via reinforcement learning, SMP achieves coordinated locomotion across planar agents like bipeds, quadrupeds, and hoppers—generalizing to unseen morphologies without retraining or hyperparameter tuning.

ABSTRACT

Reinforcement learning is typically concerned with learning control policies tailored to a particular agent. We investigate whether there exists a single global policy that can generalize to control a wide variety of agent morphologies -- ones in which even dimensionality of state and action spaces changes. We propose to express this global policy as a collection of identical modular neural networks, dubbed as Shared Modular Policies (SMP), that correspond to each of the agent's actuators. Every module is only responsible for controlling its corresponding actuator and receives information from only its local sensors. In addition, messages are passed between modules, propagating information between distant modules. We show that a single modular policy can successfully generate locomotion behaviors for several planar agents with different skeletal structures such as monopod hoppers, quadrupeds, bipeds, and generalize to variants not seen during training -- a process that would normally require training and manual hyperparameter tuning for each morphology. We observe that a wide variety of drastically diverse locomotion styles across morphologies as well as centralized coordination emerges via message passing between decentralized modules purely from the reinforcement learning objective. Videos and code at https://huangwl18.github.io/modular-rl/

Motivation & Objective

  • Develop a general-purpose control policy that can be reused across agents with drastically different morphologies, including varying numbers of limbs and state/action space dimensions.
  • Overcome the limitations of agent-specific policy training in deep reinforcement learning, which requires separate training and hyperparameter tuning for each morphology.
  • Explore whether decentralized, modular policies with message passing can emerge as a unified solution for diverse locomotion behaviors without centralized coordination.
  • Investigate whether a single policy can generalize to agent variants not seen during training, enabling pre-trained priors for robot control.

Proposed method

  • Represent the global control policy as a collection of identical, locally connected neural network modules, one per actuator, each processing only local sensor inputs.
  • Enable inter-module communication via learnable message passing: each module sends and receives message vectors to/from neighboring actuators, enabling information propagation across the agent’s morphology.
  • Structure the agent as a tree-structured graph where message passing occurs both top-down and bottom-up, allowing global coordination to emerge from local interactions.
  • Train the entire system using standard policy gradient reinforcement learning, with shared parameters across all modules to enforce modularity and generalization.
  • Use a graph network-like architecture to encode agent morphology and facilitate message passing between connected actuators.
  • Evaluate performance across multiple agent types (biped, quadruped, monopod) and morphological variants, including those not seen during training.

Experimental results

Research questions

  • RQ1Can a single, shared policy module control a wide variety of agent morphologies with differing numbers of limbs and state/action space dimensions?
  • RQ2Does message passing between decentralized modules enable the emergence of globally coordinated locomotion behaviors without centralized control?
  • RQ3Can a policy trained on a set of morphologies generalize to novel, unseen morphological variants without retraining or hyperparameter tuning?
  • RQ4What role does bidirectional message passing (top-down and bottom-up) play in enabling complex, coordinated behaviors across diverse agents?
  • RQ5How does the modularity of the policy architecture support generalization and reuse across agents with varying sensorimotor configurations?

Key findings

  • The SMP policy achieved a mean training reward of 3709.87 ± 580.87 when the left foot was used as the root, outperforming both the torso-root variant (3215.04 ± 447.82) and the monolithic baseline (3592.70 ± 111.13).
  • Message passing enabled the emergence of consistent, rhythmic locomotion patterns—evidenced by t-SNE visualization of torso messages showing periodic, time-locked patterns aligned with gait cycles.
  • The torso message, aggregating information from all limbs via bottom-up message passing, captured global state information and correlated strongly with the agent’s pose over time.
  • The policy successfully generalized to morphological variants not seen during training, demonstrating robustness and transferability across diverse agent structures.
  • Both top-down and bottom-up message passing were essential for coordination, with ablation studies showing that removing message passing severely degraded performance.
  • Despite being decentralized and locally focused, the system achieved centralized-like coordination through learned message passing, suggesting that complex global behaviors can emerge from local, modular interactions.

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.