Abstract
Decision-making AI agents are often faced with two important challenges: the depth of the planning horizon, and the branching factor due to having many choices. Hierarchical reinforcement learning methods aim to solve the first problem, by providing shortcuts that skip over multiple time steps. To cope with the breadth, it is desirable to restrict the agent's attention at each step to a reasonable number of possible choices. The concept of affordances (Gibson, 1977) suggests that only certain actions are feasible in certain states. In this work, we model "affordances" through an attention mechanism that limits the available choices of temporally extended options. We present an online, model-free algorithm to learn affordances that can be used to further learn subgoal options. We investigate the role of hard versus soft attention in training data collection, abstract value learning in long-horizon tasks, and handling a growing number of choices. We identify and empirically illustrate the settings in which the paradox of choice arises, i.e. when having fewer but more meaningful choices improves the learning speed and performance of a reinforcement learning agent.
Introduction
Reinforcement Learning (RL) agents operating in complex environments encounter two primary obstacles: the depth of the planning horizon and the breadth of the branching factor. While Hierarchical Reinforcement Learning (HRL) effectively addresses depth through the use of "options"—temporally extended actions—it often exacerbates the breadth problem. When an agent can choose from a vast array of high-level options at every time step, the branching factor explodes. This phenomenon, termed the Paradox of Choice, suggests that an abundance of options can paradoxically degrade learning performance due to the overhead of evaluating irrelevant or impossible actions.
Methodology: Affordances as Hard Attention
To mitigate the branching factor, this paper proposes modeling affordances as a form of "hard attention." In ecological psychology, an affordance represents a possibility for action provided by the environment. By strictly pruning the set of available options to only those that are "affordable" (feasible) in a given state, the agent focuses its computational resources on meaningful choices.
The core of this approach is the Intent Completion Network ($IC^{net}$), a learned value function that predicts the probability of an option successfully reaching its subgoal from the current state. The algorithm distinguishes between:
- Hard Attention: Applying a threshold to $IC^{net}$ outputs to create a binary mask, strictly excluding non-feasible options.
- Soft Attention: Utilizing a softmax distribution to weight options, maintaining a preference without strict exclusion.
The proposed algorithm learns affordances and option policies simultaneously in an online, model-free manner.
Experimental Evaluation
The researchers evaluated the affordance-aware HRL framework across two domains:
- MiniGrid: A discrete grid-world requiring the agent to collect objects in a specific sequence. Complexity was scaled by increasing the number of objects (up to 7) and available options (up to 12).
- Fetch Domain: A continuous control environment from OpenAI Robotics, where a robotic gripper must reach sequential target positions, testing the method's scalability to high-dimensional spaces.
Results and Discussion
The experiments confirm the "Less is More" principle in RL. Hard attention significantly improves sample efficiency by preventing the agent from exploring physically impossible or irrelevant trajectories.
Key findings include:
- Scaling with Complexity: In the most challenging MiniGrid tasks (7 sequential objects), only the hard-attention agent successfully converged.
- The Paradox of Choice: As the number of options increased from 6 to 12, the performance gap widened, illustrating that hard pruning becomes more critical as the action space grows.
- Robotic Control: The method successfully transferred to the continuous Fetch Reach domain, achieving higher success rates faster than standard HRL baselines.
Conclusion
This work demonstrates that strictly limiting an agent's choices through affordance-based hard attention is a powerful mechanism for solving long-horizon tasks. By reducing the branching factor, agents can reason more effectively about the future. Future work includes integrating automated subgoal discovery to remove the dependency on pre-defined subgoals and applying these techniques to more complex real-world robotic manipulation.
Summary updated