Skip to main content
QUICK REVIEW

[Paper Review] Text Is All You Need: Learning Language Representations for Sequential Recommendation

Jiacheng Li, Ming Wang|arXiv (Cornell University)|May 23, 2023
Recommender Systems and TechniquesComputer Science5 citations
TL;DR

This paper proposes Recformer, a novel sequential recommendation framework that treats items as natural language sentences using key-value attributes, enabling end-to-end learning of contextual and sequential language representations via a bi-directional Transformer. Recformer achieves state-of-the-art performance, especially in low-resource and cold-start settings, by jointly pretraining on language understanding and recommendation tasks, demonstrating strong transferability across datasets and items without relying on item IDs.

ABSTRACT

Sequential recommendation aims to model dynamic user behavior from historical interactions. Existing methods rely on either explicit item IDs or general textual features for sequence modeling to understand user preferences. While promising, these approaches still struggle to model cold-start items or transfer knowledge to new datasets. In this paper, we propose to model user preferences and item features as language representations that can be generalized to new items and datasets. To this end, we present a novel framework, named Recformer, which effectively learns language representations for sequential recommendation. Specifically, we propose to formulate an item as a "sentence" (word sequence) by flattening item key-value attributes described by text so that an item sequence for a user becomes a sequence of sentences. For recommendation, Recformer is trained to understand the "sentence" sequence and retrieve the next "sentence". To encode item sequences, we design a bi-directional Transformer similar to the model Longformer but with different embedding layers for sequential recommendation. For effective representation learning, we propose novel pretraining and finetuning methods which combine language understanding and recommendation tasks. Therefore, Recformer can effectively recommend the next item based on language representations. Extensive experiments conducted on six datasets demonstrate the effectiveness of Recformer for sequential recommendation, especially in low-resource and cold-start settings.

Motivation & Objective

  • To address the limitations of ID-based sequential recommenders in handling cold-start items and cross-domain transfer.
  • To unify language representation learning and sequential recommendation into a single, transferable framework.
  • To enable effective knowledge transfer across datasets and new items by leveraging natural language attributes of items.
  • To overcome suboptimal text representations from general pre-trained language models by jointly training for recommendation and language understanding.
  • To develop a framework that learns fine-grained, word-level preferences from item attributes rather than coarse sentence-level features.

Proposed method

  • Items are represented as sequences of key-value attribute pairs (e.g., 'color: red', 'brand: Nike'), forming a 'sentence' of natural language tokens.
  • A bi-directional Transformer architecture, inspired by Longformer but adapted for recommendation, encodes item sequences with relative positional embeddings and sparse attention for efficiency.
  • The model is pre-trained on a dual objective: masked language modeling on item attribute sequences and next-item prediction on user interaction sequences.
  • Fine-tuning is performed jointly on recommendation-specific objectives, aligning language understanding with sequential behavior modeling.
  • Special token embeddings are introduced to distinguish user interaction history, item attributes, and sequence boundaries.
  • The framework enables zero-shot and few-shot recommendation by generalizing from learned language representations of item attributes.

Experimental results

Research questions

  • RQ1Can item attributes be effectively modeled as natural language sequences to improve sequential recommendation?
  • RQ2Does joint pretraining on language understanding and next-item prediction enhance performance, especially in low-resource settings?
  • RQ3Can the model generalize to cold-start items and new datasets without retraining on item IDs?
  • RQ4How does the proposed language representation framework compare to ID-based and pre-trained language model-based baselines in transfer learning scenarios?
  • RQ5What is the contribution of fine-grained word-level understanding versus coarse sentence-level features in sequential recommendation?

Key findings

  • Recformer achieves state-of-the-art performance on six benchmark datasets, outperforming existing methods in both full-supervised and low-resource settings.
  • The model shows significant gains in cold-start and zero-shot recommendation, demonstrating strong transferability across datasets and new items.
  • Ablation studies confirm that joint pretraining on language and recommendation tasks improves performance more than pretraining on either task alone.
  • The use of key-value attribute sequences as natural language sentences leads to better modeling of user preferences than standard item ID or embedding-based approaches.
  • The bi-directional Transformer with sparse attention effectively captures long-range dependencies in user interaction sequences while maintaining computational efficiency.
  • The framework reduces reliance on item-specific embeddings, enabling generalization to unseen items and new domains without retraining.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.