T-RoPE: Time-Aware Rotary Position Embedding for Sequential Recommendation
Yang Liu, Noel Loo, Ali Khanafer, Shuying Sun, Akshay Soni, Zhong Wu, Linjun Yang
Abstract
Large-scale recommenders increasingly adopt the sequential generative recipe behind large language models, bringing the Transformer into recommendation along with design choices made for text, including Rotary Position Embedding (RoPE). In language models, RoPE encodes token indices for relative position reasoning, but in recommendation, an interaction index records only event order, saying nothing about elapsed time, behavioral cycles across scales, or calendar phase. We revisit this choice and propose T-RoPE, a time-aware RoPE for sequential generative recommendation that replaces index-only rotation with timestamp-based angles, learnable temporal coefficients, multiscale frequency banks, shifted query alignment, and non-stationary key rotation. We prove that standard RoPE, even on timestamps, remains time-translation invariant and cannot distinguish seasonal contexts, and that T-RoPE breaks this invariance while preserving the RoPE interface. Across five public benchmarks, T-RoPE achieves the best result on every metric on every dataset, improving over the strongest baseline by 78--130\% in HR@10 on the sparse PixelRec data and 8--12\% across metrics on Amazon Books. On an industrial-scale e-commerce dataset with more than 6B interactions, it improves every metric over the HSTU + Time RAB backbone by 13--82\%, with ablations attributing the largest gains to multiscale frequencies ( NDCG@50) and non-stationary keys (). An online A/B test in the Shop app yields positive lifts in conversion rate () and order count (). We also provide forward and backward algorithms whose added cost is linear in sequence length and head dimension, keeping time-aware RoPE practical for large generative recommenders.
Create a lesson
Metadata
- Categories
- cs.AI, cs.IR, cs.LG
Related papers
Human-AI-Powered Hypothesis Testing: Cost-Aware Selective AI Scoring and Sequential Human Escalation
Shared title terminologycs.AIDae Woong Ham, Xuejun Zhao, Stefanus Jasin et al.
GreenDynaMix: Thermal-Aware Dynamic Mixed-Precision MoE LLM Inference Systems
Shared title terminologycs.AIHan-Yi Lin, Kieran Griperay, Qiang Zhou et al.
Needwise: Generation-Free Conversational Recommendation from Need-Level Typed Decisions
Shared title terminologycs.AISungchul Kim, Weixiao Huang, Mekala Raja Sekhar Reddy et al.
AeroJEPA: A Two-Stage Framework for Aerosol Forecasting with Joint-Embedding Predictive Learning
Shared title terminologycs.AIZitong Shuai, Zengliang Zang, Chunlei Shi et al.
GameDojo: Benchmarking Real-Time Interactive Agents in Video Games
Shared title terminologycs.AIKuan Zhang, Zhihao Yang, Yukun Chen et al.
How Many Parameters Does Forecasting Need? A Survey and Code-Level Audit of Lightweight Long-Term Time Series Forecasting
Shared title terminologycs.AIIssam Ait Yahia, Abdelkader El Mahdaouy, Ismail Berrada