TL;DR
This paper introduces the $\lambda$-discrepancy, a clever metric that detects when a reinforcement learning (RL) agent is suffering from "partial observability"—essentially, when its current view of the world isn't enough to make optimal decisions. By minimizing this discrepancy as an auxiliary loss, agents can explicitly learn to improve their memory representations. This leads to significantly better performance in complex environments where traditional recurrent agents often stall.
What Problem Does This Paper Address?
Most RL algorithms rely on the Markov assumption: the idea that your current state contains all the information necessary to predict the future. When this holds, we call the environment a Markov Decision Process (MDP). However, real-world tasks are often Partially Observable (POMDPs)—think of a robot that cannot see behind itself or a trader who doesn't know a competitor's hidden move.
In these cases, agents use memory (like Recurrent Neural Networks, or RNNs) to build a "state representation" from a history of past observations. The challenge is twofold:
- How does an agent detect if its current representation is "non-Markovian" (i.e., it is missing vital information)?
- How can it be guided to learn a better representation without knowing the "true" hidden state of the world?
Methods
The authors propose a model-free metric called the $\lambda$-discrepancy. It leverages a fundamental property of Temporal Difference (TD) learning:
- TD($\lambda=0$): This method "bootstraps" immediately, relying heavily on the Markov assumption to estimate values.
- TD($\lambda=1$): Also known as Monte Carlo, this uses full trajectory returns and does not rely on the Markov assumption for its targets.
The Logic: If an environment is Markovian, TD(0) and TD(1) will eventually converge to the same value estimates. If they disagree, the state representation must be non-Markovian.
The Implementation: 1. Theoretical Proof: The authors prove that the $\lambda$-discrepancy is exactly zero for all MDPs and almost always non-zero for a broad class of POMDPs. 2. Deep RL Integration: They augment a Recurrent PPO (Proximal Policy Optimization) agent. Instead of one value head, the agent has two, trained with different $\lambda$ values (e.g., $\lambda_1=0.1$ and $\lambda_2=0.95$).
- Auxiliary Loss: The agent minimizes the squared difference between these two value heads as an auxiliary loss. This forces the underlying GRU (memory unit) to find a state representation where both value estimates agree—effectively "discovering" the missing information needed to make the environment look Markovian.
Key Insights and Ideas
- Internal Error Signal: The $\lambda$-discrepancy acts as an "internal compass." The agent doesn't need a teacher to tell it that it's forgetting something; the disagreement between its own value estimators provides that signal.
- The "Almost Always" Guarantee: The mathematical proof that the discrepancy is non-zero for nearly all POMDPs is a major contribution. It suggests this isn't just a heuristic, but a robust detector of partial observability.
- Symmetry Breaking: A "Parity Check" experiment revealed that in rare, perfectly symmetric cases, the discrepancy can be zero even in a POMDP. However, the authors found that simply adding a tiny bit of random memory or slightly perturbing the environment "breaks" this symmetry, making the discrepancy detectable again.
- Separation Matters: For the best results, the two $\lambda$ values should be far apart (one low, one high). This maximizes the "tension" between the Markov-dependent and Markov-independent estimates.
Datasets and Key Results
The researchers evaluated their approach on several benchmarks, ranging from classic tabular POMDPs (T-maze, Tiger, Paint) to challenging large-scale environments like Battleship ($10 \times 10$), PocMan, and RockSample.
- Solving the Unsolvable: In the $15 \times 15$ RockSample task, standard recurrent PPO agents failed completely, learning only to exit the map immediately. The $\lambda$-discrepancy agent successfully learned to scan and collect rocks, achieving much higher rewards.
- Consistent Gains: Across Battleship and PocMan, the proposed method reached higher asymptotic performance and learned faster than the baseline RNN agent.
- No Penalty for MDPs: When tested on environments that were already fully observable (MDPs), the auxiliary loss did not hurt performance. It essentially "turned itself off" as the discrepancy naturally went to zero.
Limitations and Future Work
- Computational Overhead: Training two value heads adds roughly 12% more parameters and causes a slight increase in backpropagation time.
- Fixed Point Assumption: The theory is based on value function "fixed points" (convergence). In deep RL, we are always dealing with moving targets and approximations, which might lead to noisy discrepancy estimates during early training.
- Exploration: While the $\lambda$-discrepancy helps represent the state, it doesn't directly solve the problem of finding the state (exploration). Future work could explore using the discrepancy to drive curiosity-based exploration in partially observable worlds.
Summary updated