TL;DR
This paper introduces ALCS, a novel Reinforcement Learning (RL) algorithm that automatically learns to structure reward functions by composing subtasks. This approach significantly improves sample efficiency in sparse-reward environments, outperforming existing methods, especially as task complexity increases.
What Problem Does This Paper Address?
Reinforcement Learning (RL) agents often struggle with sparse rewards, meaning they only receive feedback after completing a long sequence of actions. This leads to poor sample efficiency, where agents require a vast amount of experience to learn effectively. While manually designing reward structures or using automated methods to learn them can help, manually designed rewards can be inaccurate, and automated methods are often computationally expensive or produce partial, incorrect structures for complex tasks. This paper tackles the challenge of improving sample efficiency in sparse-reward settings by automatically learning how to structure the reward function, using only minimal domain knowledge in the form of labeled subtasks.
Methods
The core of ALCS is a two-level hierarchical policy learning framework:
- High-Level Policy ($\pi_h$): This policy learns to select the optimal sequence of subtasks to achieve the overall goal. It takes the current environment state and the history of previously completed subtasks as input. Crucially, it uses the actual environment reward to train, and its decision-making is informed by the sequence of actually achieved subtasks, not just the ones it intended to achieve. This helps it learn more accurate task compositions.
- Low-Level Policy ($\pi_l$): This policy learns to execute actions to complete a specific, given subtask. It's trained using a specialized reward function that gives a positive reward only when the target subtask is successfully completed. To further boost sample efficiency, the paper proposes generating multiple "counterfactual" experiences from a single environment transition, allowing the low-level policy to learn from each potential subtask completion.
The algorithm uses Q-learning for both policies. The high-level policy's Q-function is trained using environment rewards, while the low-level policy's Q-function is trained using the subtask-specific rewards.
Datasets
The paper evaluates ALCS on 8 sparse-reward environments, drawing from two commonly used domains:
- OfficeWorld: Includes tasks like "Coffee," "Coffee&Mail," "Collecting," and "Bonus."
- MineCraft: Includes tasks like "Plant," "Bridge," "Bed," and "Gem."
These environments are chosen for their increasing task complexity and varying state space sizes, allowing the authors to demonstrate ALCS's performance under different challenges.
Key Insights and Ideas
- Subtask Composition as Reward Structuring: The paper frames the problem of improving sample efficiency not just as learning a policy, but as learning how to structure the reward signal by composing subtasks.
- Minimal Domain Knowledge is Sufficient: ALCS demonstrates that providing only labels for subtasks (e.g., "picked up coffee," "arrived at office") is enough to enable effective learning, without needing explicit knowledge of subtask order or their contribution to the final reward.
- History of Achieved Subtasks Matters: The high-level policy's ability to consider the sequence of actually completed subtasks is a key innovation, leading to more accurate task decomposition and planning.
- Counterfactual Experiences for Low-Level Learning: Generating multiple experiences from a single transition, each corresponding to a different potential subtask, significantly enhances the learning of the low-level policy.
- Robustness to State Space Size: ALCS shows improved performance compared to baselines in larger state spaces, suggesting its hierarchical approach is more scalable.
Key Results
- ALCS significantly outperforms state-of-the-art baselines (JIRP, DeepSynth, HRL, Interrupting Options, HER, Q-learning) in most of the 8 tested sparse-reward environments, especially as task difficulty increases.
- In environments with simple reward structures (like "Coffee"), some specialized methods like JIRP perform comparably. However, ALCS's advantage becomes pronounced in more complex scenarios.
- The paper demonstrates ALCS's interpretability by showing how its learned subtask sequences can explain agent behavior and future plans, even in scenarios where multiple valid subtask orderings exist.
- Ablation studies confirm the importance of each component of ALCS: the low-level reward generation, the use of subtask history for the high-level policy, and the assumed subtask selection for training the high-level policy all contribute significantly to performance.
Limitations and Future Work
- Convergence Analysis: The authors acknowledge that a formal analysis of the algorithm's convergence properties is a direction for future work.
- Partial Subtask Information: Currently, ALCS requires explicit labels for subtasks. Future work aims to extend the method to handle scenarios where only partial information about specified subtasks is available.
- Performance Variance: While ALCS is robust, the paper notes that its performance variance can increase with task complexity, suggesting room for improvement in very challenging environments.
- Interpretability in Complex Scenarios: While ALCS offers good interpretability, further exploration of its interpretability in highly complex tasks is suggested.
Summary updated