RecBase: Generative Foundation Model Pretraining for Zero-Shot Recommendation

S. Zhou, Woon‐Seng Gan, Qijiong Liu, Ke Lei, Jieming Zhu, Hai Huang, Yan Xia, Ruiming Tang, Zhenhua Dong, Zhou Zhao2025

Abstract

Recent advancements in recommendation systems have seen a shift toward leveraging Large Language Models (LLMs). However, general-purpose LLMs often struggle with the "semantic gap" between natural language and user-item behavioral patterns. This paper introduces RecBase, a generative foundation model built from the ground up for recommendation tasks. By employing a novel hierarchical item tokenizer (CL-VAE) and autoregressive pretraining on a massive cross-domain corpus, RecBase-1.5B demonstrates superior zero-shot performance, outperforming general LLMs nearly five times its size.

Introduction

While general-purpose LLMs like Llama and GPT have shown promise in zero-shot recommendation, they are fundamentally limited by their reliance on natural language representations. Representing items as text strings (e.g., "The user watched Toy Story") is computationally expensive and fails to capture the latent behavioral relationships that traditional recommendation models prioritize. Furthermore, because these models are pretrained on general language rather than interaction sequences, they often fail to generalize to unseen domains in a recommendation context.

RecBase addresses these challenges by creating a foundation model that speaks the "language" of recommendation: sequences of discrete, semantically rich item identifiers. This approach bridges the gap between the high-level reasoning of LLMs and the precision of specialized recommendation architectures.

Methodology

RecBase utilizes a two-stage framework designed to unify disparate item domains into a single, learnable space.

1. Unified Item Tokenization (CL-VAE)

To handle items from diverse domains—ranging from movies to e-commerce—RecBase employs a Curriculum Learning Enhanced Residual Quantized Variational Autoencoder (CL-VAE).

  • Embedding and Quantization: Items are initially converted into dense embeddings via a text encoder. The CL-VAE then quantizes these embeddings into a hierarchy of "Concept IDs."
  • Hierarchical Structure: Each item is represented by a multi-level code (e.g., a 4-level hierarchy). This allows the model to learn that items sharing coarse IDs belong to similar broad categories, while fine-grained IDs distinguish specific attributes.
  • Curriculum Learning: To mitigate "codebook collapse"—a common issue where the model utilizes only a small subset of available tokens—the hierarchy is trained level-by-level. This ensures the model masters coarse representations before moving to fine-grained details.

2. Autoregressive Pretraining

Following tokenization, the model is trained using a standard transformer architecture (based on Qwen2). The objective is to predict the next item's ID bits based on a user's historical interaction sequence. The team released two variants: RecBase-0.3B and RecBase-1.5B, both optimized specifically for recommendation data rather than general text.

Experimental Setup

Pretraining Corpus

The models were pretrained on a massive, heterogeneous dataset spanning 15 domains, including 4.5 million items and 35 million interactions. Data sources included Amazon Reviews, Netflix, and short-video platforms such as PixelRec and KuaiRec.

Zero-Shot Evaluation

To test true generalization, RecBase was evaluated on 8 unseen datasets from the RecBench benchmark, including MIND (news), MovieLens (movies), Goodreads (books), and H&M (e-commerce). These datasets were entirely excluded from the pretraining phase to ensure a rigorous zero-shot assessment.

Key Results and Insights

Zero-Shot Superiority

RecBase-1.5B achieved an overall AUC of 0.6063, significantly surpassing much larger general-purpose models such as Mistral-7B (0.5941) and Llama-3-8B (0.5729). This suggests that for specialized tasks, the nature of the pretraining data is more critical than the raw parameter count.

Efficiency and Latency

By utilizing a specialized, smaller vocabulary of 20,000 tokens (compared to the 100k+ vocabularies of general LLMs), RecBase achieves significantly lower inference latency. This makes it a more viable candidate for real-time recommendation deployments.

Fine-Tuning Potential

While designed for zero-shot scenarios, RecBase exhibits substantial performance gains when fine-tuned. On the Steam dataset, for instance, the model's AUC improved from 0.7450 (zero-shot) to 0.9173 (fine-tuned), demonstrating its robustness as a starting point for domain-specific tasks.

Discussion and Future Work

RecBase proves that representing items as structured Concept IDs is more efficient than natural language for recommendation. The hierarchical alignment allows for effective knowledge transfer across domains (e.g., from movies to books).

However, limitations remain. The model still faces challenges with "cold-start" users who have minimal interaction history. Additionally, the current pretraining corpus is heavily weighted toward news and audio-visual content. Future iterations of RecBase aim to incorporate multimodal integration—using raw images or video features directly in the CL-VAE process—to capture visual semantics that textual descriptions might overlook.

Summary updated

BibTeX
@misc{zhou2025recbase,
  author = {S. Zhou and Woon‐Seng Gan and Qijiong Liu and Ke Lei and Jieming Zhu and Hai Huang and Yan Xia and Ruiming Tang and Zhenhua Dong and Zhou Zhao},
  title = {{RecBase: Generative Foundation Model Pretraining for Zero-Shot Recommendation}},
  year = {2025},
  doi = {10.18653/v1/2025.emnlp-main.786},
}
Figure