NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

LIME: Link-based User-item Interaction Modeling with Decoupled XOR Attention for Efficient Test Time Scaling

Yang Liu, Yunjiang Jiang, Ayush Agarwal, Yihan Wu, Haoran Liu, Bi XueNeurIPS 2026

TL;DR

Modern recommendation systems are stuck in a brutal tug-of-war: they can either be lightning-fast and shallow, or deeply expressive and painfully slow. Meta AI introduces LIME, an architecture that uses a tiny set of intermediate "link" tokens to decouple user histories from candidate items, allowing the heaviest math to be cached offline. The result is Transformer-level accuracy at near-constant serving speeds—10x faster than state-of-the-art sequential models on massive candidate sets and long user histories.

What Problem Does This Paper Address?

Imagine trying to recommend the exact right video out of millions of candidates to a user in a few milliseconds, taking into account the last 10,000 videos they watched. Historically, engineers have had to pick their poison between two paradigms:

  1. Two-Tower Models: You squash the user's history into one vector, squash each item into another, and take a quick dot product at the end. It is blazingly fast, making real-time retrieval possible, but because the user and item representations never actually "talk" to each other until the final step, it misses subtle, contextual nuances.
  2. Cross-Attention Transformers: You let every candidate item dynamically attend to every item in the user’s history, while the history items also attend to each other. Accuracy skyrockets, but the compute explodes: quadratically with history length, $O(N^2)$, and linearly with the number of candidates, $O(N \cdot M)$.

Scaling next-generation recommenders requires longer user histories, larger candidate pools, and deeper models simultaneously—something standard Transformers simply cannot serve within real-time latency budgets.

Methods

LIME (Link-based User-item Interaction Modeling for Efficient inference) resolves this bottleneck by refusing to let candidate items look directly at the user's massive history during live traffic. Instead, it introduces a clever intermediary.

Figure 2: Architecture of TTSN (left), LIME-MHA (middle), and MHA (right). With a lightweight cross module using precomputed attention weights in a decoupled attention framework, LIME-MHA achieves MHA-level expressiveness with similar latency to TTSN.
  • Global Link Embeddings & Decoupled Attention: The authors introduce a small, fixed-size set of globally shared, learnable tokens called link embeddings (e.g., $\ell = 32$). On the user side, these links attend to the user's interaction history to become personalized links ($L^P$). On the item side, instead of comparing candidates to the personalized links directly, LIME uses decoupled attention: candidates use the raw, unpersonalized global links ($L$) as attention keys, and the personalized links ($L^P$) as values. Because neither the candidate items nor the raw links depend on the current user, the expensive Query-Key attention weights can be pre-computed offline for the entire catalog and stored in a fast lookup cache! Online scoring per item drops to a trivial weighted sum.
  • XOR Attention (LIME-XOR): To stack multiple Transformer layers on the user side without paying the $O(N^2)$ self-attention tax on long histories, the authors replace standard causal masks with an exclusive-or (XOR) mask. History items are forbidden from attending to each other directly; instead, history items only attend to the link tokens, and link tokens only attend to history items. This bipartite information flow drops sequence complexity from $O(N^2)$ to linear $O(\ell \cdot N)$. A variant, LIME-XOR+Window, adds a local sliding window to capture immediate sequential neighbors alongside global context.
Figure 3: Architecture of HSTU Transformer (left) and LIME-XOR Decoupled Transformer (right) with a visual comparison of our proposed XOR attention mask against the standard HSTU causal self-attention mask.

Datasets

No new public benchmarks are introduced; instead, LIME is evaluated across two standard public Click-Through Rate (CTR) benchmarks (unified via the FuxiCTR platform) and a massive industrial system:

  • Taobao Ads: Public e-commerce dataset with 25 million interactions and short sequences (max length 50).
  • KuaiRand-1K: Public video recommendation dataset with 12 million interactions and longer sequences (max length 256).
  • In-house Industrial Dataset: Massive-scale production logs from a major platform serving billions of users (3 days of training data, 6 hours for evaluation, featuring much longer user histories than public benchmarks).

Key Insights and Ideas

  • Attention matrices are secretly low-rank: Why do just 32 link tokens suffice to summarize thousands of user actions? When the authors ran Singular Value Decomposition (SVD) on the attention matrices of a fully trained Transformer skyline, they found that the top 32 singular values captured over 90% of the matrix information. LIME works because user-item interaction spaces naturally live in a low-rank subspace.
  • Asymmetric QKV unlocks massive offline caching: Standard attention uses the same source tensor for Keys and Values. Splitting them—using static global parameters for Keys and dynamic user-personalized states for Values—turns online cross-attention into a key-value cache lookup.
  • System-level latency masking: Because LIME's deep user-side XOR Transformer doesn't need to know which candidates are being scored, it can run in parallel while the retrieval system fetches candidates, effectively hiding its latency in production.

Key Results

Inference latency scaling across candidate count, history length, and QK dimension, showing LIME remaining flat while MHA and HSTU spike.

Inference latency scaling across candidate count, history length, and QK dimension, showing LIME remaining flat while MHA and HSTU spike.
  • 10x Speedup & Flat Scaling: As candidate counts scale past $2^{16}$ or user histories stretch past $2^{14}$ (and >30k items), standard Transformer (HSTU) latency spikes dramatically, whereas LIME's serving latency remains nearly flat, yielding a 10x inference speedup.
  • Skyline-Matching Accuracy: On KuaiRand-1K, LIME-XOR (0.7448 AUC) and LIME-XOR+Window (0.7453 AUC) match or slightly beat the computationally prohibitive HSTU skyline (0.7444 AUC). On industrial offline data, LIME-XOR achieves a 1.04% Normalized Entropy (NE) drop on video completion over the two-tower baseline (where a 0.1% drop is typically considered significant), nearly matching the HSTU skyline (-1.06%).
  • Real-World Production Gains: In a 7-day online A/B test covering >10M treatment users, LIME-XOR boosted video completion by +37.9% and watch time by +28.6% among LIME-ranked candidates (up to 38% source rate gain), translating to statistically significant platform-wide lifts (+0.375% watch-time metric, +0.233% positive session engagement) while meeting strict ROI capacity bars.

Limitations and Future Work

  • Diminishing returns on short sequences: On Taobao-Ad, where sequences top out at 50 items, LIME-XOR (0.6467 AUC) slightly trails the full HSTU skyline (0.6475 AUC), likely because very short histories produce noisier representations when compressed.
  • Metric-dependent trade-offs: In controlled five-seed experiments on Taobao-Ad, no single model swept the board—DIN won on group AUC (gAUC), HSTU won on overall AUC, and LIME-XOR achieved the best log loss. Similarly, an ablation replacing learned global links with fixed item centroids actually yielded better gAUC, showing that learned anchors aren't uniformly superior across every metric.
  • (Note: Explicit future work directions are not discussed in the main body of the paper.)

Summary updated

BibTeX
@inproceedings{liu2026lime,
  author = {Yang Liu and Yunjiang Jiang and Ayush Agarwal and Yihan Wu and Haoran Liu and Bi Xue},
  title = {{LIME: Link-based User-item Interaction Modeling with Decoupled XOR Attention for Efficient Test Time Scaling}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=Lhbpwyn5ox},
}
Figure