Evaluation, Experimentation and NLP OperationsIntroductionA natural language processing (NLP) system is not successful merely because it produces fluent text or achieves a high score on a benchmark. It must solve a defined task, behave reliably across relevant populations and conditions, satisfy latency and cost constraints, and remain safe and useful after deployment. Evaluation therefore extends across the entire system life cycle: problem formulation, data preparation, model development, offline testing, online experimentation, deployment, monitoring, maintenance, and retirement. This chapter develops an integrated framework for evaluating and operating NLP systems. It distinguishes intrinsic, extrinsic, task-specific, and human evaluation; explains error analysis and statistical testing; and addresses production concerns including APIs, MLOps, latency, cost, data and concept drift, observability, and governance. Learning ObjectivesBy the end of this chapter, a learner should be able to: - Select evaluation methods appropriate to an NLP task and its intended use.
- Explain the assumptions and limitations of common NLP metrics.
- Design reproducible experiments and apply statistical significance testing.
- Conduct structured error analysis and translate findings into model improvements.
- Design an NLP service with suitable API, deployment, monitoring, and rollback practices.
- Manage latency, computational cost, reliability, drift, fairness, privacy, and safety in production.
1. Evaluation as a Multi-Level Design ProblemEvaluation begins with a decision: what evidence would justify using this system? A useful evaluation plan specifies the unit of analysis, target population, reference standard, operating conditions, success criteria, and failure consequences. For example, a question-answering system for internal documents may be judged not only by answer exact match, but also by citation correctness, refusal of unanswerable questions, response time, and user resolution rate. Four evaluation perspectives are complementary: | Perspective | Main question | Typical evidence |
|---|
| Intrinsic | Does an intermediate component perform its intended linguistic function? | Perplexity, tagging accuracy, embedding similarity | | Extrinsic | Does the component improve a larger application? | Retrieval quality, task success, business outcome | | Task-specific | How well does the system meet the formal task definition? | F1, BLEU, ROUGE, calibration, exact match | | Human | Is the output useful, acceptable, safe, and appropriate to people? | Ratings, pairwise preferences, expert review |
No single metric is universally best. Metrics are operational definitions of quality, and each captures only selected properties. Optimizing a metric can even reduce real-world quality when the metric is incomplete or misaligned with user goals. Important terminologyA prediction is a system output; a reference is an annotated or otherwise accepted target. A sample is one evaluation instance, while a population is the distribution of cases to which results are intended to generalize. Validity concerns whether an evaluation measures the intended construct. Reliability concerns consistency under repeated measurement. Calibration concerns whether predicted probabilities correspond to observed frequencies. Robustness concerns performance under perturbations or distribution changes. 2. Intrinsic and Task-Specific Metrics2.1 Classification and extractionFor binary classification, let TP, TN, FP, and FN denote true positives, true negatives, false positives, and false negatives. Precision measures the reliability of positive predictions, while recall measures coverage of actual positives: Precision = TP ÷ (TP + FP) Recall = TP ÷ (TP + FN) The denominators must be nonzero. Precision and recall are dimensionless proportions, usually reported between 0 and 1 or as percentages. The F1 score is their harmonic mean: F₁ = 2 × Precision × Recall ÷ (Precision + Recall) F1 is appropriate when precision and recall matter and a single balanced summary is useful. It is not appropriate when false positives and false negatives have very different costs unless the chosen decision threshold and metric reflect those costs. Macro-F1 computes F1 separately for each class and averages classes equally; micro-F1 aggregates decisions before calculating the score and therefore weights common classes more heavily. For named-entity recognition, entity-level precision, recall, and F1 are generally more informative than token-level accuracy. An entity prediction is counted as correct only when its span and label satisfy the chosen matching rule. Partial-match policies must be reported because they can materially change results. 2.2 Ranking and retrievalSearch and retrieval systems are often evaluated at a cutoff k. Precision at k is the proportion of the first k retrieved items that are relevant: P@k = Number of relevant items in the first k results ÷ k Mean reciprocal rank (MRR) focuses on the rank of the first relevant result. For query i, if rᵢ is the rank of its first relevant result, then: MRR = (1 ÷ Q) × ∑ᵢ₌₁Q 1 ÷ rᵢ Here Q is the number of queries and rᵢ is defined only when a relevant result exists; the evaluation protocol must specify how queries with no relevant result are handled. Normalized discounted cumulative gain (nDCG) supports graded relevance. It discounts lower-ranked results, reflecting the fact that users usually inspect early results. Its exact form depends on the selected gain and discount conventions, which must be documented. 2.3 Language modellingFor a token sequence w₁, …, w_N, a language model assigns conditional probabilities. Perplexity is the exponential of average negative log-likelihood: PPL = exp(−(1 ÷ N) × ∑ᵢ₌₁N ln p(wᵢ | w₁, …, wᵢ₋₁)) N is the number of evaluated tokens, p(·) is the model probability, and ln is the natural logarithm. Perplexity is meaningful for comparing models evaluated with the same tokenization, vocabulary treatment, corpus, and likelihood convention. It does not directly measure factuality, helpfulness, or downstream task success. A model may have lower perplexity but provide worse answers because likelihood rewards probable language rather than truth or usefulness. 2.4 Generation metricsBLEU measures modified n-gram precision with a brevity penalty and is historically common in machine translation. ROUGE emphasizes recall-oriented overlap and is common in summarization. Both are inexpensive and reproducible, but lexical overlap can penalize valid paraphrases and reward copied but incorrect text. BERTScore and related embedding-based metrics compare contextual representations, but they inherit representation biases and may overlook factual errors. For generation, evaluation should usually include several dimensions: factuality, relevance, completeness, coherence, style, toxicity, citation correctness, and refusal quality where applicable. Automatic metrics should be validated against human judgments on a representative sample rather than accepted as unquestionable ground truth. 3. Human Evaluation and Reference StandardsHuman evaluation is indispensable when quality is subjective, references are non-unique, or safety and social consequences matter. A sound protocol defines the construct, rubric, annotator qualifications, sampling strategy, presentation order, and adjudication process. Common designs include: - Likert ratings: annotators score a dimension such as helpfulness from 1 to 5. Clear anchors are essential.
- Pairwise comparison: annotators choose which of two outputs is better, often reducing scale interpretation differences.
- Direct assessment: annotators rate adequacy or quality independently of a reference.
- Expert review: domain specialists judge medical, legal, financial, or safety-critical content.
- Red-team evaluation: trained evaluators actively search for harmful, biased, insecure, or evasive behavior.
Inter-annotator agreement should be reported, but it is not a complete measure of truth. Cohen’s κ is commonly used for two annotators on categorical labels and adjusts observed agreement for agreement expected by chance. Its interpretation depends on prevalence and marginal distributions. Krippendorff’s α supports multiple annotators, missing data, and several measurement levels. Low agreement may indicate ambiguous instructions, a poorly defined construct, or genuinely contested judgments; it should prompt rubric analysis rather than automatic removal of disagreement. Human studies require ethical care. Annotators should be compensated fairly, protected from repeated exposure to disturbing content, and informed about data handling. Personally identifiable information should be minimized or redacted. Evaluation involving users should obtain appropriate institutional and legal approval. 4. Experimental Design and Statistical Testing4.1 Reproducible experimentationA credible experiment records the data version, preprocessing code, model and dependency versions, random seeds, hyperparameters, hardware, decoding settings, evaluation script, and inclusion or exclusion rules. Train, validation, and test sets must be separated according to the deployment scenario. Random splitting can cause leakage when multiple examples come from the same user, document, conversation, patient, or near-duplicate source. Grouped or temporal splitting is often more realistic. A baseline is not optional. It may be a majority classifier, a keyword system, a linear model, a previous production version, or a human benchmark. Without a baseline, a score has little practical interpretation. 4.2 Uncertainty and confidence intervalsA point estimate should be accompanied by uncertainty. For a sample mean x̄ based on n approximately independent observations with sample standard deviation s, a large-sample approximate 95% confidence interval is: x̄ ± 1.96 × s ÷ √n The approximation relies on sufficiently large n and an appropriate sampling interpretation. For proportions near 0 or 1, a Wilson interval is generally preferable to the simple normal interval. For metrics such as F1, BLEU, or MRR whose sampling distribution may be irregular, bootstrap confidence intervals are often useful: repeatedly resample evaluation instances with replacement, recompute the metric, and use appropriate empirical quantiles. The resampling unit should match dependence in the data; individual sentences should not be resampled independently when they belong to the same document or user. 4.3 Comparing systemsWhen two systems are evaluated on the same instances, paired tests are usually more powerful than treating results as independent. For classification disagreements, McNemar’s test examines the discordant pairs. For paired continuous or approximately continuous scores, a paired t-test may be reasonable if difference scores are approximately normal and independent across units. Otherwise, a Wilcoxon signed-rank test or a paired bootstrap can be considered, with assumptions explicitly stated. Statistical significance does not imply practical significance. A very small improvement can become statistically significant with a large test set while having no operational value. Conversely, a valuable improvement may be uncertain with a small sample. Report the effect size, confidence interval, test choice, sample size, and practical threshold. Multiple comparisons create a false-discovery problem. If many models, datasets, metrics, and slices are inspected, some apparently positive results may occur by chance. Pre-registering primary outcomes, controlling the false discovery rate, or using an appropriately conservative family-wise procedure can reduce this risk. Test data should not be repeatedly used for model selection. 5. Structured Error AnalysisError analysis converts aggregate scores into engineering knowledge. A useful process is: - Define an error taxonomy before inspecting results where possible.
- Sample failures using both random selection and targeted slices.
- Label the proximate cause and the deeper cause.
- Quantify error categories and their uncertainty.
- Identify interventions and estimate their expected value.
- Re-evaluate on an untouched or newly collected set.
Typical NLP error categories include ambiguity, negation, coreference, domain terminology, long context, spelling variation, code-switching, dialect variation, annotation inconsistency, retrieval failure, hallucination, instruction conflict, unsafe compliance, and formatting failure. Errors may originate in data, labels, preprocessing, model architecture, retrieval, prompts, decoding, or the serving environment. A slice is a defined subset such as short queries, elderly-user language, a particular dialect, rare entities, or documents from a new time period. Slice analysis can reveal unacceptable disparities hidden by an overall average. However, slicing creates a multiple-comparisons risk and small slices may have wide uncertainty intervals. Report counts as well as scores. A practical error-analysis table contains: example identifier, input, expected output, system output, error category, severity, affected user group, suspected cause, confidence in diagnosis, and proposed remedy. Severity should reflect consequences, not merely frequency. A rare safety failure may deserve higher priority than a common formatting error. 6. From Offline Evaluation to Online ExperimentationOffline tests offer control and speed, but online behavior includes changing users, traffic patterns, latency, failure recovery, and feedback loops. A staged release is safer than immediate full deployment: - shadow mode runs a candidate without affecting users;
- a canary exposes it to a small controlled fraction of traffic;
- an A/B test compares variants under predefined assignment and guardrail metrics;
- progressive rollout expands exposure if primary and safety metrics remain acceptable;
- rollback restores a known-good version when thresholds are breached.
Randomization should occur at an appropriate unit. If a conversation receives multiple turns, assigning individual turns can contaminate treatment and control; assignment at conversation or user level may be necessary. Primary metrics should be selected before inspecting outcomes. Guardrails may include complaint rate, refusal rate, harmful-output rate, timeout rate, cost per request, and p95 latency. Online metrics require careful causal interpretation. A rise in click-through rate may reflect curiosity rather than successful task completion. User satisfaction surveys may suffer from response bias. Business outcomes can be confounded by seasonality, traffic mix, or simultaneous product changes. Experiment logs must preserve assignment, exposure, eligibility, and outcome definitions. 7. NLP Operations and MLOps ArchitectureAn NLP production system is a socio-technical service rather than only a model. A typical architecture includes data ingestion, validation, feature or embedding generation, model registry, deployment pipeline, API gateway, inference service, observability stack, feedback store, and governance controls. 7.1 API designAn API contract should define authentication, authorization, request schema, response schema, versioning, error codes, rate limits, timeouts, idempotency behavior, and data-retention rules. For generation services, parameters such as maximum output length, temperature, top-p, safety policy, and retrieval settings should be bounded and logged. Returning model version, trace identifier, citations where applicable, and safety status improves auditability. Synchronous APIs are appropriate when users need an immediate response and the latency budget permits it. Asynchronous job APIs are preferable for large documents or batch processing. Retries require idempotency keys; otherwise a retry can duplicate an action or incur duplicate cost. Secrets must be stored in a secure secret manager, not in code or logs. 7.2 Deployment and release managementContinuous integration should test preprocessing, model loading, API compatibility, security, and evaluation regressions. Continuous delivery should promote only artifacts that satisfy automated gates. A model registry should retain immutable versions, metadata, lineage, evaluation results, approval status, and rollback targets. Containers improve reproducibility, while infrastructure-as-code makes environments reviewable and repeatable. For large language models, deployment choices include hosted APIs, self-hosted open models, quantized models, and hybrid routing. The appropriate choice depends on privacy, control, quality, throughput, hardware availability, and total cost of ownership—not only benchmark score. 8. Latency, Throughput, Reliability, and CostLatency has several components: network time, queueing, preprocessing, retrieval, model computation, post-processing, and serialization. Report distributions, not only averages. p50 describes the median experience, while p95 or p99 exposes tail behavior important to user satisfaction and capacity planning. Throughput is completed requests per unit time. A system may have excellent throughput but unacceptable single-request latency, or low latency but insufficient capacity. Queueing can make latency rise sharply near saturation, so load testing should cover realistic concurrency and burst patterns. Availability is commonly summarized as: Availability = Successful service time ÷ Scheduled service time The definition must specify what counts as successful service and the measurement window. Reliability should also include correctness, not merely an HTTP 200 response. A response that is syntactically valid but factually unsafe is an application failure. For a usage-priced model, approximate inference cost can be represented as: Cost = Input tokens × Input price per token + Output tokens × Output price per token + Fixed infrastructure cost The formula is a planning approximation. Actual contracts may include cached-token prices, minimum charges, reserved capacity, storage, network, monitoring, and human-review costs. Cost per successful task is more meaningful than cost per request when retries and failures differ across systems. Cost and latency optimization techniques include caching, batching, prompt and context reduction, retrieval filtering, smaller specialist models, quantization, speculative decoding, early exit, asynchronous processing, and traffic routing. Optimization must be evaluated against quality and safety guardrails; a cheaper system that increases correction work may have a higher total cost. 9. Monitoring, Drift, and Incident ResponseMonitoring should cover four layers: - Infrastructure: CPU, GPU memory, disk, network, saturation, and container health.
- Service: request rate, errors, timeouts, queue depth, p50/p95/p99 latency, and availability.
- Data: missingness, length, language, token distribution, entity distribution, and schema validity.
- Model and product: task metrics, calibration, user feedback, safety events, slice performance, cost, and successful task completion.
Data drift is a change in input distribution. Label drift is a change in the distribution of outcomes or labels. Concept drift is a change in the relationship between inputs and desired outputs. These distinctions matter: a changed vocabulary may require adaptation even when label frequencies remain stable, while a policy change may alter the correct answer for familiar inputs. For two discrete distributions P and Q over the same categories, population stability index is sometimes used as a heuristic: PSI = ∑ᵢ (Qᵢ − Pᵢ) × ln(Qᵢ ÷ Pᵢ) Pᵢ and Qᵢ are baseline and current proportions for category i, and both must be positive; zero proportions require a documented smoothing rule. PSI is not a universal statistical test or proof of model degradation. Drift thresholds should be calibrated using historical variation, and alerts should connect to investigation and action. A production incident plan identifies severity levels, owners, escalation paths, communication channels, evidence preservation, and rollback authority. Post-incident reviews should identify systemic causes rather than assign blame. Possible responses include reverting a model, disabling a feature, tightening a policy, collecting new labels, changing retrieval sources, or temporarily routing traffic to human review. 10. Governance, Fairness, Privacy, and SafetyEvaluation data may contain personal, confidential, or regulated information. Data minimization, purpose limitation, access control, retention limits, encryption, audit logs, and deletion procedures should be designed before deployment. Sensitive attributes should not be inferred or stored unnecessarily merely to support evaluation. Fairness evaluation requires defining the relevant groups and harms. Report performance by group where legally and ethically appropriate, including false-positive and false-negative disparities, calibration, coverage, and abstention behavior. A single fairness metric cannot resolve all trade-offs. Small sample sizes, missing demographic information, intersectional groups, and differences in task difficulty complicate interpretation. Generative systems require tests for hallucination, prompt injection, data exfiltration, harmful instructions, privacy leakage, stereotyping, over-refusal, and unsafe tool use. Retrieval-augmented systems should evaluate source attribution and resistance to malicious retrieved content. Human oversight should be proportionate to risk. High-impact domains may require expert approval, abstention, traceability, and formal impact assessment. Governance also includes model cards, data documentation, evaluation reports, change logs, incident records, and clear accountability. Compliance is not a substitute for technical testing, and technical testing is not a substitute for institutional responsibility. 11. Illustrative Case: Customer-Support Intent RoutingBackground and problemConsider a fictional online retailer deploying an NLP classifier to route customer messages to billing, delivery, returns, account security, or general support. The existing keyword system has 91% accuracy on a historical test set but frequently misroutes short messages and non-native English phrasing. Account-security errors are more serious than general-support errors. AnalysisThe team first creates a grouped, time-based test set so messages from the same customer do not appear in both training and testing. It reports macro-F1, class-specific recall, confusion matrices, p95 latency, and cost per message. The model obtains higher overall accuracy than the keyword baseline, but account-security recall is only 88%, below the agreed 97% minimum. Error analysis identifies three causes: ambiguous “locked out” messages, multilingual spelling variation, and a new fraud policy absent from training data. ApproachThe team adds a high-recall security rule and an abstention class. Messages with low confidence or security-related terms are routed to specialist review. It collects new, consented examples, improves annotation guidance, and evaluates by language, message length, channel, and customer segment. A paired bootstrap compares the candidate with the baseline, and a predefined minimum improvement in macro-F1 and security recall is required. The candidate is first deployed in shadow mode, then to 10% of traffic. The API records model version, confidence, route, latency, and review outcome while excluding message content from ordinary operational logs. A dashboard monitors security recall from delayed labels, abstention rate, p95 latency, drift in language distribution, and cost per successfully resolved case. OutcomeAfter four weeks, the candidate meets the security-recall requirement and reduces manual rerouting, but its abstention rate is higher for short messages. The team accepts the trade-off because specialist review is cheaper and safer than incorrect automated routing. It schedules monthly relabeling and a policy-change evaluation rather than assuming the model will remain valid. Learning pointsThe case demonstrates that overall accuracy was insufficient; risk-weighted task metrics, slice analysis, abstention, delayed outcome monitoring, and staged deployment produced a more defensible decision. It also shows that operational success depends on the entire socio-technical workflow, not merely the classifier. 12. Best-Practice Checklist- Define the real decision and failure costs before selecting metrics.
- Use a strong baseline and prevent identity, temporal, and document leakage.
- Report uncertainty, effect sizes, sample sizes, and important slices.
- Combine automatic metrics with targeted human and expert evaluation.
- Separate development, validation, test, and post-deployment monitoring data.
- Version data, code, models, prompts, policies, and evaluation scripts.
- Predefine primary outcomes, guardrails, rollout gates, and rollback conditions.
- Monitor quality, safety, latency, cost, drift, and infrastructure together.
- Treat abstention and human escalation as design options, not failures.
- Protect privacy and document accountability throughout the life cycle.
Chapter SummaryNLP evaluation is a layered activity involving intrinsic component measures, task-specific metrics, extrinsic application outcomes, and human judgments. Metrics such as precision, recall, F1, ranking measures, perplexity, and generation overlap scores are useful only under clearly stated assumptions and should not be interpreted as complete measures of quality. Human protocols, agreement analysis, representative sampling, and safety review are essential for subjective or high-risk tasks. Reliable experimentation requires leakage-resistant splits, baselines, reproducibility, confidence intervals, paired comparisons, effect sizes, and control of multiple comparisons. Error analysis and slice evaluation reveal causes and disparities hidden by aggregate scores. Online experimentation must use staged rollout, appropriate randomization, predefined primary and guardrail metrics, and rollback mechanisms. NLP operations extends model development into API contracts, versioned artifacts, CI/CD, observability, latency and cost management, drift detection, incident response, privacy, fairness, and safety governance. A production NLP system is successful when it delivers useful, reliable, safe, and economically sustainable outcomes under changing real-world conditions. Key TermsIntrinsic evaluation: Evaluation of an NLP component’s direct linguistic or predictive behavior. Extrinsic evaluation: Evaluation of a component through its effect on a larger application or outcome. Task-specific metric: A measure designed around the formal objective of a particular NLP task. Human evaluation: Structured assessment of system outputs by people. Precision: The proportion of positive predictions that are correct. Recall: The proportion of actual positive cases that are retrieved. F1 score: The harmonic mean of precision and recall. Calibration: Agreement between predicted probabilities and observed event frequencies. Perplexity: An exponentiated average negative log-likelihood used primarily for language-model comparison. Error taxonomy: A systematic classification of failure types. Slice analysis: Evaluation on defined subsets of the data or user population. Bootstrap: A resampling method used to estimate uncertainty or compare metrics. Canary release: A deployment exposed initially to a small fraction of traffic. Guardrail metric: A safety, quality, cost, or reliability measure that must not deteriorate beyond a limit. MLOps: Practices for developing, deploying, operating, and governing machine-learning systems. Data drift: Change in the distribution of input data. Concept drift: Change in the relationship between inputs and desired outputs. p95 latency: The latency value below which 95% of observed requests fall. Abstention: Deliberate refusal to make an automated decision, often with escalation. Model registry: A controlled repository of versioned models and their metadata. Review QuestionsShort Answer Questions- Distinguish intrinsic evaluation from extrinsic evaluation with one NLP example of each.
- Why can perplexity fail to predict the usefulness of a generated answer?
- What is the purpose of a confidence interval in model evaluation?
- Name four layers that should be monitored in an NLP production system.
- Explain the difference between data drift and concept drift.
Long Answer Questions- Compare macro-F1, micro-F1, and class-specific recall. Explain when each is useful and what each can conceal.
- Design a human-evaluation protocol for a retrieval-augmented question-answering system, including rubric, sampling, annotator training, agreement, and safety.
- Explain how leakage can arise in NLP train-test splitting and propose appropriate alternatives for conversational and temporal data.
- Describe a statistically responsible A/B test for two NLP systems, including randomization, primary metric, guardrails, uncertainty, and rollback.
- Discuss the architecture and governance requirements for deploying a generative NLP API in a regulated organization.
Analytical / Application Questions- A classifier produces TP = 72, FP = 18, and FN = 10. Calculate precision, recall, and F1 using the formulas in this chapter, then explain whether F1 alone is sufficient for a security-routing task.
- A summarization system improves ROUGE but receives lower factuality ratings from experts. Analyze possible causes and propose an evaluation plan to determine which system should be deployed.
- An NLP service has acceptable p50 latency but unacceptable p99 latency during traffic bursts. Diagnose likely causes and propose an operational improvement plan that preserves quality and safety.
Multiple Choice Questions with AnswersQuestion 1Which metric is the harmonic mean of precision and recall? A. Accuracy B. F1 score C. Mean reciprocal rank D. Perplexity Correct Answer: B. F1 score Question 2Why is a paired comparison generally appropriate when two NLP systems are tested on the same examples? A. It removes the need for a test set B. It accounts for dependence created by shared evaluation instances C. It guarantees statistical significance D. It measures only latency Correct Answer: B. It accounts for dependence created by shared evaluation instances Question 3Which evaluation perspective asks whether a component improves a larger application? A. Intrinsic evaluation B. Extrinsic evaluation C. Tokenization evaluation D. Syntactic evaluation Correct Answer: B. Extrinsic evaluation Question 4What does p95 latency represent? A. The average latency of the fastest 5% of requests B. The latency below which 95% of requests fall C. The maximum possible latency D. The percentage of successful requests Correct Answer: B. The latency below which 95% of requests fall Question 5Which practice is most suitable for safely introducing a candidate model to production? A. Immediate deployment to all traffic B. Deleting the previous model C. Shadow mode followed by a canary or progressive rollout D. Evaluating only training loss Correct Answer: C. Shadow mode followed by a canary or progressive rollout Question 6A system has TP = 80 and FP = 20. What is its precision? A. 0.20 B. 0. cinquante C. 0.80 D. 0.90 Correct Answer: D. 0.90 Question 7Which situation is an example of concept drift? A. The input file contains more missing values B. The frequency of a token changes while the task remains identical C. The relationship between an input and the correct output changes after a policy change D. The model artifact is stored in a new directory Correct Answer: C. The relationship between an input and the correct output changes after a policy change Question 8Why should cost per successful task sometimes be preferred to cost per request? A. It ignores failed requests B. It accounts for retries and differences in task success C. It is always lower than cost per request D. It measures only GPU memory Correct Answer: B. It accounts for retries and differences in task success Question 9Which method is especially useful for estimating uncertainty for metrics such as F1 or BLEU? A. Randomly deleting the test set B. Bootstrap resampling of evaluation units C. Increasing the learning rate D. Replacing labels with predictions Correct Answer: B. Bootstrap resampling of evaluation units Question 10What is abstention in an NLP system? A. Increasing output length B. Deliberately declining an automated decision, often with escalation C. Removing all monitoring D. Reporting only aggregate accuracy Correct Answer: B. Deliberately declining an automated decision, often with escalation
|