Beyond Item Order: Temporal Gap Tokenization for Generative Recommendation with Semantic IDs

Chengkai Huang, Tianqi Gao, Hongtao Huang, Quan Z. Sheng, Lina YaoarXiv 2026

TL;DR

Generative recommender systems using Semantic IDs (SIDs) often suffer from "temporal blindness" because they treat user history as a static sequence of item codes. This paper introduces ChronoSID, a lightweight framework that injects time-gap information into both item representation learning and sequence generation. By interleaving log-scale gap tokens with item codes, ChronoSID significantly improves recommendation accuracy, especially in scenarios where long delays lead to user preference drift.

What Problem Does This Paper Address?

Generative recommendation models represent items as discrete, compact codes (Semantic IDs) and frame next-item prediction as an autoregressive sequence-to-sequence generation task. While highly scalable, existing methods typically treat user interaction histories as ordered lists of static codes, completely ignoring when the interactions happened. The authors call this temporal blindness.

In reality, the time elapsed between actions (the inter-interaction gap) is highly informative. A short gap suggests interest continuity (e.g., buying a video game and then immediately looking for a controller), whereas a long gap often signals preference drift or a completely new intent. Discarding this temporal context limits the model's ability to accurately predict what a user wants next after a long absence.

Methods

ChronoSID introduces temporal modeling at two distinct stages of the standard three-stage semantic-ID pipeline, keeping the core quantization step unchanged to remain fully compatible with existing frameworks like ReSID:

  1. Stage 1: Time-Aware Field-Aware Masked Auto-Encoding (TA-FAMAE): During item representation learning, the model doesn't just reconstruct masked item features (like category or brand). It also uses an auxiliary linear regression head to predict the log-transformed time gap between the target item and the user's previous interaction. This regularizes the item embeddings to inherently capture temporal predictability.
  2. Stage 3: Gap-Token Interleaving: Instead of feeding only item SIDs into the sequence-to-sequence generator (a lightweight T5 model), ChronoSID discretizes continuous time intervals into 5 fixed log-scale "gap tokens" (<1h, 1h–1d, 1d–1w, 1w–1mo, ≥1mo). These symbolic tokens are interleaved directly with the item SID tokens in the encoder input. Crucially, the decoder target remains purely the next item's static SID, keeping the generation space compact.
Figure 2: Overview of ChronoSID. Stage 1 learns item representations with Time-Aware Field-Aware Masked Auto-Encoding (TA-FAMAE), which combines masked feature reconstruction with an auxiliary time-gap prediction objective. Stage 2 adopts Globally Aligned Orthogonal Quantization (GAOQ) to convert the frozen item representations into three-level semantic ID tuples. Stage 3 discretizes historical inter-interaction intervals into fixed log-scale gap tokens and interleaves them with semantic ID tokens as the T5 encoder input for temporally augmented sequence-to-sequence recommendation.

Datasets

The authors evaluated ChronoSID on eight product domain subsets from the Amazon-2023 review dataset:

  • Musical Instruments (MI)
  • Video Games (VG)
  • Industrial & Scientific (IS)
  • Baby Products (BP)
  • Arts, Crafts & Sewing (ACS)
  • Sports & Outdoors (SO)
  • Toys & Games (TG)
  • Beauty & Personal Care (BPC)

All datasets were filtered to remove sparse users and items (fewer than 5 interactions) and evaluated using a standard leave-one-out protocol.

Key Insights and Ideas

  • Interest Coherence Decays Predictably: The authors empirically verified that across all tested domains, the probability of a user purchasing an item from the same category drops significantly as the time gap increases.
  • Explicit Context Beats Implicit Regularization: Ablation studies revealed that while regularizing item embeddings with time-prediction (TA-FAMAE) helps, the massive performance boost comes from explicitly interleaving gap tokens into the sequence generator's input.
  • Robustness Against Preference Drift: ChronoSID shows its largest performance gains over static baselines in "delayed-return" scenarios (gaps longer than a week or month). When local item-to-item transitions become unreliable due to time elapsed, the gap tokens act as a crucial anchor for the model to anticipate preference shifts.

Key Results

  • ChronoSID consistently outperformed strong generative baselines (including TIGER, LETTER, and its direct predecessor ReSID) across all eight datasets on Recall@K and NDCG@K metrics.
  • For example, on the Musical Instruments (MI) dataset, ChronoSID improved ReSID's Recall@5 from 0.0388 to 0.0417 and NDCG@10 from 0.0325 to 0.0346. On Video Games (VG), it boosted Recall@10 from 0.0898 to 0.0927.
  • Efficiency: The computational overhead remains highly manageable. Because the decoder target length and vocabulary size are unchanged, the training overhead is only 1.07× to 1.29×, and per-sample inference latency increases only slightly (e.g., from 1.68ms to 2.15ms on VG).

Limitations and Future Work

  • Fixed Discretization: The current framework relies on predefined, fixed log-scale thresholds for time gaps. This static binning might not optimally capture the unique temporal dynamics of every distinct product domain or individual user behavior pattern.
  • Future Directions: The authors suggest exploring adaptive temporal discretization schemes that learn optimal bin boundaries dynamically during training. Additionally, they propose extending the framework to jointly model both next-item and next-interaction-time prediction.

Summary updated

BibTeX
@misc{huang2026beyond,
  author = {Chengkai Huang and Tianqi Gao and Hongtao Huang and Quan Z. Sheng and Lina Yao},
  title = {{Beyond Item Order: Temporal Gap Tokenization for Generative Recommendation with Semantic IDs}},
  year = {2026},
  eprint = {2607.03918},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.03918},
}
Figure