Preprocessing Choices in Fine-Tuning Data Matter: Utility and Demographic Sensitivity in LLM-Based Recommendation

Furkan Yasir Goksu, Yaren Yilmaz, Sule Gunduz OguducuarXiv 2026

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:

  1. Output Validity: LLMs often "hallucinate" items that don't exist in the product catalog or produce malformed lists.
  2. Prompt Sensitivity: Minor changes in how a request is phrased can lead to wildly different recommendations.
  3. 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.

Figure 1: Overview of the controlled experimental pipeline.

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:
    1. 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.
Figure 2: Prefix-tree constrained decoding within an item span. After the model emits <SOI>, only tokens that continue a valid catalog path remain available. Invalid continuations are masked, and <EOI> becomes available only after a com- plete catalog-item sequence has been generated.

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

Abstract

Large language models (LLMs) have introduced a generative approach to recommendation, producing item lists from textual representations of user histories and item information. However, this generative setting raises challenges concerning output validity, prompt consistency, and sensitivity to demographic descriptors. In this work, we investigate how preprocessing choices in fine-tuning data affect recommendation utility and fairness-related behavior in a generative LLM-based recommender system. We first establish a controlled recommendation pipeline that combines supervised fine-tuning, catalog-constrained decoding, and prompt augmentation. We then study three preprocessing choices: item-title representation, demographic balancing, and auxiliary item-knowledge enrichment. Experiments on MovieLens-1M show that the catalog-constrained pipeline eliminates out-of-catalog items and ensures complete ten-item outputs, while prompt augmentation improves prompt consistency and utility. Original MovieLens titles increase HR@10 from 10.67% to 12.47% and Coverage@10 from 41.36% to 47.88%. Fairness-related effects are attribute-dependent: age balancing and knowledge enrichment reduce selected group-level utility gaps while largely preserving utility, whereas gender balancing reduces utility without improving the evaluated gender-related indicators. Overall, preprocessing choices in fine-tuning data should be evaluated jointly in terms of utility, output behavior, and demographic sensitivity.
BibTeX
@misc{goksu2026preprocessing,
  author = {Furkan Yasir Goksu and Yaren Yilmaz and Sule Gunduz Oguducu},
  title = {{Preprocessing Choices in Fine-Tuning Data Matter: Utility and Demographic Sensitivity in LLM-Based Recommendation}},
  year = {2026},
  eprint = {2611.03113},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.03113},
}
Figure