passdrill

Evaluation, Testing & Safety

56 cards · AI & LLM Engineering · answer each one, then read the explanation. Your score tallies below. Looking for Cohen's kappa vs Fleiss' kappa, worked by hand? Read the explainer.

0 / 56 answered · 0 correct

AI & LLM Engineering · Evaluation, Testing & Safety · Card 001/056 easy

When evaluating an autoregressive language model on the same held-out test set, Model A gets a perplexity of 18.4 and Model B gets a perplexity of 42.1. Holding the tokenizer and test set fixed, what does this comparison indicate about the two models?

  1. Model B is better, because a higher perplexity score means the model assigns more probability mass to a wider range of plausible continuations, which reflects greater linguistic flexibility
  2. Neither score is meaningful on its own; perplexity only becomes interpretable once the model has also been evaluated on a downstream task such as translation or summarization
  3. Model A is better at predicting this test text than Model B, because perplexity is derived from the model's average per-token negative log-likelihood, and a lower value means the model assigned higher probability, on average, to the tokens that actually occurred
  4. Model A used a larger training corpus than Model B, since perplexity is primarily a measure of how much data a model was trained on rather than of its predictive accuracy
AI & LLM Engineering · Evaluation, Testing & Safety · Card 002/056 easy

A machine translation system produces a fluent, accurate translation that a human judge rates as excellent, but it uses different word choices and sentence structure than the single reference translation available in the test set. What is the most likely practical consequence for this output's BLEU score, and why?

  1. Its BLEU score will likely be low, because BLEU is computed from n-gram overlap between the candidate and the reference translation(s), so a valid paraphrase that shares few overlapping n-grams with the single reference is penalized even though it is fluent and accurate
  2. Its BLEU score will be high, because BLEU uses a semantic similarity model to detect that the paraphrase conveys the same meaning as the reference, regardless of surface wording
  3. Its BLEU score will be unaffected by the reference wording, because BLEU is computed only from the candidate sentence's internal grammaticality and fluency, without reference to any reference translation
  4. Its BLEU score will be low, because BLEU applies a fixed penalty whenever the candidate sentence is longer than the reference sentence, independent of any n-gram overlap
AI & LLM Engineering · Evaluation, Testing & Safety · Card 003/056 medium

A team uses a strong LLM as an automated judge to pick the better of two candidate responses, which are placed side by side within the same judging prompt. Across many comparisons, they notice the judge tends to favor whichever response sits in the first slot, even when the same two responses are swapped into the other slot and re-judged. What phenomenon does this describe, and what is a standard mitigation?

  1. This is a sign the underlying model being judged is broken, since a properly trained model should never receive different scores across two separately-run evaluations
  2. This is benchmark contamination, and the standard mitigation is to remove the affected test examples from the evaluation set entirely
  3. This is expected and requires no mitigation, because a judge's preference for the first-listed response reflects a genuine and stable quality signal about response ordering
  4. This is position bias in LLM-as-judge evaluation; a standard mitigation is to run each comparison twice with the two responses' positions swapped, and only count a response as preferred if it wins in both orderings (or average the results across both orderings)
AI & LLM Engineering · Evaluation, Testing & Safety · Card 004/056 medium

A research team reports that their new model scores surprisingly high on a widely-used public benchmark, higher than models with far more parameters. Before trusting this result, an independent reviewer wants to rule out one specific and common threat to benchmark validity: that some of the benchmark's test questions, or close paraphrases of them, appeared in the model's pretraining data. What is this threat called, and what is one concrete technique used to check for it?

  1. This threat is called catastrophic forgetting; it is checked by fine-tuning the model on an older task and confirming that performance on that older task does not drop
  2. This threat is called benchmark (data) contamination; one concrete detection technique is searching the pretraining corpus for high n-gram overlap with the benchmark's test examples, or checking for embedded 'canary string' markers placed in the benchmark specifically to detect this
  3. This threat is called mode collapse; it is checked by sampling many outputs from the model at high temperature and confirming that they remain diverse
  4. This threat is called reward hacking; it is checked by inspecting the model's reward model training data for label errors
AI & LLM Engineering · Evaluation, Testing & Safety · Card 005/056 easy

Before releasing a new model, a safety team assembles a group of people whose specific job is to deliberately try to provoke the model into producing harmful, disallowed, or policy-violating outputs, using creative and adversarial prompts, so the team can find and fix weaknesses before real users encounter them. What is this practice called, and how does it differ from routine functional testing?

  1. This is red-teaming; unlike routine functional testing, which checks whether the model performs its intended tasks correctly, red-teaming specifically and adversarially searches for inputs that cause unsafe or policy-violating behavior, deliberately trying to break the model's safety guardrails rather than verify normal functionality
  2. This is A/B testing; like routine functional testing, it measures average task success rate across two model versions shown to random subsets of real users, without any adversarial intent
  3. This is unit testing; it differs from routine functional testing only in that the test cases are written by an external team rather than the model's own developers
  4. This is regression testing; it differs from routine functional testing only in that it is run after every deployment rather than before the first one
AI & LLM Engineering · Evaluation, Testing & Safety · Card 006/056 hard

A team building an agent finds two different attack patterns during security testing: in one, a user of the application directly crafts an unusual prompt trying to get the agent to ignore its instructions; in the other, a trusted user asks the agent to summarize a webpage, and the webpage's own text contains hidden instructions trying to redirect the agent. Using the threat-model distinction drawn in Anthropic's guidance for mitigating these attacks, how are the two cases distinguished?

  1. Both are the same attack, jailbreaking, because in both cases the ultimate effect is that the agent's system prompt is overridden, regardless of who supplied the adversarial text
  2. The first is a direct prompt injection (or jailbreak), where the application's own user is the adversary crafting the input; the second is an indirect prompt injection, where the user is trusted but the agent processes third-party content -- such as a webpage, email, or tool result -- that itself contains adversarial instructions
  3. The first is indirect prompt injection, because the user's prompt is only indirectly related to the agent's task, while the second is direct prompt injection, because the webpage content directly reaches the model
  4. The first is a data poisoning attack, because it targets the model's training data, while the second is a prompt injection attack, because it targets the model's inference-time input
AI & LLM Engineering · Evaluation, Testing & Safety · Card 007/056 medium

A team wants to align a pretrained language model's outputs with human preferences -- for example, favoring helpful, well-formatted answers over unhelpful or poorly formatted ones -- in a way that goes beyond what the original next-token-prediction pretraining objective optimizes for. They collect many pairs of candidate outputs for the same prompt and have human annotators indicate which output in each pair they prefer. How does RLHF (reinforcement learning from human feedback) typically use this preference data to align the model?

  1. It directly edits the pretrained model's weight matrices using the preference labels as targets in an ordinary supervised next-token-prediction loss, with no reward model or reinforcement learning step involved at all
  2. It uses the preference pairs only to filter the pretraining corpus, removing any documents similar in style to the less-preferred outputs, before retraining the model from scratch on the filtered corpus
  3. It first trains a separate reward model to predict which of two outputs a human would prefer, using the collected pairwise comparisons as training data, and then uses reinforcement learning (commonly PPO) to fine-tune the language model's policy to maximize the score that reward model assigns to its outputs
  4. It uses the preference pairs to build a retrieval index, and at inference time retrieves the most similar previously-preferred output to return as the answer instead of generating a new one
AI & LLM Engineering · Evaluation, Testing & Safety · Card 008/056 hard

An evaluation framework for a retrieval-augmented generation (RAG) system reports three separate scores for a generated answer: a score for whether the retrieved passages are relevant to the question, a score for whether the answer directly addresses the question asked, and a score for whether each claim made in the generated answer is actually supported by the retrieved passages. Which of these is the 'faithfulness' (or 'groundedness') score, and what does it specifically measure?

  1. The relevance-of-retrieved-passages score is faithfulness, because a faithful answer is defined entirely by how relevant the retrieval step's passages were to the original question, regardless of what the generated answer actually claims
  2. The answer-addresses-the-question score is faithfulness, because a faithful answer is defined entirely by how directly it addresses the literal wording of the question, regardless of whether its claims are grounded in the retrieved passages
  3. Faithfulness cannot be measured separately from the other two scores, since retrieval relevance, answer relevance, and groundedness in retrieved passages are mathematically the same quantity computed three different ways
  4. The claims-supported-by-retrieved-passages score is faithfulness; it specifically measures whether the claims made in the generated answer can be traced back to and supported by the retrieved context, independent of whether that context was relevant to the question or whether the answer addresses the question asked
