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

UxSID: Semantic-Aware User Interests Modeling for Ultra-Long Sequence

Hongwei Zhang, qiqiang zhong, Jiangxia Cao, Junfeng Shu, lvyiyang, Huanjie Wang, Liwei Guan, Jing Yao, Yiyu Wang, Liu Zhaojie, Han LiNeurIPS 2026

TL;DR

Active users on platforms like TikTok or Kuaishou easily rack up 10,000 interactions a week, creating massive historical logs that standard real-time recommendation models can't process fast enough. UxSID solves this speed-versus-accuracy dilemma by pre-compressing a user's deep history offline into targeted "semantic buckets" rather than generic user summaries or expensive per-item searches. The result is constant-time $O(1)$ online inference that captures fine-grained, long-term preferences—delivering state-of-the-art benchmark accuracy and a 0.337% live advertising revenue lift.

What Problem Does This Paper Address?

Every swipe, pause, and click you make on a short-video app leaves a breadcrumb trail of your evolving tastes. Modeling these ultra-long sequences (thousands of past interactions) is crucial for separating fleeting whims from true long-term interests. However, standard attention mechanisms choke on sequences longer than ~100 items under strict real-time latency budgets.

Historically, engineers have relied on two flawed workarounds:

  1. Item-Specific Search: Filtering a user's 10,000-item history online to grab the Top-$K$ items most similar to a candidate video. This incurs heavy online compute costs and suffers from rigid selection bias—if the quick filter misses a subtle connection, that signal is gone forever.
  2. Item-Agnostic Compression: Distilling a user’s entire history offline into a few static summary vectors. While fast at serving time, squashing someone's love for quantum physics, baking, and cat videos into one generic blob introduces noise and lacks target specificity when scoring a specific candidate item.
Figure 1: Comparison of different paradigms for ULSM. (a) Item-specific Search: Online filtering for each candidate, incurring high computational cost. (b) Item-agnostic Compression: Offline distillation into static memories, lacking target-specificity. (c) UxSID: A semantic-specific path that shares compressed interest memories among items with the same SIDs.

The authors ask: Is there a middle path? Instead of compressing history per individual item (impossible to store offline) or per user (too generic), what if we compress a user's history per semantic concept?

Methods

UxSID bridges this gap using Semantic IDs (SIDs)—discrete codes generated by passing an item’s multimodal content (video frames, text) through a Multimodal LLM and quantizing the output into hierarchical clusters. Semantically similar items share the same SID.

Figure 2: The architecture of UxSID primarily comprises three components: a target SIDs Generator that quantizes comprehensive attributes into semantically rich discrete IDs; a semantic-aware com- pression network featuring interest compression and hierarchical attention for sequence modeling; and an end-to-end multi-task supervision framework to ensure online-offline consistency.

Rather than inventing SIDs from scratch, UxSID’s novelty lies in using them as active probes inside an end-to-end compression architecture:

  • Item-Agnostic Interest Compression (IAIC): First, cross-attention condenses the raw interaction sequence into $K$ learnable "interest anchors" (e.g., $K=16$). Crucially, each anchor gets its own dedicated sub-network (Per-token FFNs) and an orthogonality loss that penalizes overlap, forcing anchors to capture distinct facets of a user's personality rather than collapsing into their most frequent habit.
  • Hierarchical Semantic Probing: Next, the candidate item's SID queries the user's history in two stages:
  • Explicit Global Probing: The SID attends directly to the raw 10k sequence to catch fine-grained, item-to-item matches.
  • Gated Local Probing: That global response passes through a gating network to modulate the SID query, which then attends over the $K$ compressed anchors to extract broader, noise-filtered intent.
  • $O(1)$ Production Serving: Because there are a finite number of first-layer SIDs, the resulting embeddings can be precomputed offline and cached in a key-value store indexed by Hash(User_ID ⊕ SID). Online serving becomes a lightning-fast $O(1)$ lookup.

Datasets

The authors evaluate UxSID on datasets that include rich multimodal/content features (necessary for training SIDs):

  • Public Benchmarks: XLong (evaluated up to 1k sequence length) and KuaiRec-Big (up to 2k length). No new public benchmarks were introduced.
  • Industrial Dataset: A massive proprietary dataset from Kuaishou's short-video platform, tested at sequence lengths scaling up to 10,000 interactions.

