Search GimmeJob

Type at least 2 characters. Enter also searches by meaning.
QA interview question
AI, ML & LLMMiddleSpecialistTheory

How does testing an AI system differ from testing deterministic software?

Answer

Deterministic rules often support exact expected results for a defined input. AI behavior also depends on data, model, prompt, retrieval and sampling, so evaluation uses representative datasets, task rubrics, statistical thresholds and reviewed failure slices. Deterministic system invariants such as authorization, privacy and tool limits still require exact tests.

Strong answer includes

  • uses datasets and statistical evidence
  • separates model behavior from system invariants
  • segments failures instead of relying on averages

Practical example

For a support chatbot, the team can't write a single exact-match test for 'how do I reset my password' because the model phrases answers differently each run. Instead they run 200 representative user questions against a rubric scored by a judge model, requiring 95 percent to mention the correct reset URL, and they track accuracy separately for non-English speakers after noticing it dropped to 80 percent for Spanish queries. Meanwhile a completely deterministic test still checks that the bot never calls the refund-processing tool without an authenticated session, regardless of what the model says.

#ai-testing#non-determinism#evaluation#oracle

Sources

Certified Tester AI Testing (CT-AI)ISTQB · AI-system quality characteristics, ML testing and use of AI in testingEvaluation best practicesOpenAI · LLM evaluation design, datasets, graders, continuous evaluation and human calibrationAI RMF Generative AI ProfileNIST · Generative-AI trustworthiness, risk identification, measurement and governance