AI & LLM Engineering · Evaluation, Testing & Safety · Card 009/056 easy

A public platform for comparing chatbot quality shows users two anonymous model responses to the same prompt side by side and asks only 'which response is better,' rather than asking users to rate each response independently on, say, a 1-5 scale. The platform then aggregates these pairwise votes into a single ranking (an Elo-style rating) for each model. Why is this pairwise-comparison approach generally considered more reliable than collecting independent absolute ratings for ranking relative model quality?

  1. Relative judgments -- deciding which of two responses is better -- are generally easier for humans to make consistently than assigning an absolute numeric score, so pairwise comparisons tend to produce less noisy, better-calibrated signal for ranking models against each other than independently-collected absolute ratings, which vary more across raters and over time
  2. Absolute ratings are mathematically impossible to aggregate across different raters, while pairwise comparisons require no aggregation step at all before a ranking can be produced
  3. Pairwise comparisons take less time for the platform to collect than absolute ratings, and evaluation validity is determined entirely by how many total votes are collected, regardless of how the question is framed
  4. Absolute rating scales are only usable for evaluating machine translation quality specifically, so any other evaluation task must default to pairwise comparison instead
AI & LLM Engineering · Evaluation, Testing & Safety · Card 010/056 easy

A developer building a chat application wants an extra safety layer that classifies both the text a user submits and the text their language model generates, flagging content across categories such as harassment, hate, self-harm, sexual, and violence before either is shown to end users. Referring specifically to OpenAI's Moderation API (the `omni-moderation-latest` model), which statement accurately describes how it is intended to be used?

  1. It replaces the need for the underlying language model to have any safety training of its own, since all content decisions are made entirely by the moderation classifier before generation even begins
  2. It can be called on both standalone user-submitted input and on text generated by a model, returning a flagged status plus per-category violation flags and confidence scores; per OpenAI's own documentation, the underlying model still generates its output normally, and the moderation results are meant to be reviewed before that output is shown to a user or acted on
  3. It can only be used on text a user submits before generation begins, and OpenAI's documentation states it cannot be applied to text a model has already generated
  4. It is a paid, metered endpoint priced per classified token, separate from OpenAI's chat completion pricing, that developers must budget for separately when adding a moderation layer
AI & LLM Engineering · Evaluation, Testing & Safety · Card 011/056 medium

A team benchmarks two chat models using an LLM-as-judge setup, where a separate strong LLM scores which of two candidate responses is better. Across many prompts, the judge tends to prefer longer responses even when human annotators who read both find the shorter response equally correct and clearer. Which phenomenon does this describe, and what specific technique do modern instruction-following benchmarks such as AlpacaEval 2.0 use to correct for it?

  1. This is length (verbosity) bias in LLM-as-judge scoring, corrected by computing a length-controlled win rate that statistically removes the estimated effect of response-length differences on the judge's preference before reporting a model's score
  2. This is position bias, where the judge systematically favors whichever response is placed first in the prompt; it is corrected by randomly shuffling which response appears first
  3. This is self-enhancement bias, where the judge favors responses that share stylistic similarities with its own outputs; it is corrected by using a judge from a different model family
  4. This is a sampling artifact caused by high decoding temperature in the judge model; it is corrected by setting the judge's temperature to zero
AI & LLM Engineering · Evaluation, Testing & Safety · Card 012/056 easy

Two different automatic n-gram overlap metrics are commonly used for different natural language generation tasks: one for evaluating machine-generated summaries against reference summaries, and one for evaluating machine-translated text against reference translations. Which statement correctly distinguishes the typical orientation of ROUGE (used for summarization) from BLEU (used for translation)?

  1. ROUGE and BLEU both compute the same precision-oriented n-gram overlap; they differ only in which task's official leaderboards adopted each name
  2. ROUGE is recall-oriented, measuring how much of the reference text's content is captured in the generated output, while BLEU is precision-oriented, measuring how much of the generated output's content appears in the reference
  3. ROUGE is precision-oriented, measuring how much of the generated output's content appears in the reference, while BLEU is recall-oriented, measuring how much of the reference's content is captured in the generated output
  4. Both ROUGE and BLEU require a trained neural scoring model, unlike exact-match metrics such as accuracy, which are rule-based
AI & LLM Engineering · Evaluation, Testing & Safety · Card 013/056 easy

The SQuAD benchmark evaluates extractive question answering, where a system must return the exact text span from a passage that answers a question. SQuAD scoring reports two separate numbers: exact match (EM) and F1. Which statement correctly describes what each of these two scores measures?

  1. EM is the harmonic mean of precision and recall computed over predicted and gold token sets, while F1 is the percentage of predictions that share at least one word with a gold answer
  2. EM and F1 both measure the same thing at different confidence thresholds, with EM being a stricter cutoff applied to the F1 score
  3. EM is the percentage of predictions that match a gold answer exactly after normalization, while F1 treats the predicted and gold answers as bags of tokens and computes the harmonic mean of precision and recall between them, giving partial credit for overlapping but non-identical spans
  4. EM measures semantic similarity between predicted and gold answers using embedding distance, while F1 measures only whether the predicted answer's character length matches the gold answer's length
AI & LLM Engineering · Evaluation, Testing & Safety · Card 014/056 easy

Before trusting a set of human-collected quality ratings for a model evaluation, a research team wants to check whether two independent human annotators are actually applying the same judgment when they label the same outputs. Which statistic is designed specifically to measure agreement between two annotators on categorical labels while correcting for the agreement that would be expected by pure chance?

  1. Standard deviation of the two annotators' raw label counts
  2. Pearson correlation coefficient between the two annotators' label indices
  3. A simple raw percentage of examples where the two annotators' labels match, with no adjustment
  4. Cohen's kappa, which compares the observed agreement between the two annotators to the agreement expected under chance, given each annotator's label distribution
AI & LLM Engineering · Evaluation, Testing & Safety · Card 015/056 easy

A benchmark called TruthfulQA presents a language model with questions spanning categories such as health, law, finance, and politics, specifically selected because many humans hold false beliefs about the answers. The paper introducing this benchmark found that, unlike on most other NLP benchmarks, larger models in the tested families sometimes performed worse. What is the benchmark specifically designed to measure, and why did the researchers argue this counterintuitive result was expected?

  1. It measures a model's raw factual recall of trivia, and larger models did worse simply because they hallucinate low-frequency facts more often as memorization capacity increases
  2. It measures 'imitative falsehoods' -- false answers that mimic common human misconceptions -- and the researchers argued larger models can do worse because they more faithfully learn the false-but-popular beliefs present in their training text, rather than correcting for them
  3. It measures the alignment between a model's stated confidence and its true accuracy, and larger models did worse because they are more overconfident on ambiguous questions
  4. It measures a model's ability to detect toxic language, and larger models did worse because toxicity classifiers trained on older data mislabel modern slang
AI & LLM Engineering · Evaluation, Testing & Safety · Card 016/056 hard

A team reports that their model scores 84.3% on a benchmark, versus 83.9% for a competing model evaluated on the exact same test set. Before claiming their model is genuinely better, a reviewer wants a principled way to check whether a 0.4-point gap this small could plausibly arise from sampling variation in which particular examples happen to be in the test set, rather than a real difference in underlying quality. Which technique is commonly used in NLP evaluation for exactly this purpose?

  1. Recomputing the benchmark score using a larger batch size during inference, which reduces floating-point rounding error in the reported percentage
  2. Retraining both models from scratch multiple times and reporting whichever run gives each model its single highest score
  3. Paired bootstrap resampling: repeatedly resampling the test set with replacement, recomputing both models' scores on each resample, and using the resulting distribution of score differences to estimate whether the observed gap is unlikely to occur by chance
  4. Rounding both models' scores to the nearest whole percentage point so that small differences are no longer visible
AI & LLM Engineering · Evaluation, Testing & Safety · Card 017/056 easy

A team wants to check whether a language model 'knows what it doesn't know.' They bucket the model's predictions by its stated confidence (for example, grouping all predictions where the model reports around 70% confidence), then compare each bucket's average stated confidence to the actual fraction of predictions in that bucket that were correct. What is this general property called, and what does a large gap between confidence and observed accuracy across buckets indicate?

  1. This measures fluency, and a large gap indicates the model's output text is grammatically incorrect
  2. This measures faithfulness, and a large gap indicates the model's stated reasoning does not match the computation it actually used
  3. This measures diversity, and a large gap indicates the model produces overly repetitive outputs across many samples
  4. This measures calibration, summarized by metrics like Expected Calibration Error (ECE); a large gap indicates the model is poorly calibrated -- for example overconfident, reporting higher confidence than its actual accuracy in that bucket supports
