Gespeichert in:
Bibliographische Detailangaben
Hauptverfasser: Wei, Xiaokai, Wu, Jiajun, Yi, Daiyao, Shirkavand, Reza, Gong, Michelle
Format: Preprint
Veröffentlicht: 2025
Schlagworte:
Online-Zugang:https://arxiv.org/abs/2510.20455
Tags: Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
_version_ 1866911228241117184
author Wei, Xiaokai
Wu, Jiajun
Yi, Daiyao
Shirkavand, Reza
Gong, Michelle
author_facet Wei, Xiaokai
Wu, Jiajun
Yi, Daiyao
Shirkavand, Reza
Gong, Michelle
contents Generative recommenders, typically transformer-based autoregressive models, predict the next item or action from a user's interaction history. Their effectiveness depends on how the model represents where an interaction event occurs in the sequence (discrete index) and when it occurred in wall-clock time. Prevailing approaches inject time via learned embeddings or relative attention biases. In this paper, we argue that RoPE-based approaches, if designed properly, can be a stronger alternative for jointly modeling temporal and sequential information in user behavior sequences. While vanilla RoPE in LLMs considers only token order, generative recommendation requires incorporating both event time and token index. To address this, we propose Time-and-Order RoPE (TO-RoPE), a family of rotary position embedding designs that treat index and time as angle sources shaping the query-key geometry directly. We present three instantiations: early fusion, split-by-dim, and split-by-head. Extensive experiments on both publicly available datasets and a proprietary industrial dataset show that TO-RoPE variants consistently improve accuracy over existing methods for encoding time and index. These results position rotary embeddings as a simple, principled, and deployment-friendly foundation for generative recommendation.
format Preprint
id arxiv_https___arxiv_org_abs_2510_20455
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Rotate Both Ways: Time-and-Order RoPE for Generative Recommendation
Wei, Xiaokai
Wu, Jiajun
Yi, Daiyao
Shirkavand, Reza
Gong, Michelle
Information Retrieval
Generative recommenders, typically transformer-based autoregressive models, predict the next item or action from a user's interaction history. Their effectiveness depends on how the model represents where an interaction event occurs in the sequence (discrete index) and when it occurred in wall-clock time. Prevailing approaches inject time via learned embeddings or relative attention biases. In this paper, we argue that RoPE-based approaches, if designed properly, can be a stronger alternative for jointly modeling temporal and sequential information in user behavior sequences. While vanilla RoPE in LLMs considers only token order, generative recommendation requires incorporating both event time and token index. To address this, we propose Time-and-Order RoPE (TO-RoPE), a family of rotary position embedding designs that treat index and time as angle sources shaping the query-key geometry directly. We present three instantiations: early fusion, split-by-dim, and split-by-head. Extensive experiments on both publicly available datasets and a proprietary industrial dataset show that TO-RoPE variants consistently improve accuracy over existing methods for encoding time and index. These results position rotary embeddings as a simple, principled, and deployment-friendly foundation for generative recommendation.
title Rotate Both Ways: Time-and-Order RoPE for Generative Recommendation
topic Information Retrieval
url https://arxiv.org/abs/2510.20455