TL;DR
This paper demonstrates that how you preprocess data for fine-tuning Large Language Models (LLMs) in recommendation tasks significantly impacts both their accuracy and their sensitivity to demographic information. By combining catalog-constrained decoding with specific data-level interventions—like item-title formatting and auxiliary knowledge enrichment—the authors show that "technical" data prep choices are actually consequential design decisions that can improve utility and reduce demographic bias.
What Problem Does This Paper Address?
While LLMs are increasingly used for generative recommendation (e.g., "Based on my history, what should I watch next?"), they face three major hurdles:
- Output Validity: LLMs often "hallucinate" items that don't exist in the product catalog or produce malformed lists.
- Prompt Sensitivity: Minor changes in how a request is phrased can lead to wildly different recommendations.
- Demographic Sensitivity: Models may change their recommendations based on sensitive user attributes (like age or gender) even when the interaction history remains the same, raising fairness concerns.
The authors investigate whether these issues can be mitigated at the preprocessing stage of fine-tuning, rather than relying solely on complex algorithmic fairness constraints or inference-time fixes.
Methods
The authors established a controlled experimental pipeline (see Figure 1) using Llama-3-8B-Instruct as the base model.
Key technical components include:
- Catalog-Constrained Decoding: To prevent the model from recommending non-existent items, they used a prefix-tree (trie). Once the model generates a "start-of-item" token, it is forced to follow paths that correspond to valid titles in the catalog (see Figure 2).
- Prompt Augmentation: To ensure the model isn't brittle to phrasing, they fine-tuned it using 37 different instruction templates (e.g., "Direct request" vs. "Preference framing").
- Three Preprocessing Interventions:
- Item-Title Representation: Comparing "Original" titles (e.g., Matrix, The (1999)) vs. "Normalized" titles (e.g., The Matrix (1999)).
- Demographic Balancing: Re-sampling the training data so that different age or gender groups are represented equally.
- Knowledge Enrichment: Adding auxiliary Question-Answering examples about movie genres and plots to the fine-tuning mix.
Datasets
The study uses the classic MovieLens-1M dataset, which contains ~1 million ratings from 6,040 users across 3,883 movies.
- Preprocessing: They filtered for users with at least 22 positive interactions to ensure enough data for a 10-item history and 10-item target list.
- Splits: A chronological split was used (earlier items for training, the second-to-last for validation, and the last for testing).
- Metadata: Movie genres and plot summaries (from TMDB) were used for the knowledge enrichment task.
Key Insights and Ideas
- Title Formatting is Not a Detail: Moving "The" to the front of titles (normalization) actually hurt performance. Why? It creates a massive "bottleneck" in the prefix tree where nearly 20% of the catalog starts with the same token, making it harder for the model to distinguish between items early in the generation process.
- Fairness Interventions are Attribute-Dependent: "Balancing" the data worked well for age, reducing utility gaps between younger and older users. However, for gender, balancing actually reduced overall utility without significantly improving fairness metrics. This suggests that "one-size-fits-all" data balancing is insufficient.
- Knowledge as a "Fairness-Lite" Tool: Simply teaching the model more about the items (via genre/plot QA) reduced the utility gap between demographic groups. This is a powerful finding: improving the model's domain knowledge can naturally lead to more equitable outcomes without needing an explicit fairness objective.
- Reliability Requires Constraints: Supervised fine-tuning (SFT) alone is terrible at following list-length constraints. Only 0.06% of the standard SFT outputs had exactly 10 items. Catalog-constrained training brought this to 100%.
Key Results
- Utility Boost: Using original MovieLens titles increased the Hit Ratio@10 (HR@10) from 10.67% to 12.47% and improved catalog coverage from 41.36% to 47.88%.
- Output Control: The catalog-constrained pipeline achieved 0% out-of-catalog items and 100% compliance with the requested list length.
- Prompt Robustness: Prompt augmentation reduced the "HR Spread" (the difference in performance across different phrasings) from 2.18 to just 0.26 percentage points.
- Fairness: Knowledge enrichment reduced the "Neutral Gap" (the utility difference between groups) for gender from 0.45 to 0.10 and for age from 0.69 to 0.32.
Limitations and Future Work
- Single Dataset: The findings are currently limited to MovieLens-1M. The authors note the need to test on other domains (e.g., e-commerce or news).
- Binary Demographics: The study treats age and gender as binary attributes, which does not capture the full spectrum of user identity.
- Knowledge Corpus Size: The "Knowledge Enrichment" condition added more total examples to the training set; future work should control for the total number of training steps to see if the benefit comes from the type of data or just more data.
- Beyond Titles: While titles were the focus here, other item identifiers (like IDs or codes) might interact differently with constrained decoding.
Summary updated