AI & LLM Engineering · Evaluation, Testing & Safety · Card 018/056 hard

Researchers gave a language model multiple-choice questions from a reasoning benchmark, but secretly manipulated the few-shot examples in the prompt so the correct answer was always placed in the same option slot, subtly biasing the model toward picking that slot. The model's chain-of-thought explanation for its answer never mentioned this slot-position pattern, instead offering a plausible-sounding, purely content-based justification. What does this experiment demonstrate about chain-of-thought explanations, and what is this phenomenon called?

  1. It demonstrates that chain-of-thought explanations can be unfaithful: the stated reasoning can fail to mention factors that demonstrably influenced the model's actual answer, meaning the explanation is a plausible-sounding account rather than a reliable description of the true decision process
  2. It demonstrates that chain-of-thought prompting reduces accuracy on multiple-choice tasks compared to direct answering without any intermediate reasoning steps
  3. It demonstrates that the model has memorized the benchmark's answer key from its pretraining data, a form of benchmark contamination
  4. It demonstrates position bias in an LLM-as-judge setup, where a separate judge model favors answers presented earlier in a comparison
AI & LLM Engineering · Evaluation, Testing & Safety · Card 019/056 hard

A safety team wants to find prompts that provoke a target language model into producing harmful outputs, at a scale far beyond what a team of human testers could manually generate. Instead of relying only on human testers, they train a separate language model, using a harmful-content classifier's output as a reward signal, to generate adversarial prompts that reliably elicit harmful responses from the target model. What is this approach called, and what is a documented limitation of using reinforcement learning this way to generate adversarial prompts?

  1. This is called constitutional AI, and its main limitation is that it requires the target model's full training data to be available to the red-teaming system
  2. This is called reward-model overoptimization, and its main limitation is that it only applies when fine-tuning with human preference data, not to prompt generation
  3. This is called automated (model-based) red-teaming, and a documented limitation is mode collapse, where the red-teaming model repeatedly exploits a narrow set of successful attack patterns, reducing the diversity of the adversarial prompts it produces
  4. This is called jailbreak transfer, and its main limitation is that adversarial prompts found this way never generalize to any model other than the exact one they were generated against
AI & LLM Engineering · Evaluation, Testing & Safety · Card 020/056 medium

A team wants an automatic metric for scoring generated summaries that correlates better with human judgment than traditional n-gram overlap metrics, especially on creative or open-ended text where there is no single correct reference. They design a framework where a strong LLM is first prompted with a task description and scoring criteria to generate its own chain-of-thought list of detailed evaluation steps, and that generated chain-of-thought is then reused as part of the prompt that scores each candidate summary in a structured, form-filling manner. What is this evaluation framework called, and what advantage does its design offer over metrics like BLEU and ROUGE?

  1. This is called RLHF, and its advantage is that it directly updates the summarization model's weights to prefer human-preferred outputs, rather than only scoring outputs after generation
  2. This is called BERTScore, and its advantage is that it uses static word embeddings averaged across a sentence, rather than any language-model-generated reasoning steps
  3. This is called the Chatbot Arena Elo system, and its advantage is that it aggregates many independent pairwise human votes into a single ranking rather than scoring one output at a time
  4. This is called G-Eval, and its advantage is that its LLM-generated, criteria-specific chain-of-thought evaluation steps let it capture semantic and creative quality that fixed n-gram overlap metrics like BLEU and ROUGE cannot, achieving substantially higher correlation with human judgments on tasks such as summarization
AI & LLM Engineering · Evaluation, Testing & Safety · Card 021/056 easy

A team evaluates a code-generation model on HumanEval by generating n=200 candidate solutions per problem and running each one against that problem's unit tests. They want to report pass@10 -- the success rate if a user could examine up to 10 samples -- without generating a fresh batch of exactly 10 samples per problem for every value of k they want to report. Which approach did the original Codex/HumanEval paper use to compute pass@k from a single large batch of n>=k samples, and why is it needed instead of a naive formula?

  1. Compute pass@k as one minus the probability that a random k-sized draw (without replacement) from the n generated samples contains none of the c samples that passed -- an unbiased estimator built from n, c, and k; a naive formula that raises a fixed empirical per-problem pass rate to the k-th power systematically underestimates the true expected value
  2. Re-run generation for each value of k using exactly k fresh samples per problem, since reusing the same n samples across different values of k would let information leak between the pass@1, pass@10, and pass@100 estimates
  3. Compute pass@k as the plain proportion of the n generated samples that pass, regardless of k, since pass@1 and pass@100 are mathematically identical once you condition on a fixed test set
  4. Report the single highest-scoring sample among all n generated per problem as pass@k for every value of k, since only the best candidate matters when a user can freely pick among the shown samples
AI & LLM Engineering · Evaluation, Testing & Safety · Card 022/056 easy

A widely used benchmark evaluates a language model's breadth of knowledge with four-option multiple-choice questions spanning 57 subject areas, from elementary mathematics and US history to professional law and clinical medicine, aggregating accuracy across all of them into a single headline score. When this benchmark was introduced, the paper reported that even the largest contemporary GPT-3 model scored only modestly above random chance on average across the full set of subjects. Which benchmark is this, and what does it purport to measure?

  1. HellaSwag -- it measures whether a model can pick the most plausible completion of an everyday event description, filtered to be easy for humans but hard for models, rather than testing academic subject-matter knowledge
  2. MMLU (Massive Multitask Language Understanding) -- it measures the breadth of a model's world and academic knowledge and problem-solving ability by aggregating accuracy across 57 diverse subject-specific multiple-choice tasks spanning STEM, humanities, and social sciences
  3. TruthfulQA -- it measures whether a model can avoid repeating common human misconceptions across categories like health, law, and finance, rather than testing broad academic subject coverage
  4. SQuAD -- it measures a model's ability to extract the exact answer span from a supporting passage, rather than testing knowledge recall across dozens of independent academic subjects
AI & LLM Engineering · Evaluation, Testing & Safety · Card 023/056 medium

A team wants to check whether a model's advertised 200K-token context window actually lets it retrieve a specific fact placed anywhere within that context, rather than only near the beginning or end. They insert a short, out-of-place sentence at varying depths (for example 10%, 50%, 90% of the way through) inside filler text of varying total length, then ask the model a question answerable only using that inserted sentence, plotting accuracy as a heatmap across context length and insertion depth. What is this evaluation methodology commonly called, and what specific failure mode is it designed to surface?

  1. Chain-of-thought prompting -- it is designed to surface whether providing intermediate reasoning steps improves a model's arithmetic accuracy at different problem lengths, not its ability to retrieve inserted facts
  2. Adversarial filtering -- it is designed to surface whether a benchmark's wrong-answer options remain difficult for models after iteratively removing ones that simple classifiers can already solve, not a model's retrieval behavior over long context
  3. The 'needle in a haystack' test -- it is designed to surface uneven long-context retrieval, such as a model reliably finding information near the start or end of its context window while missing information buried in the middle, or performance degrading sharply once total context length grows large
  4. Self-consistency decoding -- it is designed to surface whether sampling multiple reasoning paths and taking a majority vote improves accuracy, not whether a single forward pass can retrieve one inserted fact from long context
AI & LLM Engineering · Evaluation, Testing & Safety · Card 024/056 hard

A team wants to flag likely hallucinated sentences in a chatbot's free-text answers, but they have no external knowledge base or retrieved documents to check the answer against, and the model itself is only accessible as a black box (they can query it but not inspect its internal probabilities). Their approach: sample several additional responses to the same prompt at a non-zero temperature, then check whether the original sentence's claims are consistent with what the other independently sampled responses say. Which approach does this describe, and what is the underlying assumption that makes it work?

  1. RLHF -- the underlying assumption is that human raters can always tell hallucinated content from ambiguous phrasing, so their pairwise preference labels are used to check sentence-level consistency
  2. An LLM-as-judge pairwise comparison -- the underlying assumption is that a stronger, separate model can catch factual errors by comparing two candidate answers to the same prompt
  3. A RAG faithfulness check -- the underlying assumption is that a set of retrieved passages will always contain the ground truth needed to verify each claim in the answer
  4. SelfCheckGPT -- the underlying assumption is that if the model actually knows a fact, independently sampled responses to the same prompt will tend to agree and stay consistent with each other, whereas a hallucinated claim is more likely to be phrased inconsistently or contradicted across different samples, since it is not grounded in any real, load-bearing knowledge the model is reliably drawing on
