arXiv:2610.07544cs.AIOct 2026

Manuscript Offprint

arXiv:2610.07544

A Systematic Investigation of Bias in Large Language Models for Advertising Relevance

Weiwei Wang, Yinchuan Xu, Jialu Gao, Youkow Homma, Jian Jiao

Abstract

Large language models (LLMs) are increasingly used to judge how well an advertisement matches a query, but the fairness of these judgments has received limited attention. We conduct a systematic study of fairness in relevance judgments made by LLMs for queries and advertisements. Our counterfactual framework examines the effects of advertiser identity and possible popularity, input language, and demographic wording. We study GPT-4o as a categorical relevance judge and a Qwen-7B model trained specifically for relevance prediction. The advertiser and language experiments use query and advertisement pairs sampled from real advertising logs. Controlled synthetic queries are used to study demographic associations in employment, housing, and credit. For both models, changing the advertiser identity or input language can alter the relevance assessment. Selected demographic comparisons also show patterns consistent with common stereotypes, particularly those involving gender and occupation. We further study mitigation during model inference and training. The results indicate that its effectiveness depends on whether advertiser information is relevant to the query and how advertiser labels are distributed in the training data. These findings can help advertising practitioners identify fairness risks and develop suitable mitigation methods for LLM relevance systems.

Content Warning: This paper contains examples of potentially offensive content.

1 Introduction

A relevance model estimates how well an advertisement matches a user's query and intent. We study two model settings. GPT-4o assigns each query and advertisement pair a categorical label of good, fair, or bad. A Qwen-7B model trained for relevance prediction instead produces a relevance score. Ideally, these outputs should be determined by the semantic relationship between the query and the advertisement. In practice, they may also be influenced by demographic wording, input language, or the advertiser's name. This sensitivity may affect both the advertisements shown to users and the way advertisers are treated.

Fairness concerns in this setting involve both users and advertisers. Demographic terms in a query may activate stereotypes in consequential domains such as employment, housing, and credit. Users expressing the same intent in different languages may also receive different outcomes. Advertisements with the same content may be judged differently when they display different advertiser names, potentially favoring widely recognized brands over smaller advertisers. Such variation raises fairness concerns when information that does not alter the underlying relevance of the query and advertisement changes the model's judgment.

Existing studies address related aspects of this problem, but largely separate brand fairness from ad-relevance modeling. Research on LLM-based recommender systems has documented popularity and brand-related preferences in movie and product recommendations, including differences between established and lesser-known brands (Lichtenberg et al., 2024; Chu and Hou, 2026). However, these studies examine LLM preferences in recommendation and brand-association tasks rather than the fairness of query-ad relevance judgments. Evaluating fairness in this task helps determine whether factors unrelated to the underlying

*Correspondence to: weiwewang@microsoft.com.

†^{\dagger}Jian Jiao and Youkow Homma led the project.

query-ad match cause the model to treat users or advertisers differently. Such evidence can help advertising practitioners identify potential fairness risks and develop appropriate evaluation and mitigation strategies for LLM-based relevance systems. Separately, recent work has used fine-tuned language models for sponsored search relevance classification (Rokon et al., 2026) and LLM-generated judgments for advertiser keyphrase relevance labeling in large-scale advertising systems (Dey et al., 2025). These studies primarily focus on relevance accuracy, scalable labeling, and operational effectiveness rather than systematically evaluating fairness across users and advertisers.

To our knowledge, this work provides one of the first systematic fairness evaluations of LLM-based query-ad relevance judgments. We apply a unified counterfactual framework to examine advertiser identity and potential popularity related effects, input language sensitivity, and demographic wording. The advertiser and language evaluations use query-ad pairs sampled from real advertising logs, while controlled synthetic queries are used to study demographic attributes that rarely appear explicitly in logged queries. We compare GPT-4o as a general-purpose LLM judge with a fine-tuned Qwen-7B relevance model, allowing us to examine fairness risks across different model types and output formulations. Our mitigation analysis evaluates company name masking during inference separately for queries that target a company and queries that do not. For confidentiality, advertiser names are anonymized for reporting only; the experimental inputs are unchanged. For the Qwen-7B relevance model, we also compare random downsampling of Retailer A examples with rebalancing based on the labels of Retailer A examples in the training data.

Our experiments show that advertiser identity, input language, and demographic wording can affect relevance outputs even when the underlying query intent and advertisement content are kept the same. Both models produce different results across advertisers. In the selected comparisons, two widely recognized advertisers, Retailer A and Job Platform A, generally receive more favorable outcomes, although the results do not show a strict ranking based on advertiser popularity. Semantically equivalent inputs in different languages also lead to different outcomes in both models. Selected demographic comparisons show patterns consistent with common stereotypes, particularly those involving gender and occupation. Together, these findings reveal fairness risks in judgments made by a general language model and in predictions from a model trained specifically for relevance.

In the mitigation experiments, removing company names has little effect on Qwen-7B performance when queries do not target a company, but lowers performance when they do. The GPT-4o experiment, which was conducted once, shows no observed loss in aggregate accuracy after company names are removed. In the training data experiment, rebalancing Retailer A examples according to their labels reduces Retailer A's relative advantage, while randomly removing Retailer A examples does not have the same effect. These findings support the use of query intent to determine when company names should be masked, as well as targeted changes to the distribution of labels in the training data.

Our main contributions are as follows:

  • We introduce a unified counterfactual framework for evaluating advertiser identity and popularity, input language, and demographic bias in LLM-based query-ad relevance judgments. The framework supports both categorical judgments from general-purpose LLMs and relevance probabilities from fine-tuned models.

  • We conduct a multi perspective fairness evaluation of GPT-4o and fine-tuned Qwen-7B. The advertiser and language experiments are grounded in query-ad pairs sampled from real advertising logs, while controlled synthetic counterfactuals are used to examine demographic associations in employment, housing, and credit.

  • We evaluate two practical mitigation strategies. The first masks company names during inference, and the second rebalances the training data. We examine masking separately for queries that target a company and queries that do not. We also compare random downsampling with rebalancing based on the training labels.