Authors: Carlos Peláez-González, Francisco Herrera, Andrés Herrera-PoyatosarXiv 2610.37962

Statistical Detection of Positional Bias in LLM-Based Recommender Systems: Methodologies and Empirical Evidence was submitted to arXiv on 2026-10-27 by Carlos Peláez-González, Francisco Herrera, Andrés Herrera-Poyatos. Read it on arXiv or as a PDF.

Key findings

The main takeaway. In prompt-mediated retrieval-augmented recommendation, candidate item placement in the prompt systematically shifts model selection independently of semantic relevance.

The abstract, as written

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.

Key terms

From the paper

The authors define positional bias in terms of output dependence on candidate sequence order.

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.

Statistical tests rejected independence and uniformity across every evaluated model in the benchmark.

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.

The authors distinguish selections between comparable candidates from displacements toward inferior candidates.

Furthermore, we distinguish two components of positional bias: soft positional bias, where the position determines which of several comparably relevant candidates is recommended, and strong positional bias, where the position displaces the recommendation towards clearly less relevant items.

Figures from the paper

The heatmap shows empirical recommendation distributions conditioned on candidate permutations in LLaMA 3.1 8B, highlighting deviations from positional independence.

Figure 4: Contingency matrix from subsection 4.3 , shown as a heatmap. The plot was generated using LLaMA 3.1 8B as reco

Figure from the paper, arXiv:2610.37962, by its authors. Caption as written: Figure 4: Contingency matrix from subsection 4.3 , shown as a heatmap. The plot was generated using LLaMA 3.1 8B as recommender. Each column shows the empirical distribution of recommendations conditioned on a permutation, with permutations sorted lexicographically. Red lines indicate when the first, second, third, fourth, and fifth product are shuffled to the first position, respectively. Consistency was ensured by shuffling products according to the permutation sample, generating the recommendation, and then unshuffling the recommendation positions.

The mean selection counts across prompt positions illustrate model-dependent preferences for specific candidate slots.

Figure 5: Bias analysis given the Equation 3 for different recommender LLMs. For each model, a column of its associated

Figure from the paper, arXiv:2610.37962, by its authors. Caption as written: Figure 5: Bias analysis given the Equation 3 for different recommender LLMs. For each model, a column of its associated heatmap represents the mean of the (non-normalized) counts of selected products by the model when these were moved to the position represented by said column. In the absence of positional bias, all columns would be identical.

What the authors say it means

What to do with it

  1. Randomize the presentation order of retrieved candidate items in the prompt at inference time to prevent retrieval ranks from systematically biasing output selections. Supported by: In the testbed of 2,000 queries and 20 permutations per query (40,000 instances), both statistical tests showed that fixed candidate positions systematically favored specific items across all eight evaluated models.
  2. Run permutation audits on a sample of queries whenever a prompt template or model changes to detect positional bias before deployment. Supported by: Both POB-ICM and POB-UNBP detected statistically significant positional bias across 40,000 evaluation instances on all eight tested models.
  3. Separate evaluations into soft positional bias and strong positional bias to verify whether candidate placement causes models to select less relevant items. Supported by: Counterfactual analyses showed that strong positional bias persisted for six of the eight evaluated models even after controlling for stochastic decoding.

Caveat. The evaluation is restricted to top-1 single-turn product recommendation using a single fixed prompt template, template-generated user queries, and candidate sets from the Amazon ML Challenge 2023 catalog.

In short

This paper introduces statistical tests and metrics to detect positional bias in prompt-based single-turn recommendation systems. Across 40,000 tested instances covering eight large language models, candidate position systematically affected model choices. The findings demonstrate that candidate ordering must be audited and randomized in retrieval-augmented recommendation pipelines.

Read the paper on arXiv →

Written from the paper's own text. Quoted passages are verbatim and the numbers are the authors' own. For the method and full results, read the paper.