Lawfare Group → Knowledge Institute → Lawfare Academy
← Digital Business and AI Applications
Unit 2
AI outputs and verification
Learning objectives
- Explain ai outputs and verification in your own words.
- Apply the principle to the worked business case.
- Evaluate the answer and identify an assumption that could change it.
AI outputs and verification
Generative systems produce plausible outputs and can be wrong. Use approved sources, test representative cases, and require verification for consequential claims. Fluency is not evidence of accuracy.
Worked example
A generated contract summary omits a material exclusion.
Study the full explanation
The Academy guide above introduces the mechanism. The linked textbook sections supply the sustained instruction, definitions, derivations, examples, and end-of-section practice for this study unit. They are part of this course's learning sequence, not merely citations for this short guide. Read them on the publisher's free website, then return here to apply the idea.
- Introduction to Computer Science — 13.1 Hybrid Multicloud Solutions and Cloud Mashups
- Introduction to Computer Science — 13.2 Big Cloud IaaS Mainstream Capabilities
Work through the reasoning
Define the business workflow, data, users, system boundary, and failure consequences. For this unit, connect the explanation of ai outputs and verification to the worked example before answering the practice question.
Check the limits
Test a representative case and identify controls, exceptions, recovery, and the accountable human owner. If the source model and the practical example use different assumptions, state the difference rather than applying the formula or rule mechanically.
Apply it independently
What is required before relying on it? Write an answer before opening the model response. Show the calculation or explain the causal or logical steps. Change one material assumption and say whether your conclusion changes. This practice is optional; you can read every part of the course without submitting work.
Advanced investigation: Selective prediction, base rates and the cost of being confidently wrong
Accuracy compresses a confusion matrix into one number and can conceal the most consequential mistakes. Define the positive state, the unit of evaluation and the real outcome used as a reference. For a triage system, a false negative misses a case needing escalation; a false positive escalates a case that did not need it. Their operational costs need not be equal. A dataset with very few positive cases can make an always-negative classifier appear highly accurate while failing the intended purpose.
Sensitivity is true positives divided by all actual positives. Precision is true positives divided by all predicted positives. The denominators condition on different events. Base rates matter: a system can retain sensitivity and specificity while the practical reliability of a positive alert changes as prevalence changes. A confidence score also needs calibration evidence; fluent language or a numerical score is not proof that a stated probability matches observed frequencies.
Selective prediction permits abstention. Evaluate coverage, the fraction of eligible cases answered automatically, together with error among answered cases and the cost of the review queue. High precision on a small easy subset does not describe performance on all tasks. An abstention is not free if review consumes time or delays service. An always-abstaining system should not receive a perfect usefulness grade simply because it makes no automated assertions.
A reference answer can itself be uncertain. Use an explicit rubric, source-bounded adjudication and a way to retain disagreement rather than forcing every case into an overconfident label. For a factual answer, verify source identity, authorization, date and actual support for each material claim. A real citation can still be irrelevant, stale or contradicted by another authoritative record. Evaluate the claim-source relation, not only whether the link resolves.
Choose thresholds on development data and preserve an untouched evaluation set matched to deployment. If threshold selection follows inspection of test errors, the test is no longer an independent final check. Repeated tuning against one fixed benchmark can also overfit its peculiarities. Keep a versioned decision record so a favorable result cannot silently migrate to a changed model, prompt or source collection.
Worked investigation
In a fictional 1,000-case evaluation, 100 truly need escalation. A policy produces 80 true positives, 90 false positives, 20 false negatives and 810 true negatives. Sensitivity is 80%; precision is 80/170 = 47.06%; accuracy is 89%. If a false negative costs 50 units and a false positive costs 2, error cost is 20×50+90×2 = 1,180. A second policy produces 90 true positives, 180 false positives, 10 false negatives and 720 true negatives. Its accuracy falls to 81%, but error cost falls to 860. The preferred policy depends on a defended loss model and capacity to process the additional alerts.
Independent transfer
Raise false-positive cost to 10 while retaining false-negative cost 50. Compare the two policies. Then explain why the comparison may still fail if human escalation capacity is only 200 cases per period.
Transfer reasoning
The first costs 20×50+90×10 = 1,900; the second 10×50+180×10 = 2,300, so the ranking reverses. The policies generate 170 and 270 alerts. A 200-case review limit makes the second policy operationally infeasible without a queuing or prioritization plan; nominal classification cost omits delay and overflow.
Original Academy investigation: verify claims, not confidence
A fluent output can be useful without being correct. Evaluation must be tied to the task's required facts, constraints, and consequences. For extraction, compare named fields against a specified reference. For summarization, check whether material claims are supported and whether important qualifications were omitted. For a numerical answer, independently reproduce the calculation. A model's statement that it is confident is not an independent verification method.
Separate generation, retrieval, and verification. Retrieval can supply relevant documents, but a retrieved document may be stale, irrelevant, or internally wrong. A citation can point to a real source that does not support the asserted claim. Verification therefore checks the relationship between the claim and the cited evidence, including the relevant date and scope. A list of plausible links does not by itself establish grounded reasoning.
Worked investigation: measure two kinds of classification error
Suppose a fictional invoice triage system flags 12 records. Eight are genuinely problematic and four are false alarms. Of eight unflagged records, two are problematic and six are clear. True positives are 8, false positives 4, false negatives 2, and true negatives 6. Precision is 8/(8+4), approximately 66.67%. Recall is 8/(8+2) = 80%. Accuracy is (8+6)/20 = 70%. These metrics answer different questions: how often flags are correct, how many problems are found, and how often the overall classification matches the reference.
Suppose a missed problem costs $100 and a false alarm costs $10 in investigation time. The modeled classification error cost is 2($100) + 4($10) = $240. A second system may have lower accuracy but lower cost if it misses fewer expensive problems. Choose a threshold using the decision's loss structure and evaluate on a held-out population. Costs are scenario assumptions here; a real deployment needs estimates and sensitivity analysis.
Reference labels also need scrutiny. A reviewer disagreement can signal ambiguity in the task or inconsistency in the rubric. Define what counts as an error before judging model performance, record uncertain cases, and assess reviewer agreement where material. Do not count a dispute over an unspecified rule as a confidently measured failure or success. A robust evaluation distinguishes objective checks, rubric judgments, and unresolved interpretations.
Progressive practice and reasoning
- Reconstruct the four confusion-matrix counts and calculate precision, recall, and accuracy independently.
- Compare a system with TP=9, FP=8, FN=1, TN=2. Its accuracy is 55%, but its stipulated error cost is $180, lower than $240.
- Explain why the more sensitive system can burden reviewers even while reducing the modeled missed-error cost. Review capacity and delay may require additional costs in the decision model.
- Build a five-item factual-answer rubric with claim, evidence locator, date, support verdict, and materiality. A correct response distinguishes an actual supporting source from a merely relevant-looking citation.
Apply the idea
A generated contract summary omits a material exclusion.
What is required before relying on it? Explain your reasoning, then identify one changed fact that could alter the conclusion.
Advanced worked record — a separate fictional scenario: In a fictional 1,000-case evaluation, 100 truly need escalation. A policy produces 80 true positives, 90 false positives, 20 false negatives and 810 true negatives. Sensitivity is 80%; precision is 80/170 = 47.06%; accuracy is 89%. If a false negative costs 50 units and a false positive costs 2, error cost is 20×50+90×2 = 1,180. A second policy produces 90 true positives, 180 false positives, 10 false negatives and 720 true negatives. Its accuracy falls to 81%, but error cost falls to 860. The preferred policy depends on a defended loss model and capacity to process the additional alerts.
Independent transfer: Raise false-positive cost to 10 while retaining false-negative cost 50. Compare the two policies. Then explain why the comparison may still fail if human escalation capacity is only 200 cases per period.
Expanded transfer: System B has lower accuracy but fewer missed expensive problems. How should selection proceed? Explain the decision using the stated information and distinguish the measured result from the assumption. Then complete the four progressive tasks in the Learn stage.
Read the worked reasoning
Check the original contract and relevant details. The underlying source remains authoritative. In an independent response, state the given facts, identify the governing relationship, work through the calculation or comparison, and distinguish the conclusion from assumptions that still need evidence.
Advanced transfer reasoning: The first costs 20×50+90×10 = 1,900; the second 10×50+180×10 = 2,300, so the ranking reverses. The policies generate 170 and 270 alerts. A 200-case review limit makes the second policy operationally infeasible without a queuing or prioritization plan; nominal classification cost omits delay and overflow.
Expanded transfer reasoning: The decision requires an explicit loss model and operating constraints, not one universal metric.
Progressive case reasoning: 1. Reconstruct the four confusion-matrix counts and calculate precision, recall, and accuracy independently. 2. Compare a system with TP=9, FP=8, FN=1, TN=2. Its accuracy is 55%, but its stipulated error cost is $180, lower than $240. 3. Explain why the more sensitive system can burden reviewers even while reducing the modeled missed-error cost. Review capacity and delay may require additional costs in the decision model. 4. Build a five-item factual-answer rubric with claim, evidence locator, date, support verdict, and materiality. A correct response distinguishes an actual supporting source from a merely relevant-looking citation.
Check understanding
The system has TP=8,FP=4,FN=2,TN=6. What is precision?
- 8/10, or 80%
Feedback
Incorrect. This is recall, the fraction of actual problems found.
- 14/20, or 70%
Feedback
Incorrect. This is overall accuracy.
- 8/12, about 66.67%
Feedback
Correct. Precision asks how many flagged cases are truly problematic.
Further reading
Expanded investigation: study the original worked case, attempt all four progressive tasks, and run the synthetic laboratory. The institutional sources supply background for their stated topics; they are not the source of the fictional cost or classification records. The toy policy code illustrates boundary placement, not production authentication.
- Academy — Digital Business and AI original investigations and runnable lab
- NIST — Generative AI Profile
- Introduction to Computer Science — 13.1 Hybrid Multicloud Solutions and Cloud Mashups
- Introduction to Computer Science — 13.2 Big Cloud IaaS Mainstream Capabilities
- Academy — quantitative investigations and independent transfer
- Academy — executable quantitative laboratory and failure tests