AI & LLM Engineering · Evaluation, Testing & Safety · Card 025/056 medium

Researchers studying LLM-as-judge setups (where a strong LLM scores or compares candidate responses) identify a bias distinct from position bias (favoring whichever response is shown first) and verbosity bias (favoring longer responses): the judge model tends to rate responses generated by itself, or by models from the same family, more favorably than equally good responses from other models. What is this bias called, and how does it differ from the position bias already known to affect these same judge setups?

  1. Self-enhancement (self-preference) bias -- unlike position bias, which is triggered by where a response happens to sit in the prompt regardless of who produced it, self-enhancement bias is tied to the identity of the response's source, favoring outputs from the judge's own model or family independent of where they are placed
  2. Position bias itself, just measured across a larger set of prompts -- the same slot-preference effect, only aggregated differently, with no dependence on which model actually produced each response
  3. Reward hacking -- a phenomenon where a policy optimized against a learned reward model exploits inaccuracies in that reward model, which requires a reinforcement learning training loop and has nothing to do with a judge scoring already-generated responses
  4. Anchoring bias from few-shot examples -- a bias caused by examples shown earlier in the judge's own prompt influencing its later scores, unrelated to which model actually generated the response being judged
AI & LLM Engineering · Evaluation, Testing & Safety · Card 026/056 easy

A developer wants to flag potentially toxic user comments before they are published on a community forum. They send each comment's text to a third-party API and receive back a score between 0 and 1 for a 'TOXICITY' attribute. According to the API provider's own documentation, what does that score actually represent, and which real, publicly documented API does this describe?

  1. It represents the probability that the comment contains a policy-violating category such as self-harm, sexual content, or violence, as returned by OpenAI's Moderation API
  2. It represents the estimated probability that a human reader would perceive the comment as rude, disrespectful, or otherwise likely to make someone leave a discussion, as returned by Google Jigsaw's Perspective API
  3. It represents a hard binary classification of whether the comment must be removed under the platform's own content policy, as returned by Google Jigsaw's Perspective API
  4. It represents the number of independent human moderators, out of a fixed panel, who would vote to ban the commenting user's account, as returned by OpenAI's Moderation API
AI & LLM Engineering · Evaluation, Testing & Safety · Card 027/056 easy

A widely used natural-language-understanding benchmark aggregated scores across tasks like sentiment classification, paraphrase detection, and textual entailment into a single leaderboard number. Within about a year of its release, submitted models' state-of-the-art average score had risen past the benchmark's own human baseline, and researchers judged that many of its individual tasks no longer meaningfully separated strong models from each other. What happened next, and why?

  1. The benchmark's creators simply retired language benchmarking entirely, concluding that no fixed multiple-choice-style test could ever meaningfully separate strong models again
  2. The same benchmark's leaderboard was left unchanged indefinitely, since a benchmark that models have already surpassed on average is still considered equally useful for comparing newer, stronger models
  3. The benchmark's creators introduced a successor benchmark, SuperGLUE, with more difficult and more diverse tasks specifically designed to leave headroom above both existing models and the human baseline, since the original benchmark (GLUE) had become saturated
  4. The original benchmark's test sets were kept exactly as published, but the passing score threshold for the leaderboard was quietly raised so fewer models would qualify as state-of-the-art
AI & LLM Engineering · Evaluation, Testing & Safety · Card 028/056 hard

A benchmark presents a model with the beginning of an everyday scenario description and four possible endings, only one of which is a sensible continuation; humans solve this with over 95% accuracy, but contemporary state-of-the-art language models score below 48%. The wrong endings were not written by hand but generated by another language model and then passed through an iterative filtering process that specifically removed any candidate wrong ending that simple classifiers could already learn to distinguish from the right one. What is this filtering process called, and what is its purpose?

  1. Chain-of-thought distillation -- the purpose is to train a smaller model to imitate a larger model's step-by-step reasoning traces, not to filter which wrong answers appear in a benchmark's dataset
  2. Reinforcement learning from AI feedback (RLAIF) -- the purpose is to replace costly human preference labels with an AI-generated preference signal used during model training, not to filter benchmark answer options
  3. Bootstrap resampling -- the purpose is to estimate a confidence interval around a benchmark score by resampling the test set with replacement, not to filter which wrong endings appear in the dataset
  4. Adversarial filtering (AFLite) -- the purpose is to iteratively discard machine-generated wrong endings that current lightweight classifiers can already tell apart from the correct ending, pushing the surviving wrong endings into a 'Goldilocks zone' that remains obvious to humans but stays deceptively hard for models
AI & LLM Engineering · Evaluation, Testing & Safety · Card 029/056 medium

Researchers select 23 tasks from a much larger, diverse collection of benchmark tasks, choosing specifically the subset where prior language-model evaluations, run without any intermediate reasoning steps in the prompt, failed to match the average human rater's performance. They then re-evaluate strong models on these 23 tasks using prompts that include step-by-step reasoning before the final answer, and find this substantially closes the gap to human performance on many of the tasks. What is this curated hard subset called, and what does the finding suggest about evaluating models on it?

  1. BIG-Bench Hard (BBH) -- the finding suggests that evaluating models only with direct, non-reasoning prompts on these particular tasks understates their true capability, since providing step-by-step reasoning before the answer lets several strong models surpass average human-rater performance on tasks where they previously fell short
  2. TruthfulQA -- the finding suggests that larger models are more prone to repeating common human misconceptions, which step-by-step reasoning prompts cannot fix regardless of model scale
  3. GLUE -- the finding suggests that sentiment classification and textual entailment tasks specifically require step-by-step reasoning prompts to reach human-level performance, unlike knowledge-recall tasks
  4. HumanEval -- the finding suggests that unit-test pass rates for generated code improve only when multiple independent samples are drawn per problem, regardless of whether reasoning steps are included in the prompt
AI & LLM Engineering · Evaluation, Testing & Safety · Card 030/056 easy

A research group argues that ranking language models on a single accuracy number, from whichever scenarios each paper happens to choose to report, makes it hard to compare models fairly or to know how they perform on dimensions like calibration, robustness, fairness, bias, toxicity, and computational efficiency. They build an open-source framework that instead evaluates many models against a broad, standardized set of scenarios and reports all of these metrics together wherever applicable, rather than letting each paper pick its own narrow slice. What is this framework called, and what problem is it specifically meant to solve?

  1. LM-Evaluation-Harness -- it is meant to solve the problem of running one specific benchmark quickly on a single model checkpoint, without any explicit multi-metric standardization goal across models
  2. HELM (Holistic Evaluation of Language Models) -- it is meant to solve the problem of fragmented, inconsistent evaluation practice by explicitly standardizing which scenarios and which broad set of metrics (accuracy, calibration, robustness, fairness, bias, toxicity, efficiency) every evaluated model is measured against, so results become directly comparable across models and papers
  3. AlpacaEval -- it is meant to solve the problem of measuring instruction-following quality specifically through length-controlled, pairwise LLM-as-judge comparisons, not through a standardized multi-metric, multi-scenario framework
  4. Chatbot Arena -- it is meant to solve the problem of ranking models via anonymous, crowdsourced pairwise human votes aggregated into an Elo-style rating, not through a fixed set of standardized offline scenarios and metrics
AI & LLM Engineering · Evaluation, Testing & Safety · Card 031/056 medium

A team is evaluating an LLM-based chatbot for customer support. They notice that BLEU scores against reference answers are low, yet human evaluators rate the chatbot's responses as helpful and accurate. What does this discrepancy most likely indicate?

  1. BLEU measures n-gram overlap with reference text, so a correct answer phrased differently from the reference scores poorly — this shows that lexical-match metrics like BLEU are poorly suited for evaluating open-ended generation where multiple valid phrasings exist
  2. The human evaluators are wrong and the BLEU score is the authoritative measure of response quality, so the chatbot's responses must actually be poor despite appearing helpful
  3. The chatbot is memorising and regurgitating the reference answers word-for-word, which human evaluators reward but BLEU penalises
  4. BLEU scores can only be computed for machine translation tasks and produce meaningless numbers when applied to any other text generation task
AI & LLM Engineering · Evaluation, Testing & Safety · Card 032/056 medium

