potentialpaper

Learning Reusable Options by Decomposing Neural Policies

Parnian Behdin, Reza Abdollahzadeh, Kiarash Aghakasiri, Levi Lelis

NeurIPS 2026

Edit this page

Or clone it with git

Run in a terminal:

Needs Git LFS. To push, use an API key from your profile as the password.

Or let your agent set it up

It checks and sets up everything: signing in, git, the clone, credentials and an SSH key.

TL;DR. We show that reusable options can be extracted from trained neural policies through a gradient-based optimization process.

Abstract. Options provide a natural form of behavioral abstraction in reinforcement learning, but discovering reusable options from trained neural policies remains difficult. A trained policy may contain many useful behaviors that can be reused in downstream problems, yet the number of candidate subpolicies that a neural network can encode grows exponentially with the number of hidden units. We propose a differentiable approach for extracting reusable options from neural policies. Our key observation is that for piecewise-linear neural networks, selecting a neural subprogram is equivalent to assigning each hidden unit one of three labels: inactive, active, or retained in the computation. This yields a mask space over neural subprograms that can be searched with gradient-based optimization. We further show that reusable options can require default input parameters: neuron masks determine what computation is reused, while input masks determine how that computation is called. Experiments in transfer settings with feedforward and recurrent policies show that the resulting options improve sample efficiency on downstream learning.

Are you an author? Claim this paper to see who's reading it, with views and other statistics, and to write about it here.

Claim this paper
How does this paper connect to your work? Write how you built on it, compared with it or reproduced it, or add a summary, a critique or errata.
Or make it interactive:
Start writing

edit · history

DateVersionSubmitted toPDFEvidence
4 May 2026NeurIPS 2026submittedNeurIPS 2026Accept (poster)reviews ↓[1]PDF[1]
Missing a version?

NeurIPS 2026

Accept (poster) · 3 reviews · OpenReview

Updated 25 Nov 2026, 03:47 UTC.

Program Chairs · DecisionOpenReview ↗
Decision
Accept (poster)
Read decision
Meta-review

This work proposes the idea of learning a mask over neurons to extract options in the form of sub-circuits of a trained neural network. The reviewers found the motivation of finding transferable options important, and found the method particularly novel. The method also leads to good gains in sample efficiency. However, the paper does not present enough baselines to drive the point home. Additionally, there were questions about the compute cost for learning the mask. Finally, reviewers challenged the useful of masking neurons in addition to the input, which Figure 7 in the appendix seem to agree with. The authors should attempt to address all, or some, of these concerns to move the paper forward.

Final justification

The authors have significantly strengthened the evaluation by adding key baselines that were requested by the reviewers. The authors have also clarified computational costs and ablation studies that validate the utility of input and neuron masking. Overall, these additions have improved the paper's contribution and have convinced myself and the reviewers.

Area Chair zz6t · Meta-reviewOpenReview ↗
Read meta-review
Meta-review

This work proposes the idea of learning a mask over neurons to extract options in the form of sub-circuits of a trained neural network. The reviewers found the motivation of finding transferable options important, and found the method particularly novel. The method also leads to good gains in sample efficiency. However, the paper does not present enough baselines to drive the point home. Additionally, there were questions about the compute cost for learning the mask. Finally, reviewers challenged the useful of masking neurons in addition to the input, which Figure 7 in the appendix seem to agree with. The authors should attempt to address all, or some, of these concerns to move the paper forward.

Final justification

The authors have significantly strengthened the evaluation by adding key baselines that were requested by the reviewers. The authors have also clarified computational costs and ablation studies that validate the utility of input and neuron masking. Overall, these additions have improved the paper's contribution and have convinced myself and the reviewers.

1 comment
Authors · CommentOpenReview ↗

Dear Area Chair,

Thank you for writing the initial meta-review for our paper and highlighting the points from the reviews that you considered most important. We have addressed each of them, as detailed below.

Addition of Baselines

Following the reviewers' suggestions, we included three baselines: policy distillation, a behavioral prior, and FAMP, an option-based meta-HRL algorithm. DIDEC compares favorably with the baselines we added. The results are available in our note on the additional baselines.

Computational Cost

DIDEC incurs an additional computational cost to learn its options. Importantly, the time complexity of learning the options is polynomial in all the quantities analyzed; we provide this analysis in Section 4.4.

FAMP, which also learns options, has a running time similar to that of DIDEC in our experiments, but performs worse in our empirical setting.

Use of Input and Neuron Masking

Following the reviewers' suggestions, we ran an ablation of neuron and input masking on ComboGrid, a domain different from that considered in Figure 7. ComboGrid is similar to the problem in Example 4, which motivates input masking. The ablation shows that input masking is important in practice: DIDEC with input masking outperforms DIDEC with neuron masking alone. This establishes the usefulness of input masking. The results are available in our note on the masking ablation.

Neuron masking provides a different benefit: it compresses the original model, which can be important depending on the application. In particular, our results show reductions of up to 85% in the number of parameters of the extracted policies. The results are available in our note on network compression.

Thank you,

The Authors

Reviewer N6RtOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
3/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

The paper proposes DIDEC, a method for extracting reusable options from trained neural policies via differentiable masking. The core insight is that for piecewise-linear networks, neural tree subtrees correspond bijectively to three-way neuron masks, making an otherwise exponential search problem tractable via gradient descent. Additionally, input masks learn default parameter values to enable cross-context reuse. Evaluation is done on MiniGrid, MiniHack, ComboGrid and Meta-World showing sample efficiency improvements over several baselines in downstream tasks.

Strengths and weaknesses

Strengths The bijection between neural tree subtrees and three-way neural masks is a clean result that solves the scalability problem of the enumerative approach in Alikhasi and Lelis 2024. The experimental setup uses a reasonable amount of seeds and reports 95% confidence intervals. The method produces measurable sample efficiency improvements in several settings and the ComboGrid interpretability results in Appendix C are convincing of option reuse.

