Abstract
In environments with sparse rewards, finding a good inductive bias for exploration is crucial to an agent's success. Traditional curiosity-driven methods often prioritize novelty, which can lead to inefficient, depth-first-style exploration that fails to map the state space systematically. In this paper, we propose a novel intrinsic reward mechanism termed "cyclophobic" reinforcement learning. Unlike novelty-seeking approaches, our method punishes redundancy by penalizing the agent for completing cycles. By augmenting this reward with a sequence of hierarchical representations based on cropped observations, we achieve superior sample efficiency in complex environments like MiniGrid and MiniHack. Our results demonstrate that avoiding redundancy is often more effective than seeking novelty for solving tasks requiring intricate object interactions and navigation.
1. Introduction
Reinforcement Learning (RL) agents frequently struggle in "sparse-reward" environments where meaningful feedback is rare. In such scenarios, an agent might take thousands of actions before receiving a single positive signal. To overcome this, researchers often employ intrinsic rewards—such as curiosity or novelty bonuses—to encourage exploration.
However, novelty search has a distinct limitation: it often behaves like a depth-first search, chasing the most recent "new" state without ensuring the agent has systematically explored the broader environment. This can lead to inefficient paths and a failure to build a comprehensive map of the task. We propose a shift in perspective: instead of rewarding the agent for finding something new, we penalize it for repeating what it has already done. This "cyclophobic" (cycle-fearing) approach encourages a breadth-first-style exploration that is both systematic and efficient.
2. The Cyclophobic Framework
2.1 Cyclophobic Intrinsic Reward
The core of our method is a negative intrinsic reward designed to discourage redundancy. If an agent encounters a state-action pair $(s, a)$ that it has already visited within the current episode, it receives a penalty ($r = -1$).
This mechanism acts as a count-based extension of optimistic initialization. By penalizing cycles, the agent is forced to exhaust every available action in a given state before resorting to repetition. This naturally pushes the agent toward the "frontier" of its experience, ensuring that exploration is not just a search for novelty, but a systematic avoidance of wasted effort.
2.2 Hierarchical State Representations
To enable generalization across different parts of an environment, we introduce a hierarchy of "cropped" views. Rather than relying solely on a global view of the environment, the agent processes a sequence of observations ranging from a wide $9\times9$ grid down to a highly localized $2\times1$ view of the immediate surroundings.
This hierarchy provides two critical advantages:
- Spatial Invariance: A cycle in a small, local view (such as walking into a wall or turning in a circle) is recognized as a cycle regardless of the agent's absolute coordinates on a map.
- Knowledge Transfer: The agent can transfer the understanding that certain local patterns are redundant across different sections of a level or even across entirely different tasks.
The final policy utilizes a weighted mixture of Q-functions derived from these views. Views that are encountered less frequently (and are thus more "salient") are assigned higher priority through a softmax-normalized weighting scheme.
3. Experimental Evaluation
3.1 Benchmarks
We evaluated our approach on two notoriously difficult RL benchmarks:
- MiniGrid: A suite of procedurally generated 2D grid worlds. These tasks require complex logic, such as finding keys to unlock doors, to reach a goal.
- MiniHack: Based on the game NetHack, this environment features a massive action space (up to 75 actions) and complex "Skill" tasks, such as using specific items or performing rituals, which are significantly more challenging than standard navigation.
3.2 Results
Our experiments show that cyclophobic RL consistently outperforms state-of-the-art curiosity-driven methods:
- Sample Efficiency: In MiniGrid, the cyclophobic agent converged significantly faster than competitors like C-BET and NovelD, often reaching a 100% success rate in half the steps.
- Complex Skill Acquisition: In MiniHack "Skill" tasks, our agent successfully collected extrinsic rewards in environments where the baseline (IMPALA) failed to learn anything.
- Robust Navigation: In the MiniHack "River" task, the cyclophobic agent was the only model to converge, outperforming established methods like RIDE and RND.
4. Discussion and Future Work
4.1 Punishing Redundancy vs. Rewarding Novelty
The success of cyclophobic RL suggests that for many complex tasks, the primary bottleneck is not a lack of curiosity, but a lack of systematicity. By framing exploration as the avoidance of redundancy, we provide a stronger inductive bias for thorough environmental mapping.
4.2 Limitations
The current implementation is primarily tabular, which limits its ability to generalize across environments with high visual complexity (e.g., varying colors or decorative textures). Additionally, the requirement to track the agent's observation history for weighting purposes introduces a memory overhead that may scale poorly in extremely long episodes.
4.3 Conclusion
Cyclophobic Reinforcement Learning offers a powerful new tool for sparse-reward exploration. By combining a cycle-penalizing reward with hierarchical, cropped representations, we create agents that explore more systematically and transfer knowledge more effectively. Future work will focus on integrating these principles into deep RL architectures (such as PPO) using density estimation techniques like VQ-VAE to handle high-dimensional, continuous state spaces.
Summary updated