SOLAR: SVD-Optimized Lifelong Attention for Recommendation
Organizations: Kuaishou Technology. · Unaffiliated.
Abstract
Attention mechanism remains the defining operator in Transformers since it provides expressive global credit assignment, yet its quadratic cost in sequence length N makes long-context modeling expensive and often forces truncation or other heuristics. Linear attention reduces complexity to O(Nd^2) by reordering computation through kernel feature maps, but this reformulation drops the softmax mechanism and shifts the attention score distribution. Lifelong recommendation requires efficient attention as well, for large-scale sequence modeling with user histories and candidate items under tight latency and resource constraints. We introduce SVD-Attention, a novel attention mechanism, and SOLAR, a set-aware framework built on it for lifelong recommendation. SVD-Attention factorizes low-rank embeddings into r principal components, computes candidate-to-interest scores in compact space, and applies softmax over those scores. Its bilinear reduction is exact on the rank-r reconstruction, while the normalized output approximates token-level softmax with an explicitly bounded residual. The resulting computation reduces the cost from O(N^2d) to O(Ndr), and supports 12,000 behaviors and 3,000 candidates per request without filtering. SOLAR achieves the best among compared methods on RecFlow and MIND, delivers 0.8531 AUC at approximately 19ms 95th-percentile latency in an industrial evaluation, and yields business gains with a 0.68% relative lift in Video Views in the real-world online A/B test. Following this evaluation, SOLAR has been fully deployed in Kuaishou's production recommendation system.
Figures & tables
| Method | Cross-attention cost | Cost for |
|---|---|---|
| Softmax Attention | ||
| Linear Attention | ||
| SVD-Attention (ours) |
| Dataset | Metric | DIN (Recent 50) ( Zhou et al., 2018 ) | SIM ( Pi et al., 2020 ) | LREA ( Song et al., 2025 ) | LONGER ( Chai et al., 2025 ) | TWIN ( Chang et al., 2023 ) | TWINv2 ( Si et al., 2024 ) | IFA ( Yu et al., 2024 ) | SOLAR ours |
|---|---|---|---|---|---|---|---|---|---|
| RecFlow | AUC | 0.6048 | 0.6113 | 0.5695 | 0.6676 | 0.6057 | 0.6178 | 0.6769 | 0.6812 |
| Logloss | 0.0689 | 0.0673 | 0.1475 | 0.0638 | 0.0687 | 0.0691 | 0.0615 | 0.0610 | |
| MIND | AUC | 0.5909 | 0.6193 | 0.6211 | 0.6355 | 0.6480 | 0.6377 | 0.6697 | 0.6713 |
| Logloss | 0.1324 | 0.1156 | 0.1065 | 0.1137 | 0.1075 | 0.1164 | 0.1060 | 0.1052 | |
| Industrial | AUC ( ) | ||||||||
| UAUC ( ) |
| Method | Selected size | Quality | System efficiency | |||
| AUC | Latency (ms) p50/p95 | Cores Usage | Throughput (QPS) | p95 target ms | ||
| Full softmax attention | base | |||||
| Linear attention ( Katharopoulos et al., 2020 ) | -38.09% | |||||
| Linformer ( Wang et al., 2020 ) | -27.02% | |||||
| Performer ( Choromanski et al., 2021 ) | -27.02% | |||||
| Longformer ( Beltagy et al., 2020 ) | -23.80% | |||||
| Variant | Components | Ranking quality | Efficiency | |||
|---|---|---|---|---|---|---|
| Softmax norm. | History | Candidate set | RecFlow AUC | Industrial AUC | core use | |
| Full softmax attention | 0.6829 | base | ||||
| SVD bilinear (no softmax) | 0.6757 | – | ||||
| Candidate-set branch only | 0.6293 | – | ||||
| User-history branch only | 0.6644 | – | ||||
| SVD-Attention (SOLAR) | 0.6812 | |||||
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
| Dataset | Evaluation | History length | Candidate size |
|---|---|---|---|
| RecFlow | Offline | 50 | 120 |
| MIND | Offline | 50 | 50–130 |
| Industrial | Online | 12,000 | 3,000 |
| Dataset | Rank | Embedding dim. | Heads | Batch size | Optimizer and learning rate |
|---|---|---|---|---|---|
| RecFlow | 8 | 64 | 4 | 2,048 | Adam, |
| MIND | 8 | 64 | 4 | 2,048 | Adam, |
| Industrial | 27 | 128 | 4 | 4,096 | Adam, CosineAnnealingLR from |
| Spectral energy | AUC | |||||
|---|---|---|---|---|---|---|
| 4 | 33.76% | 0.814 | 0.8012 | |||
| 8 | 53.63% | 0.681 | 0.8287 | |||
| 16 | 82.46% | 0.419 | 0.8428 | |||
| 24 | – | – | – | – | – | 0.8535 |
| 27 | – | – | – | – | 0.8537 | |
| 32 | 0.8534 |
| Method | Softmax domain | AUC | Latency (ms) | ||||
|---|---|---|---|---|---|---|---|
| Full token softmax on | tokens | 0 | 0 | – | – | 0.8539 | |
| Token softmax on exact | tokens | 0.010 | 0.008 | 0 | – | 0.8539 | |
| SVD-Attention (exact SVD) | components | 0.010 | 0.033 | 0.031 | 0 | 0.8538 | |
| SVD-Attention (randomized SVD) | components | 0.013 | 0.035 | 0.031 | 0.002–0.004 | 0.8537 | |
| SVD bilinear computation (no softmax) | None | 0.013 | 0.14–0.18 | – | – | 0.8525–0.8527 |
Recommender Systems
Recommender systems predict and rank items for people using interaction histories, content, context, and feedback.
See all 514 papers