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:
- 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.
- 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.
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.
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@50drops 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.
- 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