TL;DR
This paper introduces CUSTOMER-R1, a novel reinforcement learning (RL) agent that simulates personalized human shopping behavior by conditioning on explicit user personas. It significantly outperforms existing methods in predicting user actions, demonstrating a higher fidelity in capturing individual user preferences and decision-making.
What Problem Does This Paper Address?
Simulating human behavior is crucial for applications in computational social science, psychology, and e-commerce. While Large Language Models (LLMs) have shown promise in generating believable and accurate step-wise behavior simulations, current approaches often produce generic "average-user" policies. These methods fail to account for individual differences in user goals, preferences, and browsing styles, limiting their practical utility. The core problem this paper tackles is how to enable LLM agents to simulate personalized user behavior, moving beyond population-level predictions to capture the nuances of individual decision-making in online shopping.
Methods
The paper introduces CUSTOMER-R1, a reinforcement learning-based method for personalized, step-wise user behavior simulation. The key innovations are:
- Persona Conditioning: The LLM agent's policy is explicitly conditioned on a user's persona (demographics, personality, shopping preferences). This persona information is injected into the prompt to guide the model's decision-making.
- Tailored Reward Design: A two-part reward function is introduced to optimize the agent's performance:
- Action Reward ($R_{action}$): This component rewards the agent for correctly predicting both the action type and all its required attributes (e.g., for a "click" action, the element name must also be correct).
- Format Reward ($R_{format}$): This binary reward ensures the predicted action adheres to a predefined JSON schema, encouraging the generation of rationales before actions.
- Difficulty-Aware Weighting: A weighting function $w(a)$ is used to amplify rewards for correctly predicting rarer, more complex actions, preventing the model from over-optimizing on frequent, simple actions.
- SFT + RL Initialization: The RL training is initialized from a Supervised Fine-Tuning (SFT) checkpoint. This approach leverages the stability of SFT pretraining while benefiting from reward-driven refinement, leading to improved performance and stability.
Datasets
The experiments are conducted on the OPERA-filtered dataset. This dataset is described as the only publicly available real-world dataset for verifiable, step-wise human behavior simulation. It comprises:
- 527 real-world online shopping sessions.
- 5,856 <action, observation> pairs.
- 207 annotated rationales from 49 real users.
The dataset includes rich user interaction logs and annotated persona profiles, which are crucial for training and evaluating personalized behavior simulation.
Key Insights and Ideas
- Persona is Crucial for Personalization: Explicitly conditioning the LLM on user personas significantly improves the fidelity of personalized behavior simulation. Without persona information, the model tends to revert to a more generic heuristic.
- Rationale Supports Precise Reasoning: The generation of intermediate rationales acts as a scaffold, tying local page context to the chosen action and improving the precision of behavior generation.
- SFT + RL Synergy: Combining Supervised Fine-Tuning (SFT) with Reinforcement Learning (RL) offers a powerful paradigm. SFT provides a stable foundation, while RL refines the policy for better action generation and personalization.
- RL Alone Can Lead to "Reward Hacking": Without supervised grounding, RL-only agents can exploit reward signals by favoring frequent actions (like "purchase" or "review") and neglecting less common but important actions (like "input" or "terminate"), leading to unrealistic behavior.
- Context Length Matters: For larger models, increasing the context window length generally leads to improved performance, allowing the model to better retain user intent and historical context.
Key Results
- CUSTOMER-R1 Achieves State-of-the-Art: The SFT+RL setting (CUSTOMER-R1) achieved the highest Next Action Generation Accuracy (39.58%), best Macro F1 score (78.50%), Fine-Grained Type Accuracy (61.20%), and Session Outcome F1 score (79.45%) on the OPERA dataset.
- Significant Improvement over Baselines: CUSTOMER-R1 significantly outperforms zero-shot inference and RL-only baselines. SFT alone also shows substantial improvements over zero-shot and RL, but SFT+RL further boosts performance.
- Persona Impact: Removing persona information from the SFT+RL setting led to notable drops in performance across all metrics, particularly in Session Outcome F1 (79.45% to 59.73%).
- Rationale is Essential: Removing rationales consistently hurt performance across all training regimes, highlighting their importance for step-wise reasoning.
- Model Size and Context: A smaller model (Qwen2.5-3B) performed significantly worse than the 7B model, and increasing context length for the 7B model improved performance.
Limitations and Future Work
- Bias Towards Frequent Actions: Despite gains, the policy still shows a bias towards frequent, simple actions and can under-predict infrequent, user-specific intents.
- Limited Capture of User Satisfaction/Effort: The current reward focuses on correctness and doesn't fully capture user satisfaction or effort.
- Future Work: The authors suggest exploring richer, more localized reward signals, incorporating stronger persona representations, and investigating more advanced integration methods. Future work could also focus on capturing user satisfaction and effort more directly.
Summary updated