Why does AI give different product recommendations each time you ask?
- Researchers (Peláez-González, Herrera & Herrera-Poyatos) tested eight open-weight LLMs on a simulated e-commerce recommendation task: real Amazon product data, a real embedding-based retriever, 2,000 queries, with the retrieved candidate list's order randomized across 20-120 permutations per query.
- Every single model showed statistically significant positional bias (p < 0.0005 on the primary test, for all eight models). This isn't a "some models are better than others" finding; it's universal across everything tested.
- Reshuffling the same five retrieved products changed the model's top pick in roughly 15% to over 60% of reorderings, depending on the model, purely from order, with nothing about the products themselves changing.
- Bias generally grows as the candidate list grows: one model's bias index rose more than tenfold going from 5 to 20 candidates in the list.
- There's no universal favored position. Different models favor first, last, or middle positions, and one model actively avoids the first position. This was tested only on open-weight models (DeepSeek, LLaMA, GPT-OSS), not ChatGPT, Gemini, or Claude.
Most AI-visibility advice assumes that if your product gets retrieved by an AI shopping assistant at all, what happens next comes down to relevance and content quality. A study from three Spanish university researchers tested a sharper, narrower question: if you hand a language model the exact same handful of products twice, and change nothing but the order they're listed in, does the model pick the same one? The answer, across every model tested, is no.
What the study actually measured
This isn't a study of live AI shopping assistants. It's a controlled simulation built to isolate one specific variable:
- Catalog: 50,000 real products sampled from the Amazon ML Challenge 2023 dataset (roughly 2.9 million products across 9,919 categories originally), filtered to remove thin listings.
- Retrieval: A real embedding model (BAAI) ranked products by similarity to each of 2,000 generated shopping queries (built from 56 templates and 194 product names across 18 categories), then the top K candidates were handed to the LLM in a fixed prompt asking it to pick one.
- The actual experiment: For each query, the same top-K candidate set was shuffled into 20 random orderings (and, in one exhaustive setting, all 120 possible orderings for a subset of queries), generating 40,000 model responses per configuration. Nothing about the candidates changed between runs, only their order in the prompt.
- Models tested: DeepSeek R1 (32B, 8B, 7B), LLaMA 3.1 (8B, 70B), LLaMA 4 Scout, and GPT-OSS (20B, 120B). All open-weight models, not consumer ChatGPT, Gemini, or Claude.
- Statistical method: Two independent tests for positional dependence, one a chi-square-based test on the full response distribution, the other a one-sided bound on how far the model's choices deviate from a uniform (position-blind) distribution. Both ran at a 0.05 significance threshold.
The researchers deliberately randomized candidate order to isolate position as a variable, which means this study measures an artifact of how the AI processes its prompt, not a real-world signal sellers can exploit by somehow forcing their product earlier in a list. It also tested only open-weight models in a simulated RAG pipeline, not any commercial AI shopping assistant's actual production system. Treat this as evidence that this kind of bias exists and needs to be measured, not as a tactic.
Every model, zero exceptions
Both statistical tests came back significant for all eight models at the primary setting (5 candidates, deterministic decoding), with p-values on the stricter test ranging from a probability of roughly 1 in 100 million (LLaMA 3.1 8B) down to 1 in 10,000 (DeepSeek R1 32B, the least-affected model tested):
| Model | Bias index (0-100 scale) | Share of reorderings that changed the top pick |
|---|---|---|
| DeepSeek R1 32B | 2.6 | 21.9% |
| DeepSeek R1 8B | 2.4 | 29.8% |
| LLaMA 4 Scout | 2.9 | 22.4% |
| LLaMA 3.1 8B | 4.2 | 30.4% |
| GPT-OSS 120B | 4.4 | 15.5% |
| LLaMA 3.1 70B | 4.6 | 22.7% |
| DeepSeek R1 7B | 5.6 | 34.0% |
| GPT-OSS 20B | 5.9 | 17.7% |
The "bias index" (PB) is a 0-100 measure of how far a model's position-by-position selection frequencies deviate from pure chance; the "share of reorderings that changed the top pick" (PS) is the more intuitive number: how often, across all the random shuffles of the exact same five candidates, the model's winner actually changed. Even the least-biased model in this list still flipped its answer in roughly one out of every five reshuffles, with nothing about the products themselves different.
It gets worse with more candidates, for most models
The researchers also tested candidate-list sizes of 5, 10, 15, and 20. For six of the eight models, more candidates meant measurably more bias. The standout case:
| Candidate list size | LLaMA 4 Scout bias index |
|---|---|
| 5 | 2.9 |
| 10 | 10.5 |
| 15 | 24.3 |
| 20 | 33.8 |
That's more than a tenfold increase from the smallest to largest list the study tested, on a single model. The researchers describe a related metric (the share of the model's picks that fall outside what the model itself treats as a reasonable choice set) as rising "monotonically with k for every model," meaning every model tested got less reliable, not more, as the list of options it was comparing grew.
No universal "favored position" to exploit
Different models favored different, sometimes opposite, positions, which should discourage anyone tempted to treat positional bias as a lever rather than a risk:
- GPT-OSS (both sizes) and LLaMA 3.1 70B consistently favored whichever product was listed first.
- LLaMA 3.1 8B favored the product listed last.
- DeepSeek R1 variants tended to favor middle positions over the first slot.
- LLaMA 4 Scout actively avoided the first position, regardless of decoding temperature.
Decoding temperature itself (how much randomness is allowed in the model's output) barely moved the bias either way; it stayed statistically significant at every temperature setting tested, for every model. The researchers' own framing captures the practical implication well: this argues for "treating prompt order as a first-class design variable" for anyone building these systems, specifically because there's no shortcut position to game.
What this means if you're not the one building the AI
You can't control the order an AI shopping assistant feeds retrieved products into its own prompt; that's an internal implementation detail of a system you don't have access to. What this study is actually useful for is calibrating how much confidence to put in any single AI-recommendation check:
- A single prompt result is not a stable signal. If reordering alone flips the winner in a meaningful share of cases on every model tested, a one-off "I asked ChatGPT and it recommended my competitor" observation carries real noise alongside whatever real signal it has. This is the same reason an AI Shortlist Scan runs the same prompt intent repeatedly rather than once.
- Being in the retrieved set still matters more than anything else. This study only measures bias among products that already made the cut into the top-K candidates. Everything this site already argues about getting retrieved at all, as covered in one polluted page is enough and the broader AEO strategy framework, still comes first; positional noise is a second-order effect layered on top of a far larger first-order effect.
- Don't trust vendor claims of a "position advantage" trick. Since the favored position differs by model, with no consistent pattern across the eight models tested here, any pitch that promises to game AI recommendation order for a specific platform should be treated with real skepticism until it's demonstrated against that platform specifically.
What the study doesn't prove
Stated plainly, to use this responsibly: every model tested was open-weight (DeepSeek, LLaMA, GPT-OSS), not the commercial products behind ChatGPT, Gemini, or Claude, and this was a simulated pipeline using Amazon product data and template-generated queries, not a live AI shopping assistant's actual production system. The study only tested single-turn, top-1 recommendation picks, which the authors themselves call "a particularly demanding setting," not multi-turn conversations or ranked lists of several recommendations. And the retrieval step itself (which five or twenty products make the candidate list in the first place) wasn't the thing being tested, position within an already-retrieved set was. No Shopify-specific or India-market data exists in this research.
Frequently asked questions
Does the order products appear in an AI's retrieved results actually change which one gets recommended?
Yes, measurably, for every model tested. Researchers found that reshuffling the identical five to twenty retrieved products, with nothing else changed, flipped the model's top pick in anywhere from about 15% to over 60% of reorderings, depending on the model and how many products were in the list (the PS metric in the study). This is a prompt-order effect, not a product-quality or relevance effect, since the actual candidate set never changed.
Does the bias get worse the more products an AI is comparing at once?
For most models, yes, and for one model dramatically so. Across the eight tested models, position bias generally rose as the candidate list grew from 5 to 20 products. One model's bias index rose more than tenfold between 5 and 20 candidates (from 2.9 to 33.8). The exception was one model that stayed relatively flat across list sizes, which the study notes as the one deviation from the general pattern.
Is there a single position (first, last) that AI models always favor?
No, and this is one of the study's more counterintuitive findings. Some models favored whichever product appeared first in the list; at least one consistently favored the last position; others favored the middle over the first position; and one model actively avoided putting the first-listed product on top, regardless of temperature setting. There's no single universal rule to exploit, which argues for treating the bias as noise to account for, not a lever to pull.
Did this study test ChatGPT, Gemini, or Claude directly?
No. The study tested eight open-weight models (DeepSeek R1 variants, LLaMA 3.1 and 4, and GPT-OSS), not the consumer products behind ChatGPT, Gemini, or Claude. The underlying mechanism, a language model picking from a short list of retrieved candidates, is architecturally similar to how commercial AI shopping assistants work, but this specific data doesn't speak to those specific products.
Sources referenced
For the mechanism that matters more than ordering noise, getting into the retrieved set in the first place, see one polluted page is enough and the five stages of winning the AI search era. To check what AI shopping assistants are actually recommending in your category right now, see the AI Shortlist Scan.
