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

Learning Reusable Options by Decomposing Neural Policies

Parnian Behdin, Reza Abdollahzadeh, Kiarash Aghakasiri, Levi LelisNeurIPS 2026

TL;DR

When we write software, we extract useful chunks of code into reusable functions; when we train neural networks, useful behaviors stay hopelessly tangled in a web of weights. This paper introduces DIDEC, a method that uses gradient descent to carve trained reinforcement learning policies into compact, reusable sub-policies ("options"). By learning both what neural circuitry to keep and how to "call" it in new contexts, agents can dramatically speed up learning on brand-new tasks.

What Problem Does This Paper Address?

In reinforcement learning (RL), an agent shouldn't have to relearn how to walk or open a door every time it enters a new room. Ideally, it transfers skills using options—temporally extended macro-actions (like a reusable open_door() function) rather than choosing primitive twitch-level actions at every step.

If an agent has already solved previous tasks using neural networks, those networks likely contain great reusable skills. Reusing an entire network on a new task is usually too rigid because it overfits to features of the old environment. Prior work showed that piecewise-linear (ReLU) networks can be mapped to decision-tree-like structures ("neural trees"), where subtrees act as reusable subprograms. The catch? The number of candidate subtrees grows exponentially with the number of hidden neurons—a modest 256-neuron network yields $\sim 10^{122}$ possibilities. Brute-force enumeration is dead on arrival. How do we search this astronomical space to extract clean, portable skills?

Methods

The authors propose DIDEC (Differentiable Decomposition), turning combinatorial subtree search into smooth, gradient-based optimization. While the weights of previously trained source policies stay completely frozen, DIDEC learns three types of masks via behavior cloning on short trajectory snippets from other tasks:

  • Hidden-Unit Masks (Selecting the Subprogram): In a ReLU network, any subtree in an equivalent neural tree corresponds to assigning each hidden neuron one of three states: inactive (output fixed to $0$), active (ReLU removed, passing the linear pre-activation value), or retained (normal ReLU). Using a Softmax + straight-through estimator, DIDEC optimizes continuous parameters to pick these discrete states.
Decomposing a neural policy into an equivalent neural tree and extracting a compressed neural subprogram.
  • Input Masks (Default Function Arguments): A skill learned in the top-left corner of a map might still rely on coordinate inputs saying "I am in the top-left." To make it portable, DIDEC masks input features—deciding whether to read an input live from the new environment or overwrite it with a learned default constant (letting the subprogram "pretend" it’s in its original context).
  • Initial Recurrent States: For partially observable tasks using LSTMs, DIDEC also learns initial hidden and memory vectors ($h_0, c_0$) to drop the recurrent "state machine" into the right starting mode.

Finally, extracted subprograms are wrapped in a fixed-duration repeat(b) loop and added to a downstream PPO agent's action space.

Datasets

Because this is an RL transfer-learning study, evaluation uses interactive simulation benchmarks rather than static datasets (no new benchmarks are introduced, though existing ones are configured into transfer sequences):

  • MiniGrid (SimpleCrossing $\rightarrow$ FourRooms; Unlock $\rightarrow$ MultiRoom): Grid-world navigation and object interaction.
  • MiniHack (Corridor): Procedurally generated roguelike rooms and hallways.
  • ComboGrid (Dense and Sparse rewards): A grid world requiring specific multi-step action sequences ("combos") to move, testing recurrent LSTM policies.
  • Meta-World (Push the Puck): A continuous-control robotic manipulation benchmark with continuous observations.

Key Insights and Ideas

  • Equivalence Classes for Free: Different orderings of neurons yield different neural trees, creating massive redundancy. Searching the $3^{|H|}$ space of neuron masks naturally searches over equivalence classes of subtrees, ignoring arbitrary branching orders.
  • Decomposition = Compression: Neurons masked as inactive vanish; neurons masked as active become purely linear and fold algebraically into the next layer's weights! Extracting a skill literally shrinks the network.
  • Emergent Behavioral Adaptation: Without being told what kind of options to build, DIDEC adapts to domain physics. In ComboGrid, it masks out all observations to create pure open-loop macro-actions; in MiniGrid, it keeps partial observation masks to build reactive, closed-loop object-pickup skills.

Key Results

  • Downstream Sample Efficiency: Across discrete, continuous, feedforward, and recurrent settings, PPO augmented with DIDEC options consistently matches or substantially beats learning from scratch, reusing whole policies, or fine-tuning weights.
  • Shining in Tough Generalization Regimes: In MultiRoom (230) (featuring unusually narrow rooms unseen in training), ComboGrid Sparse, and Meta-World, DIDEC rapidly achieves high returns while baselines largely flatline or learn significantly slower.
  • Massive Parameter Reduction: In MultiRoom, folding away active and inactive neurons compresses the actor network from 52,486 parameters down to 7,730 on average—an 85.3% reduction.

Limitations and Future Work

  • Offline Compute Overhead: Before downstream RL begins, DIDEC runs behavior cloning across pairs of sub-trajectories and source policies. In MiniGrid, option extraction takes ~47 minutes on 16 CPU cores (versus ~1 minute when reusing whole policies without decomposition), a cost not shown on environment-step learning curves.
  • Input & Observation Constraints: Source and target tasks must share compatible observation and action spaces, and the method has not yet been scaled to raw pixel inputs. Furthermore, input masks can only pass values through or overwrite them with constants—they cannot shift coordinates or couple multiple inputs.
  • Fixed Timing: Options currently run for fixed step counts (and aren't temporally extended yet in Meta-World). Future directions include learning structured input transformations and performing online decomposition while learning a single task.

Summary updated

BibTeX
@inproceedings{behdin2026learning,
  author = {Parnian Behdin and Reza Abdollahzadeh and Kiarash Aghakasiri and Levi Lelis},
  title = {{Learning Reusable Options by Decomposing Neural Policies}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=d3ZwoIVzhT},
}
Figure