JEPA4Rec: Learning Effective Language Representations for Sequential Recommendation via Joint Embedding Predictive Architecture

Minh-Anh Nguyen, Dung D. LearXiv 2025 · DOI

Abstract

Sequential recommendation systems often struggle with the "cold-start" problem and the inability to transfer knowledge across different platforms. While text-based methods using Pretrained Language Models (PLMs) offer a potential solution, they often suffer from a semantic gap between general language and specific product metadata. This paper introduces JEPA4Rec, a novel framework that bridges this gap by adopting the Joint Embedding Predictive Architecture (JEPA). Instead of predicting raw text tokens, JEPA4Rec learns to predict abstract latent item representations. This approach results in state-of-the-art performance in cross-domain and low-resource settings, achieving superior accuracy while requiring 65% less pre-training data than previous leading methods.

Introduction

Predicting a user's next interaction based on their history is a cornerstone of modern e-commerce. Traditional recommendation systems typically rely on unique item IDs, which perform well for popular items but fail for new products with no history. Furthermore, ID-based knowledge is platform-specific and cannot be transferred between different domains.

Existing text-based methods attempt to solve this by using PLMs to encode item descriptions. However, standard training objectives like Masked Language Modeling (MLM) focus on predicting individual words, which may capture linguistic nuances but often miss the broader "common-sense" preferences that drive user behavior. JEPA4Rec addresses these limitations by forcing the model to "understand" product descriptions at a higher semantic level.

Methodology

Item Representation

To leverage textual information, JEPA4Rec converts items into structured "sentences" by flattening their metadata. For instance, a product's title, brand, and category are concatenated into a single string. This allows the model to process diverse product attributes within a unified language space.

Figure 1: Illustration of flattening item metadata (e.g., Title, Brand, Color) into a structured text representation.

The JEPA4Rec Architecture

The core innovation is the integration of the Joint Embedding Predictive Architecture. The model utilizes a bidirectional Transformer (Longformer) to handle long sequences of item descriptions. It consists of two primary components:

  1. Context Encoder ($f_\theta$): Processes the masked history of user interactions.
  2. Target Encoder ($f_{\bar{\theta}}$): Provides the ground-truth latent representations for the masked items. To ensure stability and prevent the model from collapsing into trivial solutions, the Target Encoder is updated via an Exponential Moving Average (EMA) of the Context Encoder.
Figure 5: The JEPA4Rec Model Structure (a) and Pre-training Framework (b), showing the interaction between the Context Encoder, Target Encoder, and Predictor.

Two-Stage Training

The model is trained in two distinct phases:

  • Pre-training: JEPA4Rec employs a multi-task loss function. This includes standard token-level MLM, a new Mapping Loss (where the model predicts the entire embedding of a masked item), and a Sequence-Item Contrastive Loss to align the user's history with the next likely item.
  • Fine-tuning: The pre-trained model is adapted to specific target domains using a cross-entropy loss over the target item catalog.

Experimental Evaluation

The authors evaluated JEPA4Rec across a diverse set of real-world datasets, including various Amazon categories (Automotive, Grocery, Scientific, etc.) and the Online Retail dataset. The latter served as a rigorous test for cross-platform transfer, as it contains no overlapping users or items with the Amazon pre-training data.

Key results include:

  • Superior Performance: JEPA4Rec consistently outperformed baselines like SASRec, BERT4Rec, and RecFormer. On average, it improved Recall@10 by 6.22% and NDCG@10 by 10.06%.
  • Data Efficiency: The model achieved state-of-the-art results using only 35% of the pre-training data required by its competitors.
  • Robustness: JEPA4Rec maintained stable performance even when up to 60% of the input tokens were masked, demonstrating its ability to capture high-level semantics rather than relying on specific keywords.

Key Insights

  • Embeddings over Tokens: Predicting the entire latent representation (Mapping Loss) allows the model to ignore low-level noise in product descriptions and focus on the features that actually drive user behavior.
  • Zero-Shot Transfer: By learning the "underlying language of commerce," the model can effectively recommend items in entirely new domains where it has seen little to no prior data.

Conclusion and Future Work

JEPA4Rec demonstrates that the Joint Embedding Predictive Architecture is highly effective for sequential recommendation. By bridging the semantic gap between general language and user behavior, it provides a robust, data-efficient solution for universal recommendation. Future research will explore multimodal JEPA, incorporating product images alongside text, and scaling the architecture to even larger and more diverse datasets.

Summary updated

BibTeX
@misc{nguyen2025jepa,
  author = {Minh-Anh Nguyen and Dung D. Le},
  title = {{JEPA4Rec: Learning Effective Language Representations for Sequential Recommendation via Joint Embedding Predictive Architecture}},
  year = {2025},
  eprint = {2504.10512},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.10512},
}
Figure