A team wants an automatic, reference-based metric for scoring machine-generated text that can recognize paraphrases and synonyms that traditional n-gram overlap metrics penalize as wrong, without needing a separate LLM to generate its own chain-of-thought evaluation steps. Zhang et al.'s BERTScore is designed for exactly this. What is BERTScore's actual mechanism, and how does its precision/recall/F1 computation work?

  1. It averages each sentence's word embeddings into a single vector per sentence, then computes one cosine similarity between the two resulting sentence-level vectors
  2. It has a separate strong LLM read both texts and directly output a single 1-10 similarity rating in natural language, which is then treated as the score
  3. It uses contextual embeddings from a pretrained transformer to represent every token in context, then for precision matches each candidate token to its most similar reference token by cosine similarity and averages those maximum similarities, and for recall does the same in the opposite direction, matching each reference token to its most similar candidate token, combining the two into an F1 score
  4. It counts overlapping n-grams between the candidate and reference exactly as BLEU does, but reweights each n-gram's contribution by its inverse document frequency across a large background corpus
AI & LLM Engineering · Evaluation, Testing & Safety · Card 033/056 easy

A team fine-tunes a text generation model and worries it may have collapsed into repeatedly producing near-identical outputs for the same prompt rather than genuinely varied ones -- a failure that a reference-based metric scored against a fixed ground-truth answer would not catch, since that only measures similarity to the reference, not similarity among the model's own outputs. They generate many samples from the model for the same prompt and score how similar those samples are TO EACH OTHER. What is this diversity-focused evaluation approach, and how is it computed?

  1. This is Self-BLEU: for each generated sample, BLEU is computed treating that sample as the hypothesis and every other sample generated for the same prompt as a reference, and the resulting scores are averaged across all samples; a high Self-BLEU indicates low diversity because the samples closely resemble each other, while a low Self-BLEU indicates higher diversity
  2. This is BLEU computed against a larger held-out set of human-written references instead of the model's original training references, which measures generalization to unseen references rather than diversity among the model's own outputs
  3. This is perplexity computed on the model's own generated samples rather than on held-out human text, which measures how confidently the model predicts its own outputs, not how similar those outputs are to each other
  4. This is BERTScore computed between each generated sample and a single fixed reference translation, which measures each sample's semantic fidelity to that one reference rather than similarity among the generated samples themselves
AI & LLM Engineering · Evaluation, Testing & Safety · Card 034/056 easy

A team wants a moderation layer that classifies both a user's incoming prompt and the model's outgoing response against a specific, named list of unsafe content categories (such as violent crimes, weapons, and hate), and that can later be adapted to a different set of categories without a full classifier retrain from scratch. Meta's Llama Guard (Inan et al., 2023) is designed for exactly this. What is Llama Guard, and how does its underlying mechanism differ from a classical text classifier such as a fixed toxicity-scoring model?

  1. It is a rule-based keyword filter that flags any output containing terms from a fixed denylist, with no learned model or training data involved at all
  2. It is an instruction-tuned LLM (a fine-tuned Llama 2 model) that is prompted with a safety risk taxonomy and the conversation turn to classify, and outputs whether that turn is safe or unsafe along with which category was violated; because the taxonomy is expressed as text in the prompt rather than hard-coded into a fixed classifier architecture, new or custom risk categories can be supported by adapting the instruction-tuning data and taxonomy definitions rather than rebuilding the classifier from scratch
  3. It is a lightweight logistic regression model trained on exactly the same fixed feature set as a commercial toxicity-scoring API, differing from that API only in which organization trained it
  4. It fine-tunes the target conversational model's own weights directly at inference time so that the model itself refuses unsafe requests, rather than operating as a separate classifier alongside the target model
AI & LLM Engineering · Evaluation, Testing & Safety · Card 035/056 medium

A team relying on a top proprietary LLM as an LLM-as-judge to score a fine-tuned model's outputs at scale finds this approach costly, subject to that proprietary model silently changing behavior across API version updates, and hard for other researchers to reproduce exactly since they cannot inspect or freeze the judge's weights. Kim et al. propose Prometheus, an openly released model built specifically to fill the judge role instead. What is Prometheus's approach, and what limitation of proprietary-judge evaluation is it specifically designed to address?

  1. Prometheus is a fixed lookup table of reference embeddings with no learned parameters, matching each candidate response to the nearest reference response by cosine similarity alone
  2. Prometheus is the proprietary judge model itself, repackaged and rebranded as an open-source release, with no differences in model weights or training data
  3. Prometheus retrains the target model being evaluated directly on human feedback so that it can no longer produce outputs a judge would rate poorly, which removes the need for any separate judge model
  4. Prometheus is an open-source language model fine-tuned on a large synthetic feedback dataset (built with GPT-4-generated rubrics, reference answers, and scoring rationale) so that, given a customized score rubric, it produces fine-grained judgments closely correlated with human and GPT-4 evaluations; because its weights are open and fixed, it offers reproducible, inexpensive evaluation that does not depend on a proprietary API's cost or on that API's behavior silently changing across versions
AI & LLM Engineering · Evaluation, Testing & Safety · Card 036/056 hard

Two research teams each run the same open-weight model on the MMLU benchmark and report noticeably different accuracy scores, even though neither team made a mistake and both used the same model weights and the same official MMLU questions. Hugging Face's investigation into a real instance of this discrepancy, described in its blog post 'What's going on with the Open LLM Leaderboard?', traced much of the gap to how different evaluation harnesses formulate the same underlying multiple-choice question. What specific difference in question format was identified as a major source of the score gap?

  1. Some harnesses use a 'multiple-choice formulation,' where the model is prompted to directly output the letter of its chosen answer, while others use a 'cloze formulation,' where the model never sees the answer choices as text and is instead scored by comparing the log-probability it assigns to each full candidate answer completing the question; these two formulations can produce substantially different accuracy scores and even reorder which model appears to perform better
  2. Some harnesses translate the MMLU questions into a different language before scoring, while others keep them in the original English, and translation quality accounts for the score gap
  3. Some harnesses run each question once while others run it three times and average the result, and this repeated-sampling averaging alone is what produces the score gap
  4. Some harnesses evaluate against a larger held-out test split than the official MMLU test set, silently adding easier questions that inflate the average accuracy
AI & LLM Engineering · Evaluation, Testing & Safety · Card 037/056 medium

A team testing a sentiment classifier wants to move beyond a single aggregate accuracy score and run three distinct kinds of structured test cases: (1) simple, hand-written examples like 'This movie was great' that check one specific capability in isolation; (2) pairs of inputs where a sentence's location name is swapped for a different location name, and the correct sentiment label should NOT change; and (3) pairs of inputs where a clearly negative clause is added to an otherwise positive review, and the label IS expected to change in a specific, predictable direction. Ribeiro et al.'s CheckList methodology names these three test types. What are they called, and how do the second and third differ from each other?

  1. All three are the same test type, called Minimum Functionality Tests (MFTs); CheckList does not distinguish between perturbations that should and should not change the model's prediction
  2. The first is an Invariance Test (INV), the second is a Directional Expectation Test (DIR), and the third is a Minimum Functionality Test (MFT); Invariance Tests use isolated hand-written examples, while the other two use paired perturbations
  3. The first is a Minimum Functionality Test (MFT), a simple, targeted example checking one capability in isolation, akin to a unit test. The second is an Invariance Test (INV): a label-preserving perturbation, such as swapping one location name for another, where the correct prediction should stay the same. The third is a Directional Expectation Test (DIR): a perturbation, such as adding clearly negative content, where the prediction is expected to change in a specific, predictable direction rather than staying the same or changing arbitrarily
  4. The first is called a regression test, the second is called an A/B test, and the third is called a unit test; CheckList borrows these three names directly from software QA practice without adapting their meaning to model behavior
AI & LLM Engineering · Evaluation, Testing & Safety · Card 038/056 easy

A team running an LLM-powered support-ticket classifier in production wants to catch the case where updating their prompt template, or swapping to a newer model version, silently breaks classification on tickets the system already handled correctly, without waiting for user complaints to surface the problem. Rather than relying only on academic benchmarks, they maintain their own small, curated set of real or representative support tickets, each with an expert-verified correct label, and automatically re-run every ticket in this set against the classifier whenever the prompt or model changes. What is this practice usually called, and what specific failure does it catch that a one-off manual spot check on a few new examples would not?

  1. This is called red-teaming; it is designed to find intentionally adversarial prompts that provoke unsafe or policy-violating behavior, not to detect unintended regressions on cases the system previously handled correctly
  2. This is commonly called a golden set (or regression test suite) for the application; because it is re-run automatically and in full every time the prompt or model changes, it systematically catches silent regressions across the entire curated set of previously working cases, which a one-off manual spot check on a handful of new examples would likely miss entirely
  3. This is called A/B testing; it compares two live model versions on random subsets of real user traffic, which requires exposing users to the change in order to detect a regression, rather than checking an offline curated set before deployment
  4. This is called benchmark contamination; it refers to a model having seen the exact evaluation examples during pretraining, which inflates scores rather than helping catch unintended regressions after a prompt or model change
