Shared Modular Recurrence in Contextual MDPs for Universal Morphology Control

Laurens Engwegen, Max Weltevrede, Caroline Horsch, Daan Brinks, Wendelin BoehmerNeurIPS 2026

TL;DR

Imagine waking up inside an alien body—maybe you have six legs today, or three asymmetrical arms—and trying to walk without falling flat on your face. This paper shows how a single AI controller can immediately pilot brand-new robot bodies it has never seen before by giving each individual limb a tiny, shared "short-term memory." By feeling out how its limbs interact over time, the controller infers the hidden physics of its body on the fly, dramatically boosting zero-shot generalization.

What Problem Does This Paper Address?

Training a Reinforcement Learning (RL) policy from scratch for every new robot design is computationally exhausting. Ideally, we want a universal morphology controller: one brain capable of driving any robot body, even ones with completely different numbers of joints and limbs.

Figure 1: Example of robots that can be found in the UNIMAL design space [Gupta et al., 2021].

Recent state-of-the-art approaches treat robots as modular collections of limbs and use Transformers to pass messages between them. To help the AI adapt, researchers feed it static contextual information—a spec sheet listing each limb's mass, shape, and gear ratios.

While these agents perform great on training robots, they stumble when tested zero-shot (without fine-tuning) on unseen robot designs. Why? The authors point out a subtle blind spot: a static spec sheet is actually partially observable. It omits the global wiring diagram (limb adjacency topology) and cannot capture abstract, dynamic realities—like how swinging limb A throws off the balance of limb B. On training robots, an agent can just memorize these quirks. On a brand-new robot, memorization fails.

Methods

If you don't know how heavy a hammer is by looking at it, you give it a swing. In RL, inferring hidden properties from past actions and observations requires memory, typically via Recurrent Neural Networks (RNNs). However, feeding a whole robot's history into one giant RNN breaks modularity—it immediately fails if you add or remove a limb.

Instead, the authors introduce Shared Modular Recurrence. Every limb processes its own local action-observation history through an individual RNN (specifically, an LSTM), while sharing the exact same RNN weights across all limbs.

Figure 4: Recurrent ModuMorph (R-MoMo)

They upgrade two established modular baselines:

  1. R-MeMo (Recurrent MetaMorph): Each limb’s dynamic state and previous action go through the shared RNN, while its static spec sheet goes through a standard neural layer. These combine and feed into a Transformer encoder to coordinate whole-body actions.
  2. R-MoMo (Recurrent ModuMorph): Builds on ModuMorph, which uses a hypernetwork (a network that generates weights for another network based on the static context). Here, the shared RNN sits right between the limb-wise embedding layer and the Transformer, keeping parameter counts trim.

To train this efficiently using Proximal Policy Optimization (PPO), they adapt R2D2-style overlapping sequence chunking (length 80) with a burn-in period (length 20) to keep the RNN's hidden states fresh without padding massive 1,000-step episodes.

Datasets

No new datasets were introduced; the authors use established benchmarks in the UNIMAL design space (simulated in MuJoCo), where robots have up to 12 limbs:

  • Training set: 100 diverse robots.
  • Kinematics/Dynamics test set: 2,400 variations of the training robots with altered damping, armature, gear, density, limb shapes, or joint angles.
  • Topology test set: Unseen robot body plans, split into 32 validation and 70 test robots.
  • Environments: Four locomotion tasks—Flat Terrain, Incline (10-degree slope), Variable Terrain (hills/rubble), and Obstacles.

Key Insights and Ideas

  • Robot bodies are partially observable puzzles: Even in a "fully observable" physics simulator where joint angles and velocities are exact, multi-robot control hides crucial structural and functional context. Treating it as partially observable unlocks implicit, online system identification.
  • Better scaling laws: Performance scales up as you train on more robot bodies (25 to 100), and adding modular memory actually steepens the scaling curve on harder tasks like climbing inclines.
  • Memory amplifies good clues (and exposes overfitting): When the authors withheld all contextual features except one, R-MoMo surged ahead whenever that single feature was informative. Curiously, the non-recurrent baseline barely reacted to losing most of its spec sheet—suggesting previous models were largely overfitting to training bodies rather than genuinely understanding the context!

Key Results

Averaged across 10 random seeds, adding shared modular recurrence consistently matched or beat non-recurrent baselines:

  • Unseen Topologies: On the 70 unseen test robots, R-MoMo significantly outperformed all methods across all four environments. Even the simpler R-MeMo rivaled the hypernetwork-powered ModuMorph zero-shot, despite ModuMorph scoring higher during training.
  • Broad Reliability: Per-robot breakdowns (normalized across returns ranging from $-74$ to $5008$) revealed that R-MoMo improved control across the vast majority of the 70 test robots, drastically cutting down the number of "dud" bodies the AI couldn't figure out how to move.
  • Unseen Physics: Across the 2,400 kinematics/dynamics variations, R-MoMo beat ModuMorph in every environment (with confidence intervals overlapping only in Obstacles), and R-MeMo consistently beat MetaMorph.

Limitations and Future Work

  • Memory footprint & training speed: Maintaining separate hidden states for every limb takes extra memory—a potential bottleneck for centipede-scale robots with dozens of modules (though sequence chunking mitigates this). Sequential RNN processing also slows down training, though inference speed is unaffected.
  • The generalization gap: Unseen robots still score lower than training robots; universal control isn't "solved" yet.
  • Future directions: Exploring lighter-weight memory mechanisms and untangling why certain static context features pair so much better with recurrent inference than others.

Summary updated

Abstract

A universal controller for any robot morphology would greatly improve computational and data efficiency. Steps have been made towards such multi-robot control by utilizing *contextual* information about the properties of individual robots and exploiting their modular structure in the architecture of deep reinforcement learning agents. When the robots have highly dissimilar morphologies, however, this becomes a challenging problem, especially when the agent must generalize to new, unseen robots. In this paper, we consider the fact that contextual features are often only partially available, but that they can be recovered through modular interactions. This can allow for better multi-robot control and generalization to contexts that are not seen during training. To this extent, we implement a transformer-based architecture with shared modular recurrence and evaluate its (generalization) performance on a large set of MuJoCo robots. The results show a substantial improvement in zero-shot generalization performance on robots with unseen dynamics, kinematics, and topologies, in four different environments.
BibTeX
@inproceedings{engwegen2026shared,
  author = {Laurens Engwegen and Max Weltevrede and Caroline Horsch and Daan Brinks and Wendelin Boehmer},
  title = {{Shared Modular Recurrence in Contextual MDPs for Universal Morphology Control}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Gegwgu6VmY},
}
Figure