Abstract: Traditional recommender systems rely on high-dimensional (latent) embeddings for modeling user-item interactions, often resulting in opaque representations that lack interpretability. Moreover, these systems offer limited control to users over their recommendations. Inspired by recent work, we introduce TExtuAl Representations for Scrutable recommendations (TEARS) to address these challenges. Instead of representing a user's interests through a latent embedding, TEARS encodes them in natural text, providing transparency and allowing users to edit them. To do so, TEARS uses a modern LLM to generate user summaries based on user preferences. We find the summaries capture user preferences uniquely. Using these summaries, we take a hybrid approach where we use an optimal transport procedure to align the summaries' representation with the learned representation of a standard VAE for collaborative filtering. We find this approach can surpass the performance of three popular VAE models while providing user-controllable recommendations. We also analyze the controllability of TEARS through three simulated user tasks to evaluate the effectiveness of a user editing its summary.
Introduction
Most modern recommender systems function as "black boxes." They represent user interests as high-dimensional vectors, known as latent embeddings, which are mathematically efficient but humanly unintelligible. This lack of transparency leads to two major issues: a lack of scrutability (the user cannot understand why certain items are recommended) and a lack of controllability (the user cannot directly correct the model's perception of their interests).
While some systems offer post-hoc explanations (e.g., "Because you watched X..."), these are often justifications rather than true insights into the model's internal state. TEARS (TExtuAl Representations for Scrutable recommendations) addresses this by replacing opaque vectors with natural language summaries generated by Large Language Models (LLMs). By forcing the user representation through a natural language bottleneck, the system becomes both readable and editable.
The TEARS Framework
TEARS utilizes a hybrid architecture that bridges the gap between natural language processing and traditional collaborative filtering (CF).
1. Summary Generation
The process begins by feeding a user's interaction history into an LLM (such as GPT-4 or Llama 3.1). The LLM generates a concise (~200-word) summary capturing the user's preferred genres, recurring themes, and specific likes or dislikes. This summary serves as a human-readable proxy for the user's latent interests.
2. Dual-Encoder Architecture
To generate recommendations, TEARS employs two distinct encoders:
- Encoder $Q_r$: A standard Variational Autoencoder (VAE) that processes raw interaction data (the "black-box" history).
- Encoder $Q_s$: A T5-based text encoder that processes the natural language summary.
3. Optimal Transport Alignment
A critical challenge in hybrid systems is ensuring that the text-based latent space ($z_s$) and the interaction-based latent space ($z_r$) are compatible. TEARS uses an Optimal Transport (OT) regularizer to align these distributions based on their underlying geometry. This alignment ensures that the shared decoder can interpret both representations effectively.
4. Inference and Control
During inference, the system combines the two representations using a convex combination: $z_c = \alpha z_s + (1 - \alpha) z_r$. The interpolation coefficient $\alpha$ allows users to control the balance between their historical data and their explicit text profile. An $\alpha$ of 1 provides maximum control via the summary, while an $\alpha$ of 0 relies entirely on historical patterns.
Experimental Evaluation
The authors evaluated TEARS on three benchmark datasets: MovieLens-1M, Netflix Prize, and Goodbooks-10k. The system was compared against state-of-the-art VAE models, including Multi-VAE and RecVAE.
Key Findings
- Performance Gains: TEARS consistently outperformed traditional black-box models. On the MovieLens-1M dataset, TEARS achieved higher NDCG and Recall scores than its non-scrutable counterparts.
- The "Inverse-U" Trade-off: Peak performance was typically observed at an intermediate $\alpha$ value (around 0.5). This suggests that the text summary and raw history provide complementary signals that, when combined, are more powerful than either alone.
- Controllability: The system demonstrated high sensitivity to text edits. In simulations, "flipping" a user's interests in the text summary successfully shifted the resulting recommendations. Even fine-grained edits—such as adding a brief description of a specific plot point—could significantly boost the rank of relevant items.
- Zero-Shot Robustness: TEARS proved robust to different LLMs. A model trained on GPT-generated summaries performed well when tested with Llama-generated summaries, indicating it learns semantic preferences rather than specific linguistic patterns.
Conclusion
TEARS demonstrates that transparency does not have to come at the cost of performance. By aligning natural language summaries with collaborative filtering via Optimal Transport, TEARS provides a recommender system that is both highly accurate and uniquely controllable. Future work will focus on reducing the computational cost of LLM inference and conducting human-in-the-loop studies to further refine the user editing experience.
Summary updated