A Study of State Aliasing in Structured Prediction with RNNs

Layla El Asri, Adam Trischler

Abstract

Recurrent Neural Networks (RNNs) trained with policy gradient methods often fail to distinguish between different environment states if those states require the same optimal action. This phenomenon, known as state aliasing, leads to internal representation collapse, hindering the learning of complex policies in tasks such as dialogue and text generation. This study investigates the causes of state aliasing and evaluates mitigation strategies across various reinforcement learning algorithms and architectures.

Introduction

In structured prediction tasks—ranging from sentence generation to interactive dialogue—Reinforcement Learning (RL) is frequently employed for model fine-tuning. Despite its popularity, RL-trained models often exhibit suboptimal behaviors, such as repetitive outputs or an inability to follow optimal decision paths. This research identifies state aliasing as a primary driver of these failures. State aliasing occurs when an agent's internal representation conflates distinct environment states into a single point in vector space. While some degree of aliasing is beneficial for generalization, "pathological" aliasing occurs when a model loses the ability to differentiate between states that share a common optimal action, ultimately leading to a breakdown in sequential logic.

Methodology

The study compares how different RL algorithms and RNN architectures manage state representations. The primary comparison is between:

  • Policy Gradient Methods (REINFORCE): These methods update the policy to increase the probability of actions associated with high rewards.
  • Value-Based Methods (DQN): These estimate the expected future reward (Q-value) for state-action pairs.

To quantify aliasing, the researchers measured the Euclidean distance between the RNN's hidden states. A distance approaching zero between distinct states indicates representation collapse. The study evaluated LSTMs and GRUs against simpler baselines like Multi-Layer Perceptrons (MLPs).

Experimental Setup

The researchers utilized three environments of increasing complexity to isolate the effects of aliasing:

  1. Simple Maze: A three-state Markov Decision Process (MDP) designed by McCallum (1996) to test state disambiguation.
  2. Sequential Action Maze: A variant requiring a sequence of tokens (e.g., "right, right") for movement, mimicking language structure.
  3. TextWorld: A text-based game framework. The authors created a "shampoo quest" involving navigation and item usage to simulate dialogue complexities.
The Simple Maze environment used to test state disambiguation between states x1, x2, and x3.

Results and Discussion

The experiments revealed a critical feedback loop in policy gradient methods: when two states share an optimal action, updates push the hidden states toward a similar output distribution. Backpropagation then pulls these representations together until they are indistinguishable.

Key Findings:

  • DQN Robustness: Value-based methods like DQN are less prone to aliasing because they must predict different long-term values for states, even if the immediate optimal action is the same. This forces the model to maintain distinct representations.
  • Exploration as a Mitigant: Entropy-based exploration prevents collapse by forcing the model to experience different feedback, "stretching" the representation space and keeping states distinct.
  • Architecture Sensitivity: LSTMs failed more frequently than GRUs (28% vs 20% failure rate in the simple maze), likely due to slower convergence of their complex gating mechanisms.
Quantitative comparison of hidden state distance and action probability in failing (top) vs. successful (bottom) training runs.

In the TextWorld environment, the absence of entropy exploration led to failure in 90% of runs (45 out of 50). Visualizations confirmed that memory collapse occurred precisely when the agent needed to repeat navigation commands, such as "go west."

Conclusion

State aliasing represents a significant hurdle for RNNs in structured prediction. While policy gradient methods are susceptible to representation collapse, value-based objectives and robust exploration strategies offer effective countermeasures. Future research should investigate these phenomena in large-scale Natural Language Generation (NLG) and the potential of Actor-Critic methods to combine the benefits of both approaches.

Summary updated

BibTeX
@inproceedings{asri2019study,
  author = {Layla El Asri and Adam Trischler},
  title = {{A Study of State Aliasing in Structured Prediction with RNNs}},
  booktitle = {DeepRLStructPred @ ICLR},
  year = {2019},
  url = {https://openreview.net/forum?id=Ye9FydFzC3U},
}
Figure