Demographically-Inspired Query Variants Using an LLM

Marwah Alaofi, Nicola Ferro, Paul Thomas, Falk Scholer, Mark SandersonarXiv 2025 · DOI

TL;DR

Traditional Information Retrieval (IR) evaluation relies on a single "generic" query per information need, ignoring the vast diversity of real-world search engine users. This paper introduces a pipeline using GPT-4 to generate demographically-inspired query variants (spanning differences in age, language proficiency, domain expertise, and search modality). Testing these variants across 15 IR systems reveals massive performance disparities, showing that current search engines systematically underserved vulnerable groups like children, domain novices, and non-native speakers.

What Problem Does This Paper Address?

When computer scientists evaluate search engines, they typically use standardized test collections (like those from TREC) where an information need is represented by a single, well-formulated "seed" query. However, real people don't search the same way. A child, a domain expert, a non-native English speaker, or someone using voice search will express the exact same intent using completely different words, lengths, and grammatical structures.

By ignoring this user diversity, standard IR evaluation has a massive blind spot: it cannot tell us if a search system serves all demographics equitably, or how robust a system is to realistic human query variations. The authors address this gap by introducing controlled user diversity directly into the evaluation pipeline.

Methods

The authors developed a structured framework to simulate diverse search behaviors using Large Language Models (LLMs). The experimental pipeline consists of several key stages:

  1. Query Variant Generation: They prompted GPT-4 to transform standard seed queries based on three distinct methods:
  2. Persona-based: Six detailed fictional personas (e.g., "Anne the retired nurse" who prefers voice search, or "Noah the curious child").
  3. User group-based: Eight isolated demographic traits (e.g., Child vs. Senior, Native vs. Non-native, Expert vs. Novice, Mobile vs. Voice).
  4. Textual transformation-based: Baseline linguistic changes independent of demographics (paraphrasing, misspellings, word reordering, and naturality shifts).
  5. Human Validation: They recruited crowdworkers via Prolific to verify that the LLM-generated queries maintained the original search intent (semantic similarity) and realistically matched the intended demographic profile (profile alignment).
  6. System Evaluation: They ran these query variants across 15 diverse IR systems, including traditional lexical models (BM25, TF-IDF), neural re-rankers (BERT, ColBERT, monoT5), and dense retrieval models (ANCE).
  7. LLM-based Relevance Labeling: Because the new query variants retrieved documents outside the original human-judged pool, the authors used GPT-4o to generate 146,000 high-quality relevance labels, validating its accuracy against a subset of human judgments from the National Institute of Standards and Technology (NIST).

An overview of this entire experimental pipeline is illustrated below:

Figure 1: An overview of the experiment pipeline and the research questions.

Datasets

  • Seed Queries: Sourced from the passage retrieval tasks of the TREC Deep Learning Track 2021 (DL21 - 53 queries) and 2022 (DL22 - 76 queries).
  • Corpus: The expanded MS MARCO v2 dataset, containing 138 million passages.
  • New Benchmarks Released: A dataset of approximately 7,000 demographically-inspired query variants, alongside 146,000 query-passage relevance labels generated by GPT-4o (with 13,000 pairs also human-judged by NIST to ensure evaluation reliability).

Key Insights and Ideas

  • LLMs as High-Fidelity User Simulators: Without explicit rule-tuning, GPT-4 successfully captured demographic nuances. For instance, child profiles naturally generated simpler vocabulary with lower readability grades and realistic misspellings, while voice search profiles generated longer, conversational sentences.
  • The "Generic Query" Bias: Standard IR evaluation overestimates how well search engines actually perform for the general public. Current systems are heavily optimized for clean, keyword-dense queries, masking severe performance drops for non-standard formulations.
  • System Ranking Instability: Introducing user profiles changes the relative ranking of IR systems (Kendall’s $\tau$ dropped to between 0.69 and 0.77 across profiles). A retrieval model that appears superior when evaluated on generic queries might actually underperform a competitor when faced with mobile or non-native user queries.

Key Results

  • High Validation Accuracy: Human annotators confirmed that the LLM variants maintained high semantic similarity (>90% consensus for most profiles) and successfully aligned with their target demographics.
  • The Equity Gap: There is a stark performance disparity across user groups. The "Child", "Non-native", and "Novice" profiles experienced significantly lower retrieval effectiveness (measured via NDCG@10) across virtually all 15 systems compared to the standard seed queries.
  • Winners and Losers: Conversely, "Expert" profiles (who use precise, domain-specific terminology) and "Mobile" profiles (who use concise keyword lists) frequently achieved higher retrieval effectiveness than the baseline generic queries.

The specific demographic traits and transformation rules used to uncover these performance gaps are detailed in the authors' profile taxonomy:

Figure 2: Transformation profiles and example descriptions.

Limitations and Future Work

  • Standardized Relevance Assumption: The study assumes a single definition of document relevance for all users based on a standard "backstory." In reality, a document that satisfies a domain expert might completely confuse a child or a novice. Future work should explore personalizing the relevance labels to match the user profile.
  • Hypothetical Profiles: The profiles used are non-exhaustive templates derived from existing IR literature and may not fully capture the intersectional complexities of real human searchers.
  • Ethical Risks: The authors caution that using LLMs to simulate demographic groups carries the inherent risk of reinforcing harmful cultural stereotypes or biases present in the training data.

Summary updated

BibTeX
@misc{alaofi2025demographically,
  author = {Marwah Alaofi and Nicola Ferro and Paul Thomas and Falk Scholer and Mark Sanderson},
  title = {{Demographically-Inspired Query Variants Using an LLM}},
  year = {2025},
  eprint = {2508.17644},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2508.17644},
}
Figure