Beyond Believability: Accurate Human Behavior Simulation with Fine-Tuned LLMs

Yuxuan Lu, Jing Huang, Yan Han, Bennet Bei, Yaochen Xie, Dakuo Wang, Zheshen Jessie Wang, Qi He · DOI

Abstract

While Large Language Model (LLM) agents can simulate human-like interactions, they often fail to replicate the nuanced, iterative processes of real human behavior. This paper addresses the "behavioral accuracy" gap in online shopping simulations. By introducing a process-centric benchmark and a fine-tuning pipeline utilizing synthesized reasoning traces, the authors demonstrate that models can be trained to move beyond efficient task completion toward realistic human-like exploration and session termination.

Introduction

In the development of LLM agents, evaluations typically focus on whether an agent successfully completes a task (e.g., purchasing an item). However, for applications like UI/UX testing or social science simulations, the path taken is as important as the destination. Humans are often exploratory, prone to errors, and likely to abandon sessions—behaviors that standard "goal-oriented" LLMs struggle to mimic. This research investigates whether fine-tuning can bridge the gap between AI roleplay and the messy reality of human interaction.

Methodology

The researchers framed human behavior simulation as a Next Action Prediction task. The core of their approach involves a specialized fine-tuning pipeline designed to capture the underlying logic of human actions.

The fine-tuning pipeline: Context and synthesized reasoning traces are used to train the LLM to predict the next human action.

The pipeline consists of three main components:

  1. Simplified HTML Context: Webpages are converted into a clean HTML format with natural language identifiers for interactable elements.
  2. Synthesized Reasoning Traces: Since raw clickstream data lacks intent, Claude 3.5 Sonnet was used to generate synthetic reasoning for each human action, providing a "thought process" for the model to learn.
  3. Fine-Tuning: Open-source models (Qwen 2.5, Llama 3.2, Mistral) were fine-tuned on these ⟨context, reasoning, action⟩ triplets.

Dataset

The study leverages a massive new dataset of real-world human behavior, comprising 31,865 online shopping sessions from over 3,500 users. Unlike existing benchmarks that prioritize "winning" the task, this dataset captures over 230,000 individual actions, including "irrational" behaviors like repeated failed searches and session terminations without a purchase.

Key Insights: The Efficiency Trap

A primary finding is that out-of-the-box LLMs are "too efficient." While humans frequently search and eventually give up, prompt-based models like DeepSeek-R1 and Claude tend to over-rely on filters and rush toward a purchase.

Comparison of action distributions: Prompt-based models (Claude, DeepSeek) are biased toward product clicks and purchases, while the fine-tuned Qwen model better replicates human search and termination patterns.

As shown in the distribution analysis, humans search approximately 7x more often than they use filters. Prompt-based models fail to capture this exploratory nature, whereas the fine-tuned Qwen2.5-7B model aligns much more closely with the human baseline, particularly in its willingness to terminate sessions.

Results and Discussion

The experimental results confirm that fine-tuning with reasoning traces is superior to simple prompting:

  • Action Accuracy: The fine-tuned Qwen2.5-7B model achieved 17.26% accuracy in predicting the exact next human action, outperforming the best prompt-only baseline by 5.4%.
  • Outcome Prediction: The model showed a 13.85% improvement in F1 score for predicting session outcomes (purchase vs. no purchase).
  • Behavioral Realism: Fine-tuned models significantly reduced errors related to session termination. While In-Context Learning (ICL) models often shop indefinitely to satisfy a prompt, the fine-tuned agents learned when a human would realistically stop.

Conclusion

This work highlights that "believability" is a poor proxy for behavioral accuracy. By shifting the focus to process-centric evaluation and utilizing synthetic reasoning for fine-tuning, we can create agents that truly simulate human behavior. Future work will explore expanding this methodology to other domains and incorporating Reinforcement Learning to further refine agent reasoning.

Summary updated

BibTeX
@misc{lu2025beyond,
  author = {Yuxuan Lu and Jing Huang and Yan Han and Bennet Bei and Yaochen Xie and Dakuo Wang and Zheshen Jessie Wang and Qi He},
  title = {{Beyond Believability: Accurate Human Behavior Simulation with Fine-Tuned LLMs}},
  year = {2025},
  eprint = {2503.20749},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2503.20749},
}
Figure