Introduction
In the domain of "Extreme Similarity Learning," such as large-scale recommender systems and search engines, a fundamental trade-off exists between ranking quality and computational efficiency. Traditionally, practitioners have relied on either the theoretically robust but computationally expensive Softmax (SM) loss or the efficient but heuristic Weighted Squared Loss (WSL). This paper bridges this gap by introducing two new squared-form loss functions, RG² and RGˣ, derived from Taylor expansions of the Softmax loss. These functions maintain consistency with ranking metrics like NDCG while enabling high-speed optimization via Alternating Least Squares (ALS).
The Ranking Challenge
Large-scale ranking tasks aim to optimize for metrics such as Normalized Discounted Cumulative Gain (NDCG). While the Softmax loss is considered the gold standard for listwise optimization, it suffers from significant computational overhead due to the partition function calculation over massive item sets. Furthermore, its non-linear nature limits optimization primarily to Stochastic Gradient Descent (SGD), which often exhibits sublinear convergence.
Conversely, Weighted Squared Loss (WSL) allows for closed-form solutions via ALS, offering superior speed. However, WSL has historically lacked a strong theoretical guarantee for optimizing ranking-specific metrics.
Methodology: Taylor-Made Ranking Losses
The authors propose approximating the Softmax loss (and its sampled variant, SSM) using a Taylor expansion around the zero vector. This mathematical transformation yields two squared-form losses:
- RG² (Ranking-Generalizable squared): A simplified version that omits interaction terms between items.
- RGˣ (Ranking-Generalizable interactive): A more precise approximation that incorporates item-score interactions.
Theoretical Foundations
A key contribution of this work is the proof of Bayes-Consistency. The authors demonstrate that minimizing these surrogate losses is mathematically equivalent to optimizing the Discounted Cumulative Gain (DCG) metric. Furthermore, by deriving these losses from Sampled Softmax, the research identifies that optimal weights for positive and negative samples are intrinsically linked to the sampling size, providing a theoretical bridge between sampling-based and non-sampling paradigms.
Experimental Results
The proposed methods were evaluated across four real-world datasets: MovieLens-10M, Amazon-electronics, Steam Games, and Simple Wiki.
Performance and Convergence
The results indicate that RGˣ consistently outperforms standard Softmax and popular baselines like Bayesian Personalized Ranking (BPR). For instance, on the MovieLens dataset, RGˣ achieved an NDCG@10 of 0.2975, compared to 0.2849 for standard Softmax.
Beyond accuracy, the use of ALS optimization provides a significant advantage in training speed. While SGD-based Softmax converges slowly, the RG losses exhibit linear convergence, reaching peak performance in a fraction of the time. Additionally, the deterministic nature of the RG approach avoids the variance and noise inherent in sampling-based methods like BPR.
Conclusion and Future Work
This research provides a long-sought theoretical justification for the use of squared losses in ranking tasks, revealing WSL as a first-order approximation of Softmax. While the most dramatic efficiency gains are currently observed in Matrix Factorization models using ALS, the losses are applicable to Deep Neural Networks via alternative optimization methods. Future work will explore these consistent approximations in more complex scenarios, such as multi-modal retrieval and massive-scale graph embeddings.
Summary updated