BASES: Large-scale Web Search User Simulation with Large Language Model based Agents

Ruiyang Ren, Peng Qiu, Yingqi Qu, Jing Liu, Xin Zhao, Hua Wu, Ji-Rong Wen, Haifeng Wang

Abstract

Understanding user search behavior is critical for Information Retrieval (IR), yet researchers often face a "data desert" due to privacy regulations and the obsolescence of public datasets. This paper presents BASES (Large-scale Web Search User Simulation), a framework that leverages Large Language Model (LLM) agents to act as "digital twins" for diverse user personas. By synthesizing detailed profiles and employing behavioral prompting, BASES generates high-fidelity synthetic search logs. Experimental results demonstrate that models trained on BASES-generated data outperform those trained on legacy real-world datasets, achieving significant performance boosts. We also introduce WARRIORS, a dataset of 100,000 simulated search sessions.

Introduction

The field of Information Retrieval relies heavily on search logs to understand intent and improve ranking. However, real-world logs are often inaccessible due to privacy concerns (e.g., GDPR), and existing public datasets like the AOL logs are nearly two decades old, failing to reflect modern natural language search patterns. Human-centric experiments, while valuable, are costly and difficult to scale across diverse demographics. BASES addresses these challenges by using LLMs to simulate a vast array of user behaviors at scale.

Methodology: The BASES Framework

The BASES framework operates through three core stages designed to ensure diversity, consistency, and realism in simulated behaviors.

Synergistic Profile Synthesis

To move beyond generic personas, BASES defines a structured profile system comprising eight attributes. These are divided into four static attributes (Age, Gender, Education, Career) and four dynamic attributes (Personality, Interest, Location, Wealth). By combining human-defined categories with GPT-4's generative capabilities, the framework produces thousands of unique, logically consistent values (e.g., ensuring a Ph.D. holder is of an appropriate age).

Figure 1: The BASES framework utilizes eight static and dynamic attributes to synthesize detailed and diverse user profiles.

Behavioral Prompting and Interaction

To ensure agents act realistically, BASES employs specialized prompting strategies:

  • Query Behavior Prompting: Guides agents to generate concise queries and decide when an information need is satisfied.
  • Click Behavior Prompting: Requires agents to evaluate search results against their specific profile, providing a rationale for each click to enhance "human-likeness."

Agents (powered by GPT-3.5-Turbo) then interact with modern search engines in multi-round sessions, mimicking iterative search refinement.

The WARRIORS Dataset

A major contribution of this work is the WARRIORS (Web seARch useR behavIORS) dataset. It contains 100,000 search sessions across both Chinese and English, including detailed user profiles, queries, top-10 search results with snippets, and click records. This represents a modern, large-scale alternative to aging IR benchmarks.

Experimental Results

The effectiveness of BASES was evaluated by training BERT models on synthetic data and testing them against established benchmarks like TREC-Session, AOL, and Tiangong-ST.

Performance Gains

Models trained on BASES-generated data consistently outperformed those trained on much larger, older real-world datasets. For instance, on the English benchmark, a BERT model trained on 10,000 BASES sessions achieved an NDCG@1 of 20.33, significantly higher than the 16.07 achieved by a model trained on over 200,000 AOL sessions. This "modernity advantage" suggests that LLM agents better capture contemporary search habits.

Figure 2: Comparison of BASES against various baselines across Session Search and Click Prediction tasks.

Human Consistency and Granularity

Side-by-side comparisons revealed a 90% consistency rate between LLM agents and real human query behaviors. Furthermore, the simulation proved sensitive to granular profile changes; altering a single attribute, such as personality, led to distinct search trajectories, demonstrating the LLM's ability to model subtle nuances in intent.

Conclusion

BASES demonstrates that LLM-based simulation is a viable and powerful solution to the data scarcity problem in IR. By generating high-quality synthetic data that reflects modern search contexts, researchers can train more effective models without the privacy risks or costs associated with real-world data collection. Future work will explore sociological applications and the expansion of this framework to other digital interaction domains like e-commerce.

Summary updated

BibTeX
@inproceedings{ren2024bases,
  author = {Ruiyang Ren and Peng Qiu and Yingqi Qu and Jing Liu and Xin Zhao and Hua Wu and Ji-Rong Wen and Haifeng Wang},
  title = {{BASES: Large-scale Web Search User Simulation with Large Language Model based Agents}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2024},
  doi = {10.18653/v1/2024.findings-emnlp.50},
}
Figure