Uncertainty, Interpretability, Robustness and SecurityIntroduction and ContextDeep learning systems are increasingly used in medical diagnosis, credit assessment, autonomous driving, industrial control, scientific discovery and public-sector decision-making. High predictive accuracy, however, is not sufficient for dependable deployment. A model may be highly accurate on an independent test set yet be dangerously overconfident on unfamiliar data, rely on spurious correlations, fail under small adversarial perturbations, or disclose sensitive information through its outputs. This chapter studies four connected requirements for trustworthy deep learning: - Uncertainty quantification: determining how confident a model should be in its predictions.
- Interpretability: understanding which inputs, representations or concepts influence a prediction.
- Robustness: maintaining acceptable performance under noise, distribution shift and environmental change.
- Security: defending models and data against adversarial attacks, poisoning, privacy leakage and model theft.
These requirements are related but not interchangeable. An interpretable model is not necessarily robust; a calibrated model may still be causally misleading; and a secure model may remain poorly calibrated. Dependable AI therefore requires an evaluation and governance process that treats predictive performance, uncertainty, explanations and attack resistance as separate dimensions. Learning ObjectivesBy the end of this chapter, a learner should be able to: - distinguish aleatoric and epistemic uncertainty;
- explain Bayesian, ensemble and post-hoc approaches to uncertainty estimation;
- assess calibration using reliability diagrams, expected calibration error and proper scoring rules;
- compare local and global interpretability methods;
- identify the limitations of feature attribution and distinguish association from causation;
- analyze robustness to covariate shift, label shift, concept drift and adversarial perturbations;
- describe data poisoning, evasion, privacy and model-extraction threats;
- design a layered evaluation, monitoring and governance strategy for a deployed deep-learning system.
1. Uncertainty in Deep LearningA classifier usually returns a probability vector, but a numerical probability is not automatically a trustworthy measure of belief. A softmax output of 0.99 may reflect genuine evidence, or merely an overconfident extrapolation beyond the training distribution. 1.1 Sources of uncertaintyAleatoric uncertainty is irreducible uncertainty arising from the data-generating process. Examples include sensor noise, ambiguous images and overlapping class distributions. More data of the same quality may not eliminate it. In regression, a model can represent input-dependent noise by predicting both a mean μ(x) and variance σ²(x). Under a Gaussian observation model: p(y|x) = 1/(√(2πσ²(x))) exp(−(y−μ(x))²/(2σ²(x))) Here, y is the observed target, x is the input, μ(x) is the conditional mean and σ²(x) > 0 is the conditional variance. The expression assumes conditionally Gaussian noise; it is not appropriate when the outcome is binary, count-valued or strongly heavy-tailed without modification. Epistemic uncertainty reflects limited knowledge about the model or data distribution. It is often high in regions with few training examples and can decrease with informative additional data. In Bayesian modeling, uncertainty is represented over parameters θ: p(y|x,D) = ∫ p(y|x,θ)p(θ|D)dθ D denotes the training data, p(θ|D) is the posterior distribution over parameters, and p(y|x,θ) is the likelihood or predictive distribution for fixed parameters. The integral is usually intractable for modern neural networks and must be approximated. For predictive variance in a regression model, the law of total variance gives: Var(y|x,D) = E_θ[Var(y|x,θ)] + Var_θ(E[y|x,θ]) The first term corresponds broadly to expected data noise, while the second reflects variation in predictions across plausible model parameters. This decomposition depends on the chosen probabilistic model and should not be interpreted as a perfect physical separation of all uncertainty sources. 1.2 Practical estimation methodsDeep ensembles train several models with different random initializations, data orderings or bootstrap samples. Their predictive distribution is approximated by averaging: p̂(y|x) = 1/K ∑k=1K p(y|x,θk) K is the number of models and θ_k denotes the parameters of model k. For classification, the average is normally taken over class-probability vectors. Ensembles are often strong practical baselines because they capture both optimization variability and some model uncertainty, although they increase computational and storage cost. Monte Carlo dropout keeps dropout active during inference and performs multiple stochastic forward passes. The resulting predictions approximate a distribution under assumptions connecting dropout to variational Bayesian inference. This method is inexpensive relative to a full ensemble but its uncertainty quality depends on dropout placement, rate and approximation assumptions. Laplace approximations approximate the posterior near a mode using a Gaussian distribution. If θ̂ is a parameter estimate and H is the Hessian of the negative log posterior at θ̂, a local approximation is: p(θ|D) ≈ 𝒩(θ̂, H⁻¹) This can be computationally attractive, but the approximation may be poor in highly non-linear or multimodal posterior landscapes. Evidential approaches predict parameters of a distribution over class probabilities rather than a single probability vector. They can express evidence strength, but their training objectives and uncertainty semantics require careful validation; low evidence is not automatically equivalent to reliable out-of-distribution detection. 1.3 Worked example: ensemble uncertaintySuppose three binary classifiers assign probabilities 0.80, 0.60 and 0.40 to class 1. The ensemble mean is: p̄ = (0.80 + 0.60 + 0.40)/3 = 0.60 The population variance of these predictions is: v = [(0.80−0.60)² + (0.60−0.60)² + (0.40−0.60)²]/3 = 0.0267 The standard deviation is approximately 0.163. The mean indicates a moderate probability, while the relatively large disagreement warns that the prediction is less stable than a consensus probability of 0.60 from nearly identical models. This is a diagnostic, not a calibrated confidence interval. 2. Calibration and Decision QualityA model is calibrated if, among predictions assigned probability p, the event occurs approximately p proportion of the time. Formally, for a binary event Y and predicted probability P: P(Y=1|P=p) = p This condition is population-level and can be difficult to verify with finite data. Calibration can differ across demographic groups, hospitals, geographic regions or time periods. 2.1 Evaluation metricsFor N predictions p_i and binary outcomes y_i ∈ {0,1}, the Brier score is: BS = 1/N ∑i=1N (pi−yi)² Lower values are better. The Brier score rewards both discrimination and probabilistic accuracy, although it can be influenced by class prevalence. A logarithmic score or negative log-likelihood is: NLL = −1/N ∑i=1N [yi log(pi) + (1−yi)log(1−pi)] For 0 < p_i < 1, lower NLL is better. It strongly penalizes assigning near-zero probability to an event that occurs. Expected calibration error (ECE) partitions predictions into M bins. If B_m is bin m, acc(B_m) is empirical accuracy and conf(B_m) is mean confidence: ECE = ∑m=1M |Bm|/N × |acc(Bm)−conf(Bm)| ECE is easy to communicate but depends on bin boundaries and can conceal local errors. Reliability diagrams plot confidence against empirical accuracy. Calibration should be evaluated on held-out data and, where possible, across relevant subgroups and operating conditions. 2.2 Calibration methodsTemperature scaling adjusts logits z_k using a positive scalar T: pk = exp(zk/T) / ∑j exp(zj/T) T is learned on a validation set by minimizing NLL. T > 1 generally softens overconfident predictions; T < 1 sharpens them. Temperature scaling preserves the ranking of logits and therefore generally preserves top-1 decisions, but it does not correct all forms of distribution shift or subgroup miscalibration. Other approaches include Platt scaling, isotonic regression, vector scaling and class-conditional calibration. Calibration data must represent the intended deployment population. Calibration performed on a biased validation set may create a false sense of reliability. 2.3 Uncertainty and decisionsA probability is useful only in relation to a decision and its consequences. If a false negative has cost C_FN and a false positive has cost C_FP, a simple binary decision rule under known probabilities predicts positive when: p(y=1|x) > CFP/(CFP + CFN) This threshold assumes correct probabilities, known and constant costs, and no constraints such as capacity or fairness requirements. In safety-critical applications, abstention or human review may be preferable to forced classification. Selective prediction evaluates coverage—the fraction of cases automatically handled—against risk on the retained cases. 3. Interpretability and ExplainabilityInterpretability concerns how understandable a model or its reasoning is to a relevant user. Intrinsic interpretability is built into the model, as in a shallow decision tree or additive model. Post-hoc explainability analyzes an already trained model, as in saliency maps or feature attribution. Interpretability is audience-dependent. A clinician may need clinically meaningful evidence and uncertainty; an ML engineer may need neuron-level diagnostics; a regulator may need traceability, documentation and contestability. No single explanation method satisfies all audiences. 3.1 Local and global explanationsA local explanation describes why a particular input received a prediction. A global explanation summarizes behavior across a population, such as feature effects, subgroup performance or learned concepts. Permutation importance measures performance degradation after randomly shuffling a feature. It is model-agnostic but can be misleading when features are correlated: shuffling one variable may leave redundant information available or create unrealistic examples. Partial dependence estimates average predictions as a feature varies, often holding other features fixed or averaging over them. It can generate unrealistic combinations and obscure interactions. Accumulated local effects generally reduce some correlation-related problems by averaging local changes over observed data regions. LIME fits a simple surrogate model near one input, weighting nearby samples. Its explanation depends on the neighborhood definition, perturbation distribution and surrogate class. SHAP attributes a prediction using Shapley-value ideas from cooperative game theory. For a model f and feature set F, the contribution of feature i can be written conceptually as: φi = ∑_{S⊆F\{i}} |S|!(|F|−|S|−1)!/|F|! × [v(S∪{i})−v(S)] S is a subset not containing i, and v(S) is the value of a coalition of features. The formula distributes a modeled prediction difference among features under a specified value function. The semantics depend critically on how missing features are represented and on assumptions about feature dependence. SHAP values explain the model output, not necessarily the real-world causal process. For images, gradient saliency, integrated gradients, occlusion and concept-based methods are common. A saliency map may highlight pixels that influence a score, but visual plausibility does not prove faithfulness. Explanations should be tested using deletion, insertion, sensitivity and stability experiments, while recognizing that these tests themselves have limitations. 3.2 Explanation pitfalls- Association is not causation: a model may use a hospital identifier as a proxy for disease severity or socioeconomic status.
- Correlated features share credit ambiguously: different attribution methods may distribute importance differently.
- Explanations can be unstable: small input or model changes may produce different narratives.
- Plausibility is not faithfulness: an explanation that looks reasonable may not reflect the actual computational dependence.
- Explanations can leak information: detailed outputs may reveal sensitive features or model structure.
- Human overreliance is a risk: users may accept an explanation and ignore contradictory evidence.
Interpretability should therefore support, rather than replace, dataset audits, counterfactual testing, subgroup evaluation, causal analysis and human accountability. 4. Causality LimitationsPredictive deep learning estimates associations that may be highly useful for forecasting but insufficient for intervention. If a model predicts treatment response using a variable correlated with treatment access, changing that variable may not cause the predicted response. A causal claim requires assumptions about a data-generating process, interventions and confounding. Directed acyclic graphs can clarify whether a variable is a confounder, mediator, collider or proxy. Standard feature attribution does not identify causal effects. Even a perfect predictor may fail under intervention because the relationship between inputs and outcomes changes when the system acts on the world. Causal inference commonly requires assumptions such as consistency, positivity and conditional exchangeability. These assumptions are domain-specific and cannot be established merely by inspecting a neural network. Randomized experiments, natural experiments, longitudinal data or carefully justified causal designs may be needed. Deep learning can assist representation learning and heterogeneous treatment-effect estimation, but it does not remove the need for identification assumptions. 5. Robustness under Distribution ShiftLet P_train(X,Y) denote the training distribution and P_deploy(X,Y) the deployment distribution. Robustness concerns performance when these distributions differ. - Covariate shift: P(X) changes while P(Y|X) remains approximately stable.
- Label shift: P(Y) changes while P(X|Y) remains approximately stable.
- Concept drift: P(Y|X) changes over time or context.
- Subpopulation shift: the mixture of groups changes, possibly changing aggregate performance.
- Adversarial shift: an attacker intentionally selects inputs to induce errors.
A model with excellent in-distribution accuracy can fail under any of these shifts. Robust evaluation uses temporal splits, geographic or institution-held-out data, stress tests, subgroup analysis and realistic environmental perturbations. 5.1 Distributionally robust methodsData augmentation can improve invariance to known transformations, but augmentation that is unrealistic or changes labels can harm performance. Domain adaptation uses unlabeled or labeled target-domain data, while domain generalization aims to work on unseen domains. Distributionally robust optimization seeks parameters that perform well under a set of plausible distributions 𝒬: min_θ maxQ∈𝒬 E(x,y)∼Q[ℓ(f_θ(x),y)] θ represents model parameters, ℓ is a loss function and 𝒬 is an uncertainty set around the observed distribution. The choice of 𝒬 determines the robustness-performance trade-off. Excessively broad uncertainty sets can produce conservative models with lower nominal accuracy. Robustness also includes operational properties: monitoring input validity, detecting sensor failure, preserving fail-safe behavior, limiting automation and maintaining rollback procedures. A model should not be declared robust from one benchmark score. 6. Adversarial Machine LearningAn evasion attack modifies an input at inference time to cause an incorrect prediction. In a constrained optimization formulation, an attacker may seek: δ* = argmax||δ||≤ε ℓ(f_θ(x+δ),y) Here δ is a perturbation, ε is the permitted size under a specified norm, and y is the true label. The norm and threat model must be stated: an ℓ₂ constraint limits Euclidean magnitude, whereas an ℓ∞ constraint limits the largest coordinate change. A small mathematical norm does not guarantee perceptual similarity or physical feasibility. The fast gradient sign method uses: xadv = x + ε sign(∇x ℓ(f_θ(x),y)) It is a one-step, gradient-based attack under differentiability assumptions. Iterative projected-gradient attacks are generally stronger within the same threat model. In security evaluation, attacks should be adaptive to the defense; evaluating only against a known weak attack can produce misleading claims. Defenses include adversarial training, input validation, randomized or certified methods, robust architectures, rate limits and human review. Adversarial training improves robustness for the threat model represented during training but may reduce clean accuracy and may not transfer to other perturbation types. Certified robustness provides a formal guarantee within a specified perturbation region, but certificates may be computationally expensive or conservative. 7. Data Poisoning, Privacy and Model TheftData poisoning corrupts training data to reduce performance or implant targeted behavior. Attacks may alter labels, inputs or data provenance. Defenses include authenticated data pipelines, source diversity, anomaly detection, influence analysis, deduplication, provenance records, secure review and retraining rollback. Outlier removal alone is insufficient because sophisticated poisoning can be statistically subtle. Backdoor attacks implant a trigger pattern associated with an attacker-selected output. They are particularly dangerous because the model may perform normally on clean validation data. Testing should include trigger-like transformations, suspicious data clusters and independent validation sources, while recognizing that unknown triggers are difficult to detect. Model extraction or stealing occurs when an attacker queries a model and trains a substitute. Risk increases when outputs expose detailed probabilities, query access is unlimited and model behavior is highly distinctive. Defenses include authentication, rate limiting, query monitoring, output minimization, watermarking and contractual controls. No single defense is complete; probability rounding can reduce leakage but may impair legitimate use. Membership inference attempts to determine whether a record was used in training. Overfitting, repeated exposure and excessive output information can increase risk. Differential privacy provides a formal framework. A mechanism M is (ε,δ)-differentially private if for neighboring datasets D and D′ and every measurable output set S: P(M(D)∈S) ≤ e^ε P(M(D′)∈S) + δ ε ≥ 0 controls privacy loss and δ ≥ 0 allows a small failure probability. Smaller ε generally provides stronger privacy, but privacy accounting, utility loss and the definition of neighboring datasets must be documented. Differential privacy does not guarantee that a model is fair, secure against every attack or free from sensitive correlations. 8. A Layered Trustworthiness WorkflowA professional workflow should be established before deployment: - Define the use case and threat model: identify users, affected groups, harm scenarios, attack capabilities and acceptable failure modes.
- Audit data and labels: document collection, consent, representativeness, missingness, leakage, provenance and label quality.
- Separate evaluation regimes: use random held-out data, temporal data, external domains, stress tests and adversarial tests.
- Measure uncertainty and calibration: report NLL or Brier score, reliability diagrams, ECE, subgroup calibration and abstention-risk curves.
- Test explanations: assess fidelity, stability, usefulness and possible leakage; compare multiple methods.
- Assess robustness and security: simulate shifts, poisoning, evasion, extraction and privacy attacks using realistic assumptions.
- Deploy safeguards: access control, monitoring, alert thresholds, human escalation, rollback and incident response.
- Monitor continuously: track input drift, calibration drift, subgroup outcomes, attack indicators and changes in operational context.
- Govern changes: version data and models, record approvals, document limitations and revalidate after updates.
Applied Case: Illustrative Clinical Triage SystemBackground. A hospital develops a deep-learning model to prioritize chest radiographs for possible pneumonia. The model achieves high area under the ROC curve on historical internal data. Problem. After deployment, the model assigns high risk to many images from a newly installed scanner and performs poorly at a partner hospital. A saliency map appears to focus on the lung fields, but investigation shows that portable scanner markers and acquisition artifacts are influential. Analysis. The internal test set was randomly split from the same hospital and therefore did not represent new devices or institutions. The model's probabilities were also overconfident. A subgroup analysis found worse calibration for pediatric images. The saliency map was not sufficient evidence of clinical reasoning, and the model had not been evaluated under domain shift. Approach. The team creates temporal and external-institution test sets, evaluates Brier score, NLL, reliability diagrams and ECE, and performs scanner-stratified analysis. Temperature scaling is fitted only on a representative validation set. An ensemble provides disagreement estimates, while an abstention rule sends uncertain cases to radiologists. Image cropping and artifact-aware augmentation are tested, but only after verifying that labels remain valid. The data pipeline receives provenance checks, and a model card documents intended use and known failure modes. Outcome. Calibration improves on the target hospital, and automatic triage coverage is reduced for unfamiliar scanner configurations. The model is not marketed as an autonomous diagnostic system. Monitoring detects calibration drift and triggers review when scanner types or prevalence change. Learning points. High discrimination is not equivalent to reliable probability estimates. Explanations must be tested for causal and computational relevance. External validation, abstention, subgroup analysis and operational monitoring are essential parts of deployment rather than optional additions. 9. Ethical, Regulatory and Managerial ImplicationsUncertainty and explanation affect accountability. Users should know when a system is outside its validated domain and what evidence supports a decision. In high-impact settings, governance should address documentation, human oversight, contestability, data protection, auditability and incident reporting. Privacy, fairness and robustness may conflict with one another: stronger privacy can reduce utility, robust optimization can alter subgroup performance, and extensive explanations can expose sensitive information. Managers should require explicit acceptance criteria rather than relying on a single accuracy number. A deployment decision should specify the population, operating threshold, calibration tolerance, maximum acceptable subgroup disparity, abstention policy, response time, monitoring signals and rollback authority. Independent review is especially important when the developer also controls evaluation. 10. Contemporary Directions and Research QuestionsCurrent research includes foundation-model calibration, uncertainty for generative systems, conformal prediction, causal representation learning, certified defenses, privacy-preserving training, mechanistic interpretability and red-teaming. Conformal prediction is notable because, under exchangeability assumptions, it can produce prediction sets with finite-sample marginal coverage guarantees. However, coverage may fail under distribution shift, and marginal guarantees do not automatically provide conditional or subgroup guarantees. Mechanistic interpretability seeks to identify internal circuits and representations rather than only correlational input attributions. Its scientific status, scalability and relationship to human concepts remain active research questions. Similarly, uncertainty estimates for large generative models may reflect sampling variability or model disagreement without reliably indicating factual truth. Evaluation must therefore distinguish uncertainty about the model's response from uncertainty about the external claim. Challenges and LimitationsNo method solves uncertainty, interpretability, robustness and security simultaneously. Bayesian approximations may be computationally or statistically imperfect; ensembles are expensive; calibration is population-dependent; explanations can be unstable or misleading; causal conclusions require assumptions beyond prediction; robustness guarantees are threat-model-specific; and privacy protections can reduce utility. Evaluation datasets can themselves be contaminated or unrepresentative. Finally, many failures arise from organizational processes—unclear ownership, weak monitoring or unsafe incentives—rather than from neural architecture alone. The appropriate goal is not an abstract claim that a model is “trustworthy.” It is a documented, context-specific argument that the system's uncertainty, explanations, robustness and security are adequate for a defined use, with remaining risks visible to decision-makers. Chapter SummaryDeep-learning systems must be evaluated beyond predictive accuracy. Aleatoric uncertainty represents irreducible data variability, whereas epistemic uncertainty concerns limited model knowledge. Bayesian approximations, deep ensembles and stochastic inference estimate predictive variation, but their outputs require calibration assessment. Reliability diagrams, Brier score, NLL and ECE provide complementary evidence, and calibration must be tested across populations and deployment conditions. Interpretability may be intrinsic or post-hoc, local or global. Attribution methods explain model behavior under assumptions; they do not automatically establish faithfulness, fairness or causality. Robustness requires testing covariate shift, label shift, concept drift and adversarial conditions. Security analysis must include evasion, poisoning, backdoors, privacy leakage and model theft. Differential privacy offers a formal privacy guarantee under explicit parameters and assumptions. A dependable deployment combines threat modeling, data governance, external validation, calibration, explanation testing, robust evaluation, access control, human escalation and continuous monitoring. These are socio-technical responsibilities, not merely choices of neural-network architecture. Key TermsAleatoric uncertainty: Irreducible uncertainty arising from noise or ambiguity in observations. Epistemic uncertainty: Uncertainty caused by limited knowledge, data or model specification. Calibration: Agreement between predicted probabilities and empirical event frequencies. Brier score: Mean squared error between predicted probabilities and binary outcomes. Expected calibration error: A bin-based summary of differences between confidence and accuracy. Temperature scaling: Validation-based rescaling of logits using a learned temperature. Interpretability: The degree to which a model or its operation can be understood by relevant users. Post-hoc explanation: An explanation generated after a model has been trained. Saliency map: An input-space representation intended to show influential regions or features. SHAP: A Shapley-value-based feature-attribution framework. Causal inference: Reasoning about effects of interventions rather than associations alone. Covariate shift: Change in P(X) while P(Y|X) is assumed stable. Concept drift: Change in the relationship P(Y|X). Distributionally robust optimization: Optimization against a specified set of plausible data distributions. Evasion attack: An inference-time manipulation designed to cause model error. Data poisoning: Manipulation of training data to degrade or control model behavior. Backdoor: A hidden behavior activated by a trigger pattern. Model extraction: Reconstructing a model or its behavior through queries. Differential privacy: A formal bound on how much an output distribution changes when one record changes. Abstention: Declining to make an automated prediction and referring the case for review. Review QuestionsShort Answer Questions- Distinguish aleatoric uncertainty from epistemic uncertainty and give one example of each.
- What does calibration mean for a probabilistic classifier?
- Why does a saliency map not establish a causal explanation?
- Distinguish covariate shift from concept drift.
- What is the purpose of an abstention rule?
Long Answer Questions- Compare deep ensembles, Monte Carlo dropout and Laplace approximations as methods for estimating predictive uncertainty.
- Explain how Brier score, NLL, reliability diagrams and ECE provide complementary calibration evidence.
- Discuss the assumptions and limitations of SHAP or another feature-attribution method.
- Describe a layered defense against evasion, poisoning, privacy and model-extraction attacks.
- Design a post-deployment monitoring and governance plan for a high-impact deep-learning system.
Analytical / Application Questions- A classifier is accurate on an internal random split but poorly calibrated at an external hospital. Analyze possible causes and propose an evaluation and recalibration plan.
- A facial-recognition model performs well on average but has substantially worse calibration for one demographic group. Explain the risks and recommend technical and governance interventions.
- A company wants to expose full class probabilities through an unrestricted API. Analyze model-extraction and privacy risks, and propose a proportionate access and output policy.
Multiple Choice Questions with AnswersQuestion 1Which statement best distinguishes aleatoric from epistemic uncertainty? A. Aleatoric uncertainty is reducible with more data, whereas epistemic uncertainty is irreducible. B. Aleatoric uncertainty arises from data variability, whereas epistemic uncertainty reflects limited model knowledge. C. Aleatoric uncertainty applies only to classification, whereas epistemic uncertainty applies only to regression. D. Aleatoric uncertainty is caused by attackers, whereas epistemic uncertainty is caused by calibration. Correct Answer: B. Aleatoric uncertainty arises from data variability, whereas epistemic uncertainty reflects limited model knowledge. Question 2For a binary classifier, perfect calibration means that among cases assigned probability 0.7, approximately: A. 70% are predicted positive by the classifier's threshold. B. 70% actually have the event. C. 30% actually have the event. D. 70% belong to the majority class. Correct Answer: B. 70% actually have the event. Question 3What is the main effect of temperature scaling on a classifier's logits? A. It retrains all feature representations. B. It changes the ranking of classes in every case. C. It rescales confidence using a temperature learned on validation data. D. It guarantees robustness to distribution shift. Correct Answer: C. It rescales confidence using a temperature learned on validation data. Question 4Which issue most directly limits interpreting SHAP values as causal effects? A. Shapley values cannot be computed for any model. B. Feature attribution describes modeled associations and depends on assumptions about missing or dependent features. C. SHAP can be used only for linear regression. D. Causal effects do not require interventions or assumptions. Correct Answer: B. Feature attribution describes modeled associations and depends on assumptions about missing or dependent features. Question 5Which situation is an example of concept drift? A. The distribution of input images changes while the input-label relationship remains stable. B. The class proportions change while class-conditional features remain stable. C. The relationship between inputs and labels changes over time. D. A model is evaluated on a larger test set. Correct Answer: C. The relationship between inputs and labels changes over time. Question 6In the adversarial optimization expression δ* = argmax||δ||≤ε ℓ(f_θ(x+δ),y), what does ε specify? A. The learning rate used during training. B. The permitted size of the perturbation under the selected norm. C. The number of classes in the model. D. The probability calibration error. Correct Answer: B. The permitted size of the perturbation under the selected norm. Question 7Which practice most directly reduces the risk of training-data poisoning? A. Removing all rare examples without inspection. B. Using authenticated data provenance and independent validation sources. C. Increasing the softmax temperature after deployment. D. Publishing unrestricted model probabilities. Correct Answer: B. Using authenticated data provenance and independent validation sources. Question 8What does differential privacy primarily control? A. The maximum neural-network depth. B. The change in output-distribution behavior caused by adding or removing one record. C. The accuracy of every individual prediction. D. The causal validity of feature explanations. Correct Answer: B. The change in output-distribution behavior caused by adding or removing one record. Question 9Why can a high area under the ROC curve coexist with poor deployment decisions? A. ROC analysis alone guarantees calibration but not accuracy. B. Discrimination does not ensure calibrated probabilities or robustness under shift. C. A high ROC curve proves the data are poisoned. D. ROC curves can be computed only for regression. Correct Answer: B. Discrimination does not ensure calibrated probabilities or robustness under shift. Question 10What is the principal purpose of abstention in a high-risk prediction system? A. To force a prediction for every case. B. To replace external validation. C. To refer uncertain or out-of-domain cases for human or alternative review. D. To guarantee that the model is causally correct. Correct Answer: C. To refer uncertain or out-of-domain cases for human or alternative review.
|