DaRec: A Disentangled Alignment Framework for Large Language Model and Recommender System

Xihong Yang, Heming Jing, Zixing Zhang, Jindong Wang, Huakang Niu, Shuaiqiang Wang, Yu Lu, Junfeng Wang, Dawei Yin, Xinwang Liu, En Zhu, Defu Lian, Erxue Min

TL;DR

This paper introduces DaRec, a novel framework that disentangles and aligns representations from Large Language Models (LLMs) and traditional recommender systems. Instead of directly forcing LLM and recommender system representations into the same space, DaRec separates them into "shared" and "specific" components, then aligns these components using global and local structural alignment. This approach significantly improves recommendation performance by better transferring LLM knowledge without introducing noise.

What Problem Does This Paper Address?

Recommender systems are crucial for personalized user experiences, and Large Language Models (LLMs) have shown impressive capabilities in various domains, including reasoning. Naturally, researchers have explored integrating LLMs into recommender systems to leverage their semantic understanding. A common approach is to align the latent representations of LLMs and collaborative filtering models. However, this paper argues that directly aligning these representations is suboptimal. The core challenge lies in the inherent differences between the data and training paradigms of LLMs (text-based) and collaborative filtering models (interaction-based). Forcing a perfect alignment can introduce irrelevant "specific" information from each modality into the shared space, potentially hindering downstream recommendation performance. This paper aims to address this by proposing a more nuanced alignment strategy.

Methods

The proposed framework, DaRec, operates in two main stages:

  1. Representation Disentanglement: DaRec first disentangles the latent representations from both LLMs and collaborative models into two distinct components:
  2. Shared Representation: This component captures information relevant to both modalities.
  3. Specific Representation: This component captures modality-specific information. This disentanglement is achieved using projection layers and regularization techniques, specifically orthogonal and uniformity losses. These losses encourage the shared and specific representations to be independent and informative, respectively.

  4. Structure Alignment: After disentanglement, DaRec aligns the shared representations. This is done at two levels:

  5. Global Structure Alignment: This aligns the overall pairwise relationships within the shared representations.
  6. Local Structure Alignment: This focuses on aligning user preferences by clustering representations and then matching these clusters.

This two-stage approach aims to transfer semantic knowledge from LLMs to collaborative models more effectively by preserving modality-specific information while aligning the common ground.

Datasets

The paper evaluates DaRec on three widely used benchmark datasets for recommendation tasks:

  • Amazon-book
  • Yelp
  • Steam

Data preprocessing involved filtering interactions with ratings below 3, and a standard 3:1:1 split was used for training, validation, and testing.

Key Insights and Ideas

  • Direct Alignment is Suboptimal: The paper theoretically proves that forcing a zero gap (perfect alignment) between LLM and recommender system representations can actually hurt performance, especially when there's a significant "information gap" between the modalities. This is because it forces irrelevant specific information into the shared space.
  • Disentanglement is Key: Separating representations into "shared" and "specific" components is crucial. This allows the model to learn what's common and what's unique, leading to more targeted knowledge transfer.
  • Structure Matters: Aligning the structure of the shared representations (both globally and locally) is more effective than just aligning the representations themselves. This helps preserve the underlying relationships and preferences.
  • Plug-and-Play: DaRec is designed as a plug-and-play framework, meaning it can be integrated with existing recommender system architectures and LLM embedding generation pipelines.

Key Results

DaRec consistently outperforms several state-of-the-art baselines, including traditional collaborative filtering methods (GCCF, LightGCN, SGL, SimGCL, DCCF, AutoCF) and LLM-enhanced methods (RLMRec, KAR), across the three benchmark datasets. For instance, on the Yelp dataset, DaRec improved the AutoCF baseline by significant margins (e.g., 3.85% in R@5). Ablation studies confirmed that each component of DaRec (orthogonal loss, uniformity loss, global alignment, local alignment) contributes positively to the overall performance.

Limitations and Future Work

  • Hyperparameter Sensitivity: While DaRec shows robustness, the paper notes that extreme values for trade-off parameters (like λ) can disrupt performance. The optimal range for these parameters is explored.
  • Sampling Size: The performance is sensitive to the sampling size (Ñ) used for approximation, with larger sizes generally yielding better results up to a point. The paper settles on 4096 for experiments.
  • Computational Cost: While designed to be efficient, the complexity of the loss functions can still be a consideration.
  • Future Work: The paper suggests that further exploration of how LLMs enhance semantic features of collaborative models is warranted. The visualization analysis also hints at the potential for understanding user preferences more deeply.

Summary updated

BibTeX
@inproceedings{yang2025darec,
  author = {Xihong Yang and Heming Jing and Zixing Zhang and Jindong Wang and Huakang Niu and Shuaiqiang Wang and Yu Lu and Junfeng Wang and Dawei Yin and Xinwang Liu and En Zhu and Defu Lian and Erxue Min},
  title = {{DaRec: A Disentangled Alignment Framework for Large Language Model and Recommender System}},
  booktitle = {ICDE},
  year = {2025},
  doi = {10.1109/icde65448.2025.00073},
}
Figure