Abstract
Simulating believable human behavior in complex online environments is a significant challenge for Large Language Models (LLMs). While Supervised Fine-Tuning (SFT) provides a baseline, it is often limited by the quality of teacher-generated rationales and prone to "reward hacking." We present Shop-R1, a reinforcement learning (RL) framework designed to improve human-like shopping simulations. By employing a hierarchical reward system and Difficulty-Aware Reward Scaling (DARS), Shop-R1 achieves a 65% relative improvement in action prediction accuracy over standard SFT.
Introduction
While LLMs excel at instruction following, simulating the non-deterministic and nuanced behavior of human shoppers remains difficult. Human shopping involves exploratory browsing, review checking, and multi-step reasoning that standard training data often fails to capture. Previous attempts relied heavily on SFT using rationales from "teacher" models like Claude. However, these models are capped by the teacher's reasoning quality. Furthermore, standard RL in these environments often suffers from sparse rewards and "reward hacking," where models learn to perform simple, low-effort actions (like terminating a session) to avoid negative feedback rather than completing complex tasks.
Methodology
Shop-R1 treats human behavior simulation as a two-stage process: Rationale Generation followed by Action Prediction. The framework utilizes Group Relative Policy Optimization (GRPO) to optimize the model without a separate, heavy reward model.
The core of Shop-R1 is its hybrid reward design:
- Format Reward: A binary signal that ensures valid, parseable JSON output.
- Self-Certainty Reward: Uses the KL divergence between the model’s output distribution and a uniform distribution as a proxy for reasoning quality, rewarding the model for internal confidence.
- Hierarchical Action Reward: Provides granular feedback by rewarding the correct action type (e.g., "click") and specific sub-action attributes (e.g., button names).
- Difficulty-Aware Reward Scaling (DARS): To counter reward hacking, DARS amplifies rewards for complex, high-entropy actions like search queries. This makes difficult tasks more "economically" attractive to the model than simple navigation or termination.
Experimental Setup
The researchers evaluated Shop-R1 using two primary datasets:
- SHOP-CART: A large-scale dataset of 52,137 real-world shopping sessions (176,949 training examples).
- OPeRA: A public dataset of 692 human web-shopping sessions used to test cross-environment generalization. Initial "cold start" rationales were generated using Claude 3.5 Sonnet to provide a baseline for SFT.
Key Results
Shop-R1 demonstrated substantial improvements over SFT and zero-shot baselines. As shown in the table below, the 3B model variant achieved an exact match accuracy of 27.72%, compared to 16.76% for the SFT baseline.
Beyond raw accuracy, the framework showed remarkable stability and generalization. On the OPeRA dataset, Shop-R1 nearly doubled the exact action accuracy of the SFT baseline (38.44% vs 20.23%), indicating that the learned behaviors are not merely over-fitted to a single platform's layout. Analysis of model scaling revealed that larger models (3B) are significantly better at handling high-entropy actions like typing search queries, whereas smaller models primarily improve on basic navigation.
Discussion and Conclusion
The success of Shop-R1 highlights several critical insights for behavioral simulation. First, rewarding internal model confidence (self-certainty) is a viable proxy for high-quality reasoning when ground-truth human thoughts are unavailable. Second, addressing the "terminate trap" through difficulty-aware scaling is essential for maintaining behavioral diversity.
However, limitations remain. Context window constraints often force the use of simplified HTML, which can omit crucial interaction history. Additionally, while self-certainty improves stability, it does not guarantee semantic truth. Future work will focus on moving toward live, interactive RL environments to achieve even higher fidelity in human behavior simulation.
Summary updated