TL;DR
EmbSum is a novel content-based recommendation framework that uses an encoder-decoder architecture and poly-attention to enable efficient offline pre-computation of user and item embeddings. By distilling extensive user engagement histories into concise text summaries using a Large Language Model (LLM) during training, it outperforms state-of-the-art models with significantly fewer parameters while providing explainable user-interest summaries as a byproduct.
What Problem Does This Paper Address?
Content-based recommendation systems personalize content (like news or books) by matching a user's interaction history with candidate items. However, existing approaches face two major bottlenecks:
- Long-Range History Modeling: Standard Pretrained Language Models (PLMs) suffer from quadratic memory complexity due to their attention mechanisms. To cope, previous methods either truncate user histories or encode items independently, which fails to capture how a user's interests evolve over time across different sessions.
- The Offline Computation Dilemma: To achieve high accuracy, many state-of-the-art models perform online, real-time cross-attention between the user's history and the candidate item. This prevents the system from pre-computing and caching embeddings offline, severely limiting inference speed and real-world scalability.
The authors introduce EmbSum to solve both problems simultaneously: capturing deep interactions across long user histories while keeping user and item embeddings completely independent for fast, offline pre-computation.
Methods
EmbSum adopts a unique encoder-decoder architecture (based on T5-small) and introduces a multi-vector embedding strategy:
- Session-Based Encoding: To manage memory, a user's long history is partitioned into distinct time-based sessions. Each session is encoded independently using a T5 encoder.
- LLM-Supervised Summarization: To force the model to capture long-range interactions across sessions, the authors use a powerful open-source LLM (Mixtral-8x22B-Instruct) during training only to generate a three-sentence summary of the user's holistic interests. The T5 decoder is trained via an auto-regressive language modeling loss ($\mathcal{L}_{sum}$) to replicate this summary from the concatenated session embeddings.
- Poly-Embedding Layers: Instead of compressing a user or an item into a single vector, EmbSum uses poly-attention layers to learn multiple representative vectors:
- User Poly-Embedding (UPE): Extracts nuanced facets of user interest by combining session vectors with the decoder's global summary token.
- Content Poly-Embedding (CPE): Uses a set of context codes to generate multiple embeddings for a single candidate item, capturing multi-faceted item characteristics.
- Efficient Matching: At inference time, relevance scores are calculated using a fast inner-product and attention aggregation over the pre-computed UPE and CPE matrices.
Datasets
The framework was evaluated on two public benchmark datasets from different domains:
- MIND (MIND-small): A Microsoft News dataset containing click logs from 94K users and 65K news articles.
- Goodreads: A book recommendation dataset consisting of 50K users and 330K books, where user ratings are converted into positive/negative engagement labels.
Key Insights and Ideas
- LLM as a Teacher, Not a Bottleneck: Calling an LLM during live recommendation inference is too slow and expensive. EmbSum brilliantly uses the LLM as a "teacher" during training to guide a much smaller student model (T5-small) to understand long-term user preferences.
- The Power of Poly-Embeddings: Compressing a user's entire identity or a complex article into a single vector loses information. By generating multiple vectors (poly-embeddings) for users and items, the model retains the expressiveness of online cross-attention models while allowing embeddings to be computed completely offline.
- Explainability for Free: Because the decoder is explicitly trained to generate natural language summaries of user interests, the model can output human-readable explanations of why it recommends certain items, increasing system transparency.
Key Results
EmbSum achieved state-of-the-art (SoTA) performance across both datasets while being highly parameter-efficient:
- Higher Accuracy, Fewer Parameters: EmbSum outperformed BERT-base models like UNBERT and MINER. On the MIND dataset, it achieved an AUC of 71.95 (outperforming UNBERT's 71.73). Crucially, EmbSum utilizes a T5-small backbone with only 61M parameters, which is roughly half the size of its 125M-parameter BERT competitors.
- Ablation Insights: Removing the Content Poly-Embedding (CPE) caused the most significant performance drop (AUC fell from 71.95 to 68.17 on MIND), proving that multi-vector item representation is vital for accurate matching. Removing the summarization loss ($\mathcal{L}_{sum}$) also degraded recommendation performance, confirming that the summarization task genuinely helps the model learn better user representations.
Limitations and Future Work
- Hyperparameter Sensitivity: The authors noted that excessively increasing the number of context codes for the candidate items (CPE size) actually harms performance by introducing superfluous parameters.
- Data Dependency: The framework relies heavily on the quality of the summaries generated by the teacher LLM during training.
The authors suggest that the natural language user summaries generated by EmbSum open up exciting avenues for future work in recommendation explainability and user-controllable recommendation settings.
Summary updated