In the idealized world of Reinforcement Learning (RL), an agent enjoys the Markov property: the current observation provides all the information necessary to make an optimal decision. If you are playing Chess, the current board state is everything; you don't need to know how the pieces got there to decide your next move.
However, the real world is rarely so transparent. Most practical tasks are Partially Observable Markov Decision Processes (POMDPs). A robot might only see what is directly in front of its camera, missing a person walking behind it. A trading bot might see current prices but not the hidden intent of other market participants. In these "non-Markovian" environments, the current observation is an ambiguous snapshot. To succeed, the agent must look backward to move forward.
The Ambiguity of the Present
When the Markov property is violated, the agent faces state ambiguity. As Gabriella Contardo and colleagues explain in Learning States Representations in POMDP, an agent might see a single position of an object but cannot know its velocity without seeing the previous frame. Without that context, the agent cannot predict where the object will be next.
The fundamental challenge of this research direction is state estimation: how can an agent construct a "belief state" or an internal representation that summarizes the past well enough to make the environment appear Markovian again?
Building Memory with Recurrence
The most direct way to handle history is to bake it into the network architecture. Early foundational work by Bram Bakker in Reinforcement Learning with Long Short-Term Memory introduced RL-LSTM. By using Long Short-Term Memory (LSTM) units, the agent maintains an internal state that persists across time steps, allowing it to remember cues from the distant past to resolve current ambiguities.
This idea was further refined by Xiujun Li and others in Recurrent Reinforcement Learning: A Hybrid Approach. They proposed a hybrid architecture where a recurrent network is trained via supervised learning to predict immediate outcomes, while a Deep Q-Network (DQN) uses those predictions to optimize long-term value. This forces the memory to focus on features that are actually predictive of the future.
The Problem of Historical Noise
If history is the solution, why not just give the agent everything? In practice, "remembering everything" is computationally expensive and introduces significant noise.
Wenchang Duan addresses this in Adaptive Context Length Optimization with Low-Frequency Truncation for Multi-Agent Reinforcement Learning. In complex environments, long histories often contain "high-frequency noise"—irrelevant fluctuations that distract the agent. By using Fourier-based truncation, their ACL-LFT framework filters out this noise, allowing the agent to focus on the low-frequency signals that represent meaningful long-term trends.
Similarly, Geraud Nangue Tasse and his team argue in Beyond Sliding Windows: Learning to Manage Memory in Non-Markovian Environments that standard "sliding windows" (stacking the last $N$ frames) are inefficient. They propose Adaptive Stacking (AS), where the agent actively decides which specific observations are worth keeping in a small, fixed-size memory stack. This allows the agent to skip over irrelevant time steps and only store the "smoking gun" observations needed to solve the task.
Learning to See through Curricula
Sometimes, the jump from a fully observable simulation to a partially observable real-world task is too steep for an agent to learn from scratch. Stephan Weigand and Jan Peters proposed a curriculum-based solution called PO-GRL in Reinforcement Learning using Guided Observability.
The intuition is simple: start training the agent with "god-like" full state information (which is often available in simulators). As the agent learns the task, gradually "blind" it by removing information until it is forced to rely on its own history and partial observations. This guidance helps the agent learn what it needs to remember before it is forced to do so in the dark.
Theoretical Foundations: Predictive States
Beyond engineering better LSTMs, there is a deep theoretical effort to understand what a "state" actually is. Ruiquan Huang and colleagues explore this in Provably Efficient UCB-type Algorithms For Learning Predictive State Representations.
Instead of trying to reconstruct a "hidden" physical state, Predictive State Representations (PSRs) define the state as a vector of predictions about the outcomes of future tests (sequences of actions and observations). If you can perfectly predict how the environment will respond to any future action, you have effectively captured everything important about the past. This shift from "what happened" to "what will happen" provides a mathematically rigorous way to handle non-Markovian dynamics.