Language-Based User Profiles for Recommendation

Joyce Zhou, Yijia Dai, Thorsten JoachimsarXiv 2024 · DOI

Abstract

Traditional recommendation systems rely on opaque latent vectors, hindering interpretability and user steerability. This paper introduces the Language-based Factorization Model (LFM), which utilizes Large Language Models (LLMs) to represent user profiles as natural language summaries. By evaluating LFM on the MovieLens dataset, we demonstrate that text-based profiles can achieve competitive predictive accuracy while providing human-readable explanations and improved performance in cold-start scenarios. Our results show that natural language can serve as an effective latent space, offering stability as user history grows and enabling direct user interaction with recommendation profiles.

Introduction

Recommendation engines typically represent users as high-dimensional "latent vectors." While mathematically efficient, these vectors are uninterpretable to humans, making it difficult to explain recommendations or allow users to steer their profiles. Furthermore, these models often struggle with "cold-start" problems where limited user history is available because they lack semantic knowledge about the items themselves.

To address these issues, we propose the Language-based Factorization Model (LFM). LFM replaces numerical vectors with natural language descriptions, using LLMs to summarize a user's rating history into a compact profile. This approach leverages the "world knowledge" inherent in LLMs to understand item characteristics even with minimal user data, making the recommendation process more transparent and steerable.

Methodology

The LFM architecture follows an encoder-decoder pattern designed for interpretability and stability.

The LFM architecture overview: User rating history is encoded into a natural language profile, which then serves as the input for various recommendation tasks.
  • Encoder: An LLM processes a user’s raw rating history (e.g., "Movie A: 5/5, Movie B: 2/5") to generate a concise natural language summary of their preferences (e.g., "You enjoy complex sci-fi but dislike slapstick comedy").
  • Decoder: The same or a different LLM uses this text profile to perform downstream tasks, such as predicting a numerical rating for a target item or determining a pairwise preference between two items.

We compared LFM against LLM-Direct (providing the full raw history to the LLM) and Non-negative Matrix Factorization (NMF) (a traditional vector-based baseline). Models tested included Llama 2 (7B and 13B) and Sakura-SOLAR 10.7B in zero-shot settings.

Experimental Setup

Evaluation was conducted using the MovieLens Tag Genome Dataset 2021. A sample of 300 users, each with 150 ratings, was used to test the models across three primary tasks:

  1. Rating Prediction: Estimating a score on a 1-5 scale.
  2. Pairwise Preference: Predicting which of two movies a user will like more.
  3. Pairwise Choice: Identifying which movie a user actually chose to watch and rate.

Results and Discussion

The experimental results highlight several key advantages and trade-offs of the LFM approach compared to traditional and direct LLM methods.

Performance comparison of LFM (Ours), LLM-Direct, NMF, and Default baselines across varying user history sizes for Rating RMSE, Preference Error, Rating MAE, and Choice Error.

Competitive Accuracy and Stability

LFM achieves accuracy comparable to LLM-Direct across most tasks. Compressing history into a text summary does not systematically degrade performance and can even filter out noise. Crucially, as user history grows, LFM remains stable, whereas LLM-Direct models often fail due to context window limitations or confusion from excessively long inputs.

Cold-Start Performance

In "cold-start" scenarios with very limited data (1-5 ratings), LFM outperforms traditional NMF. This is attributed to the LLM's pre-existing knowledge of movie titles and genres. While NMF sees items as anonymous IDs until it has enough data to map them, LFM understands the semantic content of the items immediately.

Interpretability and Steerability

The primary benefit of LFM is the creation of human-readable profiles. These summaries provide immediate explanations for recommendations and offer a mechanism for users to manually edit their preferences to "steer" the algorithm. For example, a user could explicitly remove a genre from their profile, a task that is impossible with latent vectors.

Limitations

While LFM excels in low-data regimes, traditional NMF eventually overtakes it as more collaborative data becomes available. Current LFM implementations are zero-shot and do not yet incorporate broader population trends (collaborative filtering). Additionally, LLMs exhibited a "positive bias," tending to predict higher ratings than users actually provided, likely due to their training on helpful and polite text.

Conclusion

Language-based Factorization Models offer a promising path toward more transparent and user-controllable recommendation systems. While challenges remain regarding computational latency and the integration of collaborative filtering, the use of natural language as a latent space provides significant benefits in interpretability and cold-start performance. Future work will focus on fine-tuning these models on large-scale recommendation datasets to bridge the gap with state-of-the-art collaborative filtering methods.

Summary updated

BibTeX
@misc{zhou2024language,
  author = {Joyce Zhou and Yijia Dai and Thorsten Joachims},
  title = {{Language-Based User Profiles for Recommendation}},
  year = {2024},
  eprint = {2402.15623},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.15623},
}
Figure