Abstract
Skill composition is a growing area of interest within reinforcement learning research. This approach promotes efficient use of knowledge and represents a realistic, human-like style of learning. Existing work has demonstrated how simple skills can be composed using Boolean operators to solve new, unseen tasks without further learning. However, this approach assumes that the learned value functions for each atomic skill are optimal, an assumption which is violated in most practical cases. We propose a method that instead learns operators for composition using evolutionary strategies. We empirically verify our approach in tabular and high-dimensional environments. Results demonstrate that our approach outperforms existing composition methods when faced with learned, suboptimal behaviours, while also promoting robust agents and allowing for transfer between domains.
Introduction
In Reinforcement Learning (RL), achieving efficiency through "compositionality" is a major goal. Rather than training an agent for every specific permutation of a task (e.g., "find a red key in a dark room"), researchers aim to combine pre-existing atomic skills (e.g., "find a red key" and "navigate a dark room"). Current state-of-the-art methods utilize Boolean Task Algebra, employing fixed mathematical operators—typically min for conjunction (AND) and max for disjunction (OR)—to merge the value functions of these base skills. However, these operators are mathematically guaranteed to work only when the underlying value functions are optimal.
The Challenge of Suboptimality
In practice, value functions are rarely optimal due to computational constraints, noisy environments, or poorly specified reward functions. When base skills are suboptimal, the rigid logic of fixed Boolean algebra often fails, leading to agents that cannot reach their goals or become stuck in loops. This research addresses this limitation by proposing a method to "learn" composition operators that are robust to the imperfections of real-world RL training.
Methodology: Evolving Operators with NEAT
The authors propose replacing fixed Boolean operators with learned ones using Neuroevolution of Augmenting Topologies (NEAT).
- NEAT Framework: Unlike standard neural networks with fixed architectures, NEAT evolves both the topology (connections and nodes) and the weights of the network.
- Learned Operators: Small neural networks are evolved to act as composition operators. These networks take values from base-task functions as input and output a single "composed" value.
- Evolutionary Process: The "fitness" of an operator is determined by the cumulative reward an agent earns in the environment using that specific operator.
- Baselines: The approach is compared against standard Fixed Boolean operators and Differentiable Approximations (e.g., Boltzmann or MellowMax), which serve as "soft" versions of the fixed logic.
Experimental Setup
The researchers evaluated their approach across two distinct domains:
- Four Rooms (Tabular): A classic RL gridworld benchmark tested in both 9x9 and 13x13 configurations.
- Boxman (Function Approximation): A complex environment where states are represented by 84x84 RGB images. Agents must navigate obstacles to collect specific objects, requiring Deep Q-Networks (DQNs).
Key Insights
- Robustness in the "Realistic Middle Ground": The learned operators showed the most significant advantage when base skills were between 45% and 90% optimal. While fixed math suffices for perfect skills, evolution finds effective "workarounds" for the suboptimal behaviors typical of practical RL.
- Handling Faulty Rewards: In scenarios where reward functions were mathematically non-viable for standard composition, NEAT evolved operators that focused on success rates rather than flawed reward math.
- Cross-Domain Transfer: Operators learned in simple gridworlds (Four Rooms) were successfully transferred zero-shot to high-dimensional visual environments (Boxman), outperforming fixed baselines immediately.
Results and Conclusion
The study found that NEAT-learned operators significantly outperformed fixed Boolean operators in complex domains with suboptimal skills. Furthermore, these operators demonstrated resilience in stochastic environments with up to 25% randomness. The ability to transfer and fine-tune operators across domains also showed high sample efficiency, requiring only a fraction of the data needed to train from scratch.
While the evolutionary process is more sample-intensive than applying a fixed function and the resulting networks are less interpretable, the gains in robustness and generalizability suggest that learned composition is a powerful tool for scaling RL agents to complex, real-world tasks.
Summary updated