arXiv:2610.37962cs.IROct 2026

Manuscript Offprint

arXiv:2610.37962

Statistical Detection of Positional Bias in LLM-Based Recommender Systems: Methodologies and Empirical Evidence

Carlos Peláez-González, Francisco Herrera, Andrés Herrera-Poyatos

ABSTRACT

Large Language Models (LLMs) are increasingly used as recommendation generators in conversational recommender systems (RS) via retrieval-augmented generation (RAG). This flexible design introduces new sources of structural bias. This paper studies positional bias in top-1 and single-turn LLM-based RS: systematic dependence of the recommended item on the order in which candidates are presented in the prompt. We propose two complementary detection methodologies: (i) POB-ICM, based on contingency matrix analysis and Chi-square independence testing, and (ii) POB-UNBP, a sample-efficient approach derived from a uniformity null model under permutation-based evaluation, enabling stochastic decoding with formal statistical guarantees. Using a controlled RAG testbed for product recommendation, built on a real product catalog, a fixed prompt template and 2000 template-generated user queries with 20 permutations each (40,000 instances), both methodologies reject the null hypothesis of positional independence and uniformity in all evaluated state-of-the-art models. We introduce three complementary metrics — permutation sensitivity, positional bias, and strong positional bias — to quantify this effect, the latter targeting cases where the position displaces the recommendation towards clearly less relevant items rather than only choosing among comparably relevant ones. A robustness analysis across candidate-set size and decoding temperature shows that the bias is structural and model-dependent, not an artifact of deterministic decoding or candidate-set size. These results establish positional bias as a measurable, reproducible property of prompt-mediated recommendation pipelines in the evaluated setting and motivate routine auditing and governance controls (e.g., order randomization, standardized prompting) for deployed LLM-based RS. Source code is publicly released¹.

Keywords Large language models · conversational recommender system · positional bias

1 Introduction

Recommender systems (RS) are a core component of modern digital platforms, supporting users in navigating and filtering large volumes of information. By modeling user preferences and item characteristics, RS aims to deliver relevant and personalized recommendations across domains such as e-commerce, media consumption, and information retrieval. Despite substantial progress, RS remain susceptible to a range of biases that can affect both the reliability and the consistency of their outputs. Previous work has documented several forms of bias—including exposure bias, popularity bias, and positional bias—that can emerge at different stages of the recommendation pipeline and propagate through system components, ultimately shaping the user experience in unintended ways [3]. Understanding,

¹https://github.com/GoComputing/Positional-Bias.git

A PREPRINT

measuring, and mitigating such biases is, therefore, essential for ensuring transparent and reliable recommendation behavior.

In parallel, Large Language Models (LLMs) have recently emerged as a powerful paradigm for building intelligent systems. Trained in large-scale corpora using self-supervised objectives, LLMs exhibit a wide range of emergent capabilities, including question answering, reasoning, and decision-making [19]. This has led to a shift from traditional model training toward prompt-based interaction, where system behavior is largely determined by how information is presented in natural language form. As a consequence, LLMs are increasingly being adopted as central components in RS, particularly in conversational settings.

A common design for LLM-based RS is based on a retrieval-augmented generation (RAG) architecture [5]. In this setting, a retriever first computes semantic similarity scores between a user query and a collection of candidate items using an embedding model. The top-kk most relevant items are then selected and inserted into a prompt, together with the user query, which is provided to the LLM. Based on this prompt, the LLM produces a recommendation, typically by selecting or describing one of the candidate items. This architecture decouples retrieval from generation while allowing the LLM to reason over a constrained candidate set.

The increasing adoption of LLMs within information systems has been identified as a major research frontier in the Information Systems (IS) community. Recent work emphasizes that generative AI systems introduce new forms of socio-technical risk, requiring systematic analysis of their behavioral properties, reliability, and governance when deployed in real-world organizational settings [21]. In this context, understanding how design choices in prompt-mediated systems affect model behavior is critical to advance both theory and practice in LLM-enabled information systems.

However, LLM-based RS operate largely as black boxes. Although the retriever stage is often well understood and explicitly optimized, the final recommendation decision is made by the LLM through implicit reasoning over a sequential text prompt. As a result, unintended behaviors may arise that are not directly related to user preferences or item relevance. These behaviors are not necessarily associated with socially sensitive attributes such as gender or race but instead stem from subtle interactions between prompt structure and model internals. Ideally, a recommendation should depend only on the semantic relationship between the user query and the candidate items. In practice, additional latent variables may influence the outcome.

One such variable is the position of candidate items within the prompt. Because text is inherently sequential, the retrieved items must be presented in a specific order. This ordering introduces positional information that is not semantically meaningful, but can nevertheless affect the LLM's output. When the probability of recommending an item depends on its position in the input list rather than solely on its relevance, the system exhibits positional bias. Although positional bias has been extensively studied in traditional RS and user interfaces, its manifestation and measurement in LLM-based RS remain unstudied.

