LS LOGICIEL SOLUTIONS
Toggle navigation
WHITEPAPER

Testing Non-Deterministic Systems

Ask an AI the same question twice and you can get two answers. Ship the same code for months and watch quality drift because the model changed under you. Run your tests and get a green light that means far less than it used to. This guide lays out a QE methodology built for AI: evals, baselines, and drift alarms.

From Pilot to Production: Scaling Enterprise AI

Green Doesn't Mean Good Anymore.

  • What most teams still rely on: exact-match tests, binary pass/fail, and a one-time launch sign-off all of which assume a determinism AI doesn't have, so they go flaky, hide graded failures, and certify a moment instead of a living product.

  • What quality engineering for AI looks like: evals that score outputs across a representative set, baselines that make normal variance manageable, and drift alarms that catch the silent regressions before your customers do.

Download White Paper

The Numbers That Make This a Board-Level Conversation

84% → 51%
GPT-4's accuracy on one task fell by a third within months - the same product, silently behaving differently (Stanford / UC Berkeley, 2023)
3.3% – 10%+
hallucination rates on grounded summarization for leading models; a single "hallucination rate" is meaningless without stating the task (Vectara, 2025)
89% vs 52%
of teams have AI observability, but only about half have adopted evals the gap where AI fails quietly (LangChain)

The Three New Primitives

Evals Instead of Exact-Match Tests

Score outputs against criteria accuracy, relevance, completeness, safety across a representative set of inputs, rather than checking against one canonical string. The unit of testing becomes "how good, over a distribution," not "did it equal X."

Baselines Instead of Pass/Fail

Establish the current measured quality and test every change against it. Did this prompt, model, or retrieval tweak move the numbers up or down? Baselines turn a noisy system into something you can reason about statistically.

Drift Alarms Instead of One-Time Sign-Off

Run your eval set continuously in production and alarm when quality drifts. Because a hosted model can change under you, evaluation is a monitor, not a launch gate you pass once.

Build the Eval Set That Actually Protects You - In 4 Moves

Step 1 Build it from your data, not public benchmarks

Public benchmarks are contaminated and generic; a model can ace them and fail your use case. Draw your eval set from the real inputs your system will face.

Step 2 Cover the failure modes, not just the happy path

Include the hallucination-prone, ambiguous, and adversarial cases, and the ones where the safe answer is "I don't know." That's where AI products actually fail.

Step 3 Grade on the dimensions that matter to you

Accuracy is rarely the only axis. Score groundedness, safety, tone, format, refusal behavior, and cost as your product requires.

Step 4 Keep it living

Every new failure you find in production becomes a new eval case, so the same problem can never silently return. The eval set is an asset that compounds.

See Whether Your AI Is Good - Not Just Whether It Ran.

AI products aren't lower quality because the models are bad. They're harder to keep good because most teams guarantee quality with tools that assume a determinism these systems lack. Rebuild QE around the reality evals, baselines, drift alarms and you get the confidence traditional testing gave deterministic software, for a system that refuses to be exact.

Frequently Asked Questions

No. Studies show "deterministic" settings still vary due to floating-point and batching effects, and models give different answers to the same prompt even at temperature zero a meaningful share of the time. You need evals and tolerances, not exact-match assertions.

Because hosted models change. A Stanford/Berkeley study documented GPT-4's accuracy on a task dropping from 84% to 51% within months. Without continuous evals and drift alarms, that kind of regression reaches you through your users.

Heads of AI, Directors of QA, and quality engineering leaders shipping AI products that need to stay reliable in production.

A scored assessment of model output against criteria  accuracy, relevance, safety, format  run across a representative set of inputs, rather than a check against one correct string. It's the AI-era replacement for the unit test as your primary quality signal.

No. Popular benchmarks are contaminated  one analysis found ~29% of MMLU items showed contamination signs  so public scores overstate real-world quality. Build an eval set from your own data.