[Paper Review] Compositional Reinforcement Learning from Logical Specifications
This paper proposes DiRL, a compositional reinforcement learning framework that combines model-based high-level planning with model-free deep RL to learn control policies from complex logical specifications. By encoding specifications as abstract graphs and using Dijkstra-style planning to guide on-the-fly policy learning for subtasks, DiRL achieves linear sample complexity scaling and outperforms state-of-the-art baselines on continuous control benchmarks with long-horizon tasks.
We study the problem of learning control policies for complex tasks given by logical specifications. Recent approaches automatically generate a reward function from a given specification and use a suitable reinforcement learning algorithm to learn a policy that maximizes the expected reward. These approaches, however, scale poorly to complex tasks that require high-level planning. In this work, we develop a compositional learning approach, called DiRL, that interleaves high-level planning and reinforcement learning. First, DiRL encodes the specification as an abstract graph; intuitively, vertices and edges of the graph correspond to regions of the state space and simpler sub-tasks, respectively. Our approach then incorporates reinforcement learning to learn neural network policies for each edge (sub-task) within a Dijkstra-style planning algorithm to compute a high-level plan in the graph. An evaluation of the proposed approach on a set of challenging control benchmarks with continuous state and action spaces demonstrates that it outperforms state-of-the-art baselines.
Motivation & Objective
- To address the challenge of learning control policies for complex, long-horizon tasks specified via high-level logical languages.
- To overcome the poor scalability of existing reward-function-based RL methods when dealing with intricate task compositions.
- To develop a method that leverages structural decomposition of specifications to decouple high-level planning from low-level policy learning.
- To improve sample efficiency and success rates in continuous control environments with complex specifications.
- To enable scalable, compositional policy learning that maintains high satisfaction probability for complex logical goals.
Proposed method
- The method converts a logical specification into an abstract graph where vertices represent state regions and edges represent subtasks.
- It uses a Dijkstra-style forward search to compute a high-level plan that maximizes the probability of satisfying the specification.
- For each subtask along the path, it learns a neural network policy via model-free RL only when needed, on-the-fly.
- The algorithm maintains a lower bound on the satisfaction probability of the specification through its planning and policy learning process.
- It supports on-the-fly sampling from subgoal regions using learned path policies to enable trajectory generation from any state in a subgoal region.
- The approach is designed to scale linearly with the size of the specification graph, reducing sample complexity compared to end-to-end RL.
Experimental results
Research questions
- RQ1Can a compositional RL framework that interleaves high-level planning with on-demand low-level policy learning achieve better sample efficiency than end-to-end RL on complex logical specifications?
- RQ2Does leveraging the structural decomposition of logical specifications lead to linear scaling of sample complexity with specification size?
- RQ3Can such a framework outperform state-of-the-art methods like Spectrl, Tltl, Qrm, Hrm, and R-avi in long-horizon continuous control tasks?
- RQ4How effective is the method in environments with high-dimensional state spaces and complex constraints, such as the Fetch robot arm environment?
- RQ5To what extent does the method remain robust when subgoal regions are partially blocked or less accessible?
Key findings
- DiRL significantly outperforms state-of-the-art baselines, including Spectrl, Tltl, Qrm, Hrm, and R-avi, in learning success probability on both the 9-Rooms and Fetch environments.
- The sample complexity of DiRL scales roughly linearly with the number of edges in the specification graph, demonstrating efficient scaling as task complexity increases.
- In the 9-Rooms environment, DiRL achieves higher success probabilities faster than all baselines, especially as the number of required subtasks grows.
- In the challenging Fetch environment with high-dimensional state spaces, DiRL learns effective policies even for complex tasks involving conditional and sequential subgoals.
- The method remains robust in environments with blocked doors or reduced accessibility, maintaining high performance across multiple specifications.
- Empirical results show that DiRL’s success probability converges faster and to higher values than baselines, with learning curves indicating stable and scalable learning.
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.