作者: 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(基于大语言模型推荐系统中位置偏差的统计检测:方法与实证证据)于 2026-10-27 提交到 arXiv,作者 Carlos Peláez-González, Francisco Herrera, Andrés Herrera-Poyatos。去 arXiv 读原文,或下载 PDF。

主要发现

最重要的一点。 在基于检索增强生成的单轮推荐中,候选内容在提示词里的先后顺序会系统改变模型的选取结果,这一偏差独立于语义相关性。

摘要

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.

译文:大语言模型越来越常在检索增强生成架构下,作为对话式推荐系统中的推荐生成器。这种灵活的设计引入了新的结构性偏差。本文研究了在首位推荐和单轮对话大语言模型推荐系统中的位置偏差,即推荐商品系统性地依赖于候选商品在提示词中呈现的顺序。我们提出了两种互补的检测方法:其一为 POB-ICM,基于列联矩阵分析和卡方独立性检验;其二为 POB-UNBP,这是一种在置换评估下由均匀性零假设模型导出的高样本效率方法,支持具有正式统计保证的随机解码。在一个受控的商品推荐检索增强生成测试平台上,研究基于真实商品目录、固定提示词模板以及两千个模板生成的用户查询,每个查询对应二十次置换(共四万个实例),两种方法均在所有评估的主流模型中拒绝了位置独立性和均匀性的零假设。我们引入了三个互补的指标:置换敏感度、位置偏差和强位置偏差来量化这种效应,其中强位置偏差专门针对位置将推荐转移到明显相关度较低的商品、而不仅仅是在相关度相当的商品之间做选择的情况。跨候选集大小和解码温度的稳健性分析表明,该偏差是结构性且依赖于具体模型的,并不是确定性解码或候选集大小造成的人为假象。这些结果表明,在所评估的设定下,位置偏差是提示词驱动推荐流程中可测量且可复现的属性,并促使部署大语言模型推荐系统时开展常规审计和治理控制(例如顺序随机化、标准化提示词构建)。源代码已公开发布。

关键术语

论文原文

作者指出了顺序文本输入中位置影响推荐决策的基本机制。

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.

译文:当推荐某个项目的概率取决于它在输入列表中的位置,而不仅仅取决于它的相关性时,系统就表现出了位置偏差。

实验在全部受试模型中拒绝了推荐选择与提示词位置无关的假设。

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.

译文:在一个用于商品推荐的受控检索增强生成测试平台上,基于真实商品目录、固定提示词模板以及 2000 个模板生成的用户查询(每个查询包含 20 次置换,共 40,000 个实例),两种方法在所有评估的主流模型中均拒绝了位置独立性和均匀性的零假设。

研究区分了相关商品间的选择变化以及由于位置导致的次优推荐。

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.

译文:此外,我们区分了位置偏差的两个组成部分:软位置偏差,即位置决定了在几个相关度相当的候选者中推荐哪一个;以及强位置偏差,即位置将推荐转移到明显相关度较低的项目上。

论文里的图

该热力图展示了 LLaMA 3.1 8B 在候选排列条件下的经验推荐分布,反映了模型偏离位置独立性的情况。

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

图来自论文 arXiv:2610.37962,版权归作者。原图说明: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.

各输入位置上的平均选择频次图显示出不同模型对特定候选位置存在稳定的偏好。

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

图来自论文 arXiv:2610.37962,版权归作者。原图说明: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.

作者自己说的含义

可以怎么做

  1. 在推理阶段随机打乱输入提示词中的候选商品顺序,防止检索排名带来的固定位置优势影响最终输出。 依据:在 2000 个查询和 20 次置换(共 40,000 个实例)的测试中,两种统计方法证明八个受试模型的输出选择均与输入位置存在系统性关联。
  2. 在调整提示词模板或更换底层模型时,使用置换检验审计系统的位置偏置程度。 依据:POB-ICM 和 POB-UNBP 在 40,000 个测试样本中成功检测出全部八个模型的非均匀位置偏好。
  3. 在评估流程中分别计算软位置偏差和强位置偏差,确认位置变化是否会导致模型推荐不相关的次优选项。 依据:反事实测试显示,在八个受试模型中有六个模型在控制随机解码后依然表现出强位置偏差。

注意。 该研究局限在单轮首位商品推荐任务中,采用了固定的单套提示词模板、模板生成的用户查询以及来自 Amazon ML Challenge 2023 的商品目录,并未测试多轮交互或其他领域的表现。

一句话

这篇论文提出了针对大语言模型单轮推荐中位置偏差的统计检测方法与评估指标。在涵盖八个模型的四万次实验中,候选商品的排布位置均系统性地改变了模型的选择结果。这一结论说明,面向大语言模型的推荐系统在部署时需要对输入顺序进行审计和随机化处理。

去 arXiv 读论文 →

这篇解读根据论文原文写成。引用的段落是原话,数字都是作者自己报告的。方法和完整结果请读论文。