Our new X account is live! Follow @wizwand_team for updates
WorkDL logo mark

ActionPiece: Contextually Tokenizing Action Sequences for Generative Recommendation

About

Generative recommendation (GR) is an emerging paradigm where user actions are tokenized into discrete token patterns and autoregressively generated as predictions. However, existing GR models tokenize each action independently, assigning the same fixed tokens to identical actions across all sequences without considering contextual relationships. This lack of context-awareness can lead to suboptimal performance, as the same action may hold different meanings depending on its surrounding context. To address this issue, we propose ActionPiece to explicitly incorporate context when tokenizing action sequences. In ActionPiece, each action is represented as a set of item features. Given the action sequence corpora, we construct the vocabulary by merging feature patterns as new tokens, based on their co-occurrence frequency both within individual sets and across adjacent sets. Considering the unordered nature of feature sets, we further introduce set permutation regularization, which produces multiple segmentations of action sequences with the same semantics. Our code is available at: https://github.com/google-deepmind/action_piece.

Yupeng Hou, Jianmo Ni, Zhankui He, Noveen Sachdeva, Wang-Cheng Kang, Ed H. Chi, Julian McAuley, Derek Zhiyuan Cheng• 2025

Related benchmarks

TaskDatasetResultRank
Sequential RecommendationAmazon Beauty (test)
NDCG@104.24
107
Sequential RecommendationSports
Recall@102.31
62
Sequential RecommendationSports
Recall@50.0285
43
Sequential RecommendationBeauty
Recall@106.67
42
Sequential RecommendationToys
Recall@50.0473
31
Sequential RecommendationBeauty
HR@107.62
30
Sequential RecommendationToys
Recall@106.23
20
Sequential RecommendationInstruments
HR@56.3
20
Sequential RecommendationCDs
Recall@105.52
13
Sequential RecommendationOffice Amazon (test)
R@55.12
10
Showing 10 of 10 rows

Other info

Follow for update