Task-Aware Automated User Profile Generation for Recommendation Simulation Using Large Language Models

Xinye Wanyan, Chenglong Ma, Danula Hettiachchi, Ziqi Xu, Jeffrey Chan

TL;DR

While Large Language Model (LLM)-based user simulation is revolutionizing recommender system evaluation, existing frameworks rely on rigid, manually engineered user profiles. This paper introduces APG4RecSim, a training-free, automated framework that extracts, consolidates, and causally maps user traits directly from raw interaction data. It significantly improves simulation realism, boosting ranking quality by up to 7% and reducing rating distribution divergence by 8% across multiple LLM backbones.

What Problem Does This Paper Address?

Evaluating modern recommender systems (RS) traditionally requires live user interactions, which are costly, slow, and logistically challenging. LLM-powered agents offer a dynamic alternative by simulating user behavior within virtual environments. However, an agent is only as realistic as its underlying profile.

Currently, researchers rely on manually defined, static attribute schemas (e.g., classifying users into rigid roles like "critic" or "explorer"). This creates an information bottleneck: it fails to capture latent or evolving user traits, struggles to generalize across different domains (e.g., shifting from movie streaming to e-commerce), and often leads to behavioral misalignment where the simulated agent doesn't actually act like the real user it represents.

Methods

The authors propose APG4RecSim (Automated Profile Generation for Recommendation Simulation), a three-stage, training-free pipeline designed to turn raw interaction histories into task-executable agent profiles:

  1. Initialisation & Extraction: To maximize recall and capture latent preferences, the framework runs multiple parallel extraction passes ($N=3$) over a user's raw interaction history (logs, reviews, ratings), generating an over-complete, raw pool of attributes.
  2. Context-Aware Semantic Consolidation: The raw attributes are deduplicated and grounded into canonical descriptors aligned with the specific dataset schema and target task context.
  3. Causal Mapping & Refinement: Traits are mapped to specific nodes in a task decision path (e.g., filtering, ranking, rating). Crucially, the framework uses a counterfactual relevance test—minimally perturbing a trait to see if it actually changes the agent's simulated decision—to prune irrelevant traits and ensure the final profile is highly actionable.
Overview of the APG4RecSim framework

Datasets

The framework was evaluated using a standard 80/20 train/test split on three widely used public recommendation benchmarks:

  • MovieLens-1M (ML-1M): Movie ratings and metadata.
  • Amazon-Book: E-commerce book interaction data.
  • Amazon-Beauty: E-commerce beauty product interactions.

Key Insights and Ideas

  • The "Safe" Rating Trap: Without structured profiles, LLM agents tend to default to safe, neutral ratings (mostly 3–5 stars). While this keeps individual point-wise errors (RMSE) low, it completely fails to replicate the diverse, population-level rating distributions of real users. Explicit profiling unlocks realistic preference expression.
  • Fragility of Raw History: Simply stuffing raw interaction history into an LLM prompt makes the agent highly volatile and sensitive to context length (suffering from both "cold-start" and "lost-in-the-middle" effects). APG4RecSim's structured profiles decouple simulation quality from history length.
  • Mitigating Position and Popularity Biases: Standard LLMs are highly susceptible to position bias (preferring top-ranked items) and popularity bias. Mapping traits to explicit causal decision paths forces the agent to evaluate items based on semantic alignment rather than superficial presentation cues.

Key Results

  • Superior Behavioral Alignment: APG4RecSim achieved the best overall performance across discrimination, ranking, and rating tasks on all three datasets.
  • Quantitative Gains: Compared to existing baselines (like RecAgent and Agent4Rec), it improved ranking quality by up to 7% in nDCG@10 and reduced macro-level rating distribution divergence by 8% in Jensen-Shannon Divergence (JSD).
  • LLM Agnostic: The framework demonstrated excellent generalizability, showing consistent performance gains across proprietary and open-weight models alike, including GPT-4o-mini, Llama-3.3-70B-Instruct, and DeepSeek-V3.2.
Evaluation results showing rating distributions and robustness to history length, position, and popularity biases

Limitations and Future Work

  • Parametric Priors: LLMs often memorize popular benchmark datasets (like MovieLens) during pre-training. This means their simulation behavior might stem from internal dataset-specific priors rather than the generated profile. Future work needs to incorporate stronger controls, like item anonymization or purely synthetic datasets.
  • Isolation from Agent Architecture: APG4RecSim intentionally isolates profile generation to evaluate its quality cleanly. Integrating these profiles into end-to-end systems with long-term memory and complex planning modules remains an open direction.
  • Stochastic Counterfactuals: The causal mapping phase relies on LLM-based counterfactual reasoning, which introduces inherent model stochasticity. Incorporating lightweight statistical causal estimators could stabilize profile refinement.

Summary updated

BibTeX
@inproceedings{wanyan2026task,
  author = {Xinye Wanyan and Chenglong Ma and Danula Hettiachchi and Ziqi Xu and Jeffrey Chan},
  title = {{Task-Aware Automated User Profile Generation for Recommendation Simulation Using Large Language Models}},
  booktitle = {International ACM SIGIR Conference on Research and Development in Information Retrieval},
  year = {2026},
  doi = {10.1145/3805712.3809707},
}
Figure