Modular RL
Shared Modular Policies, one message-passing policy module reused across every limb of many agents.
Reinforcement learning and control · 596 operations Checked
Click or tap a spot to read it up close. Scroll or drag inside the diagram to move through it. Zoom with + and − or Ctrl and scroll. Press 0 for the whole graph. Swipe inside the diagram to move through it. Use + and − to zoom.
At a glance
- Parameters
- 794.5K
- Operations
- 596
- Framework
- PyTorch
- Recurrent
- Yes
- Published
- ICML 2020
- Cited by
- 56 (as of 24 October 2026)
- Authors
- Wenlong Huang, Igor Mordatch, Deepak Pathak
- Source
- GitHub: huangwl18/modular-rl
- License
- MIT
- Checked
- Passed: the trace was replayed operation by operation and matched the model's own output for this input.
Files
The file opened in a new tab. Use your browser's Save command there to keep it.
The diagram is a drawing of a TorchLens trace of the source code. It contains no code or weights.
Details
- Stable ID
- m18499
- Graph hash
- 45a3e3108590d5e4ccd3ab4175fc9cb96284531f9db3e63f6b962a62c76d795a
- Skeleton hash
- b2e0e47974f4aacce9d1dc2a6fc84237ffac99ea1caf66fd430e4b0dcfb7f318
- Architecture hash
- efad65e25982e8a9f385716c4e33f7b3ad119bfad2d8688b878d754ee64ef5d9
- Diagram SHA-256
- 2daeab507845321b3ba254c93e3bafed71532a050139392981c95460ae5cf4bc
- TorchLens version
- 2.36.0
- Renderer
- graphviz 2.43.0+pyvips 3.2.0+libvips 8.18.7+render-opts@06c1f0d3
- Check
- Forward pass replayed in PyTorch
What it is
Shared Modular Policies (SMP) expresses one global control policy as a collection of identical modular neural networks, one for each of an agent's actuators. Each module controls only its own actuator and receives information only from its local sensors. The aim is a single policy for a wide variety of agent morphologies, including ones whose state and action spaces differ in dimensionality.
Coordination comes from message passing, in which each module sends and receives learned message vectors to and from its neighboring actuators. In the both-way scheme, messages go first from leaves to root and then from root to leaves. The upward pass produces only messages, while the downward pass predicts the actions. The shared modules are two 4-layered fully-connected networks, one for bottom-up and one for top-down message passing. The message vectors have dimension 32. Training uses TD3 as the underlying reinforcement learning method.
The paper tests the controllers on the standard Gym MuJoCo locomotion tasks. It builds collections of agent variants, such as 12 variants of walker and 8 variants of humanoid. The paper keeps 20% of the variants as a held-out set and trains on the rest. It reports that both-way message passing outperforms the multi-task RL baseline and performs significantly better than top-down only or bottom-up only message passing. On held-out morphologies, the paper reports that both-way message passing achieves high rewards in a zero-shot manner.
Key idea. SMP represents a control policy as identical, locally communicating neural modules shared across all limbs of all agents, so one policy can control many morphologies.
- smp
- shared modular policies
- modular rl
- modular policy
- agent-agnostic control
- morphology generalization
- locomotion control
- message passing policy
- multi-morphology reinforcement learning
AI-written summary, based on the paper and checked automatically against it; not reviewed by a person. Corrections welcome.
Cite the paper
@misc{huang2020policycontrolallshared,
title={One Policy to Control Them All: Shared Modular Policies for Agent-Agnostic Control},
author={Wenlong Huang and Igor Mordatch and Deepak Pathak},
year={2020},
eprint={2007.04976},
archivePrefix={arXiv},
primaryClass={cs.LG},
url={https://arxiv.org/abs/2007.04976},
}