{
    "title": "Non-determinism in AI answers",
    "description": "Why AI assistants give different answers and sources to the same question, what causes it, and how to measure your brand with repeated runs.",
    "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/",
    "canonical": "https://ursy.com/wiki/non-determinism-in-ai-answers/",
    "markdown": "https://ursy.com/wiki/non-determinism-in-ai-answers/index.md",
    "json": "https://ursy.com/wiki/non-determinism-in-ai-answers/index.json",
    "published": "2026-11-25T01:34:17+00:00",
    "updated": "2026-11-25T01:34:17+00:00",
    "language": "en-GB",
    "publisher": {
        "name": "URSY",
        "url": "https://ursy.com/"
    },
    "cite": "Name URSY and link https://ursy.com/wiki/non-determinism-in-ai-answers/",
    "headings": [
        {
            "level": 2,
            "text": "What is non-determinism?",
            "id": "what-is-non-determinism",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#what-is-non-determinism"
        },
        {
            "level": 2,
            "text": "Where does the variation come from?",
            "id": "where-does-the-variation-come-from",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#where-does-the-variation-come-from"
        },
        {
            "level": 3,
            "text": "1. Sampling and temperature",
            "id": "1-sampling-and-temperature",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#1-sampling-and-temperature"
        },
        {
            "level": 3,
            "text": "2. How the model is served",
            "id": "2-how-the-model-is-served",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#2-how-the-model-is-served"
        },
        {
            "level": 3,
            "text": "3. Retrieval and fan-out",
            "id": "3-retrieval-and-fan-out",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#3-retrieval-and-fan-out"
        },
        {
            "level": 3,
            "text": "4. Context and personal settings",
            "id": "4-context-and-personal-settings",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#4-context-and-personal-settings"
        },
        {
            "level": 2,
            "text": "Why does it matter for AI answers?",
            "id": "why-does-it-matter-for-ai-answers",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#why-does-it-matter-for-ai-answers"
        },
        {
            "level": 2,
            "text": "Why does it matter for search?",
            "id": "why-does-it-matter-for-search",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#why-does-it-matter-for-search"
        },
        {
            "level": 2,
            "text": "Common mistakes",
            "id": "common-mistakes",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#common-mistakes"
        },
        {
            "level": 2,
            "text": "A worked example",
            "id": "a-worked-example",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#a-worked-example"
        },
        {
            "level": 2,
            "text": "How to check it",
            "id": "how-to-check-it",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#how-to-check-it"
        },
        {
            "level": 2,
            "text": "Questions",
            "id": "questions",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#questions"
        },
        {
            "level": 3,
            "text": "Can I make an AI give the same answer every time?",
            "id": "can-i-make-an-ai-give-the-same-answer-every-time",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#can-i-make-an-ai-give-the-same-answer-every-time"
        },
        {
            "level": 3,
            "text": "Is non-determinism a bug?",
            "id": "is-non-determinism-a-bug",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#is-non-determinism-a-bug"
        },
        {
            "level": 3,
            "text": "How many runs are enough?",
            "id": "how-many-runs-are-enough",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#how-many-runs-are-enough"
        },
        {
            "level": 2,
            "text": "Related words",
            "id": "related-words",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#related-words"
        },
        {
            "level": 2,
            "text": "Sources",
            "id": "sources",
            "url": "https://ursy.com/wiki/non-determinism-in-ai-answers/#sources"
        }
    ],
    "links": [
        {
            "text": "AI search",
            "url": "https://ursy.com/wiki/ai-search/",
            "internal": true
        },
        {
            "text": "large language model",
            "url": "https://ursy.com/wiki/large-language-model/",
            "internal": true
        },
        {
            "text": "prompt",
            "url": "https://ursy.com/wiki/prompt/",
            "internal": true
        },
        {
            "text": "glossary",
            "url": "https://platform.claude.com/docs/en/about-claude/glossary",
            "internal": false
        },
        {
            "text": "temperature",
            "url": "https://ursy.com/wiki/temperature-llm/",
            "internal": true
        },
        {
            "text": "cookbook on reproducible outputs",
            "url": "https://developers.openai.com/cookbook/examples/reproducible_outputs_with_the_seed_parameter",
            "internal": false
        },
        {
            "text": "token",
            "url": "https://ursy.com/wiki/ai-tokens/",
            "internal": true
        },
        {
            "text": "Google",
            "url": "https://ursy.com/wiki/google/",
            "internal": true
        },
        {
            "text": "prompting strategies guide",
            "url": "https://aistudio.google.com/docs/prompting-strategies",
            "internal": false
        },
        {
            "text": "Defeating nondeterminism in LLM inference",
            "url": "https://thinkingmachines.ai/blog/defeating-nondeterminism-in-llm-inference/",
            "internal": false
        },
        {
            "text": "retrieval-augmented generation",
            "url": "https://ursy.com/wiki/retrieval-augmented-generation/",
            "internal": true
        },
        {
            "text": "advice to site owners on AI features",
            "url": "https://developers.google.com/search/docs/appearance/ai-features",
            "internal": false
        },
        {
            "text": "query fan-out",
            "url": "https://ursy.com/wiki/query-fan-out/",
            "internal": true
        },
        {
            "text": "ChatGPT",
            "url": "https://ursy.com/wiki/chatgpt/",
            "internal": true
        },
        {
            "text": "prompt tracking",
            "url": "https://ursy.com/wiki/prompt-tracking/",
            "internal": true
        },
        {
            "text": "AI visibility scores vs counted evidence",
            "url": "https://ursy.com/guides/ai-visibility-scores-vs-counted-evidence/",
            "internal": true
        },
        {
            "text": "AI hallucination",
            "url": "https://ursy.com/wiki/ai-hallucination/",
            "internal": true
        },
        {
            "text": "rank tracking",
            "url": "https://ursy.com/wiki/rank-tracking/",
            "internal": true
        },
        {
            "text": "AI visibility",
            "url": "https://ursy.com/wiki/ai-visibility/",
            "internal": true
        },
        {
            "text": "session",
            "url": "https://ursy.com/wiki/session/",
            "internal": true
        },
        {
            "text": "AI assistant",
            "url": "https://ursy.com/wiki/ai-assistant/",
            "internal": true
        },
        {
            "text": "LocalBusiness schema",
            "url": "https://ursy.com/wiki/localbusiness-schema/",
            "internal": true
        },
        {
            "text": "Google Business Profile",
            "url": "https://ursy.com/wiki/google-business-profile/",
            "internal": true
        },
        {
            "text": "prompt research",
            "url": "https://ursy.com/wiki/prompt-research/",
            "internal": true
        },
        {
            "text": "AI consistency checker",
            "url": "https://ursy.com/ai-consistency-checker/",
            "internal": true
        },
        {
            "text": "schema checker",
            "url": "https://ursy.com/schema-checker/",
            "internal": true
        },
        {
            "text": "llms.txt",
            "url": "https://ursy.com/wiki/llms-txt/",
            "internal": true
        },
        {
            "text": "llms.txt checker",
            "url": "https://ursy.com/llms-txt-checker/",
            "internal": true
        },
        {
            "text": "Prompt tracker",
            "url": "https://ursy.com/pro/prompt-tracker/",
            "internal": true
        },
        {
            "text": "AI share of voice",
            "url": "https://ursy.com/pro/ai-share-of-voice/",
            "internal": true
        },
        {
            "text": "Grounding",
            "url": "https://ursy.com/wiki/grounding/",
            "internal": true
        },
        {
            "text": "Reasoning models",
            "url": "https://ursy.com/wiki/reasoning-models/",
            "internal": true
        },
        {
            "text": "Citation rate",
            "url": "https://ursy.com/wiki/citation-rate/",
            "internal": true
        }
    ],
    "words": 1094,
    "text": "Non-determinism in AI answers means that an AI system can give different answers, sources and links to the same question asked in the same way, even moments apart. It comes from how language models pick words, how they are served, and how AI search tools gather sources. For a business, it means one test of an AI answer proves very little. You need repeated checks. What is non-determinism? A deterministic system gives the same output for the same input every time. A calculator is deterministic. A large language model often is not. Ask it the same prompt twice and you may get different wording, a different order of points, different facts or a different set of cited pages. The AI companies say this themselves. Anthropic’s glossary says users might meet non-determinism in its APIs, and that even with temperature set to 0, results will not be fully deterministic. OpenAI’s cookbook on reproducible outputs warns that matching outputs cannot be promised, even when the seed and other settings match. Where does the variation come from? 1. Sampling and temperature A model writes one token at a time, choosing from many likely next tokens. Settings control how adventurous that choice is. Google’s prompting strategies guide says temperature controls the degree of randomness in token selection. Lower values suit more deterministic tasks, and higher values give more varied results. It also explains topK and topP, which limit the pool of tokens to pick from. 2. How the model is served Even with randomness turned down, the hardware can add variation. A September 2025 post from Thinking Machines Lab, Defeating nondeterminism in LLM inference, argues that a main cause is a lack of batch invariance: results can shift with how many other requests the server is handling at the same moment. In its test, 1,000 completions of one prompt at temperature 0 gave 80 different answers. With special batch-invariant code, all 1,000 matched. OpenAI’s cookbook also describes a system_fingerprint value that identifies the backend set-up. It changes when OpenAI updates its serving systems, which can change outputs too. 3. Retrieval and fan-out AI search adds another layer. Tools that use retrieval-augmented generation fetch pages first, then write. Google’s advice to site owners on AI features is plain about this. Its two AI products, Overviews and AI Mode, can run on different models and methods, so the answers and links people see will vary. Both may also use query fan-out: they split one question into many smaller searches on subtopics and sources, then write the answer. A small change in what those searches return can change which sources are cited. 4. Context and personal settings Some assistants can also take in the chat so far, a rough location or saved memory. Two people typing the same words are not always sending the same input. That is not strictly non-determinism, but it has the same effect on what you see. Why does it matter for AI answers? Because “are we mentioned?” has no single answer. You might appear in one run of ChatGPT and vanish in the next. A screenshot from one try is an anecdote. This is why prompt tracking runs the same questions many times and reports how often a brand appears. Our guide AI visibility scores vs counted evidence explains why counts beat single scores. It also matters for accuracy. If a model sometimes states a wrong price, that is an AI hallucination that only shows up some of the time. Clear, consistent facts on your site give every run the same thing to read. Why does it matter for search? Classic search results also move, but more slowly, and you can measure them with rank tracking. AI answers can change between two refreshes. Treat AI visibility as a rate, such as “named in 6 of 10 runs”, not a fixed position like “ranked 3rd”. Common mistakes Judging from one try. One answer is a sample of one. Assuming temperature 0 fixes it. Anthropic and OpenAI both say outputs can still differ. Testing logged in with history on. Past chats shape later answers. Test in a clean session as well. Comparing runs weeks apart as if nothing changed. Models and serving systems are updated, as OpenAI’s fingerprint note shows. Chasing wording. Phrasing varies most. Track whether you are named, linked and described correctly. A worked example A garden centre asks an AI assistant “garden centre near Leeds for fruit trees” 10 times in clean sessions over one morning. It records three things each time: Measure Result Named in the answer 6 of 10 runs Linked as a source 4 of 10 runs Opening hours stated correctly 5 of the 6 mentions These are example figures, not measured data. They show the method. The owner now knows the brand is named often but not always, and that one run in six gets the hours wrong. The fix is to make hours clear in one place on the site, mark them up with LocalBusiness schema and keep the Google Business Profile the same. Then repeat the 10 runs next month and compare. How to check it Pick 5 to 10 real questions your customers ask. Our guide to prompt research helps. Run each one several times, in clean sessions, and note mentions, links and facts. Use our AI consistency checker to see whether your page, schema, llms.txt and feeds state the same facts. Mixed facts give models more room to vary. Check your markup with our schema checker and your llms.txt with our llms.txt checker. For repeated tracking, URSY Pro will offer Prompt tracker (Pro), with AI share of voice (Pro) beside it. Questions Can I make an AI give the same answer every time? Not in a public chatbot. Developers can lower randomness with API settings, but Anthropic and OpenAI both say results are still not fully deterministic. Is non-determinism a bug? Partly a design choice. Google’s guide says higher temperatures give more diverse or creative results, which is useful for writing. The serving-side variation is a side effect that researchers are working on. How many runs are enough? We have no official figure to give. More runs give a steadier rate. Keep the same questions and conditions each time so changes mean something. Related words Prompt tracking Query fan-out Grounding Reasoning models Citation rate Sources Anthropic: Glossary (Temperature), checked 25 November 2026 OpenAI Cookbook: How to make your completions outputs consistent with the new seed parameter, checked 25 November 2026 Thinking Machines Lab: Defeating Nondeterminism in LLM Inference (10 September 2025), checked 25 November 2026 Google: Prompt design strategies (Gemini API), checked 25 November 2026 Google Search Central: AI features and your website, checked 25 November 2026 Updated 25 November 2026 by URSY.",
    "source": "https://ursy.com/wiki/non-determinism-in-ai-answers/"
}