Learning Decomposed Contextual Token Representations from Pretrained and Collaborative Signals for Generative Recommendation

Yifan Liu, Yaokun Liu, Zelin Li, Zhenrui Yue, Gyuseok Lee, Ruichen Yao, Yang Zhang, Dong Wang · DOI

Abstract

Generative recommendation systems often rely on static item IDs that fail to adapt to diverse user contexts and lose rich pretrained semantic knowledge during fine-tuning. We present DECOR (DEcomposed COntextual Token Representations), a framework that fuses frozen pretrained text embeddings with learnable collaborative signals. By employing a dynamic soft composition mechanism, DECOR reinterprets item tokens based on a user’s specific interaction history, effectively addressing prefix ambiguity and semantic erosion. Experimental results on real-world datasets demonstrate significant performance gains over state-of-the-art generative baselines.

Introduction

Modern generative recommendation treats item suggestion as a language modeling task, mapping items to sequences of tokens (Semantic IDs). However, this approach faces two primary challenges: suboptimal static tokenization and the discarding of pretrained semantics. Static IDs often lead to prefix ambiguity, where items with distinct contexts (e.g., office vs. workout headphones) share identical initial tokens, hindering the model's ability to distinguish user intent.

Figure 1: Comparison of active embedding usage and performance between TIGER and DECOR, alongside an illustration of prefix ambiguity in static tokenization.

Methodology: The DECOR Framework

DECOR addresses these challenges through a two-stage process integrated into the forward pass of a generative recommender.

Decomposed Embedding Fusion

Instead of a single learnable embedding, DECOR maintains dual channels: a frozen channel using pretrained codebook embeddings to preserve world knowledge, and a learnable channel for collaborative signals capturing user behavior. These are projected into a shared space and fused via a modality-aware layer to create a robust representation.

Contextualized Token Composition

To overcome the limitations of static IDs, DECOR implements a soft composition mechanism. Rather than a simple table lookup, the model computes a "context vector" from the user's history via attention. This vector is used to "mix" the current token with other potential tokens in the same quantization layer, allowing for context-specific reinterpretation of generic tokens.

Figure 2: The DECOR architecture, illustrating the two-stage process: Item Tokenization Pretraining and Recommender Training with Decomposed Embedding Fusion and Contextualized Token Composition.

Learnable BOS Queries

The model utilizes learnable "Beginning-of-Sequence" (BOS) queries that adapt to user history, which is critical for accurately predicting the initial category-defining tokens in a sequence.

Experimental Evaluation

DECOR was evaluated on three categories from the 2024 Amazon Review dataset: Scientific, Instrument, and Game. The framework consistently outperformed traditional sequential models (SASRec) and generative baselines (TIGER, ETEGRec).

Key Results and Insights

  • Performance Gains: DECOR achieved a +13.8% improvement in NDCG@10 on the Scientific dataset compared to the strongest generative baseline.
  • Embedding Utilization: While standard models utilize only ~25-28% of their codebook, DECOR's contextual composition activates nearly 100% of the available tokens, maximizing the representational capacity of the model.
  • Stability and Scalability: DECOR provides a stable alternative to dynamic re-tokenization methods by adapting token representations rather than the tokens themselves. The attention-based composition scales linearly with sequence length, ensuring minimal computational overhead.

Conclusion and Future Work

DECOR effectively bridges the gap between pretrained semantic knowledge and collaborative user signals in generative recommendation. While the model currently depends on an initial RQ-VAE tokenizer, future research will explore its efficacy in cold-start scenarios and its scalability with larger language models (7B+ parameters).

Summary updated

BibTeX
@misc{liu2025learning,
  author = {Yifan Liu and Yaokun Liu and Zelin Li and Zhenrui Yue and Gyuseok Lee and Ruichen Yao and Yang Zhang and Dong Wang},
  title = {{Learning Decomposed Contextual Token Representations from Pretrained and Collaborative Signals for Generative Recommendation}},
  year = {2025},
  eprint = {2509.10468},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2509.10468},
}
Figure