Generalizing Multi-Step Inverse Models for Representation Learning to Finite-Memory POMDPs

Lili Wu, Ben Evans, Riashat Islam, Raihan Seraj, Yonathan Efroni, Alex LambarXiv 2024 · DOI

Abstract

Reinforcement learning (RL) agents often operate in environments where observations are high-dimensional and partially informative, requiring the integration of historical data to recover the underlying state. While inverse models have proven effective for filtering out task-irrelevant "exogenous" noise in Markovian settings, they struggle with the non-Markovian nature of Partially Observable Markov Decision Processes (POMDPs). This paper introduces Masked Inverse Kinematics with Actions (MIK+A), a multi-step inverse model designed for Finite-Memory POMDPs. MIK+A utilizes dual encoders and action-augmented sequences to provably recover agent-centric state representations while remaining robust to distractors. Experimental results on navigation and visual RL benchmarks demonstrate that MIK+A significantly outperforms existing representation learning baselines in partially observed environments.

Introduction

The success of reinforcement learning often hinges on access to a "Markovian" state—a representation containing all necessary information to predict future transitions and rewards. However, real-world applications typically involve high-dimensional observations (like camera pixels) that are only partially informative. For example, a single frame from a vehicle's camera cannot reveal its velocity; a sequence of frames is required.

Existing representation learning techniques, such as inverse models, aim to extract "agent-centric" information by predicting the actions taken between states. While successful at ignoring exogenous noise (e.g., background movement that does not affect the agent), these models are typically designed for Markovian environments. In non-Markovian settings, where the state depends on history, standard inverse models fail to capture the full state or become susceptible to the "action recorder" trap—memorizing action sequences instead of learning from observations.

Methodology: Masked Inverse Kinematics with Actions (MIK+A)

The authors focus on Finite-Memory POMDPs (FM-POMDPs), where the true state can be reconstructed from a finite window of past observations. To address the limitations of previous models, they propose Masked Inverse Kinematics with Actions (MIK+A).

Architectural Components

MIK+A is built upon several key innovations:

  • Dual Encoders: The model employs a forward RNN to process past observations and a backward RNN for future observations, creating a symmetric view of the trajectory.
  • Multi-Step Prediction: Rather than predicting immediate next actions, MIK+A predicts the action $a_t$ given a past representation at time $t$ and a future representation at time $t+k$, where $k$ is a variable temporal gap.
  • Action Augmentation and Masking: To decode states like velocity, the model includes past actions in its input. To prevent the model from simply memorizing these actions (the "action recorder" trap), MIK+A uses a masking strategy that forces the encoders to rely on visual observations.
Comparison of different inverse model architectures for representation learning, including MIK+A, Forward Jump (FJ+A), and All History (AH) variants.

Theoretical Foundation

The authors provide theoretical guarantees that MIK+A converges to a Bayes-optimal classifier that depends solely on the agent-centric state. This ensures that the learned representation effectively filters out high-dimensional exogenous noise while preserving all information necessary for control.

Experimental Evaluation

The method was evaluated across three challenging scenarios:

  1. Occluded Navigation: Using a modified maze2d-umaze environment with "curtains" (occlusions) and first-person views, forcing the agent to rely on memory.
  2. Visual Offline RL: Testing on the vd4rl benchmark (DeepMind Control Suite) with added complexity: random patching (masking pixel areas) and frame-stack zeroing to simulate extreme partial observability.
  3. Exogenous Noise Robustness: Adding CIFAR-10 images as background distractors to verify the model's ability to ignore task-irrelevant visual information.

Key Insights

  • Avoiding the Action Recorder Trap: Standard "All History" (AH) models often fail because they can predict the next action by simply looking at previous actions, ignoring the visual state entirely. MIK+A's masking and multi-step structure break this dependency.
  • The Power of Multi-Step Prediction: One-step models are often "undercomplete" in POMDPs, failing to distinguish between states that appear identical locally. Increasing the temporal gap $k$ provides a stronger signal for global state identification.
  • Symmetry in Time: By integrating both past and future sequences, the model gains a more comprehensive understanding of the underlying state dynamics than models looking only at history.

Results and Conclusion

MIK+A demonstrated superior performance across all benchmarks. In high-occlusion navigation tasks, it achieved a state estimation error of 7.4%, nearly half that of the "All History" baseline (13.2%). In visual RL tasks with random patching, MIK+A consistently reached higher cumulative returns; for instance, in the walker_walk task, it achieved returns near 450, significantly outperforming baselines like ACRO and CURL which remained below 350.

While currently focused on deterministic dynamics and finite-memory requirements, MIK+A provides a robust framework for representation learning in complex, partially observed environments. Future work will explore extensions to stochastic dynamics and online learning settings.

Summary updated

BibTeX
@misc{wu2024generalizing,
  author = {Lili Wu and Ben Evans and Riashat Islam and Raihan Seraj and Yonathan Efroni and Alex Lamb},
  title = {{Generalizing Multi-Step Inverse Models for Representation Learning to Finite-Memory POMDPs}},
  year = {2024},
  eprint = {2404.14552},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2404.14552},
}
Figure