Introduction
In Reinforcement Learning (RL), "exploration" is the art of wandering effectively. Most agents struggle in environments where rewards are sparse or non-existent. To solve this, researchers often rely on intrinsic motivation (or curiosity), rewarding agents for visiting "novel" states.
However, traditional curiosity methods like Random Network Distillation (RND) or Intrinsic Curiosity Module (ICM) often fall into the Noisy TV trap: they become obsessed with random, unpredictable noise (like a static-filled TV screen) because it constantly appears "new." While recent state-of-the-art methods solve this issue, they are often computationally heavy, requiring episodic memories and complex "quasimetric" distance learning.
This paper introduces C-TeC (Curiosity-Driven Exploration via Temporal Contrastive Learning), a new RL method that masters complex environments without any external rewards. By training an agent to visit states that have "unpredictable" futures according to a learned temporal model, C-TeC discovers sophisticated behaviors while remaining immune to the Noisy TV problem.
Methodology: C-TeC and Temporal Contrastive Learning
The authors ask a fundamental question: Can we build a simpler, more effective exploration signal by focusing purely on the temporal structure of the world? C-TeC achieves this through Temporal Contrastive Learning.
- Representation Learning: The agent learns two separate (factorized) encoders—one for the current state-action pair $(s_t, a_t)$ and one for a future state $s_f$. It uses an InfoNCE loss (a standard contrastive objective) to ensure that the representation of a state-action pair is "similar" to states that actually occur later in that same trajectory, and "dissimilar" to states from other trajectories.
- The Exploration Signal: The intrinsic reward is simply the negative similarity between the current state-action pair and the reached future state.
- Forward-Looking Philosophy: Unlike "backward-looking" methods that reward an agent for being far from where it has already been, C-TeC is "forward-looking." It rewards the agent for reaching states that lead to a wide, unpredictable variety of future outcomes.
- Simplicity: C-TeC does not require an episodic memory (a list of every state visited in a round) or a world model that tries to reconstruct pixels.
Environments and Benchmarks
The researchers evaluated C-TeC across several challenging benchmarks to test its versatility and robustness:
- Locomotion:
ant_large_mazeandhumanoid_u_maze(complex bodies navigating tight spaces). - Manipulation:
arm_binpick_hard(a robotic arm task requiring long-term planning to move cubes). - Open-World Survival:
Craftax-Classic(a 2D survival game inspired by Minecraft). - Robustness Testing: A modified
xland-minigridenvironment with a "Noisy TV" region to test if the agent gets stuck on random noise.
Key Insights and Results
- Emergent Superpowers: In the
humanoid_u_maze, C-TeC discovered a behavior that no other baseline found: the humanoid learned to jump over the walls of the maze to reach the goal faster, rather than walking through the corridors. - The "Aha" Moment on Noise: C-TeC is naturally robust to the Noisy TV problem. Because the contrastive model only learns features that are predictable across time, it ignores random noise that doesn't correlate with the agent's actions. If the "TV" is just random static, the model cannot learn a temporal relationship, effectively filtering it out.
- State Coverage and Efficiency: C-TeC consistently outperformed standard baselines like RND, ICM, and APT in terms of how much of the maze or environment the agent successfully visited. Furthermore, it is highly sample-efficient, showing strong exploration results even when trained with 10x to 16x fewer environment steps than the main experiments.
- Craftax Mastery: In the Minecraft-like environment, C-TeC achieved significantly higher "achievement scores" (finding wood, crafting tools, etc.) than prior curiosity methods.
- Mode-Seeking Behavior: Mathematically, C-TeC's reward encourages "mode-seeking." It pushes the agent toward "bottleneck" states—transitions that open up entirely new, diverse regions of the state space.
Limitations and Future Work
While C-TeC offers a powerful new paradigm for exploration, it has a few limitations. Performance is somewhat sensitive to hyperparameter tuning, specifically the choice of distance metric ($L_1$ vs $L_2$ norm) and the temporal discount factor depending on whether the task is navigation or manipulation. Additionally, while tested on high-dimensional state vectors, the current version hasn't been fully benchmarked on raw pixel inputs.
Finally, the paper focuses on pure exploration (zero extrinsic reward). A logical next step for future work is investigating how to best "hand off" these discovered behaviors to a task-specific reward, allowing agents to seamlessly transition from curious wandering to targeted task execution.
Summary updated