Abstract
In large-scale recommendation systems, offline policy optimization using REINFORCE-style algorithms is often computationally prohibitive due to a linear dependency on catalog size ($P$). This paper presents a novel optimization routine that achieves logarithmic scaling ($O(\log P)$) by combining a covariance-based gradient estimate with fast Maximum Inner Product Search (MIPS) during the training phase. Empirical results on Twitch and GoodReads datasets demonstrate speedups of up to 25x while maintaining or improving recommendation quality.
The Challenge of Large Action Spaces
Modern recommendation platforms manage catalogs with millions of items. Optimizing policies over these massive action spaces typically requires calculating a softmax distribution across the entire catalog at every training step. This $O(P)$ complexity creates a significant bottleneck, especially when researchers aim to move beyond simple Maximum Likelihood Estimation (MLE) toward reward-driven policy gradients. Most existing fast methods focus on inference or MLE, leaving the scaling of policy gradients for massive action spaces as a significant open challenge.
Methodology: Achieving Logarithmic Scaling
The proposed approach breaks the linear bottleneck through three integrated techniques:
- Covariance Gradient Formulation: By rewriting the policy gradient in a covariance form, the authors eliminate the need to compute the global partition function (normalizing constant) of the softmax, which is the primary source of computational cost.
- Self-Normalized Importance Sampling (SNIS): Instead of summing over all items, the gradient is estimated using a small subset of items sampled from a proposal distribution $q$.
- MIPS-Enhanced Proposal Distributions: To ensure the proposal distribution $q$ is informative, the authors utilize Maximum Inner Product Search (MIPS)—specifically the HNSW algorithm—to retrieve the top-$K$ most relevant items for a given context during training. These are mixed with uniform samples to provide a robust gradient estimate in $O(\log P)$ time.
A key practical assumption is that item embeddings remain fixed (e.g., via pre-computed SVD), allowing the model to focus on learning user embedding transformations. This fixed-embedding approach also helps reduce the variance of the notoriously noisy REINFORCE estimator.
Empirical Evaluation
The method was tested on the Twitch (~790k items) and GoodReads (~2.33M items) datasets. The evaluation focused on two primary metrics: computational speedup and the quality of the resulting policy (reward).
Computational Efficiency
The proposed method demonstrates significant acceleration over the exact REINFORCE baseline. As shown in Figure 5, speedups range from 5x to 15x on GPUs and up to 25x on CPUs. Crucially, the runtime remains nearly constant as the embedding dimension $L$ increases, confirming the efficiency of the MIPS-based sampling and the logarithmic scaling property.
Policy Quality and Convergence
Beyond raw speed, the approximation maintains high fidelity to the original objective. Figure 6 illustrates the reward achieved over wall-clock time. The MIPS-based mixture models converge to optimal rewards significantly faster than the standard REINFORCE algorithm. In some instances, the proposed method even finds superior policies, likely because integrating the MIPS index into the training loop better aligns the model with its eventual deployment environment.
Conclusion
By integrating MIPS into the training inner loop, this work provides a scalable path for offline policy optimization in industrial-scale recommendation. The transition from linear to logarithmic complexity allows for more frequent model updates and the exploration of more complex policy architectures without the prohibitive costs of traditional softmax-based gradients.
Summary updated