Abstract
In environments with sparse rewards, finding a good inductive bias for exploration is crucial to the agent's success. However, there are two competing goals: novelty search and systematic exploration. While existing approaches such as curiosity-driven exploration find novelty, they sometimes do not systematically explore the whole state space, akin to depth-first-search vs breadth-first-search. In this paper, we propose a new intrinsic reward that is cyclophobic, i.e., it does not reward novelty, but punishes redundancy by avoiding cycles. Augmenting the cyclophobic intrinsic reward with a sequence of hierarchical representations based on the agent's cropped observations we are able to achieve excellent results in the MiniGrid and MiniHack environments. Both are particularly hard, as they require complex interactions with different objects in order to be solved. Detailed comparisons with previous approaches and thorough ablation studies show that our newly proposed cyclophobic reinforcement learning is more sample efficient than other state of the art methods in a variety of tasks.
Introduction
In the world of Reinforcement Learning (RL), "exploration" is often synonymous with "curiosity." Standard agents are built to crave novelty, receiving rewards for discovering states they haven't encountered before. However, in environments with sparse rewards, curiosity-driven methods (like Random Network Distillation or RIDE) often suffer from a "depth-first search" problem. They may dive deep into one novel corner of a map while ignoring others, or fail to explore systematically. If an agent walks in a circle, a curiosity-based agent might eventually stop being "curious" about those states, but it doesn't receive an immediate, clear signal that the loop itself was a waste of time.
This paper introduces Cyclophobic Reinforcement Learning, a method that shifts the focus from chasing novelty to systematically punishing "cycles"—the repetitive loops that trap agents in unproductive behavior.
Methods: The Fear of Cycles
The authors propose two primary building blocks for efficient exploration:
- The Cyclophobic Intrinsic Reward: Instead of rewarding novelty, a negative intrinsic reward ($r = -1$) is given whenever the agent repeats a state-action pair within the same episode. This "cycle penalty" forces the agent to try every available action in a state before repeating one, effectively acting as a count-based extension of optimistic initialization.
- Hierarchical State Representations: To generalize exploration strategies, the agent maintains several "cropped" views (e.g., $3\times3$, $5\times5$, up to $9\times9$ grids) centered on its position. By learning local "laws of physics" (e.g., "don't walk into walls") through these cropped views, the agent develops heuristics that generalize across the entire environment.
Experimental Results
The researchers evaluated their method on two notoriously difficult benchmarks: MiniGrid and MiniHack. MiniGrid requires navigating rooms and unlocking doors, while MiniHack features a massive action space and complex multi-step tasks like eating, praying, or zapping wands.
The cyclophobic agent demonstrated superior sample efficiency compared to high-profile baselines like C-BET and NovelD. Notably, in MiniHack "Skill" tasks—which are often too complex for standard curiosity methods—the cyclophobic agent was the only one able to solve tasks like "Wear" (equipping armor) and "LockedDoor-Fixed."
Conclusion
Cyclophobic Reinforcement Learning demonstrates that punishing redundancy can be a more powerful heuristic for exploration than rewarding novelty. By combining cycle penalties with hierarchical cropped views, agents learn to explore systematically and generalize their knowledge across tasks. While currently limited to tabular grid-worlds, future work will focus on extending these concepts to high-dimensional, continuous state spaces using density estimation or embedding networks to detect "soft cycles."
Summary updated