TL;DR
Imagine two treatments in a hospital: one guarantees a mild recovery, while the other is a coin flip between a miracle cure and disaster—yet both have the exact same "expected value." Current tools for explaining Reinforcement Learning (RL) agents can tell you why an agent expects a certain reward, but they are completely blind to why it feels certain or uncertain. This paper introduces EXPOSURE, a unified neural architecture that not only plays the game, but also cleanly untangles and explains the exact sources of its own doubt.
What Problem Does This Paper Address?
In safety-critical fields like healthcare or autonomous driving, knowing an RL agent's expected return isn't enough; we need to understand its uncertainty and where that doubt comes from. Is the agent hesitant because it lacks information (hidden features), or because the world itself is inherently unpredictable (like a chaotic opponent or a dice roll)?
Researchers typically use Shapley values—a concept from cooperative game theory that fairly distributes "credit" among input features—to explain model decisions. Computing Shapley values requires testing the agent on every possible subset (or "coalition") of visible features, masking out the rest. Because standard RL agents aren't built to handle missing inputs, the usual workaround is to train a separate surrogate model to mimic the agent on masked data. The catch? You end up explaining the surrogate, not the actual agent making the decisions. Furthermore, explaining sources of uncertainty rather than just expected reward has remained largely unexplored in RL.
Methods
The authors ditch the surrogate middleman and propose EXPOSURE, a single, mask-aware belief network that handles both decision-making and self-explanation.
Built on a Variational Autoencoder with arbitrary conditioning, EXPOSURE has three components trained jointly using random feature masks:
- An Encoder that takes a partially masked observation and maps it to a "latent belief" (modeled as a mixture of Gaussians). During training, it learns to match this masked belief to the full-observation belief.
- A Q-head that looks at the latent belief and predicts both the mean expected return and the variance of that return.
- A Decoder that reconstructs the missing, masked-out features from the latent belief.
When acting in the real world, the agent simply uses its full-observation belief. When explaining itself via Shapley values, it queries its own masked beliefs to decompose uncertainty into three distinct "games":
- Observational Uncertainty: Variance in expected return caused by missing features (computed by letting the decoder hallucinate plausible board completions and checking how much the Q-value fluctuates).
- Inherent Uncertainty: Variance caused by the environment's own randomness that persists even when all features are visible (predicted directly by the Q-head's variance output).
- Belief Uncertainty: How unsure the agent is about what lies behind the masks, regardless of reward (measured via the entropy of the decoder's reconstructions).
Datasets
In RL, environments serve as datasets. Because evaluating explanation accuracy requires ground-truth, exact Shapley values, the authors needed environments small enough to solve completely via exhaustive game-tree search (expectimax), yet rich enough to showcase different flavors of uncertainty:
- Tic-tac-toe ($3 \times 3$): Fully observable. Randomness comes from the opponent—either playing uniformly at random, or a "perturbed minimax" opponent that mostly plays optimally with occasional random slips.
- Minesweeper ($4 \times 4$ with 3 mines): Partially observable. There is no opponent; inherent randomness comes purely from hidden mine placements.
Key Insights and Ideas
- Doubt comes in different flavors: Unmasking a feature doesn't reduce the inherent randomness of the universe, but it can reveal how much randomness is left in the rest of the game (for instance, realizing a Tic-tac-toe board is nearly decided).
- Knowing the state $\neq$ knowing the payoff: Belief uncertainty and observational uncertainty behave differently. Revealing a hidden cell might drastically narrow down what the board looks like (lowering belief entropy) without changing the expected outcome of the game at all (leaving observational return uncertainty untouched).
- Thinking in beliefs helps you win: Forcing an agent to explicitly maintain a latent belief over missing features doesn't degrade its gameplay—in partially observable games like Minesweeper, it actually makes the agent a vastly better player.
Key Results
The authors compared EXPOSURE against a standard DQN + surrogate setup and a Mask-Aware DQN (MA-DQN) without a latent belief space, measuring Spearman rank correlation ($\rho$) against exact, ground-truth Shapley values.
- Superior Explanations: EXPOSURE achieved the highest correlation with ground-truth explanations across all shared targets in all three settings. For example, in Minesweeper, EXPOSURE hit $\rho = 0.61$ on observational uncertainty (vs. $0.15$ for MA-DQN and $0.48$ for DQN + surrogate) and $\rho = 0.82$ on inherent uncertainty.
- Unique Belief Tracking: EXPOSURE is the only method capable of explaining belief uncertainty, achieving strong rank correlations of $0.76$ (random Tic-tac-toe), $0.56$ (minimax Tic-tac-toe), and $0.59$ (Minesweeper).
- Gameplay Boost: While matching baselines in Tic-tac-toe (~$93.5\%$ win rate vs. random), EXPOSURE crushed the baselines in partially observable Minesweeper, winning $75.5\%$ of games compared to MA-DQN's $49.5\%$ and DQN + surrogate's $13.7\%$ (optimal play is $87.9\%$).
- Structured Latent Space: Linear probes revealed that EXPOSURE naturally organizes its latent space by game outcomes ($69\%$ accuracy vs. $43\%$ on raw boards) and strategic concepts like center-square control.
Limitations and Future Work
- No Epistemic Uncertainty: EXPOSURE untangles missing observations from environmental randomness, but it does not capture epistemic (model) uncertainty—doubt caused by lack of training data in unfamiliar states.
- Calibration Unknowns: High rank correlation proves EXPOSURE orders feature importance well, but doesn't guarantee its raw variance and probability estimates are well-calibrated.
- Scaling Up: Enumerating all feature subsets only works for small boards. Scaling EXPOSURE to high-dimensional inputs (like pixels or complex medical records) will require fast, amortized Shapley approximations (such as FastSVERL) and evaluation metrics that don't rely on exhaustive game-tree searches. Finally, testing against a separately trained feature-imputer could clarify whether joint training is strictly necessary.
Summary updated