Data Science in the Wild · Peter Liu
Do LLM recommenders pick by position? A University of Granada study ran 40,000 shuffled prompts through 8 open models, and every one failed both statistical tests for position independence. Key takeaways: Order matters for every model. On a RAG testbed (50,000 Amazon products, 2,000 queries × 20 orderings of the top-5 candidates), all 8 models (LLaMA 3.1 8B/70B, LLaMA 4 Scout, GPT-OSS 20B/120B, three DeepSeek R1 distills) rejected position independence under both tests, POB-ICM (chi-square on a contingency matrix) and POB-UNBP (a uniformity test). Reordering flips picks often. Permutation sensitivity ran from 15.5% (GPT-OSS 120B) to 34.0% (DeepSeek R1 7B); positional bias, the distance from uniform, from 2.4% to 5.9%. Soft vs. strong bias. Strong positional bias, when position pushes the pick outside the comparably relevant items, ranged from 1.0% to 9.8%. The paper treats it as an upper bound: for DeepSeek R1 7B, decoding noise alone gives 9.1%. Shape depends on the model, and grows with list size. GPT-OSS and LLaMA 3.1 70B favor early slots, LLaMA 4 Scout under-picks slot 1. With 20 candidates, Scout's positional bias rises from 2.9% to 33.8%; raising temperature doesn't remove it. Our caveats. One catalog, one fixed (untuned) prompt template, single-turn top-1 recommendation. The authors suggest routine audits and order randomization. Chapters: 00:00 Cold open: would an AI pick by position? 00:41 Welcome: why prompt order matters 02:01 Setup: LLM recommenders on top of RAG 04:27 Testbed: Amazon catalog, 8 LLMs, 40K runs 06:22 Method: POB-ICM vs. POB-UNBP 09:36 Results: sensitivity, bias, strong bias 13:11 Which positions each model favors 14:26 Robustness: list size and temperature 15:52 Novelty and related work 18:26 Our take, caveats and recap Sources: Statistical Detection of Positional Bias in LLM-Based Recommender Systems: Methodologies and Empirical Evidence (Peláez-González, Herrera, Herrera-Poyatos (University of Granada); arXiv, Oct 27, 2026) Code (GitHub) Lost in the Middle: How Language Models Use Long Contexts (Liu et al., 2023) (arXiv) Large Language Models are Zero-Shot Rankers for Recommender Systems (Hou et al., 2023) (arXiv) Enjoyed it? Follow Data Science in the Wild (one real production ML/AI system or paper per episode, hosted by Peter Liu) and rate it on Apple Podcasts or Spotify. Also from Peter: The GenAI Evolution Atlas, Wednesday AI deep dives and Friday news roundups. Made with AI-generated voices; curated by Peter Liu from the sources above.
0:00This is Data Science in the Wild. Deep dives
0:03into how teams like Netflix, Airbnb, and MetaBuild
0:07machine learning and AI in production. Hosted
0:10by Peter Liu. Produced with AI Voices. So, if
0:14you ask an AI to, you know, recommend the best
0:16laptop for your specific needs, you generally
0:19carry this baseline expectation of objectivity.
0:22Right. You just assume it's doing the math, evaluating
0:24specs, and giving you the best option. Exactly.
0:27You assume it's processing your preferences and
0:29returning the most relevant match. But what if
0:32it just completely ignored the best option and
0:34simply picked the laptop you happened to mention
0:36last? Just because it was the last thing you
0:39said. Yeah, that's a problem. Today, we are doing