When a Reinforcement Learning Agent Encounters Unknown Unknowns

Juntian Zhu, Miguel de Carvalho, Zhouwang Yang, Fengxiang HearXiv 2025

TL;DR

This paper introduces a novel framework for reinforcement learning agents to handle "unknown unknowns" – states they've never encountered and aren't even aware of. They propose an Episodic Markov Decision Process with Growing Awareness (EMDP-GA) that uses a Non-Informative Value Expansion (NIVE) to initialize value functions for these new states, achieving state-of-the-art regret bounds with comparable computational costs.

What Problem Does This Paper Address?

Reinforcement learning (RL) agents typically operate within a defined "aware domain" where they have some knowledge of states and their values. However, in real-world scenarios, agents can encounter "unknown unknowns" – states completely outside their current understanding. This is a critical challenge in security-critical applications like autonomous vehicles or financial systems where unexpected situations can arise. Existing RL algorithms are not equipped to handle such scenarios, as their value functions are undefined for these novel states, rendering them unable to make informed decisions. This paper aims to bridge this gap by providing a principled way for RL agents to adapt and learn from these previously unknown states.

Methods

The core of the proposed solution lies in the Episodic Markov Decision Process with Growing Awareness (EMDP-GA). This model extends the standard EMDP by allowing the agent's "aware domain" to grow as new states are discovered. The key innovation is the Non-Informative Value Expansion (NIVE) approach. When an agent encounters an unknown unknown state, NIVE initializes its value functions (Q and V) using non-informative beliefs – specifically, the averaged values from the currently known states. This approach respects the complete lack of prior knowledge about the new state. To train the EMDP-GA model, the authors adapt the Upper Confidence Bound Momentum Q-Learning (UCBMQ) algorithm, creating UCBMQ-GA. This adaptation allows the UCBMQ algorithm to leverage the growing awareness and NIVE initialization.

Datasets

Not discussed in the paper. The paper focuses on theoretical analysis and algorithmic development within a simulated environment.

Key Insights and Ideas

  • "Unknown Unknowns" are a fundamental RL challenge: The paper frames the problem of encountering entirely novel states as a significant hurdle for current RL agents, drawing a parallel to real-world complex systems.
  • NIVE as a principled initialization: The idea of initializing value functions for unknown states with averages from known states is a clever way to provide a starting point without making unfounded assumptions. It's a "best guess" based on existing knowledge.
  • Growing awareness is monotonic: The framework ensures that once a state is discovered, it remains in the aware domain permanently, leading to monotonically increasing agent knowledge.
  • Regret bounds comparable to SOTA: A significant insight is that the proposed method achieves competitive regret bounds even when dealing with the added complexity of unknown unknowns, suggesting that these surprises can be handled efficiently.

Key Results

The paper presents theoretical guarantees for their proposed EMDP-GA model trained with UCBMQ-GA. Key results include:

  • Regret Bound: The regret bound is shown to be asymptotically consistent with state-of-the-art (SOTA) methods that do not encounter unknown unknowns. Specifically, the regret is bounded by $O(\sqrt{H^3SAT} + H^2SA + H^2S\sqrt{T})$, where $H$ is the horizon, $S$ is the state space size, $A$ is the action space size, and $T$ is the number of episodes. This bound is sublinear with respect to $T$.
  • Computational and Space Complexity: The computational complexity is $O(H(S+A)T)$ and the space complexity is $O(HS^2A)$, which are comparable to existing SOTA algorithms.
  • Efficiency of NIVE: Theoretical analysis confirms that NIVE preserves the "upper-bound" property crucial for UCBMQ, and that using scalar multiples less than 1 for expansion would invalidate this property.

Limitations and Future Work

  • Finite State and Action Spaces: The current work focuses on problems with finite state and action spaces.
  • Continuous Spaces: The authors suggest future work to extend the framework to continuous state and action spaces, which would be a significant step towards broader applicability.

Summary updated

Abstract

An AI agent might surprisingly find she has reached an unknown state which she has never been aware of -- an unknown unknown. We mathematically ground this scenario in reinforcement learning: an agent, after taking an action calculated from value functions $Q$ and $V$ defined on the {\it {aware domain}}, reaches a state out of the domain. To enable the agent to handle this scenario, we propose an {\it episodic Markov decision {process} with growing awareness} (EMDP-GA) model, taking a new {\it noninformative value expansion} (NIVE) approach to expand value functions to newly aware areas: when an agent arrives at an unknown unknown, value functions $Q$ and $V$ whereon are initialised by noninformative beliefs -- the averaged values on the aware domain. This design is out of respect for the complete absence of knowledge in the newly discovered state. The upper confidence bound momentum Q-learning is then adapted to the growing awareness for training the EMDP-GA model. We prove that (1) the regret of our approach is asymptotically consistent with the state of the art (SOTA) without exposure to unknown unknowns in an extremely uncertain environment, and (2) our computational complexity and space complexity are comparable with the SOTA -- these collectively suggest that though an unknown unknown is surprising, it will be asymptotically properly discovered with decent speed and an affordable cost.
BibTeX
@misc{zhu2025when,
  author = {Juntian Zhu and Miguel de Carvalho and Zhouwang Yang and Fengxiang He},
  title = {{When a Reinforcement Learning Agent Encounters Unknown Unknowns}},
  year = {2025},
  eprint = {2505.13188},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.13188},
}
Figure