Search GimmeJob

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

How would you design a focused test strategy for classification thresholds when outputs are non-deterministic?

Answer

Build the smallest useful model of the behavior by defining the intended behavior, affected groups, unacceptable harms and a representative frozen evaluation set. Focus on classification thresholds when outputs are non-deterministic. Use task-specific rubrics, calibrated human judgment, reference data and invariant safety rules as the oracle. Cover quality, robustness, bias, privacy, security, latency, cost and change regression. Keep data and dependencies controlled enough to reproduce failures. Release only when segmented metrics and reviewed failures meet thresholds with monitoring for new production distributions.

Strong answer includes

  • explicit risk and test oracle for classification thresholds
  • uses representative evals instead of demos
  • separates model, data and system failures
  • measurable evidence and residual-risk statement

Practical example

When a classifier's confidence scores varied slightly across identical reruns due to floating-point nondeterminism on GPU inference, the team designed tests using a tolerance band around the threshold rather than an exact cutoff, avoiding flaky test failures for cases that were never really ambiguous.

#ai#ml#llm#classification-thresholds

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