Abstract
In this paper, we focus on a prediction-based novelty estimation strategy upon the deep reinforcement learning (DRL) framework, and present a flow-based intrinsic curiosity module (FICM) to exploit the prediction errors from optical flow estimation as exploration bonuses. We propose the concept of leveraging motion features captured between consecutive observations to evaluate the novelty of observations in an environment. FICM encourages a DRL agent to explore observations with unfamiliar motion features, and requires only two consecutive frames to obtain sufficient information when estimating the novelty. We evaluate our method and compare it with a number of existing methods on multiple benchmark environments, including Atari games, Super Mario Bros., and ViZDoom. We demonstrate that FICM is favorable to tasks or environments featuring moving objects, which allow FICM to utilize the motion features between consecutive observations. We further ablatively analyze the encoding efficiency of FICM, and discuss its applicable domains comprehensively.
Introduction
Deep Reinforcement Learning (DRL) has achieved remarkable success in various domains, yet it continues to struggle in environments characterized by sparse rewards. In such scenarios, agents receive infrequent feedback, making it difficult to learn optimal policies through standard reinforcement signals alone. To address this, researchers have turned to intrinsic rewards—often termed "curiosity"—to incentivize agents to explore novel states.
Traditional curiosity-driven methods typically rely on next-frame prediction or self-frame feature prediction. However, these approaches often fail to capture the complex temporal relationships between frames or are easily misled by stochastic background noise. We propose that motion is a fundamental biological trigger for curiosity. Just as biological entities are naturally drawn to unfamiliar movements, DRL agents should be incentivized to investigate novel motion patterns. This paper introduces the Flow-based Intrinsic Curiosity Module (FICM), which leverages optical flow prediction errors as a robust exploration bonus.
Methodology
The FICM architecture utilizes optical flow estimation—a computer vision technique that calculates pixel-level movement between consecutive images—to generate intrinsic rewards. The process involves three primary steps:
- Flow Prediction: Given two consecutive frames ($o_t$ and $o_{t+1}$), a flow predictor network ($G$) estimates both forward and backward optical flows.
- Warping and Reconstruction: The module uses these predicted flows to "warp" the images, attempting to reconstruct the subsequent frame from the current one (and vice versa).
- Intrinsic Reward Generation: The "Flow Loss"—the discrepancy between the actual frame and the reconstructed warped frame—serves as the intrinsic reward signal.
When the agent encounters familiar motion, the flow predictor can accurately estimate the displacement, resulting in low flow loss. Conversely, new or complex movements lead to high prediction errors, providing the agent with a "curiosity bonus" to explore that state further. The paper explores two variants: FICM-S (frame stacking) and FICM-C (using a correlation layer for explicit feature comparison).
Experimental Evaluation
We evaluated FICM across several standard DRL benchmarks, including the Atari 2600 suite, Super Mario Bros., and ViZDoom. These environments offer a range of challenges, from side-scrolling exploration to first-person navigation with extremely sparse rewards.
Key insights from our experiments include:
- Motion as Attention: Flow loss naturally aligns with interactive or moving objects, effectively acting as an automated attention mask that directs the agent's focus toward relevant environmental features.
- Data Efficiency: Unlike methods requiring long sequences of frames, FICM effectively estimates novelty using only two consecutive frames.
- The Role of Color: Experiments revealed that RGB information significantly improves flow prediction by helping the module distinguish between moving objects and static backgrounds, compared to standard grayscale inputs.
Results and Discussion
FICM demonstrated superior performance in "hard exploration" Atari games such as Venture and Gravitar, where it converged faster and achieved higher scores than established baselines like Random Network Distillation (RND) and Inverse Dynamics Features (IDF). In the "very sparse" reward setup of ViZDoom, FICM was the only method that consistently guided the agent to the goal.
As shown in the visualization of flow loss over time, the intrinsic reward for specific states diminishes as the agent's predictor becomes more accurate through training. This dynamic ensures the agent continues to seek out truly novel experiences.
Limitations and Conclusion
While FICM excels in dynamic environments, it faces challenges in "noisy" backgrounds. In games like BeamRider, fast-moving but irrelevant background elements (e.g., stars) can generate high flow loss, potentially misleading the agent. Additionally, in purely static environments, the lack of motion results in negligible intrinsic rewards.
In conclusion, FICM provides a powerful mechanism for exploration by focusing on motion novelty. Future work will investigate combining flow-based rewards with static novelty measures to create a more comprehensive curiosity framework capable of handling both dynamic and static environmental complexities.
Summary updated