In this work, we focus on the measurement and statistical characterization of positional bias in top-1 and single-turn LLM-based RS, where the model recommends a single item from the retrieved candidates in one conversational turn. Rather than proposing mitigation strategies, our objective is to rigorously determine whether positional bias is present, how it can be detected, and how strong its effects are under controlled experimental conditions. To structure this investigation, we formalize the following research questions:

RQ1: Does output selection in LLM-based RS depend on the position of candidate items within the input prompt?

RQ2: Is any observed dependence between item position and model output statistically significant under permutation-based testing?

RQ3: How large is the positional bias, and does its magnitude vary across models?

To address these questions, we propose two complementary statistical methodologies for positional bias detection. The first, Positional Bias detection based on Independence of the Contingency Matrix (POB-ICM), models the relationship between input positions and output selections as a contingency table and evaluates whether these variables are statistically independent. Under the null hypothesis of no positional bias, the distribution of recommended items should be independent of their input positions. Violations of this assumption are assessed using a query-level permutation test of independence that allows both detection and interpretation of positional bias.

The second methodology, Positional Bias detection based on Uniformity assuming Non-Biased Positions (POB-UNBP), is designed to reduce sample complexity by leveraging a stronger null assumption. Specifically, in the absence of positional bias, on expectation over all the possible queries, the probability of recommending the item at a given position is uniform. By repeatedly permuting the order of candidate items and analyzing the resulting recommendation distributions, this method enables efficient detection of systematic positional preferences while requiring fewer sam-

A PREPRINT

ples than full contingency-based testing. Together, these methodologies provide a principled and statistically grounded framework for evaluating positional bias in LLM-based RS.

Using these approaches, we conducted an empirical study on state-of-the-art LLMs embedded within a RAG-based RS for product recommendation, built on a real product catalog with template-generated user queries and a fixed prompt template. Our experiments reveal statistically significant positional bias, demonstrating that item order can systematically influence recommendation outcomes even when item relevance is kept constant. We complement these statistical tests with three proposed metrics. Permutation sensitivity metric evaluates how the model changes its decision on permutation changes, so it is an upper bound of positional bias. Positional bias metric measures the total variation distance between the uniform distribution and the distribution of positions of items selected by the RS, as deviation from the uniform distribution indicates a systematic preference for certain positions. Finally, the strong positional bias metric builds on relevance sets, the query-dependent sets of candidate items that the model treats as comparably relevant. Relevance sets decompose the overall positional bias detected by our methodologies into soft positional bias, where the position determines which item of the relevance set is recommended, and strong positional bias, where the position displaces the recommendation outside the relevance set, which this metric quantifies. In summary, the main contributions of this paper are as follows:

  1. We introduce POB-ICM, a statistically grounded methodology for detecting and interpreting overall positional bias in LLM-based RS based on contingency matrix independence.

  2. We propose POB-UNBP, a sample-efficient positional bias detection methodology based on uniformity assumptions under the absence of positional bias, which allows for stochastic decoding, and complement it with two quantification metrics (permutation sensitivity and positional bias) that disentangle generic permutation sensitivity from structural positional preference.

  3. We decompose overall positional bias into soft and strong positional bias through query-dependent relevance sets, quantify the strong component, and show through counterfactual analyses that it is not explained by the identifiers assigned to the items and, for six of the eight evaluated models, not by stochastic decoding alone. The formal detection of each component separately is left as future work.

  4. We implement and evaluate an end-to-end experimental framework to assess positional bias in LLM-based RS using a RAG architecture in a single-turn product recommendation setting, including a systematic robustness analysis across candidate-set size kk and decoding temperature tt on eight state-of-the-art LLMs, showing that positional bias is a structural, model-dependent property rather than an artifact of deterministic decoding or candidate-set size.

The empirical results indicate that positional bias is a systematic and statistically detectable factor in LLM-based recommender systems implemented under an RAG pipeline, within the evaluated setting. Across permutation-based evaluations, both proposed methodologies (POB-ICM and POB-UNBP) reject the null hypothesis that recommendation outcomes are independent of the positional placement of candidate items within the prompt in all evaluated models, and the resulting selection distributions exhibit structured, non-uniform positional bias with certain prompt positions associated with reliably elevated selection probabilities.

The remainder of this paper is organized as follows. In section 2 we review related work on positional bias and related phenomena in RS and language models. In section 3 we describe the system design, formal modeling, and the proposed POB-ICM and POB-UNBP methodologies. The experimental setup and empirical results are presented in section 4. Finally, section 5 discusses the implications of our findings, limitations, and directions for future work.

References (28)