Key Insights and Ideas

  • Why storage doesn't explode: Caching per (User, Item) pair across 400M daily users would exceed petabytes and grow endlessly. Caching per (User, SID) caps storage naturally because human interests are finite—an active user touches ~50 semantic buckets a month, fitting 400M users comfortably into ~2.5 TB of distributed memory, regardless of whether their history is 500 or 10,000 items long.
  • Human-defined tags aren't enough: Replacing learned SIDs with coarse category tags causes a sharp drop in both ranking accuracy and historical recall (Int.R@50 drops from 0.1488 to 0.0543 on industrial data). MLLM-derived SIDs capture nuanced clusters that manual taxonomies miss.
  • Global + Local synergy: Ablating either the raw-sequence probe or the compressed-anchor probe hurts performance. Raw attention catches immediate, sharp matches that compression smooths over, while orthogonal anchors filter out historical noise.

Key Results

  • Public SOTA: UxSID tops all search-based (SIM, TWIN) and compression-based (C-Former) baselines, reaching 0.8408 AUC on XLong (vs. TWIN's 0.8154) and 0.8348 AUC on KuaiRec-Big (vs. SIM-Soft's 0.8279).
  • Industrial Gains: On Kuaishou's dataset, where a 0.1% gain is considered a major milestone, UxSID beats TWIN by +0.17% CTCVR AUC (reaching 0.8626) and +0.16% CTR AUC (0.8728).
  • Scaling Law Advantage: As sequences scale from 500 to 10,000 items, search-based models plateau (due to fixed retrieval quotas) while UxSID's performance lead widens—all at zero extra online serving latency.
Figure 3: AUC improvements (percentage points) across various sequence lengths on all datasets.
  • Live A/B Test: Deployed for a week on Kuaishou’s ad platform, UxSID drove a +0.337% lift in revenue alongside only a +0.111% increase in ad exposure, indicating substantially higher-precision ad conversions.

Limitations and Future Work

  • Coarse Online Granularity: To keep inference latency low and key-value storage bounded in production, the authors only use the first-layer code ($k_1$) of the hierarchical SID, trading off finer-grained semantic resolution available in deeper quantization layers.
  • Offline Compute Scaling: While online serving and storage remain strictly invariant to sequence length $L$, offline precomputation costs still grow linearly with $L$.
  • Future Directions: The authors plan to expand UxSID from advertising to full-scale organic short-video recommendations at Kuaishou and extend the architecture from 10k sequences toward true lifelong sequential modeling.

Summary updated

Abstract

Modeling ultra-long user behavior sequences is an essential task for capturing evolving preferences in modern recommender systems, and this research direction has contributed solid gains in the past several years. However, recommendation systems always serve enormous traffic, and extending user sequences sharply increases computational cost, which creates a difficult trade-off between efficiency and effectiveness. To scale to longer user sequences while keeping lightweight serving computation, existing works can be divided into two paradigms: (1) $\textit{Search-based Top-$K$ selection}$, which constructs an $\textbf{item-specific}$ subsequence for each candidate item to avoid facing the ultra-long sequence directly; and (2) $\textit{pre-trained user-interest compression}$, which maps an ultra-long user sequence into a small group of $\textbf{item-agnostic}$ user interest memories so that the online model can perceive user long-term interests via this highly compressed dense memory. Besides the two technical routes (totally item-specific or item-agnostic), we argue that there exists an intermediate path not well explored: preserving partial relevance between the user sequence and the target item, while exposing only limited signals to guide the direction of interest compression. This design does not pursue item-specific user interest compression, but seeks semantic-group shared general user interest memory according to item attributes, where semantically similar items share the same compressed user interest memory. Motivated by this, we propose $\textbf{UxSID}$, a novel framework that bridges this gap by facilitating a target item semantic-aware interaction between $\textbf{U}$ser histories and candidate $\textbf{S}$emantic $\textbf{ID}$s (SIDs). Specifically, UxSID employs a dual-level attention strategy: it first extracts item-agnostic user interests from raw sequences, and then performs a semantic-specific query over global behaviors and those agnostic interests to generate semantic-specific preferences. By adopting this end-to-end architecture, UxSID generates offline embeddings that balance computational parsimony with target items' semantic awareness, while strictly preserving parity with online inference in constant time. Extensive public benchmarks and a large-scale A/B test demonstrate that UxSID achieves state-of-the-art performance, driving a 0.337\% revenue lift in advertising.
BibTeX
@inproceedings{zhang2026uxsid,
  author = {Hongwei Zhang and qiqiang zhong and Jiangxia Cao and Junfeng Shu and lvyiyang and Huanjie Wang and Liwei Guan and Jing Yao and Yiyu Wang and Liu Zhaojie and Han Li},
  title = {{UxSID: Semantic-Aware User Interests Modeling for Ultra-Long Sequence}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=pdr1nmA83m},
}
Figure