AIInterviewTraining logoAIInterview/Training

evaluation

AI, ML & GenAI interview questions tagged evaluation, across every topic.

89 questions · 13 unlocked for you

Concepts behind "evaluation"

The curriculum that explains the ideas these questions test.

Foundational
🧠 Foundations of LLMs & GenAI
HallucinationA hallucination is fluent, confident output that is wrong or unsupported. It arises because a language model is trained to produce plausible continuations, not to know what it knows; it has no built-in truth check. You reduce it with grounding (RAG), letting the model abstain, low temperature on factual tasks, and verification, and you detect it with faithfulness checks against sources. AI, ML, and GenAI engineer interviews probe it because hallucination is the number-one reason LLM features fail in production, and because the fix is system design, not a magic prompt.
Foundational
📊 Evaluation & ML Foundations
Cross-Validation (Done Right)Cross-validation estimates how a model generalizes by training and testing on rotating folds, yielding a more reliable estimate than a single split. The traps are what make it an interview topic: use stratified folds for imbalanced classes, grouped folds when records share an entity, and time-ordered splits for temporal data (never random), and fit all preprocessing inside each fold to avoid leakage. AI, ML, and GenAI engineer interviews probe it because the wrong scheme produces optimistic estimates that fall apart in production.
Foundational
📊 Evaluation & ML Foundations
Eval-Driven Development and Golden DatasetsYou cannot improve an LLM system you cannot measure, so the first thing to build is an evaluation: a golden dataset of representative inputs with expected behavior, plus metrics, that you run on every change. This converts 'it feels better' into a number, catches regressions before users do, and lets you iterate fast. AI, ML, and GenAI engineer interviews probe it because teams that ship reliable LLM features evaluate continuously, and 'we tried some prompts and it looked good' is the anti-pattern.
Foundational
📊 Evaluation & ML Foundations
Offline vs Online EvaluationOffline evaluation scores a model on held-out data; online evaluation measures its impact on real users (through an A/B test). They often disagree: an offline win frequently fails to move the online metric, because offline data is a static proxy while the real world carries feedback loops, distribution shift, and second-order effects. The discipline is to gate with offline evals (fast, cheap) and confirm with online tests (the truth). AI, ML, and GenAI engineer interviews probe it because shipping on offline metrics alone is a classic, costly mistake.
Foundational
📊 Evaluation & ML Foundations
LLM-as-a-JudgeWhen outputs are open-ended (summaries, chat answers, generated code), there is no exact match to score against, so you enlist a strong LLM to grade them against a rubric. It scales evaluation far past human review, but it is a fallible proxy with known biases (position, verbosity, self-preference), so you calibrate it against human labels and design it carefully. AI, ML, and GenAI engineer interviews probe it because evaluating generative output is the hard part of shipping LLMs, and 'we eyeballed it' does not scale.
Core
🧠 Foundations of LLMs & GenAISign in
Reward ModelsA reward model converts human preference comparisons into a scalar score for any response, the very signal RLHF chases. Trained on response pairs labeled by which one a human favored, it learns to rank instead of to write text. Its flaws are behind RLHF's failure modes: reward hacking (gaming the proxy) and going stale once the policy drifts off-distribution. AI, ML, and GenAI interviews probe it because it shows where the alignment signal originates and why it is exploitable, and the same idea carries over to LLM-as-judge evaluation.