Shop-R1: Rewarding LLMs to Simulate Human Behavior in Online Shopping via Reinforcement Learning

Yimeng Zhang, Ziyi Wang, Yuxuan Lu, Simon Sinong Zhan, Dakuo Wang · DOI

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 Shop-R1 framework architecture, showing the integration of SFT and RL with hierarchical reward feedback.

The core of Shop-R1 is its hybrid reward design:

  1. Format Reward: A binary signal that ensures valid, parseable JSON output.
  2. 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.
  3. Hierarchical Action Reward: Provides granular feedback by rewarding the correct action type (e.g., "click") and specific sub-action attributes (e.g., button names).
  4. 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.

Comparative performance metrics for Shop-R1 against various baselines across different model scales.

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

Abstract

Large Language Models (LLMs) have recently demonstrated strong potential in generating ‘believable human-like’ behavior in web environments. Prior work has explored augmenting training data with LLM-synthesized rationales and applying supervised fine-tuning (SFT) to enhance reasoning ability, which in turn can improve downstream action prediction. However, the performance of such approaches remains inherently bounded by the reasoning capabilities of the model used to generate the rationales. In this paper, we introduce Shop-R1, a novel reinforcement learning (RL) framework aimed at enhancing the reasoning ability of LLMs for simulation of real human behavior in online shopping environments. Specifically, Shop-R1 decomposes the human behavior simulation task into two stages: rationale generation and action prediction, each guided by distinct reward signals. For rationale generation, we leverage internal model signals (e.g., logit distributions) to guide the reasoning process in a self-supervised manner. For action prediction, we propose a hierarchical reward structure with difficulty-aware scaling to prevent reward hacking and enable fine-grained reward assignment. This design evaluates both high-level action types and the correctness of fine-grained sub-action details (attributes and values), rewarding outputs proportionally to their difficulty. Experimental results show that our method achieves a relative improvement of over 65% compared to the baseline.
BibTeX
@inproceedings{zhang2026shop,
  author = {Yimeng Zhang and Ziyi Wang and Yuxuan Lu and Simon Sinong Zhan and Dakuo Wang},
  title = {{Shop-R1: Rewarding LLMs to Simulate Human Behavior in Online Shopping via Reinforcement Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2026},
  url = {https://openreview.net/forum?id=fkIePp9YEO},
}
Figure