Generative Representational Learning of Foundation Models for Recommendation

Zheli Zhou, Chenxu Zhu, Jianghao Lin, Bo Chen, Ruiming Tang, Weinan Zhang, Yong YuarXiv 2025 · DOI

Introduction

Recommendation systems traditionally operate in two distinct modes: representational (embedding) tasks for retrieval and generative tasks for natural language interaction. While Large Language Models (LLMs) have advanced both fields, unifying them into a single foundation model often leads to "task interference," where learning one type of task degrades performance on another. Furthermore, inconsistent convergence rates across diverse tasks—ranging from simple sentiment analysis to complex sequential recommendation—often result in sub-optimal model states where some tasks are overfitted while others remain underfitted.

The RecFound Framework

To address these challenges, the authors introduce RecFound, a unified framework built on the Mistral-7B backbone. RecFound integrates three core innovations to harmonize generative and representational learning within a single architecture.

The RecFound architecture overview, illustrating the integration of TMoLE and the S2Sched module for unified recommendation.

Task-wise Mixture of Low-rank Experts (TMoLE)

Unlike standard LoRA-based adaptation, TMoLE utilizes a pool of experts categorized into Generative, Embedding, and Shared groups. A task-oriented router dynamically aggregates these experts based on the Task ID, facilitating knowledge sharing where beneficial while maintaining task-specific specialization to prevent knowledge conflict.

Step-wise Convergence-oriented Sample Scheduler (S2Sched)

S2Sched monitors the non-convergence rate of each task on a validation set during training. Instead of static loss weighting, it dynamically adjusts the sampling ratio in subsequent batches. This ensures that "harder" or slower-converging tasks receive more training focus, effectively balancing the learning process across the task spectrum.

Model Merging

The framework employs TIES-Merging to consolidate different model checkpoints. This process resolves parameter conflicts and ensures balanced, smooth performance across the entire range of supported tasks.

Experimental Setup and Results

The study utilizes a comprehensive dataset of over 360,000 training samples across 13 tasks, including three embedding tasks (User2Item, Query2Item, Item2Item) and ten generative tasks (General NLP, User Understanding, and Item Understanding).

RecFound demonstrates superior performance in both generative and representational domains. In generative tasks, it achieved an average rank of 1.30, significantly outperforming specialized baselines like eCeLLM (3.20) and GritLM (4.10).

Performance comparison of RecFound against baseline models on embedding tasks, showing state-of-the-art results in retrieval metrics.

As shown in the embedding results, RecFound consistently outperforms specialized embedding models like BGE-large and unified models like GritLM across NDCG@20 and MRR@20 metrics. Ablation studies further confirm that both TMoLE and S2Sched are critical for this success; removing either component leads to a significant performance decline, validating the need for architectural specialization and dynamic data scheduling.

Conclusion

RecFound proves that a single decoder-only LLM can effectively serve as both a high-performance embedding engine and a generative assistant. By balancing multi-task learning at the data sampling level and utilizing task-aware expert routing, the framework overcomes traditional barriers in recommendation foundation models. Future work will explore extending this approach to multi-modal and multi-lingual contexts.

Summary updated

BibTeX
@misc{zhou2025generative,
  author = {Zheli Zhou and Chenxu Zhu and Jianghao Lin and Bo Chen and Ruiming Tang and Weinan Zhang and Yong Yu},
  title = {{Generative Representational Learning of Foundation Models for Recommendation}},
  year = {2025},
  eprint = {2506.11999},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.11999},
}
Figure