Introduction
In real-world applications, agents often operate in environments where the true state of the world is hidden, receiving only noisy and incomplete observations. These scenarios are modeled as Partially Observable Markov Decision Processes (POMDPs). A fundamental challenge in these settings is distinguishing between true causal transitions of hidden variables and stochastic noise. Traditional methods rely on history—the sequence of past actions and observations—which often provides a "blurry lens" that fails to resolve these underlying causal "gears."
This paper introduces a Dynamical-VAE-based hindsight framework that leverages future information available in offline datasets to "triangulate" hidden states. By looking at the consequences of a state (hindsight), the model can effectively filter out noise and reconstruct the environment's causal graph with high precision.
The Hindsight Framework
The core innovation is the integration of Dynamical Variational Auto-Encoders (DVAEs) with a recursive hindsight structure. Unlike standard forward-looking models, this framework employs a backward RNN that processes the entire future trajectory to infer the current hidden state.
Architecture Components
- Hidden Encoder: A recursive structure that integrates past, present, and multi-step future data to sample the hidden state $h_t$.
- Transition Model: Predicts the next hidden state and observations based on the current state and action.
- Reward Decoder: Predicts the immediate reward from the inferred state and observations.
By using the "Reparameterization Lemma," the model disentangles deterministic hidden variables from pure exogenous noise. This separation allows the model to focus on the learnable dynamics of the environment rather than being misled by random fluctuations.
Causal Discovery in Factored-POMDPs
The environment is treated as a collection of individual "factors." To learn the relationships between these factors, the model utilizes Conditional Mutual Information (CMI). It identifies causal parents by asking if knowing a variable's value at time $t$ significantly improves the prediction of another variable at $t+1$ compared to knowing all other variables.
A specialized loss function—incorporating Full, Masked, and Causal prediction losses—forces the model to ignore "distractor" variables and rely solely on identified causal parents. This results in a sparse, accurate causal graph that reflects the true physics of the environment.
Evaluation and Key Results
The researchers evaluated the model using a custom Modulo Environment, a stochastic, discrete factored-POMDP where transitions are governed by linear algebra and modulo operations. They tested various structures, including "Chain" and "Full" dependencies, under significant exogenous noise.
- Near-Perfect Causal Discovery: The model achieved an accuracy of 1.000 in identifying causal edges, significantly outperforming history-based models that often identified "ghost" links or missed true dependencies.
- State Decoding Accuracy: In noisy environments where history-based models achieved ~85% accuracy, the hindsight-based model reached 100% accuracy in decoding true hidden states.
- Recursive Advantage: The results demonstrate that looking many steps into the future (recursive hindsight) is critical for identifying factors whose effects are not immediately apparent.
Conclusion and Future Work
The Dynamical-VAE-based hindsight framework demonstrates that the "superpower" of looking forward in offline data can unlock the hidden causal structure of complex environments. While currently focused on discrete, offline settings, future work aims to scale this approach to continuous state-action spaces and real-time noise inference, potentially providing a robust foundation for training world models in robotics and complex AI systems.
Summary updated