In the world of online recommendation, speed is just as critical as accuracy. Imagine a system trying to recommend one of a million products to a user in real-time. Traditional "linear bandit" algorithms—the workhorses of personalized recommendation—usually require a full scan of every single item to find the best one. When dealing with millions of items, this $O(K)$ per-step complexity becomes a massive computational bottleneck.
This paper introduces a novel approach to break that linear barrier, offering algorithms that find the optimal "arm" (item) in sublinear time without sacrificing the quality of recommendations. By treating arm selection as an approximate Maximum Inner Product Search (MIPS) problem and solving the theoretical challenge of "adaptive queries," the authors achieve up to a 72x speedup on large-scale tasks while maintaining near-optimal regret.
The Bottleneck: Adaptivity in Linear Bandits
Linear bandits are a framework for decision-making under uncertainty, where an agent chooses an arm to maximize a reward. Standard algorithms like Thompson Sampling (TS) or Upper Confidence Bound (UCB) are highly effective but notoriously slow at scale: to pick the best arm, they calculate a score for every single item in the database.
The core challenge is scaling this to extremely large arm sets. While researchers have previously tried using fast search structures like MIPS solvers to speed this up, they ran into a fundamental theoretical wall: adaptivity.
Most fast search algorithms assume queries are independent. In a bandit setting, however, the "query" (the current estimate of user preferences) depends on the results of previous queries. This feedback loop breaks the probabilistic guarantees of standard fast-search tools, leading to suboptimal recommendations.
Bridging Fast Search and Bandit Theory
The authors overcome the adaptivity problem with three main contributions:
- An Adaptive MIPS Solver: To handle the adaptivity problem, the authors propose a scheme that first "rounds" a query to the nearest point in a pre-defined grid (an $\epsilon$-net). By forcing queries onto a discrete grid, they limit the "information leakage" that usually breaks fast-search guarantees. They then query multiple independent search structures with this rounded query, guaranteeing success even when queries are chosen adaptively.
- Sublinear Time Elimination (Sub-Elim): This algorithm partitions arms into sets based on their uncertainty. It uses a specialized "Heap Augmented Arm Set" to efficiently prune suboptimal arms as the model learns, avoiding the need to scan the entire set even when new items are added to the database.
- Sublinear Time Thompson Sampling (Sub-TS): A modified version of the classic TS algorithm that leverages the new adaptive MIPS solver to pick the best arm in $O(K^{1-\alpha})$ time instead of $O(K)$.
Key Insights
- Argmax is just MIPS: The core of most bandit algorithms—finding the arm that maximizes an inner product—is exactly what MIPS solvers are built to do.
- Approximation is "Good Enough": You don't need to find the perfect best arm every time. As long as the search error is smaller than the statistical estimation error of the model, total "regret" (the gap between chosen and optimal rewards) won't significantly increase.
Empirical Results
The researchers evaluated their approach on synthetic environments (up to 100,000 arms) and the real-world MovieLens-1M dataset. The empirical results show massive speedups with almost no loss in recommendation quality.
- Massive Speedups: In synthetic tests with 100,000 arms, the Sub-Elim algorithm was 72.76 times faster than the standard linear baseline (excluding preprocessing).
- Scalable Thompson Sampling: The Sub-TS algorithm achieved nearly a 10x speedup on the same 100,000-arm task.
- Real-World Performance: On the MovieLens-1M dataset, Sub-Elim was 7 times faster than the baseline while maintaining virtually identical regret (3795 vs 3847).
Limitations and Future Work
While the theory supports using Locality Sensitive Hashing (LSH) for the sublinear search, the authors noted that current LSH implementations don't handle item deletions very efficiently. For practical experiments, they used HNSW (Hierarchical Navigable Small World) graphs, which performed excellently but lack the same rigorous theoretical bounds as LSH in this specific context. Future work could involve developing LSH-like structures that are both theoretically sound for adaptive queries and practically efficient for highly dynamic databases.
Summary updated