TL;DR
UCEpic is a novel explainable recommendation framework that unifies high-level aspect planning with fine-grained lexical constraints using an insertion-based text generation model. By breaking away from traditional left-to-right generation, it produces highly personalized, diverse, and accurate natural language explanations that faithfully include specific product attributes.
What Problem Does This Paper Address?
When a recommender system suggests an item, providing a natural language explanation (e.g., "Nice TV with 4K display and Dolby Atmos!") helps justify the choice and build user trust. Current state-of-the-art models use aspect planning to control this generation—ensuring the text touches on high-level categories like "screen" or "service."
However, because these models rely on standard left-to-right (autoregressive) generation, they struggle to inject highly specific details accurately. They often default to overly generic phrases ("good screen!") or hallucinate incorrect details ("2K screen" for a 4K TV). While general text generators can enforce lexical constraints (forcing specific keywords to appear), they lack the ability to incorporate personalization, such as a user's historical preferences or item profiles. UCEpic bridges this gap by unifying aspect planning, lexical constraints, and personalization into a single framework.
Methods
Instead of generating text sequentially from left to right, UCEpic adopts an insertion-based generation framework built on a bi-directional Transformer (initialized with RoBERTa-base). Generation begins with the target lexical constraints (keyphrases) already in place, and the model progressively inserts missing words around them.
The training pipeline consists of two main phases:
- Robust Insertion Pre-training: The model is first trained on a massive general corpus (Wikipedia) using a modified Masked Language Modeling (MLM) process. It learns to predict how many
[MASK]tokens to insert between existing words, and then predicts the actual tokens to fill those masks. This makes the model highly robust to arbitrary starting constraints. - Personalized Fine-tuning: Insertion models often suffer from "reference ignoring," where the decoder overfits to the strong local signals of existing tokens and ignores the encoder's personalization data. UCEpic elegantly solves this by appending user reviews (references) and aspects directly into the token sequence as special existing tokens during fine-tuning, forcing the self-attention mechanism to condition on them.
Datasets
- Pre-training: English Wikipedia (11.6 million sentences) to establish robust, non-personalized text insertion capabilities.
- Fine-tuning & Evaluation: Two standard recommendation datasets containing user reviews:
- RateBeer: 16,839 training samples mapped across 8 distinct aspects.
- Yelp: 252,087 training samples mapped across 59 distinct aspects.
Key Insights and Ideas
- The Autoregressive Trap: Left-to-right language models are fundamentally ill-suited for hard lexical constraints. Forcing a specific word to appear at an arbitrary position later in a sentence requires complex, computationally expensive decoding hacks.
- Flipping the Paradigm: By switching to an insertion-based model, constraints stop being a hurdle. Instead, they become the anchor or foundation upon which the rest of the sentence is built.
- Sequence Injection for Personalization: Treating user history and aspects as special tokens within the same sequence—rather than keeping them isolated in an external encoder—ensures the model tightly couples personalization with the text generation process.
Key Results
UCEpic was evaluated under two modes: aspect-planning only and lexically constrained generation.
- Massive Diversity Gains: In aspect-planning mode, UCEpic dramatically outperformed traditional models in text diversity. On the Yelp dataset, UCEpic achieved a Distinct-2 score of 14.75%, compared to just 1.23% from the state-of-the-art PETER model, moving much closer to the human oracle score of 34.1%.
- Coherent Constraint Satisfaction: When given specific keyphrases, UCEpic successfully forced their inclusion while maintaining high semantic quality, outperforming general constrained generators (like CBART and POINTER) because it successfully integrated user and item profiles.
- Human Evaluation: In blind tests, human evaluators overwhelmingly voted UCEpic as superior to baselines in both relevance and informativeness, confirming that the generated text felt less vague and more tailored to actual product features.
Limitations and Future Work
- Dependency on Constraint Selection: UCEpic assumes that the lexical constraints (the keyphrases) are provided by an external system. The final quality and helpfulness of the explanation are heavily dependent on how effectively those keyphrases are selected in the first place.
- Aspect vs. Lexical Trade-off: The authors noted that when strong, multi-word lexical constraints are enforced, the high-level aspect planning loses some of its control over the final output, as the specific words dominate the insertion space. Exploring the optimal balance between these two forces remains an open area for future research.
Summary updated