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
- In a testbed with 2,000 template-generated queries and 20 candidate permutations per query (40,000 instances total), both proposed statistical tests rejected the null hypothesis of positional independence in all eight evaluated models.
- The evaluated systems produced non-uniform selection distributions, where specific candidate positions in the prompt had consistently elevated selection probabilities.
- Permutation changes altered recommendations such that strong positional bias displaced selections outside the set of comparably relevant candidates in the tested models.
- Counterfactual analyses showed that strong positional bias persisted when controlling for candidate identifiers and persisted for six of the eight evaluated models under stochastic decoding.
- In robustness analyses varying candidate set size and decoding temperature, positional bias remained present across the evaluated models.
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
- Positional bias: The systematic dependence of a model’s recommendation decision on the ordinal position of candidate items within the sequential input prompt.
- POB-ICM: A statistical detection method that evaluates whether input positions and model recommendations are independent using contingency table analysis and Chi-square testing.
- POB-UNBP: A detection method based on a null hypothesis of uniform selection probability across positions under candidate permutations.
- Soft positional bias: The tendency of candidate position to decide which item is selected among candidates that the model considers comparably relevant.
- Strong positional bias: The shift where candidate position causes the model to recommend an item outside the set of comparably relevant candidates.
- Relevance set: The query-dependent subset of candidate items that an evaluated model treats as comparably relevant across candidate permutations.
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 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 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
- Prompt ordering acts as an unobserved structural variable that alters offline evaluation and live testing results in recommender systems.
- Differences in recommendation output between systems can stem from prompt formatting rather than differences in underlying retrieval relevance.
- Model-dependent positional preferences mean that deploying an identical prompt template across different language models will produce different positional distortions.
- Auditing conversational recommendation pipelines requires measuring both within-relevance ordering shifts and displacements to less relevant items.
What to do with it
- 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.
- 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.
- 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.
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.