AI & LLM Engineering · Evaluation, Testing & Safety · Card 039/056 easy

A team wants a benchmark specifically for testing whether a language model can perform correct multi-step arithmetic reasoning on problems a bright middle-school student could solve, rather than pure knowledge recall or a single-step calculation. Cobbe et al.'s GSM8K, introduced by OpenAI, is one of the most widely used benchmarks for exactly this. What does GSM8K actually consist of, and what makes it a meaningful test of multi-step reasoning rather than rote calculation?

  1. A set of 57 subject-area exams covering law, medicine, and history, each requiring only single-fact recall rather than any arithmetic reasoning
  2. A set of algebraic proofs requiring symbolic manipulation of variables, generated automatically by a computer algebra system rather than written by humans
  3. A set of four-option multiple-choice arithmetic questions where the model only needs to select among given numeric answers rather than compute or generate one itself
  4. A set of about 8,500 grade-school math word problems, each written to require two to eight steps of basic arithmetic (addition, subtraction, multiplication, division) to reach the final numeric answer rather than a single calculation or a fact lookup; because each problem requires correctly chaining several dependent steps, a model that only pattern-matches surface wording or performs a single operation will fail even though the arithmetic at each individual step is simple
AI & LLM Engineering · Evaluation, Testing & Safety · Card 040/056 easy

A team releasing a new model wants a standardized way to document, alongside the model itself, what data it was trained and evaluated on, its intended use cases and out-of-scope uses, how its performance varies across different demographic groups or usage conditions, and known limitations -- so that people deciding whether to use the model have the essential facts up front rather than needing to read the full research paper or run their own audit. Mitchell et al. (2019) propose a specific documentation framework for exactly this. What is it called, and what does it require beyond simply reporting a single aggregate accuracy number?

  1. This is called a data sheet, and it documents only the composition of a training dataset, not the released model's own evaluation results or intended use
  2. This is called a red-team report, and it documents only adversarial testing results, not the model's intended use, training data, or general evaluation metrics
  3. This is called a model card, and beyond reporting a single aggregate score, its structure explicitly requires sections such as intended use and out-of-scope uses, the factors evaluation results are disaggregated by (such as demographic groups or usage conditions), descriptions of training and evaluation data, and ethical considerations and caveats, so that one overall accuracy figure is never presented as the whole story of the model's behavior
  4. This is called a system prompt, and it is a set of runtime instructions given to the model at inference time, not a static document released alongside the model describing its training data or evaluation results
AI & LLM Engineering · Evaluation, Testing & Safety · Card 041/056 hard

Researchers building a natural language inference (NLI) benchmark are concerned that once a benchmark is released, models can eventually reach very high accuracy on it not necessarily because they have mastered the underlying reasoning, but because the benchmark's own statistical patterns become learnable over time. Nie et al.'s ANLI (Adversarial NLI) constructs its evaluation set through an unusual, iterative collection procedure spanning three sequential rounds, rather than collecting all examples at once from unaided human writers. What is this collection procedure, and how does it differ across the three rounds?

  1. ANLI uses a human-and-model-in-the-loop procedure: in each round, human annotators write examples specifically intended to fool a current 'target' model into predicting the wrong label, and only examples that successfully fool that round's target model are kept; each subsequent round trains a stronger target model, incorporating the previous rounds' fooling examples and, eventually, broader training data and more diverse source contexts, before annotators try to fool that harder target, so example difficulty increases round over round as the adversary model improves
  2. ANLI's three rounds are simply three independently collected batches from unaided crowdworkers with no model involved in selecting which examples to keep, differing only in which topic domain each round covers
  3. ANLI's three rounds each apply CheckList's Minimum Functionality Test methodology to generate examples automatically, with no human annotators involved in any round
  4. ANLI's three rounds are generated entirely by having a language model paraphrase existing examples from the SNLI and MultiNLI datasets, without any human writing new premises or hypotheses
AI & LLM Engineering · Evaluation, Testing & Safety · Card 042/056 easy

A team collects quality judgments for a set of model outputs from THREE annotators (not two), each independently assigning every output to one of several categories such as 'correct', 'partially correct', or 'incorrect'. They want a single chance-corrected agreement statistic across all three annotators at once, rather than computing Cohen's kappa separately for each pair of annotators and trying to summarize three separate numbers. Which statistic is designed for exactly this, and how does it generalize beyond the two-annotator case?

  1. Fleiss' kappa, which computes chance-corrected agreement from how consistently items are classified into each category across any fixed number of raters per item, using the overall proportion of ratings in each category to estimate chance agreement
  2. Simply averaging the three pairwise Cohen's kappa values (annotator 1 vs 2, 1 vs 3, 2 vs 3) produces the same mathematical quantity as a proper multi-annotator statistic
  3. Cohen's kappa itself already handles any number of annotators directly in its original formula, so no separate statistic is needed
  4. A one-way ANOVA F-statistic on the annotators' category assignments, which tests whether group means differ but does not correct for chance agreement on categorical labels
AI & LLM Engineering · Evaluation, Testing & Safety · Card 043/056 easy

A team evaluating a machine translation system working with a morphologically rich target language notices that BLEU harshly penalizes outputs that use the exact correct word stem but a different grammatical ending than the single reference translation happens to use, even though a fluent reader would judge the translation correct. They want a reference-based automatic metric that still gives credit for this kind of near-miss without needing an external stemmer, synonym dictionary, or word-alignment step. Which metric fits this requirement, and how does its computation differ from BLEU's word n-gram matching?

  1. METEOR, which aligns words between hypothesis and reference using an external stemmer and a WordNet synonym dictionary before scoring, so credit for a shared stem depends on that external linguistic resource being available for the language
  2. BERTScore, which embeds the hypothesis and reference with a contextual language model and scores similarity in that embedding space, requiring a pretrained neural model rather than any direct n-gram counting
  3. ROUGE-L, which scores the longest common subsequence of whole words between hypothesis and reference and so still treats two different word forms of the same stem as completely non-matching tokens
  4. chrF, which computes precision and recall over overlapping character n-grams (rather than word n-grams) between hypothesis and reference and combines them into an F-score, so a shared stem contributes overlapping character n-grams even when the word ending differs, with no external stemmer or dictionary required
AI & LLM Engineering · Evaluation, Testing & Safety · Card 044/056 medium

A team wants to measure how well an LLM can RECOGNIZE hallucinated content when shown it, not merely how often that same model produces hallucinations unprompted. They need a dataset built from paired samples: for each question, dialogue turn, or document to summarize, one candidate response is the correct, grounded answer and a second candidate is an automatically generated variant that introduces a plausible-sounding but factually unsupported claim, with the model under test asked to pick which candidate is hallucinated. Which benchmark provides exactly this kind of paired right-vs-hallucinated sample set spanning question answering, knowledge-grounded dialogue, and summarization, and what rate of hallucination did its authors separately report for ChatGPT's own free-form generations?

  1. TruthfulQA, which presents single questions (with no paired hallucinated/non-hallucinated candidate) drawn from topics where many humans hold false beliefs, and reports that larger models in its tested families sometimes scored worse, not a hallucination rate on free-form generation
  2. HaluEval, a 35,000-sample benchmark combining human-annotated general-query responses with automatically generated paired QA, dialogue, and summarization samples, whose authors separately found that ChatGPT hallucinates in about 19.5% of its free-form responses, mainly by fabricating unverifiable information
  3. SelfCheckGPT, which detects likely hallucination by sampling several additional responses to the same prompt and checking consistency across them, rather than by presenting a model with a pre-built pair of hallucinated and non-hallucinated candidates to classify
  4. G-Eval, a framework in which a strong LLM generates its own chain-of-thought evaluation steps and reuses them to score a single candidate response's quality, with no paired hallucinated/non-hallucinated recognition task involved
AI & LLM Engineering · Evaluation, Testing & Safety · Card 045/056 medium

