NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Learning Options for Compositional Motor Control with Adapter Banks

Sreejan Kumar, Marcelo G Mattar, Lea DunckerNeurIPS 2026

TL;DR

How did Mr. Miyagi train Daniel-san to fight just by making him wax cars and paint fences? Humans effortlessly remix basic motor skills to perform brand-new movements, and this paper translates a neuroscience theory of how the brain does this into a trainable AI architecture called CABRA. By pairing a shared recurrent network with a bank of selectable "adapters," the system discovers reusable motor building blocks that can be snapped together to execute novel, out-of-distribution movements—improving generalization over standard multitask baselines by roughly sevenfold.

What Problem Does This Paper Address?

In hierarchical reinforcement learning, we want agents to learn reusable movement primitives (often called options) and recombine them to solve new tasks. In the brain, however, distinct movements aren't stored in isolated neural silos; they share the same motor cortex circuitry.

A recent theoretical neuroscience framework proposed a clever biological mechanism for this: the motor cortex provides shared recurrent dynamics, thalamocortical loops act as "low-rank" perturbations that tweak those dynamics into specific movement motifs, and the basal ganglia acts as a switchboard deciding which loops to activate.

Thalamic loops tweak shared cortical dynamics to generate distinct oscillatory movement motifs.

There was just one catch: the neuroscience theory assumed a fixed, pre-wired network. It left wide open the question of learning—how a single system can simultaneously learn the shared core dynamics, what the modulatory perturbations should do, and how to sequence them from scratch.

Methods

Enter CABRA (Compositional Adapter Banks for Recurrent Architectures). The authors map the brain's anatomy onto an end-to-end imitation learning framework:

  • The Cortex: A shared LSTM core.
  • Thalamocortical Loops: A bank of 10 nonlinear residual adapters that perturb the LSTM's hidden state. Crucially, unlike the theoretical model, the authors impose no rank constraints on these adapters—they are initialized full-rank.
  • The Basal Ganglia (BG): A selector readout that segments trajectories and picks discrete adapter codes (building on the existing CompILE segmentation framework and Gumbel-softmax estimators).

CABRA learns via a clever two-stroke engine paired within every training update:

  1. Observation Mode: CABRA watches an expert teacher trajectory (sensory states and muscle commands, without task labels) while adapters are turned off. The BG selector infers a two-part "control program": which two adapters to use (one for extension, one for retraction) and the exact timestep boundary to switch between them.
  2. Execution Mode: The recurrent cortical weights are temporarily frozen, and CABRA takes the wheel in a closed-loop physics environment. The selected adapters actively perturb the core's hidden states to drive the arm's muscles. Execution error directly trains the adapters, while indirectly shaping the cortex via the observation pass.
Figure 2: An imitation learning framework to train flexible motor adapters (A) We train a standard task-input-conditioned recurrent network controlling a two-link, six-muscle arm to supply expert demonstrations [10]. (B) In observation mode, CABRA’s cortical network processes expert observations and actions without adapter modulation (note that CABRA’s observations do not contain the rule input). Its activity supports a basal-ganglia-like (BG) selector that infers two adapter identities and their transition boundary, as well as an auxiliary task-identity prediction. (C) In execution mode, the inferred sequence recruits thalamic adapters that modulate the same cortical network to generate actions and receive environmental feedback. Execution error trains the adapters and readout.

Datasets

  • Closed-Loop Biomechanical Arm Control: Adopted from Lazzari & Saxena (2025), a two-link, six-muscle virtual arm receiving proprioceptive feedback. While the expert teacher is trained on 10 tasks (both half-strokes and full out-and-back trajectories), CABRA is trained only on the 5 full compound movements (reaches, clockwise/counterclockwise circles, and figure-eights).
  • Synthetic OOD Trajectories: Newly constructed movements—such as a four-segment "two-petal" shape—that splice straight reaches and curved arcs together with sharp kinematic discontinuities never seen during training.
  • D4RL Kitchen: A standard hierarchical RL benchmark featuring a 3D robotic arm performing household manipulation tasks.

Key Insights and Ideas

  • Low-rank structure emerges for free: Even though every adapter is initialized as an unconstrained, full-rank 256-dimensional map, training naturally compresses each individual adapter's perturbation into a tiny subspace (effective rank ~5–6). Yet together, all ten adapters span an effective rank of ~28, nearly covering the core network's entire ~30-dimensional activity manifold. The network organically rediscovers the exact low-rank assumption predicted by theoretical neuroscience!
  • Untangling the "spaghetti" of multitask representations: Standard rule-conditioned RNNs mash all tasks into a single, heavily overlapping neural subspace (off-diagonal subspace overlap of 0.69), relying on shared dynamics. CABRA flips this: its shared core pushes different tasks into cleanly separated, nearly orthogonal subspaces (overlap of just 0.18), while organizing dynamics sensibly by physical kinematics (e.g., grouping clockwise movements together).
  • Meaningful specialization without micromanagement: Without being told which code belongs to which task, CABRA dedicates each of its 5 extension adapters to one specific movement type, while smartly sharing retraction adapters where return paths physically look alike.
Figure 3: CABRA execution of compound movements. Top row: Hand-trajectory L1 error of the trained CABRA under all 25 forced (extension code, retraction code) pairs, for each of the five compound tasks. Rows index the five extension codes (z0–z4); columns index the five retraction codes (z5–z9). Stars mark the natural code pair selected by the encoder. Bottom row: Expert (black) and CABRA (blue, dashed) hand trajectories under the encoder’s natural code choice. Green dots mark the start position.

Key Results

  • Compound Mastery: CABRA reproduces all five compound movements in closed-loop physics without task-rule inputs, achieving hand-trajectory $L_1$ errors around $10^{-2}\text{ m}$.
  • 7x Better Compositional Generalization: To test the novel two-petal trajectory, the authors froze both CABRA and the teacher baseline, optimizing only a lightweight $T \times 10$ policy matrix over the task/adapter interfaces for 350 steps. The tangled baseline plateaued at an $L_1$ error of $\sim 0.04\text{ m}$, unable to handle mid-flight transitions. CABRA nailed the trajectory with an $L_1$ error of $0.005\text{ m}$—roughly sevenfold lower error (and still $>2\times$ better even when restricted to hard, discrete switching).
  • Robotics Scaling: On D4RL Kitchen, training a reward-based policy over frozen CABRA adapters yielded higher early-training rewards and matched the late-stage performance of established skill-learning methods (SPiRL).

Limitations and Future Work

CABRA currently relies on a few structural guardrails in its primary biomechanical setup: the authors hardcode the number of trajectory segments to two (reflecting extension and return), apply a phase mask splitting the adapter bank into extension/retraction pools, and include an auxiliary task-identity loss during observation. Furthermore, choosing the total number of adapters involves a manual capacity-versus-sharing tradeoff.

While their D4RL Kitchen experiments already show CABRA can work without task supervision or phase masks, a major goal for future work is letting the model autonomously discover how many primitives exist in an arbitrary behavior stream and when they start and stop—alongside testing these co-evolving circuit predictions against real neural recordings from the cortex, thalamus, and basal ganglia.

Summary updated

BibTeX
@inproceedings{kumar2026learning,
  author = {Sreejan Kumar and Marcelo G Mattar and Lea Duncker},
  title = {{Learning Options for Compositional Motor Control with Adapter Banks}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=qPRbaqMTnX},
}
Figure