Reward-Predictive Clustering

Lucas Lehnert, Michael J. Frank, Michael L. LittmanarXiv 2022 · DOI

In the pursuit of artificial intelligence that matches human flexibility, Reinforcement Learning (RL) faces a significant hurdle: generalization. While deep RL agents can master specific tasks from raw pixels, they often fail when environmental rules change slightly. Humans, conversely, utilize "abstractions"—we ignore irrelevant details like background textures and focus solely on features that predict success.

In their paper "Reward-Predictive Clustering," Lucas Lehnert, Michael J. Frank, and Michael L. Littman introduce an algorithm that allows deep RL agents to automatically discover these minimal, task-relevant abstractions from high-dimensional data.

The Problem: What to Ignore?

Standard deep RL agents often struggle with high-dimensional inputs because they lack a mechanism to filter noise. Common representation learning approaches, such as Autoencoders, attempt to reconstruct the entire input image. This often wastes computational capacity on encoding irrelevant details that have no impact on the agent's goals.

The authors address the challenge of state abstraction: mapping complex observations to a simple latent space that retains only the information necessary for decision-making. While "reward-predictive" abstractions have been explored in simple grid-worlds, scaling them to deep learning and visual inputs has remained an open problem.

Methods: Iterative Partition Refinement

The core of the proposed approach is an Iterative Partition Refinement algorithm. Instead of end-to-end training with a single loss function, the algorithm constructs the representation incrementally:

  1. Initial State: All observations are initially grouped into a single cluster.
  2. Reward Refinement: Clusters are split based on immediate rewards. If two observations lead to different rewards for the same action, they are assigned to different latent states.
  3. Successor Feature (SF) Refinement: This step utilizes Successor Features—a representation of where an agent is likely to transition in the future. The algorithm iteratively splits clusters if the observations within them lead to different future latent states.
  4. Deep Learning Integration: To process pixels, the authors use deep neural networks (such as ResNet18) as classifiers that map images to the discovered cluster indices.
Figure 1: The Column World task and the iterative refinement process. (a) Task layout. (b) Reward-predictive abstraction. (c) Successor feature weights. (d) The cluster refinement tree.

Crucially, the algorithm is maximally compressive. It does not merely reduce the state space; it seeks the absolute minimum number of states required to maintain reward-prediction accuracy.

Key Insights and Results

The authors evaluated their approach on environments like the Combination Lock Task, where an agent sees images of three MNIST digits. Only two digits are relevant to the reward, while the third is random noise. The algorithm successfully identified the noise, compressing thousands of image combinations into exactly 100 latent states (representing the 10x10 combinations of the relevant dials).

Robust Transfer

Because the representation only encodes features critical for rewards, it is highly robust. In transfer experiments where the goal was changed, the reward-predictive agent outperformed standard Deep Q-Networks (DQN). While standard pre-training often leads to "negative transfer"—where old knowledge interferes with new learning—the abstracted representation provided a clean, relevant foundation for new tasks.

Limitations and Future Work

Currently, the algorithm is offline, meaning it requires a fixed dataset of interactions to perform clustering. Transitioning this to an online setting, where the agent clusters and learns simultaneously, is a necessary next step.

Figure 6: Illustration of transitions included in the offline dataset versus missing transitions, highlighting the data requirements for the clustering algorithm.

Additionally, the current model treats combinations of features as atomic states. Future iterations might use "factored" representations, recognizing independent entities within the environment to enable even more efficient generalization. Finally, the clustering relies on epsilon thresholds to decide when to split clusters, which can be sensitive in noisy environments.

Summary updated

BibTeX
@misc{lehnert2022reward,
  author = {Lucas Lehnert and Michael J. Frank and Michael L. Littman},
  title = {{Reward-Predictive Clustering}},
  year = {2022},
  eprint = {2211.03281},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.03281},
}
Figure