Several safety teams each publish jailbreak-robustness results for the same set of open-weight models, but each team used its own choice of attack algorithm, its own subset of harmful-behavior test cases, and its own success-scoring method, so the published rankings of which models are 'more robust' directly contradict each other and cannot be fairly compared. Which evaluation framework was built specifically to unify many different attack methods, defenses, and a shared taxonomy of harmful behaviors under one pipeline and one scoring method so results become directly comparable, and what general empirical pattern did its large-scale evaluation find about robustness?

  1. Manual human red-teaming of the kind safety teams already perform before release, which relies on people devising creative adversarial prompts and does not itself define a standardized attack/defense comparison pipeline or shared success metric across teams
  2. A red-team-via-reinforcement-learning approach in which a separate model is trained, using a harmful-content classifier's output as a reward signal, to generate prompts that elicit harmful responses; this names one specific attack-generation method rather than a framework for comparing many attack and defense methods against each other
  3. A broad trustworthiness benchmark scoring dimensions such as toxicity, stereotype bias, robustness, and privacy across many standard scenarios, which is aimed at general trustworthiness auditing rather than specifically unifying jailbreak attack and defense comparisons under one shared harmful-behavior taxonomy
  4. HarmBench, a standardized evaluation pipeline covering a shared registry of several hundred harmful behaviors and evaluating many attack methods against many defenses and target models under one set of metrics; its large-scale evaluation found that no single attack or defense method was universally effective, and that robustness did not correlate directly with model size
AI & LLM Engineering · Evaluation, Testing & Safety · Card 046/056 hard

A team evaluating long-form biography generations (for example, 'write a short biography of a historical scientist') wants a factuality metric finer-grained than a single whole-paragraph verdict of 'accurate' or 'not accurate,' since one paragraph often mixes correct and incorrect claims together. Their approach: break each generated paragraph into many short, independently checkable statements, verify each one against a reliable knowledge source, and report the percentage of these statements that are supported. Which evaluation approach does this describe, what is its checkable unit called, and against what is each unit verified?

  1. The RAG faithfulness (groundedness) score, which checks whether claims in a generated answer are supported specifically by the passages a retrieval system supplied for that answer, rather than by an open-domain reliable knowledge source chosen independently of any retrieval step
  2. BERTScore, which scores an entire generated text's similarity to a single reference text using embedding-space overlap, rather than verifying many separately extracted, independently checkable statements against a knowledge source
  3. FActScore, which decomposes a long-form generation into 'atomic facts' -- short statements each conveying one piece of information -- verifies each atomic fact against a reliable knowledge source, and reports the percentage of atomic facts that are supported
  4. SelfCheckGPT-style consistency checking, which checks whether a statement's claims agree with several other responses independently sampled from the same model, rather than verifying each statement against an external knowledge source
AI & LLM Engineering · Evaluation, Testing & Safety · Card 047/056 medium

A team wants to align a pretrained language model with collected pairwise human preference data (for each prompt, which of two candidate outputs annotators preferred), but wants to avoid RLHF's two-stage pipeline of first training a separate reward model and then running reinforcement learning (commonly PPO) against it, with all the extra sampling and hyperparameter tuning that pipeline requires. They adopt Direct Preference Optimization (DPO) instead. How does DPO actually achieve preference alignment, and how does its mechanism differ from RLHF's?

  1. DPO still trains a separate reward model on the same preference pairs, but skips the reinforcement-learning stage entirely, leaving the model to copy the reward model's top-scoring outputs directly at inference time
  2. DPO uses a closed-form reparameterization showing that, for the same constrained reward-maximization objective RLHF optimizes, the optimal policy itself implicitly defines a reward function in terms of the policy's own output probabilities; this lets the preference data be optimized directly against the policy with a single classification-style loss derived from the Bradley-Terry preference model, with no separate reward model to train and no on-policy sampling loop like PPO needed
  3. DPO and RLHF are two names for exactly the same two-stage procedure -- a reward model is trained first and reinforcement learning second in both -- the only difference is which optimizer library each name is historically associated with
  4. DPO replaces the human preference data used by RLHF with preference labels generated by a separate AI judge, but otherwise runs the identical reward-model-then-PPO pipeline
AI & LLM Engineering · Evaluation, Testing & Safety · Card 048/056 hard

Anthropic's Constitutional AI approach (Bai et al., 2022) aims to train a model to be harmless without relying on human-labeled examples of harmful-versus-preferred responses at every step. It proceeds in two phases. Which statement correctly describes the two phases and what distinguishes the second phase from standard RLHF?

  1. In the first phase the model is trained directly via reinforcement learning against a human-labeled harmlessness reward model, and the second phase replaces that human-labeled data with crowd-sourced pairwise votes from a public platform used only to double-check the first phase's results
  2. Both phases rely on reinforcement learning using human preference labels throughout; the only distinguishing feature of Constitutional AI is that a written list of principles is shown to human annotators before they label which output they prefer
  3. In the first phase, the model generates a response to a prompt, critiques that response against a principle drawn from a written set of principles (a 'constitution'), and revises the response accordingly, with the critique-revise cycle repeated and the final revisions used for supervised fine-tuning; in the second phase, the fine-tuned model generates pairs of responses and a separate AI evaluator, guided by the same constitution, labels which response is preferred, producing an AI-generated preference dataset that trains a preference model used for a standard reinforcement learning stage -- which is why this second phase is described as reinforcement learning from AI feedback (RLAIF)
  4. The first phase trains a reward model directly on the constitution's text treated as additional pretraining data, and the second phase then fine-tunes the policy purely via supervised learning on the outputs that reward model scores highest, with no further reinforcement learning involved
AI & LLM Engineering · Evaluation, Testing & Safety · Card 049/056 easy

A research group wants to evaluate chat models on their ability to sustain a coherent, helpful conversation across multiple turns -- not just answer a single isolated prompt -- using a curated, fixed set of challenging questions rather than live crowd-sourced votes. They adopt MT-Bench (Zheng et al., 2023). How does MT-Bench's evaluation methodology work, and how does it differ from Chatbot Arena, introduced in the same paper?

  1. MT-Bench and Chatbot Arena are the same evaluation pipeline under two names; both collect live anonymous votes from real users, and the only difference is that MT-Bench logs are later re-scored by GPT-4 for a second opinion
  2. MT-Bench consists of a fixed set of 80 curated multi-turn questions spanning eight categories such as writing, reasoning, math, and coding, with each question built as a two-turn conversation; a strong LLM judge (GPT-4) scores or compares the responses, using techniques like reference-guided grading on categories such as math where the judge itself is prone to error -- unlike Chatbot Arena, which instead collects live, anonymous pairwise votes from real users interacting with two randomly paired models on arbitrary prompts and aggregates those crowd votes into an Elo-style ranking
  3. MT-Bench tests only single-turn prompts drawn from the same question pool as Chatbot Arena, differing only in that MT-Bench uses human crowd raters instead of an LLM judge
  4. MT-Bench evaluates models purely via automatic n-gram overlap metrics such as BLEU against a fixed set of reference conversations, avoiding the use of any LLM-based judge entirely
AI & LLM Engineering · Evaluation, Testing & Safety · Card 050/056 easy

A team wants a benchmark of expert-level science questions specifically designed to resist being answered correctly by simply searching the internet, so that strong performance signals genuine domain expertise rather than search skill. They adopt GPQA (Rein et al., 2023). What does GPQA consist of, and what evidence does the paper offer that the questions resist search?

  1. GPQA questions are drawn directly from standardized graduate entrance exams such as subject-matter GRE tests, and the paper's main evidence of difficulty is that no language model of any kind has ever scored above random chance on it
  2. GPQA is a reading-comprehension benchmark where the correct answer is always stated verbatim somewhere in an accompanying passage, so its 'Google-proof' name refers to the questions not needing any outside passage, only the question text itself
  3. GPQA consists of agreed-upon canonical facts generated by a language model, with 'Google-proof' referring to the fact that no search engine indexes the questions, since they are kept entirely offline and unpublished
  4. GPQA is a set of 448 multiple-choice questions in biology, physics, and chemistry written and validated by subject-matter experts holding or pursuing PhDs in the relevant field; the paper reports that domain experts answering questions outside their own specialty score 65% (74% when excluding mistakes they later identified themselves), while highly skilled non-expert validators given unrestricted internet access and over 30 minutes per question still only reach 34% accuracy, barely above the 25% chance baseline for four-option questions, which the authors offer as evidence the questions resist being answered via search alone
AI & LLM Engineering · Evaluation, Testing & Safety · Card 051/056 medium

