[Paper Review] Learning to Compose Skills
This paper proposes ComposeNet, a differentiable framework that learns to compose pre-trained skills using skill-state embeddings and a trainable composition function, enabling efficient learning of complex tasks via Linear Temporal Logic (LTL) specifications. The method achieves zero-shot generalization to unseen skill compositions and outperforms end-to-end training or fine-tuning on skill trunks.
We present a differentiable framework capable of learning a wide variety of compositions of simple policies that we call skills. By recursively composing skills with themselves, we can create hierarchies that display complex behavior. Skill networks are trained to generate skill-state embeddings that are provided as inputs to a trainable composition function, which in turn outputs a policy for the overall task. Our experiments on an environment consisting of multiple collect and evade tasks show that this architecture is able to quickly build complex skills from simpler ones. Furthermore, the learned composition function displays some transfer to unseen combinations of skills, allowing for zero-shot generalizations.
Motivation & Objective
- To address the limitation of traditional hierarchical RL in composing skills flexibly and efficiently.
- To enable zero-shot generalization to unseen combinations of skills through a differentiable composition function.
- To reduce sample complexity by reusing pre-trained skill policies across multiple composed tasks.
- To demonstrate that skill-state embeddings encode sufficient task-relevant information for effective composition.
- To show that recursive composition enables hierarchical learning of complex behaviors.
Proposed method
- Skill policies are trained using a specialized architecture that outputs skill-state embeddings, capturing state-dependent policy information in a single differentiable layer.
- The composition function takes embeddings of multiple skills as input and outputs a policy for the composed task, trained end-to-end via policy gradients.
- Tasks are specified using Linear Temporal Logic (LTL), enabling expressive, semantically meaningful compositions like 'collect A while evading B' or 'collect A then B'.
- The framework supports recursive composition, allowing hierarchical skill structures to be built from simpler ones.
- Ablation studies validate the necessity of both skill-state embeddings and the composition layer, showing performance drops when either is removed or replaced.
- The composition function is trained using policy gradient methods, with the objective of maximizing cumulative discounted reward in composed environments.
Experimental results
Research questions
- RQ1Can a differentiable composition function effectively combine pre-trained skill policies to solve complex tasks without retraining?
- RQ2Does the framework generalize to unseen combinations of skills, enabling zero-shot learning?
- RQ3How do skill-state embeddings compare to raw policy weights in supporting trainable composition?
- RQ4Can recursive composition of skills generate hierarchical behavior for increasingly complex tasks?
- RQ5What is the impact of using incorrect or irrelevant skills in the composition function?
Key findings
- The composition function achieves the highest performance when the correct skills are composed, with significant performance drops when incorrect or irrelevant skills are used.
- Composing 'collect red' and 'evade green' skills yields the best performance for the 'collect red while evade green' task, while using 'collect green' and 'evade red' still yields positive but lower rewards.
- Using two irrelevant skills, such as 'collect blue' and 'evade blue', results in no learning, demonstrating that embeddings must encode task-relevant information.
- Training a fresh policy layer on top of a single skill trunk performs worse than ComposeNet, especially in tasks requiring coordination between multiple skills.
- The 'collect red then green' task shows that fine-tuning a single skill trunk fails to learn the correct sequence, while ComposeNet successfully learns the required order.
- The composition function generalizes to unseen tasks, showing zero-shot capability, and converges quickly with few environment samples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.