Weaknesses

This work is intended to discover reusable options from trained neural policies, but there is a gap between what is claimed and what is demonstrated. The paper claims to learn reusable options effective for transfer but the method learns masks via behaviour cloning on short sub-trajectories. BC is well known for poor generalization beyond the training distribution but the paper provides no justification for why masks learned this way should produce genuinely reusable options instead of narrow behavioural fits to specific sub-trajectories. The input masks are learned automatically but could be memorizing the distribution context instead of abstracting from it and the work does not distinguish between these possibilities. Appendix G undermines the neural subprogram narrative by showing that different masking schemes perform similarly, suggesting the specific decomposition structure may not be doing the work the paper claims. The domains used for evaluation raise questions about whether the results truly demonstrate reusable option discovery. ComboGrid options are essentially open loop action sequences that don't depend on observation and navigation skills required in MiniGrid and MiniHack are simple enough that BC could transfer these skills without requiring genuine abstraction. In these settings, BC's known generalization weakness may not be exposed. More challenging domains where skills require genuine abstraction and cannot be memorized would be needed to support the reusability claim (Montezuma's Revenge, NetHack, Craftax, MiniHack)

The evaluation is only done on ablations of DIDEC but the setting is exactly the meta-learning setting: a distribution of training tasks, held out test task, prior experience transferred in the form of trained policies and trajectories, goal of improving sample efficiency in the new task. There are existing methods that combine meta-learning and hierarchical RL and the omission of these baselines makes the work hard to evaluate within the space of existing literature.

The downstream learning curves present steps for downstream tasks only. The mask learning step requires significant additional compute that is not reflected in these curves. Table 15 shows DIDEC takes 2800 seconds verses Dec-Whole with 54 seconds. While this is offline compute rather than environment interactions, it represents meaningful additional training other baselines do not receive and is never acknowledged or addressed. This is also a significant amount of precompute before the downstream task which is not acknowledged in the limitations.

DIDEC requires pretrained policies with compatible observation and action spaces, piecewise-linear activations and sufficient structural overlap between training and test tasks. This is a narrow set of conditions that may not overlap significantly with the settings where HRL and option discovery are most needed (long horizon, sparse reward, no pretrained policies). The paper mentions this in limitations but does not fully engage with the implication that the method may not apply to the settings motivating it.

The overall paper presentation feels strange, basic concepts like neural network forward passes and OneHot are explained in detail while more relevant, less commonly known concepts like POMDPs are undefined. Crucially the paper does not clearly label which experiments are MDPs vs POMDPs (some domains like MiniGrid could be either) with a distinct model difference for each type of setting. The discussion section is also very thin, one paragraph that summarizes the results without seriously discussing what they mean or what the method's behaviour reveals about the underlying claims.

Questions

Overall this is an interesting idea but is not yet fully evaluated. If the authors can either explain why meta-learning + HRL is not a valid comparison or include this comparison my evaluation of the work would change. Without this the method cannot be accurately evaluated against existing work.

Does the behaviour cloning show the ability to generalize? Or is transfer only seen in situations where a memorized policy is sufficient for transfer?

Limitations

yes

Final justification

The authors have addressed the concerns I laid out as requirements for a raised score.

Formatting concerns

None

4 comments
Authors · CommentOpenReview ↗

We thank the reviewer for the detailed feedback and suggestions. Their suggestions have strengthened our work. In particular, we appreciate the suggestion to include an HRL baseline.

Comment:\textbf{Comment:} Lack of baselines.

Answer:\textbf{Answer:} Following the reviewer's suggestion, we have included the following baselines in our evaluation: Fast Adaptation of Modular Policies (FAMP) [1], which is a meta-learning hierarchical RL approach (as suggested by reviewer N6Rt), a distillation baseline (as suggested by reviewer RxSJ), and a behavior prior baseline (as suggested by XXDD).

The distillation baseline uses smaller neural networks as the models we train options on. So we keep Didec's pipeline, but when performing BC, we train a small network instead of a set of masks. The behavior prior baseline trains PPO with a KL-divergence penalty term that prevents the policy from deviating too much from the average policy we obtained from the training tasks.

For all baselines, we swept their hyperparameters over 3 seeds, as we did in the experiments shown in the paper. The hyperparameter set with the largest average area under the curve was selected to run 10-14 seeds. The table below presents the results.

Environment Method # Seeds Steps Mean return (95% CI) AUC (95% CI)
MultiRoom (230) Didec 14 1M 0.754 [0.54, 0.94] 0.465 [0.30, 0.63]
MultiRoom (230) FAMP 14 1M 0.506 [0.41, 0.61] 0.504 [0.41, 0.60]
MultiRoom (230) Distillation 14 1M 0.000 [0.00, 0.00] 0.001 [0.00, 0.00]
MultiRoom (230) Behaviour prior 14 1M 0.929 [0.79, 1.00] 0.741 [0.60, 0.83]
ComboGrid Behaviour prior 10 6M 0.000 [0.00, 0.00] 0.000 [0.00, 0.00]
ComboGrid Didec 10 6M 1.000 [1.00, 1.00] 0.818 [0.74, 0.89]

Didec outperforms FAMP and distillation because it can handle the more drastic change from training to testing. FAMP starts training well from what it learned from previous tasks, but it saturates quickly and does not solve the problem. Didec starts with a lower return, but performs better asymptotically. That is why Didec has a better end-of-training return, but smaller AUC.

The behavior prior baseline performs slightly better than Didec on MultiRoom, but it is outperformed in ComboGrid. The baseline performs well on MultiRoom because the optimal behavior is similar in both training and test environments. This is not the case in ComboGrid because the prior has no data from the grid cells the agent visits while solving the test problem. The egocentric view of MultiRoom makes this failure case much less likely. By contrast, Didec generalizes well in both settings.

In addition to these baselines, prior work showed that Dec-Options outperformed other option learning approaches on these benchmarks. Dec-Options is the brute-force version of Didec, where we can only use small networks. The baselines considered in that work included: Modulating Masks [2], Progressive Neural Networks [3], Option Critic [4], ez-greedy [5], and DCEO [6]. Since prior work established Dec-Options to be superior to other approaches in the specific setting we consider, we evaluated only on baselines that could also take advantage of the trained policies, as Didec does. We thank the reviewer for suggesting the inclusion of a behavior prior baseline, as they also fall into the category of baselines we considered in our evaluation.

References\textbf{References}

[1] David Kuric and Herke van Hoof. Reusable options through gradient-based meta learning. Transactions on Machine Learning Research, 2023.

[2] Eseoghene Ben-Iwhiwhu, Saptarshi Nath, Praveen K Pilly, Soheil Kolouri, and Andrea Soltoggio. Lifelong reinforcement learning with modulating masks. arXiv preprint arXiv:2212.11110, 2022.

[3] Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.

[4] Pierre-Luc Bacon, Jean Harb, and Doina Precup. The option-critic architecture. In AAAI Conference on Artificial Intelligence, volume 31, 2017.

[5] Will Dabney, Georg Ostrovski, and Andre Barreto. Temporally-extended ε-greedy exploration. In International Conference on Learning Representations, 2021.

[6] Martin Klissarov and Marlos C. Machado. Deep Laplacian-based options for temporally-extended exploration. In International Conference on Machine Learning. JMLR.org, 2023.

Authors · CommentOpenReview ↗

Comment:\textbf{Comment:} BC is well known for poor generalization beyond the training distribution but the paper provides no justification for why masks learned this way should produce genuinely reusable options.

Answer:\textbf{Answer:} Generalization pressure comes from using data from one policy to train a mask for another one. For example, in ComboGrid the agent learns the dynamics for moving forward in two distinct environments. Let's call the environments e1e_1 and e2e_2, with the policies learned being π1\pi_1 and π2\pi_2, respectively. We can discover a forward move that generalizes because we extract from π1\pi_1 the procedure that generalizes to e2e_2, which π1\pi_1 didn't see in training. This is currently explained in the second paragraph of Section 4.3, and will be made more central to the paper.

Comment:\textbf{Comment:} Masks could be memorizing the distribution context instead of abstracting from it.

Answer:\textbf{Answer:} This is a great point, and exactly what we verify in our experiments. Take the MultiRoom experiments as an example (see Figure 11 in the appendix for images of the environments). The training environments are very different from the test environments. The structure of the problems changes substantially. The masking scheme has to learn some form of abstraction, and not only memorize sequences; otherwise we wouldn't see generalization. To give a concrete example, in MultiRoom, one of the learned options encoded picking up an object, and the option correctly picks up the object while starting from various locations on the grid; this is a helpful abstraction.

Comment:\textbf{Comment:} Appendix G undermines the neural subprogram narrative.

Answer:\textbf{Answer:} The result of Appendix G (Figure 7) does not undermine the narrative of our paper, as it shows the comparison of neuron masking and input masking in a single domain. To add diversity, we performed a similar experiment on ComboGrid. Generalization is more complex in ComboGrid because the agent's observation isn't egocentric like MiniGrid. This means that the agent's observation changes more drastically from training to testing, and that is exactly our Example 4, which motivates the use of input masks.

Method # Seeds Mean return @ 6M (95% CI) AUC (95% CI)
Input mask 10 1.000 [1.00, 1.00] 0.818 [0.74, 0.89]
Neuron mask 10 0.000 [0.00, 0.00] 0.000 [0.00, 0.00]

While neuron and input masking can be competitive depending on the problem (Figure 7), input masking can substantially outperform neuron masking, as in the ComboGrid experiments shown in the table above, where Didec with input masking solved the test problems in all 10 seeds evaluated, while Didec with neuron masking failed in all of them.

Comment:\textbf{Comment:} Not acknowledging running time as a limitation and use of baselines that require similar computation time.

Answer:\textbf{Answer:} Thank you for bringing this up. The running time limitations are discussed in Appendix I, and we agree that it deserves mentioning in the limitation section of the paper, which we will address.

Following the reviewer's suggestion, we have added FAMP, a meta-learning HRL baseline that requires a similar amount of computation prior to learning how to solve the downstream problems (see results above).

Comment:\textbf{Comment:} Lack of POMDP definition and separation of what is an MDP and what is a POMDP.

Answer:\textbf{Answer:} The definition of a POMDP is given in Section 2. We follow this definition because it best describes most of our problem domains. Only the Meta-World environment can be safely described as an MDP; all the other domains are better described as POMDPs. This will be clarified in the paper.

Reviewer N6Rt · CommentOpenReview ↗

Thank you for this detailed rebuttal. The additional experiments and clarifications have addressed the concerns I had barring a higher score so I will raise my score to a 4. However, I want to again flag my concern on BC and memorization not because it is preventing a score increase, but because I feel it is a serious unresolved issue for the work overall.

The authors argue that because DIDEC generalizes across structurally different environments that the masks must be learning genuine abstraction rather than memorizing a solution given some distribution. BC is a well established and widely used method for learning policies in the robitcs setting. Clearly BC can be very effective but is also known to learn policies highly competent within the learned distribution but struggle under distribution shift. DIDEC provides no mechanism that provably addresses this known failure mode. The cross-task constraint creates some pressure towards generalization but does not formally resolve covariate shift. A BC policy can be useful for downstream transfer as well as fail to generalize. The paper shows downstream success but does not establish generality. I will use the two domains used as evidence in the rebuttal to illustrate why.

ComboGrid: the authors use this as evidence for the cross-task BC generalization argument, referencing the forward move combo generalizing across two environments. But Appendix C demonstrates that the learned ComboGrid options are observation-independent. An option that ignores observations entirely is not a policy in any meaningful sense, it is an open loop controller. Open loop controllers trivially transfer across environments where the action sequence happens to be correct, not because they have learned anything general about environment structure but because they have learned to ignore the environment entirely. This is the weakest possible form of transfer. In the formal options framework (Sutton et al. 1999) a policy that ignores observations collapses to a fixed action sequence which is a macro-action not a genuine option. Using ComboGrid generalization as evidence for reusable option discovery is therefore circular: the options generalize precisely because they are not options as they are observation-independent.

Multiroom: The authors use Multiroom as evidence that masks learn genuine abstraction rather than memorization, mentioning an option that correctly picks up objects from various grid locations. But the Multiroom experiments use an egocentric 9x9 observation. Konidaris and Barto 2007, cited by the authors to motivate for portable options, argues directly that egocentric representations naturally support skill portability because the relevant context of a skill looks identical regardless of the agent's global position. An option that memorizes "pick up object when it appears in front of me" will generalize across locations but because the egocentric framing makes location irrelevant. This provides a simpler explanation for their Multiroom generalization results that does not require genuine abstraction to have occurred.

These two domains are the primary evidence for genuine abstraction in the rebuttal but both have alternative explanations grounded in the paper's framework and citations. I raise this not as grounds for rejection but as a significant open question about the scope of the contribution. This raises the question whether, because the architecture is limited to vector inputs, it is harder to distinguish genuine generalization vs memorization because the observation has already undergone significant abstraction. The paper, I feel, should be careful about how strongly it frames the abstraction and reusability claims given the current evidence.

Authors · CommentOpenReview ↗

Thank you for carefully reading our response and writing such a detailed reply.

We agree that our work does not solve the generalization limitations of behavioral cloning. Our focus is on extracting reusable subfunctions from trained neural networks. Looking at what these subfunctions learn is an interesting way to understand where the sample-efficiency gains of our approach come from.

We also agree that the behaviors learned in ComboGrid are better described as open-loop than as observation-dependent abstractions. However, the agent was not instructed to learn such controllers. It discovered from the data that macro-actions would transfer well, which is an appropriate solution in this domain. This does not happen in other domains, where keeping some of the masks as “read from the input” is advantageous.

The egocentric view in MultiRoom indeed helps with generalization. For one, the policy does not have to account for the agent's absolute position. However, this does not mean that generalization is guaranteed. For example, our baselines transfer well from SimpleCrossing to FourRooms, but not from Unlock to MultiRoom. We conjecture that this happens because, in the first setting, the walls have the same flat structure, while in the second we move from flat to jagged walls. Our results suggest that DIDEC can help with transfer under this nontrivial change in local structure.

We will be careful with the transfer and abstraction claims we make in the paper to account for the points you have raised in this discussion. Thank you again for the thoughtful discussion and feedback on our work.

Reviewer XXDDOpenReview ↗
Rating
4/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This paper proposes a differentiable decomposition (DIDEC) of neural policies for automatic option discovery.

DIDEC applies to neural network policies with ReLU activations. These networks can be decomposed into "neural trees" that correspond to subprograms of the original policy. From a hierarchical RL perspective, these subprograms can then be used as options.

However, the space of options extractable this way is too large to enumerate. To solve this, DIDEC parameterizes the option space using learnable masks over hidden units and inputs. These masks are optimized via a behavior cloning objective on a dataset of rollouts from the source policies. Crucially, while hidden unit masking handles option extraction, input masking ensures that the extracted option generalizes well. By masking out location-specific input features, the option can be applied to S×A\mathcal{S} \times \mathcal{A} manifolds beyond the one where it was originally discovered. Furthermore, DIDEC is agnostic to the underlying RL algorithm and applies to both fully and partially observable settings.

DIDEC is evaluated on MiniGrid, MiniHack Corridor, CombGrid, and Meta-World's "Push the Puck" tasks. Across all tasks, DIDEC outperforms vanilla RL without access to options, as well as various ablations of the method.

Strengths and weaknesses

Strengths

  • Important Problem & Strong Motivation: Automatic option extraction is highly valuable for scalable transfer RL, and mitigating manifold mismatches is a compelling direction.
  • Consistent Improvements: The empirical evaluation demonstrates consistent performance gains for DIDEC over the chosen baselines in the evaluated environments.

Weaknesses

  • Lack of Competitive Options-Centric Baselines: The manuscript does not compare DIDEC against relevant, state-of-the-art option extraction or discovery baselines. The current baselines are overly simplistic (standard flat RL, flat RL with basic one-step "options," and internal ablations). To clearly demonstrate the value of DIDEC, it is critical to see how these extracted options perform relative to options extracted from the same training tasks Ttrain\mathcal{T}_{\text{train}} using existing established methods or general transfer learning frameworks.

  • Insufficient Clarity on Pre-trained Policies and Data Quality: The text falls short of describing the exact nature of the policies and data utilized for option extraction. It remains unclear to what extent the performance gains of DIDEC are simply a function of high-quality pre-trained policies and clean, on-policy data. Because DIDEC relies on a behavioral cloning (BC) objective, the evaluation should include a comparison against straightforward BC regularization terms [1, 2] or methods that utilize pre-trained policies directly as behavioral priors [3].

  • Missing Ablation Study for the Input Mask: A core conceptual contribution of DIDEC is learning an input mask to allow option application across different manifolds. However, the manuscript lacks a direct ablation study isolating this component. Without showing performance with and without the input mask, it is impossible to verify whether this specific mechanism is driving the observed downstream improvements.

  • Combinatorial Explosion of the Option Space: Based on Algorithm 1, the number of extracted options appears exceptionally large, I think something like ∣Ω∣≈O(zmax⁡⋅∣Ttrain∣⋅∣Πtrain∣)| \Omega | \approx \mathcal{O}(z_{\max} \cdot | \mathcal{T}_{\text{train}} | \cdot | \Pi _ { \text{train}} | ) . The pruning step outlined in Appendix J therefore appears strictly necessary to prevent the online search space over A×Ω\mathcal{A} \times \Omega from exploding. Given its centrality to making the algorithm computationally tractable, this pruning mechanism should be explicitly integrated and explained within the main body of the paper rather than relegated to the appendix.

Overall

The paper targets a significant challenge with an intuitive approach, but the structural clarity and empirical rigor is currently somewhat lacking. The simplicity of the evaluation environments and absence of clear statements about the source policies and data further diminishes the demonstrated significance of the findings. Consequently, I am assigning slightly lower scores for both quality and significance.

Reference

  • [1] Lu et al. Imitation is not enough: Robustifying imitation with reinforcement learning for challenging driving scenarios
  • [2] Nair et al. Overcoming exploration in reinforcement learning with demonstration
  • [3] Singh et al. Parrot: Data-driven behavioral priors for reinforcement learning
  • [4] Nasiriany et al. Augmenting Reinforcement Learning with Behavior Primitives for Diverse Manipulation Tasks
  • [5] Rietz et al. APC-RL: Exceeding data-driven behavior priors with adaptive policy composition
Questions
  • Please explain the data and policies used as part of your evaluation. How many policies did you use? What was the quality of those policies? How many trajectories per policy?
Limitations

yes.

Final justification

The authors have clearly answered my questions and provided additional, insightful experimental results with their rebuttal. With these new results (incorporated into the manuscript), I lean closer to recommending accept rather than reject and have therefore increased my score from three to four. My main reason for not increasing the score further is the limited continuous control benchmark, which does not suffice for accessing the methods performance in this setting generally.

Formatting concerns

The line styles are not consistent in the top right panel of Figure 2, please fix.

2 comments
Authors · CommentOpenReview ↗

We thank the reviewer for their detailed feedback. Their suggestions helped us improve our submission, especially their suggestion to include a behavior-prior baseline and investigate more deeply the differences between input and neuron masks.

Comment:\textbf{Comment:} Lack of baselines.

Answer:\textbf{Answer:} Following the reviewer's suggestion, we have included the following baselines in our evaluation: Fast Adaptation of Modular Policies (FAMP) [1], which is a meta-learning hierarchical RL approach (as suggested by N6Rt), a distillation baseline (as suggested by RxSJ), and a behavior prior baseline (as suggested by XXDD).

The distillation baseline uses smaller neural networks as the models we train options on. So we keep Didec's pipeline, but when performing BC, we train a small network instead of a set of masks. The behavior prior baseline trains PPO with a KL-divergence penalty term that prevents the policy from deviating too much from the average policy we obtained from the training tasks.

For all baselines, we swept their hyperparameters over 3 seeds, as we did in the experiments shown in the paper. The hyperparameter set with the largest average area under the curve was selected to run 10-14 seeds. The table below presents the results.

Environment Method # Seeds Steps Mean return (95% CI) AUC (95% CI)
MultiRoom (230) Didec 14 1M 0.754 [0.54, 0.94] 0.465 [0.30, 0.63]
MultiRoom (230) FAMP 14 1M 0.506 [0.41, 0.61] 0.504 [0.41, 0.60]
MultiRoom (230) Distillation 14 1M 0.000 [0.00, 0.00] 0.001 [0.00, 0.00]
MultiRoom (230) Behaviour prior 14 1M 0.929 [0.79, 1.00] 0.741 [0.60, 0.83]
ComboGrid Behaviour prior 10 6M 0.000 [0.00, 0.00] 0.000 [0.00, 0.00]
ComboGrid Didec 10 6M 1.000 [1.00, 1.00] 0.818 [0.74, 0.89]

Didec outperforms FAMP and distillation because it can handle the more drastic change from training to testing. FAMP starts training well from what it learned from previous tasks, but it saturates quickly and does not solve the problem. Didec starts with a lower return, but performs better asymptotically. That is why Didec has a better end-of-training return, but smaller AUC.

The behavior prior baseline performs slightly better than Didec on MultiRoom, but it is outperformed in ComboGrid. The baseline performs well on MultiRoom because the optimal behavior is similar in both training and test environments. This is not the case in ComboGrid because the prior has no data from the grid cells the agent visits while solving the test problem. The egocentric view of MultiRoom makes this failure case much less likely. By contrast, Didec generalizes well in both settings.

In addition to these baselines, prior work showed that Dec-Options outperformed other option learning approaches on these benchmarks. Dec-Options is the brute-force version of Didec, where we can only use small networks. The baselines considered in that work included: Modulating Masks [2], Progressive Neural Networks [3], Option Critic [4], ez-greedy [5], and DCEO [6]. Since prior work established Dec-Options to be superior to other approaches in the specific setting we consider, we evaluated only on baselines that could also take advantage of the trained policies, as Didec does. We thank the reviewer for suggesting the inclusion of a behavior prior baseline, as they also fall into the category of baselines we considered in our evaluation.

References\textbf{References}

[1] David Kuric and Herke van Hoof. Reusable options through gradient-based meta learning. Transactions on Machine Learning Research, 2023.

[2] Eseoghene Ben-Iwhiwhu, Saptarshi Nath, Praveen K Pilly, Soheil Kolouri, and Andrea Soltoggio. Lifelong reinforcement learning with modulating masks. arXiv preprint arXiv:2212.11110, 2022.

[3] Andrei A. Rusu, Neil C. Rabinowitz, Guillaume Desjardins, Hubert Soyer, James Kirkpatrick, Koray Kavukcuoglu, Razvan Pascanu, and Raia Hadsell. Progressive neural networks. arXiv preprint arXiv:1606.04671, 2016.

[4] Pierre-Luc Bacon, Jean Harb, and Doina Precup. The option-critic architecture. In AAAI Conference on Artificial Intelligence, volume 31, 2017.

[5] Will Dabney, Georg Ostrovski, and Andre Barreto. Temporally-extended ε-greedy exploration. In International Conference on Learning Representations, 2021.

[6] Martin Klissarov and Marlos C. Machado. Deep Laplacian-based options for temporally-extended exploration. In International Conference on Machine Learning. JMLR.org, 2023.

Authors · CommentOpenReview ↗

Comment:\textbf{Comment:} Clarity on pre-trained policies and data quality.

Answer:\textbf{Answer:} We use a small number of training policies and a single trajectory per problem. So, overall, very small data. Here are the details. We will include a table with this information in the appendix to make it clear. Currently, this information is scattered throughout the paper and indeed difficult to find.

Domain Training problems
FourRooms 8 SimpleCrossing training problems
MultiRoom 3 Unlock training problems
MiniHack 4 training problems
ComboGrid 4 training problems
Meta-World 2 training problems

We also need to clarify that we assume all policies to solve the training problems. This is reasonable given that the training problems tend to be considerably easier than the test ones. For example, we train on Unlock (a much smaller and simpler problem) and evaluate on MultiRoom (a much more complex environment). Our research question investigates whether we can extract useful subfunctions from trained networks. This question only makes sense when evaluated on networks that encode meaningful behavior, as we shouldn't expect poorly trained models to include helpful behavior.

Comment:\textbf{Comment:} Missing ablation on input mask.

Answer:\textbf{Answer:} The ablation is in Appendix G (Figure 7). For the MultiRoom experiment used in the ablation, using neuron-only, input-only, or the mixture of the two results in roughly the same average return.

Following the reviewer's question, we also performed an ablation on ComboGrid, where the bird's-eye view of the agent is better aligned with the motivating example we have for input masking. The table below shows the results.

Method # Seeds Mean return @ 6M (95% CI) AUC (95% CI)
Input mask 10 1.000 [1.00, 1.00] 0.818 [0.74, 0.89]
Neuron mask 10 0.000 [0.00, 0.00] 0.000 [0.00, 0.00]

While Didec with input masking generalizes and solves the test problem on all 10 seeds evaluated, neuron masking fails in all of them. After inspecting the failure cases, we note that learned options cannot generalize to a problem with a different structure and that input masking is needed for generalization, as in our motivating example.

Comment:\textbf{Comment:} Combinatorial explosion of the option space.

Answer:\textbf{Answer:} Note that the number of options we consider is polynomial in all the quantities described, so there is not a combinatorial explosion. That said, we agree that the selection step deserves to be described in the main text.

Question:\textbf{Question:} Please explain the data and policies used as part of your evaluation. How many policies did you use? What was the quality of those policies? How many trajectories per policy?

Answer:\textbf{Answer:} See the detailed answers above.

Reviewer RxSJOpenReview ↗
Rating
3/6
Confidence
3/5
Quality
2/4
Clarity
3/4
Significance
2/4
Originality
3/4
Contribution type
general
Ethical concerns
NO or VERY MINOR ethics concerns only
Read review
Summary

This work aims to extract options, i.e., reusable policies, from the source policies learned in prior tasks with RL. The proposed method performs architectural extraction: directly extracting options from the neurons of a source policy. The framework, DIDEC, learns masks for the activation function (ReLU) to decide whether the input of this function should be active, inactive, or retained. By training the masks with imitation learning, they should extract different options with parameters less than the source policy.

This paper also proposes input masks that transform the input from an unseen environment into one the policy is more familiar with, claiming that doing so will improve the generalizability of the extracted options.

The experiments are conducted on a toy task, grid navigation tasks, and a robotic manipulation task.

Strengths and weaknesses

[Strengths]

The paper is mostly well written and introduces an interesting idea for extracting options from trained policies.

[Comments]

  1. This paper studies a very interesting direction. However, there is no connection between the options obtained through architectural decomposition and those obtained through semantic decomposition. Pure architectural decomposition can reduce the explainability of the learned options and make downstream policies more difficult to interpret. Specifically, let’s say you have a subtrajectory that describes a solution to a subtask and can be reused in many downstream tasks. How can you guarantee that a policy whose only learnable component is its mask can fully recover the behaviors encoded in the subtrajectory? Maybe another way to ask this question is, what is the capacity of a policy whose only learnable component is its mask? I expect that the capacity is going to be much smaller, especially if the policy is trained to solve another task, so its parameters can be very biased to that task. Figure 4 shows some examples of what learned options look like, but they are only for a specific toy environment. Please comment on the semantic meaning of extracted options in general.

  2. This paragraph in Section 3.3 is hard to understand: “Every subtree induces a mask: ancestors on the left branch…” I guess here you are trying to make a 1-1 mapping between a subtree and a mask, but after reading it multiple times, I still can’t figure it out. Please explain and consider rewriting this part.

  3. The high-level idea of Section 4.2 is interesting: revising the inputs to what the policy is familiar with may help the policy generalize to unseen tasks. However, I am not convinced that masking the inputs, as proposed in Section 4.2, is the way to achieve this generalization. By learning a mask for each individual element of the input, you treat each input dimension as independent. However, what if there are correlations between the input dimensions? For example, in an input describing the position and orientation of an object, the orientation elements are highly coupled and cannot be treated as independent. In addition, the default parameters here are basically 0, 1, or the scale of 1; it seems like a random choice and provides no semantic meaning in how the transformation between two input states in two environments should be. There is also no formal formulation/proof of the conditions under which input masking will work, or of the extent to which generalization can be achieved. The tasks used for evaluation are also too simple to verify this.

  4. One potential benefit of the architectural decomposition of a neural policy is to “distill” a smaller, reusable network. Yet, this point is only briefly discussed in Section 4.2: “More generally, every neuron at layer k that is masked as active or inactive can be …” There should be a formal formulation that, given a specific network architecture, what will the size of the decomposed network change if a specific mask is applied. On a side note, the current writing keeps using “Example” to explain concepts, making it hard to generalize to cases beyond the example.

  5. A related line of work that should be discussed is “policy distillation” (e.g., [1]), which studies how to extract a new network that performs at the level of another policy while being dramatically smaller and more efficient.

  6. In Section 2, why focus on POMDPs rather than MDPs? Are there any components specific to POMDPs?

  7. In Section 3.4, the paper mentions that “The function OneHot is non-differentiable…”. Then why not use Gumbel-softmax [2]? It can be used as a differentiable one-hot function.

  8. There should be an analysis of how the choice of z_max affects the extracted options and their performance in the downstream task.

  9. The main experiments are closer to an ablation study than to a comparison with prior methods, as the baselines are variations of the proposed method (DIDEC). I would be really interested to see the differences between the options extracted by DIDEC and those extracted by policy distillation. Also, I am confused by the description of Vanilla: “We also use the base learning algorithm used with options (either A2C or PPO), but without options.”

[References]

  1. Rusu, Andrei A., et al. "Policy distillation." arXiv preprint arXiv:1511.06295 (2015).
  2. Jang, Eric, Shixiang Gu, and Ben Poole. "Categorical reparameterization with gumbel-softmax." arXiv preprint arXiv:1611.01144 (2016).
Questions

My questions are all mentioned together with the comments above.

Limitations

Yes

Final justification

After the discussions with the authors, I will maintain my score at 3. Overall, the paper’s idea is interesting and can provide a new perspective on option extraction.

The reasons for not raising my score to 4 or above include

  • Not every behavior can be recovered by masking a given source policy, but it is unclear when DIDEC will fail in extracting a behavior.
  • I am still not fully convinced that using input masks only, even when combined with other invariant feature extractors, will achieve “transfer” in general. From my understanding, input masks can be effective in training robust policies given imperfect inputs, but directly transferring a behavior from one scenario to another requires a much more delicately designed mechanism. It is thus currently unclear when this input-mask design will work in transfer, and additional experiments are required here.
  • The presentation of the paper can be more principle-driven instead of example-driven. That is, proposing the principle effects of DIDEC and verifying them with experiments or math.
Formatting concerns

No major issues.

5 comments
Authors · CommentOpenReview ↗

We thank the reviewer for their detailed comments. Their suggestions around distillation, effects of zmax⁡z_{\max}, and writing clarification have strengthened our work.

Comment:\textbf{Comment:} Include policy distillation in the paper.

Answer:\textbf{Answer:} Thank you for suggesting this. We ran a baseline that distills the trajectories used to train Didec's options into much smaller networks. The only difference between this distillation baseline and Didec is that the former encodes the options in neural networks smaller (16 hidden neurons) than those we used to train the agent's policy, while the latter encodes them as masks. We chose 16 neurons because that is similar to the effective size of the masked models Didec trains. Here are the results on MultiRoom (230).

Method Runs Mean return @ 1M steps (95% CI) AUC (95% CI)
Didec 14 0.754 [0.54, 0.94] 0.465 [0.30, 0.63]
Distillation 14 0.000 [0.00, 0.00] 0.001 [0.00, 0.00]

The baseline performs poorly because the options are unable to generalize to problems with different maze structures. The distilled behavior mimics closely that encoded in the subtrajectory used to train it. The smaller neural network can approximate the agent's behavior well, but it does not carry the bias needed to make this behavior generalize to unseen environments, like Didec's masked models.

Comment:\textbf{Comment:} Effects of zmax⁡z_{\max}.

Answer:\textbf{Answer:} Following the reviewer's suggestion, we ran experiments on the sparse version of ComboGrid and tested zmax⁡=6z_{\max} = 6 and zmax⁡=9z_{\max} = 9. These values are different from those we considered in the paper: zmax⁡∈{5,10}z_{\max} \in \{5, 10\} in our sweeps. The mean return after 6M training steps and area under the curve (AUC) are shown in the table below.

Method # Seeds Mean return @ 6M (95% CI) AUC (95% CI)
zmax=6z_{max} = 6 10 0.700 [0.35, 1.00] 0.613 [0.31, 0.92]
zmax=9z_{max} = 9 10 1.000 [1.00, 1.00] 0.818 [0.74, 0.89]

While there is a difference between the two variants, Didec still performs better than all the other baselines regardless of the zmax⁡z_{\max} value tried. In particular, zmax⁡=9z_{\max} = 9 performed slightly better than the results we showed in the paper.

Question:\textbf{Question:} How can you guarantee that a policy whose only learnable component is its mask can fully recover the behaviors encoded in the subtrajectory?

Answer:\textbf{Answer:} This is possible because the underlying policy might have learned the behavior encoded in the subtrajectory. The analogy we make is that we are trying to extract a function from a program. If the function isn't in the program, we will not find it. This is what our experiments are meant to show: that in practice we can recover meaningful neural subfunctions encoding reusable behaviors.

Question:\textbf{Question:} Maybe another way to ask this question is, what is the capacity of a policy whose only learnable component is its mask?

Answer:\textbf{Answer:} The capacity is much lower than that of a regular feedforward network, and that is exactly what gives the method its leverage. The base policies already encode the behaviors and provide the inductive bias to speed up learning. By learning the mask, we're able to isolate the part that encodes the behavior and provide it as a generalizable policy that isn't overfitted to the training setting. So lowering the policy's capacity here isn't hurting, but helping us to recover specific behaviors in a generalizable way.

Question:\textbf{Question:} Please comment on the semantic meaning of extracted options in general.

Answer:\textbf{Answer:} In our experiments, depending on the problem, Didec encountered open- or closed-loop options. For example, in ComboGrid, it is advantageous to ignore the input and repeat combo sequences. The agent is never instructed about that, and Didec can learn this behavior from experience. In other domains, such as MultiRoom, the options carry state-dependent decisions. For example, an option could encode picking up an object, and the option will correctly pick up the object while starting from various locations on the grid.

Authors · CommentOpenReview ↗

Question:\textbf{Question:} Paragraph in Section 3.3 is hard to understand.

Answer:\textbf{Answer:} We were trying to explain that searching in the space of masks is equivalent to searching in the space of subtrees. Thank you for pointing this out, as the paragraph can indeed be improved. Here is how we will rewrite it.

Searching in the space of hidden-unit masks is equivalent to searching in the space of equivalence classes of subtrees across all neural trees representing the policy. Two subtrees are equivalent if they make the same neuron-level choices: the same neurons are fixed to 00 (inactive), fixed to their pre-activation value ZZ (active), or left to compute the ReLU function as usual (retained). Consider a subtree rooted at nn, with n1n_1 and n2n_2 among its internal-node descendants. The depths of n1n_1 and n2n_2 relative to nn are not important: a neural tree in which n1n_1 appears deeper than n2n_2 and one in which n2n_2 appears deeper than n1n_1 represent the same neuron-level computation. To summarize, every subtree that makes the same neuron-level choices (active, inactive, or retained) as the subtree rooted at nn belongs to the same equivalence class and maps to the same mask; conversely, every mask corresponds to exactly one equivalence class of subtrees that make the same neuron-level choices, and thus all perform the same masked computation. This establishes a bijection between masks and equivalence classes of subtrees across all neural trees representing the policy.

Comment:\textbf{Comment:} Input masking treats the inputs as independent.

Answer:\textbf{Answer:} Masking can actually find and focus on the relationship among input variables; we don't assume them to be independent. When attempting to clone the behavior of a subtrajectory, all input masks will be trained with gradient descent, all at the same time, one mask per input. If the target behavior can be realized only if the agent perceives a specific combination of an object's position and orientation, then gradient descent will attempt to find that combination to realize the behavior.

Comment:\textbf{Comment:} The default parameters are 0, 1, and scale of 1. This seems a random choice.

Answer:\textbf{Answer:} The masks encode the domain of the input space as the default values. If the problem has binary features, then the defaults will be 0 and 1, with the third mask reading the actual input value from the environment. In the case of continuous spaces, the default values learned can go from minus infinity to plus infinity. So the choice isn't random; it follows the input space of the problem.

Comment:\textbf{Comment:} Formalization of effective size of a network under a mask.

Answer:\textbf{Answer:} Thank you for suggesting this. The formalization is quite simple and is given in words in Appendix G: "Every neuron that is set to either active or inactive can be removed from the network, thus compressing the model." We agree this is an important point; we will bring it to the main text.

Comment:\textbf{Comment:} Why POMDPs?

Answer:\textbf{Answer:} Some of our domains, such as ComboGrid, are partially observable and better formalized as a POMDP.

Comment:\textbf{Comment:} Why not Gumbel-Softmax?

Answer:\textbf{Answer:} Gumbel-Softmax would be our next choice if the straight-through estimator (STE) we use didn't work. The STE also deals with the lack of differentiability, but it has the advantage of not needing a temperature schedule, unlike Gumbel-Softmax. Since the simpler STE is effective in optimizing our masks, we didn't see the need to use Gumbel-Softmax.

Comment:\textbf{Comment:} Include a policy distillation baseline and confusion with the Vanilla baseline.

Answer:\textbf{Answer:} Following the reviewer's suggestion, we have included a distillation baseline (see above). By Vanilla, we mean the learning algorithm used in each experiment without any options. For example, in the ComboGrid experiments we use PPO with Didec, so the Vanilla baseline is PPO with no options, just the primitive action space. This will be clarified.

Reviewer RxSJ · CommentOpenReview ↗

Thank you for your response! Here are additional comments.

Thank you to the authors for the response. It clarifies some of my questions. Here are some additional comments:

Question: How can you guarantee that a policy whose only learnable component is its mask can fully recover the behaviors encoded in the subtrajectory?

I understand that it is possible, but I am asking whether there is any guarantee that any sub-policies of interest can be extracted in this way, i.e., by learning a mask of the original policy. If there is no such guarantee, then what kind of behavior/sub-policy (or function in your analogy) may not be extracted?

Comment: Input masking treats the inputs as independent.

Thank you for the explanation. However, I am still confused about how masking can achieve what I asked in the original comment. So, I am asking here in a more explicit way:

Let’s say I want the option extracted to be SE(3)-invariant to the input, i.e., if I apply any rigid-body transformation to the input, the option will not change its behavior. This property is important in robotics tasks that involve 3D spatial understanding, as in some cases, we want an input to be familiar to a policy after applying a rigid-body transformation. Given this goal, how will masking and scaling the input generate an equivalent effect to applying a rigid-body transformation to the input?

Comment: Formalization of effective size of a network under a mask.

Do you have more explicit results on how much the size will be after masking? For example, given a policy with x parameters, after masking with a inactive, b active, and c retained labels, the number of the option becomes y.

Comment: Why POMDPs?

I understand that some of your tasks are POMDPs, but does it have anything to do with your method? That is, is your DIDEC framework specifically designed for POMDP tasks?

Overall, the current way of presenting DIDEC’s theoretical and empirical effectiveness is based on the authors’ observations and specific examples. If the theoretical analysis cannot be provided, the experiments should be more comprehensive, e.g., evaluated on more challenging tasks, to convince the readers that your observations are generalizable.

From OpenReview, CC BY 4.0. Authors as signed there; shown unedited.

Missing a submission?

Loading the discussion…