Sublinear Least-Squares Value Iteration via Locality Sensitive Hashing

Anshumali Shrivastava, Zhao Song, Zhaozhuo Xu

Abstract

Reinforcement learning (RL) in environments with massive action spaces suffers from high computational costs, as standard algorithms like Least-Squares Value Iteration (LSVI) require linear scans over all actions. This paper presents the first provably efficient RL algorithms that achieve sublinear runtime complexity relative to the number of actions. By reformulating value function estimation as an approximate Maximum Inner Product Search (Max-IP) and utilizing Locality Sensitive Hashing (LSH), the authors reduce per-iteration costs from $O(A)$ to $O(A^\rho)$ for $\rho < 1$ without compromising regret bounds. This work bridges the gap between randomized data structures and RL theory, providing a framework for scalable decision-making in large-scale systems.

Introduction

In many real-world reinforcement learning tasks, such as news recommendation or large-scale robotics, the action space—the set of all possible moves an agent can make—is enormous. Standard algorithms like Least-Squares Value Iteration (LSVI) require a "linear scan" over every single action to find the one that maximizes the expected reward. As the number of actions ($A$) grows, this computational cost becomes prohibitive.

While practitioners often use heuristics to speed up these searches, such methods typically lack theoretical guarantees. The central challenge addressed in this research is whether the per-iteration cost can be reduced to be sublinear in the number of actions while still proving that the agent will eventually learn the optimal policy with standard regret bounds.

Methodology

The authors propose two primary algorithms: Sublinear LSVI and Sublinear LSVI-UCB. Their core innovation lies in bridging RL theory with randomized data structures through three key components:

1. Max-IP Formulation

The authors demonstrate that finding the optimal action in a linear Markov Decision Process (MDP) is mathematically equivalent to a Maximum Inner Product Search (Max-IP). In this setting, the agent seeks an action vector that maximizes the inner product with a weight vector representing the current value function estimate.

2. Locality Sensitive Hashing (LSH)

To avoid checking every action, the algorithms use LSH to "bucket" similar actions together. This allows the agent to find a "good enough" action in $O(A^\rho)$ time, where $\rho < 1$, rather than the standard $O(A)$. This approximation is the key to achieving sublinear complexity.

3. Technical Adaptations for RL

Standard LSH cannot be applied to RL directly due to the adaptive nature of the queries. The authors introduced several novel fixes:

  • Asymmetric Transformations: Used to handle vectors that are not unit length.
  • Reward Shifting: Rewards are shifted to a specific range ($[0.55, 1]$) to ensure inner products remain positive and sufficiently far from zero, a requirement for LSH efficiency.
  • Quantization for Adaptive Queries: In RL, the current state/weight vector depends on previous results, breaking the independence assumption of LSH. The authors utilized a quantization lattice to "snap" queries to a fixed grid, allowing for a union bound to prove safety across iterations.

Key Results

The primary contribution of this work is the proof that one does not need the exact maximum value to maintain optimal regret. By carefully calibrating the LSH approximation factor, the resulting error is small enough that it does not accumulate to break the learning process.

Comparison of computational complexity and regret bounds between standard algorithms and the proposed sublinear approaches.

As shown in the table above, the proposed algorithms achieve significant improvements in value iteration complexity:

  • Runtime Complexity: Traditional LSVI-UCB takes $O(HKd^2A)$ time. The sublinear version reduces this to $O(HKd^2A^\rho)$, where $\rho < 1$. In large action spaces, this represents a massive speedup.
  • Regret Bounds: Despite the approximation, the total regret remains identical to the original linear-time algorithms (e.g., $O(\sqrt{d^3H^4K\iota^2})$ for the UCB variant).

Conclusion and Future Work

This paper represents the first successful combination of LSH with RL that provides provable improvements in both time complexity and learning performance. However, some limitations remain. The current proofs rely on the "Linear MDP" assumption, which may not directly translate to non-linear deep neural networks. Additionally, LSH requires a preprocessing step that adds a one-time cost, which must be amortized over many iterations. Future research may explore extending these techniques to more general similarity measures beyond inner products, potentially allowing for more complex Q-function approximations.

Summary updated

Abstract

We present the first provable Least-Squares Value Iteration (LSVI) algorithm that achieves runtime complexity sublinear in the number of actions. We formulate the value function estimation procedure in value iteration as an approximate maximum inner product search problem and propose a locality sensitive hashing (LSH) type data structure to solve this problem with sublinear time complexity. Moreover, we build the connections between the theory of approximate maximum inner product search and the regret analysis of reinforcement learning. We prove that, with our choice of approximation factor, our Sublinear LSVI algorithms maintain the same regret as the original LSVI algorithms while reducing the runtime complexity to sublinear in the number of actions. To the best of our knowledge, this is the first work that combines LSH with reinforcement learning that resulting in provable improvements. We hope that our novel way of combining data structures and iterative algorithm will open the door for further study into the cost reduction in optimization.
BibTeX
@misc{shrivastava2021sublinear,
  author = {Anshumali Shrivastava and Zhao Song and Zhaozhuo Xu},
  title = {{Sublinear Least-Squares Value Iteration via Locality Sensitive Hashing}},
  year = {2021},
  eprint = {2105.08285},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2105.08285},
}
Figure