A team wants to measure how likely a language model is to degenerate into toxic text, even from prompts that are not themselves toxic, and wants a standardized metric for this rather than scoring individual outputs' toxicity one at a time. They adopt RealToxicityPrompts (Gehman et al., 2020) and its headline metric. What does the dataset consist of, and how is its 'Expected Maximum Toxicity' metric computed?

  1. RealToxicityPrompts prompts are all adversarially written by red-teamers specifically to be maximally toxic, and Expected Maximum Toxicity is simply the toxicity score of the single most toxic prompt in the dataset, independent of any model output
  2. RealToxicityPrompts scores only the prompts themselves and never the model's generated continuations; Expected Maximum Toxicity instead measures how often human annotators rate a prompt as offensive on first read
  3. RealToxicityPrompts is a dataset of roughly 100,000 naturally occurring sentence-level prompts drawn from English web text and pre-scored for toxicity across a range of toxicity levels, including many prompts that are not themselves toxic; Expected Maximum Toxicity is computed by generating multiple continuations (25 in the original paper) from the model for the same prompt, taking the single highest toxicity score among those continuations, and averaging that per-prompt maximum across all prompts in the dataset, capturing a model's worst-case toxic output under repeated sampling rather than its average behavior
  4. RealToxicityPrompts requires access to the model's internal token probabilities to compute toxicity, since Expected Maximum Toxicity is defined as the highest per-token log-probability assigned to any word on a fixed toxic-word list, rather than a score from an external classifier
AI & LLM Engineering · Evaluation, Testing & Safety · Card 052/056 easy

A team wants to measure whether an LLM-based coding agent can autonomously fix real, previously-reported bugs in large, actively maintained open-source codebases, rather than solve short, self-contained programming problems that each have a single expected function signature. They adopt SWE-bench (Jimenez et al.). What does SWE-bench actually evaluate, and how is an agent's patch scored?

  1. SWE-bench presents short, self-contained function-signature prompts similar to a programming interview question, drawn from a competitive-programming judge, and scores a submission by running one hidden unit test against the function's return value, the same format as HumanEval
  2. SWE-bench gives the agent only the text of a bug report with no access to the underlying codebase, and scores its response by having a separate LLM judge rate, on a 1-5 scale, how plausible the proposed fix sounds without ever executing any code
  3. SWE-bench scores a submission purely by comparing the text of the agent's proposed patch against the text of the human-written pull request that originally fixed the issue, using a string-similarity metric such as BLEU, without ever running the project's test suite
  4. SWE-bench builds each task from a real GitHub issue paired with the pull request that resolved it in a popular Python repository; given the full repository and the issue description, the agent must produce a patch, which is scored by applying it and running the repository's test suite, counting the task resolved only if the specific tests the human fix was meant to make pass now pass, without breaking tests that were already passing
AI & LLM Engineering · Evaluation, Testing & Safety · Card 053/056 medium

A team wants to measure whether a question-answering model falls back on social stereotypes specifically when a question genuinely cannot be answered from the given context, as distinct from when the context actually supports one answer. For each scenario, they write two paired context versions: one that leaves out the detail needed to answer the question, and one that adds that missing detail. They adopt the BBQ benchmark (Parrish et al.). How does pairing an ambiguous context with its disambiguated counterpart let BBQ measure bias?

  1. In the ambiguous version, the context genuinely lacks enough information to answer the question, so the only correct response is that it cannot be determined from the context; if the model instead confidently names one of the individuals associated with a particular social group, that answer reveals reliance on a stereotype rather than evidence. The disambiguated version adds the missing detail so the question becomes answerable, letting BBQ also measure ordinary accuracy once sufficient information is present, and check whether any remaining errors still skew toward the stereotype-consistent individual rather than being evenly distributed between answer choices
  2. Only the disambiguated version is ever scored; the ambiguous version exists purely as a structural placeholder in the dataset format and is never presented to the model being evaluated
  3. Both versions are scored identically by always treating the stereotype-consistent individual as the single correct answer, so a model is only considered biased if it picks the non-stereotyped individual in either version
  4. The context pairs are real anonymized transcripts collected from customer service call centers, and bias is measured by comparing average call-handling time for stereotype-consistent versus stereotype-inconsistent speakers, not by anything the question-answering model itself outputs
AI & LLM Engineering · Evaluation, Testing & Safety · Card 054/056 hard

Researchers want an automated way to find a single adversarial text suffix that, when appended to many different harmful requests, reliably causes an aligned chat model to comply instead of refusing -- without a human red-teamer manually crafting each prompt, and without training a separate reinforcement-learning policy to generate adversarial prompts. Zou et al.'s Greedy Coordinate Gradient (GCG) method is built for exactly this. How does GCG actually search for such a suffix?

  1. GCG trains an auxiliary language model with reinforcement learning, using a harmful-content classifier's score as the reward signal, to generate a fresh adversarial suffix for each new target request, requiring no gradient access to the model being attacked
  2. GCG performs a purely random search: it repeatedly swaps a randomly chosen suffix token for another randomly chosen token and keeps the swap only if a human evaluator judges the resulting response more harmful, continuing until a fixed number of human-judged rounds is reached
  3. GCG optimizes a suffix of adversarial tokens appended to the harmful request by using the gradient of the loss, for a target affirmative response such as beginning with 'Sure, here is', with respect to the one-hot token encoding at each suffix position to identify a small set of promising token substitutions per position, then evaluates the actual loss for each candidate substitution with a forward pass and greedily keeps whichever swap reduces the loss the most, repeating this across positions and iterations, often optimized jointly across multiple prompts and multiple models so the resulting suffix transfers to new requests and even to black-box models it was never optimized against
  4. GCG requires no optimization at all; it works by prepending a single fixed, publicly documented phrase to any harmful request, relying on the fact that aligned models have not been trained to refuse when that exact phrase is present
AI & LLM Engineering · Evaluation, Testing & Safety · Card 055/056 easy

A team wants a large benchmark for testing automated fact-checking: given a short claim, a system must decide whether available evidence supports the claim, contradicts it, or is insufficient to decide either way, and when evidence exists, must also identify which specific sentence(s) justify that verdict. Thorne et al.'s FEVER benchmark is built for exactly this. How was FEVER's claim set constructed, and what are its three verdict labels?

  1. Claims were scraped verbatim from existing fact-checking websites such as PolitiFact, each already carrying a binary true/false rating from that site's own fact-checkers, and FEVER simply reformats these as a two-label classification task with no evidence-sentence annotation required
  2. Claims were written by annotators who altered sentences taken from the introductory sections of Wikipedia articles, and a separate set of annotators then verified each altered claim against Wikipedia evidence without seeing the original sentence it was derived from, assigning one of three labels -- Supported, Refuted, or NotEnoughInfo -- and recording the specific evidence sentence(s) justifying a Supported or Refuted verdict
  3. Claims were generated automatically by querying a structured knowledge graph for pairs of connected entities, and a claim is labeled Supported or Refuted purely by whether a path exists between those entities in the graph, with no human annotation involved at any stage
  4. Claims were paraphrased from news articles by a single annotator who also assigned the final verdict alone, using four labels -- True, False, Mixture, and Unproven -- modeled directly on existing political fact-checking rating scales
AI & LLM Engineering · Evaluation, Testing & Safety · Card 056/056 medium

A safety researcher finds that stuffing a very long prompt with hundreds of fabricated dialogue turns, each showing the assistant readily answering a progressively more sensitive question, can cause an aligned chat model to then comply with one genuinely harmful request appended at the very end -- even though that same single request, asked alone with no preceding turns, is refused. Anthropic's research on many-shot jailbreaking (Anil et al., 2024) studies exactly this attack. What mechanism does the research propose explains why it works, and how does its effectiveness scale?

  1. The attack works by computing the gradient of a target response's probability with respect to the prompt's tokens and using it to optimize a short adversarial suffix, requiring white-box access to the model's weights; its effectiveness is unrelated to how many dialogue turns are included
  2. The attack works because the specific fabricated conversation was memorized verbatim during pretraining from a public dataset, so the model is simply reciting a completion it saw during training rather than being influenced by the turns present in the current prompt
  3. The attack requires fine-tuning access to insert a hidden backdoor trigger phrase into the model's weights beforehand, and once inserted, a single copy of that trigger phrase at the start of any prompt is exactly as effective as hundreds of repeated turns
  4. The attack is proposed to exploit the same underlying in-context learning mechanism that lets a model pick up a pattern demonstrated earlier in its own prompt and continue it: because the fabricated transcript repeatedly demonstrates the assistant complying with increasingly sensitive requests, the model's behavior shifts toward continuing that demonstrated pattern rather than falling back on refusal, entirely at inference time with no fine-tuning or special model access needed. Its effectiveness follows a power-law-like increase as more fabricated turns are included, became newly feasible as context windows grew from a few thousand tokens to the hundreds of thousands or millions of tokens now common, and was found to be more effective against larger models