Fast and Data Efficient Reinforcement Learning from Pixels via Non-parametric Value Approximation

Alexander Long, Alan Blair, Herke van Hoof

Abstract

Recent advances in Deep Reinforcement Learning (DRL) have significantly improved sample efficiency, yet these gains often come at the cost of extreme computational complexity. This paper introduces NAIT (Nonparametric Approximation of Inter-Trace returns), a reinforcement learning algorithm that achieves state-of-the-art sample efficiency on Atari benchmarks while operating 100x to 1000x faster than deep learning alternatives. By replacing complex neural networks with fast $k$-nearest neighbor lookups and a fixed image representation, NAIT demonstrates that "lazy learning" can be highly effective for pixel-based control.

Introduction

Deep Reinforcement Learning (DRL) has a massive appetite for both data and compute. While algorithms like Agent57 can master complex games, they often require the equivalent of decades of real-time play. Recent research has shifted toward "sample efficiency" (learning from fewer frames), but these improvements usually require heavy data augmentation or training complex world models, creating a barrier for real-world applications like robotics and for researchers without massive GPU clusters.

NAIT addresses this by asking: Can we achieve high sample efficiency without the massive computational overhead of deep learning? The authors propose a non-parametric approach that stores experiences in memory and retrieves them when needed, bypassing the need for expensive gradient-based optimization of deep neural networks.

The NAIT Framework

NAIT takes a "lazy learning" approach consisting of four key components:

  1. Fixed Representation (DCT): Instead of a learned encoder, NAIT uses the Discrete Cosine Transform (DCT) to compress stacks of four game frames. This domain-agnostic, mathematical transformation is extremely fast to compute and requires zero training.
  2. Proximity Graph Lookup (HNSW): To find similar states in memory quickly, the algorithm uses Hierarchical Navigable Small World (HNSW) graphs. This allows for incredibly fast $k$-nearest neighbor ($k$-NN) searches even as the memory grows.
  3. Inter-Trace Update: This novel update rule bridges the gap between Monte Carlo and Temporal Difference methods. It allows the agent to update its value estimates during an episode by bootstrapping from a "frozen" copy of its own memory, providing the stability of episodic returns with the speed of online learning.
  4. Distance-Based Exploration: NAIT explores the environment by breaking ties between equally good actions in favor of those that lead to states further away from what it has already seen.

Experimental Evaluation

The authors evaluated NAIT on the ATARI100k benchmark, which limits the agent to only 100,000 interactions (roughly two hours of real-time play). They tested on the standard 26-game "easy exploration" subset and the full 57-game Atari set to demonstrate generality. Additionally, a custom Image Random Walk environment was used to visualize convergence speed compared to standard DQN.

Key Results and Discussion

NAIT achieved a 0.31 Median Human Normalized Score (MHNS) on ATARI100k, outperforming popular deep RL methods like CURL and DrQ while remaining competitive with state-of-the-art methods like SPR.

Sample efficiency vs. computational efficiency across various RL algorithms. NAIT achieves competitive sample efficiency with orders of magnitude higher throughput.

The most striking result is the wall-clock speedup. NAIT can complete training for one Atari environment in 7.2 minutes on a single thread. In contrast, SPR takes 3.5 hours on a GPU-enabled node, making NAIT over 100x faster than SPR and over 1000x faster than SimPLe. This speed allows for much faster iteration and more robust hyperparameter tuning.

Median Human Normalized Reward of NAIT compared to DQN over 1 million interactions.

Furthermore, NAIT demonstrates exceptional data efficiency, requiring only 150k interactions to outperform a standard DQN trained for 10 million interactions. These results suggest that for early-stage learning, a fixed, mathematically-derived representation like DCT is often sufficient, and local interpolation between specific experiences can be more effective than global function approximation via neural networks.

Conclusion and Future Work

While NAIT excels in low-data regimes, its performance may eventually plateau because its fixed representation cannot "discover" new abstract features as more data is collected. Future work could involve using NAIT as a "fast-start" mechanism—a simple, efficient learner that handles initial exploration before handing off experience to a more complex, parametric model for long-term optimization. There is also potential to explore more sophisticated distance metrics or kernel functions to improve the local interpolation of values.

Summary updated

BibTeX
@inproceedings{long2022fast,
  author = {Alexander Long and Alan Blair and Herke van Hoof},
  title = {{Fast and Data Efficient Reinforcement Learning from Pixels via Non-parametric Value Approximation}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2022},
  doi = {10.1609/aaai.v36i7.20728},
}
Figure