When three AIs read the same sentence differently, the disagreement is evidence that something needs checking—not proof that the majority is right. One system interprets “residents aged 65 or older” as including age 65, a second includes only people over 65, and a third says it lacks the governing source. Two systems might then agree on a wrong date while a simpler rule parser gets it right. Vocabulary Coding and Engineering proposes Semantic Differential Testing: run comparable, independently designed interpreters on a source-linked case, locate precisely where their decisions diverge and use an appropriate oracle to identify actual defects. Its value is diagnostic; a vote among language models is not an authority over definitions, legal entitlements or factual truth.
The software analogy is well supported. William McKeeman’s 1998 differential-testing paper formalised comparing the behaviour of different implementations, and University of Utah’s 2011 Csmith research used generated C programs to expose compiler bugs. But the crucial caveat is also established: research on N-version programming found failures of supposedly independent implementations can be correlated. Language systems may share sources, tokenisation, benchmarks and assumptions. A disagreement therefore creates a test lead, not a verdict; agreement still needs validation against a legitimate source.
- Input: A versioned source rule and the exact context it governs.
- Implementations: Compare a direct language model, structured parser and independently designed baseline.
- Difference: Detect changed actors, scope, obligation, date, exception and uncertainty.
- Reference: Resolve failures through source-linked examples, not model voting.
- Independence: Record overlapping model training, prompts, retrieval and evaluator sources.
- Repair: Reduce a divergence to the smallest justified counterexample.
- Release: Record errors, unresolved cases and safe action boundaries separately.
Chapter index
- 1. The key question is where the interpretations differ
- 2. What differential software testing established
- 3. Three genuinely different baselines
- 4. Agreement is not a vote for truth
- 5. Differential outputs need a canonical comparison format
- 6. The minimal age-threshold dispute
- 7. Differences can be false alarms
- 8. Ambiguity is not the same as error
- 9. Identify a shared-source failure
- 10. Differential testing and the oracle problem
- 11. Why three-way disagreement is informative
- 12. Difference patterns should be measured by error type
- 13. Generate new cases with controlled semantics
- 14. Shrink the disagreement without destroying context
- 15. Cross-lingual differential testing
- 16. Tool permissions are an independent comparison layer
- 17. A fictional independent comparison protocol
- 18. A successful comparison can still fail in deployment
- 19. The meaning of independence is itself testable
1. The key question is where the interpretations differ
A high-level disagreement count is not enough. One model may classify an instruction as permission, another as obligation, and a third as unresolved because the authority is missing. Those outputs are not always three candidate answers to a single well-defined question.
A differential harness needs a common task contract: which source is operative, what structured fields each system must return, what counts as unresolved and what outcome is being tested. Without the contract, systems can disagree merely because one was asked a historical question and another a current one.
The practical report should identify the exact field or case of divergence. “Interpreter B excluded the boundary case age 65” is actionable; “models did not agree” is a warning without enough diagnosis.
Back to chapter index · Next chapter
2. What differential software testing established
McKeeman’s differential-testing work described giving comparable software implementations mechanically generated cases and looking for mismatches. In compiler testing, implementations operating under the same programming-language specification should often produce the same defined behaviour.
Csmith advanced this approach by generating C programs designed to avoid undefined behaviour, then comparing how compilers handled them. Yang and colleagues’ 2011 study reported more than 325 previously unknown compiler bugs found through their campaign. That numerical result belongs to compiler research, not a measured rate of semantic errors in language models.
The language analogy is promising where an authoritative source makes outcomes sufficiently determinate. It becomes weaker when the source is contested, culturally dependent or underspecified. In such cases, a disagreement may reveal genuine ambiguity rather than an implementation defect.
Back to chapter index · Next chapter
3. Three genuinely different baselines
A test can compare a general-purpose language model with the source passage, a typed rule extractor that returns structured conditions, and a deliberately simple direct rule evaluator constructed for the narrow domain. The systems should receive equivalent authorised information for the stated task.
Merely calling the same hosted model three times with different instructions does not create three independent implementations. Even providers with different model families may have overlapping public training data, retrieval indexes or source documents.
Record the architecture, source access and configuration of each participant. Any claimed independence should be scoped, and common dependencies treated as possible shared failure routes rather than erased to make the comparison look stronger.
Back to chapter index · Next chapter
4. Agreement is not a vote for truth
Suppose two model outputs say an applicant must appeal and a rule-based interpreter says review is optional. If the official source explicitly uses may in a context denoting permission, the two agreeing models may both be wrong.
A majority decision can be a practical control in certain engineered systems, but it does not automatically establish facts. A qualified reference must identify the actual governing source and the distinction at issue. The correct next step may be to obtain a human decision rather than declare one implementation defeated by arithmetic.
The N-version software experiment reported by NASA found correlated failures across separately prepared implementations. That cautions against treating numerical agreement as independent corroboration even in conventional software.
Back to chapter index · Next chapter
5. Differential outputs need a canonical comparison format
One interpreter may write “eligible”, another “qualifies”, while a third returns true. These can be equivalent for a specified decision even when their surface strings differ. Compare structured actors, objects, conditions, effective source versions and intended outcomes rather than raw text alone.
A common result record might include proposition ID, scope, subject, category, modal force, exception, source reference and unresolved reason. The format is a proposed local contract, not a universal MTP standard already endorsed by the W3C.
A type-correct record can contain wrong values. Structural conformance is a separate check from source fidelity. The comparison engine should report both so an apparently neat schema does not hide an incorrect interpretation.
Back to chapter index · Next chapter
6. The minimal age-threshold dispute
Fictional rule A says residents aged 65 or older may request review. Interpreter One includes exactly age 65; Interpreter Two excludes it; Interpreter Three identifies that source authority must first be confirmed.
For the age condition alone, a test case with a resident exactly 65 distinguishes inclusive and exclusive thresholds. The system can isolate that field without assuming the whole applicant automatically qualifies for any real programme.
The regression record should retain the original and candidate interpretations, the age-65 counterexample and the source version. No single model’s confidence score resolves which institution issued the operative rule or what other conditions apply.
Back to chapter index · Next chapter
7. Differences can be false alarms
Two systems may provide semantically equivalent paraphrases: “at least age 65” and “age 65 or above” under an ordinary numerical interpretation. A raw-string differential test would flag them despite no relevant decision change.
The harness should classify surface wording differences separately from changed outcomes, genuinely unsupported assumptions and unresolved cases. Over-sensitive detection can overwhelm reviewers and make a source-based workflow less useful.
Use positive controls that are intentionally equivalent under the source, as well as negative controls that alter an important operator. An evaluator which reports every rewrite as wrong has not solved the problem of meaningful interoperability.
Back to chapter index · Next chapter
8. Ambiguity is not the same as error
“Send the updated document soon” does not establish one exact deadline. A model giving tomorrow and another giving Friday may both have supplied unjustified specificity. A third model saying “deadline not specified” could be the most faithful response.
If the source lacks an authoritative interpretation, the expected result should preserve uncertainty. It is inappropriate to assign one of the invented dates as ground truth simply so a benchmark can score an answer.
A disagreement record should support source ambiguous, context missing, conflicting evidence and known interpretation error as different outcomes. That gives humans the information needed to choose a clarification path.
Back to chapter index · Next chapter
9. Identify a shared-source failure
Three independent-looking AI applications may retrieve the same outdated FAQ. Their answers agree, but all three are wrong about the current rule because the shared source is obsolete.
Differential testing alone will not reveal the shared failure if outputs are identical. Add a source-version audit against the authoritative current document and historical effective dates. The resulting test provides independent information about applicability, rather than merely another model summarising the same page.
This is why the Evidence Family Tree matters. Provenance can reveal common ancestry among agreeing claims, though it does not itself establish the underlying truth.
Back to chapter index · Next chapter
10. Differential testing and the oracle problem
The purpose of comparison is often to find potential defects without needing to know the correct result for every generated case. Yet once a mismatch appears, someone still needs to determine which implementation, source or oracle was wrong.
A semantic test oracle can be a clearly defined rule, a competent institutional interpretation or appropriately reviewed evidence. It may remain unresolved when the source genuinely does not settle the question. Model consensus is not a replacement for that work.
The Semantic Test Oracle chapter defines a separate workflow for reference decisions. Differential testing locates cases that deserve such adjudication, rather than giving the adjudicator an automatic final answer.
Back to chapter index · Next chapter
11. Why three-way disagreement is informative
When all three interpreters return different answers, the case may involve a difficult clause, incompatible sources or different assumptions. The disagreement structure can help an investigator locate the disputed element.
For example, one may recognise a temporary exception, another may omit it, and the third may treat the exception as applicable only after approval. The reference question then becomes precise: who may grant the exception, and does the record show that approval occurred?
The harness should display each source-linked interpretation and allow correction. It should not construct a fictitious fourth answer solely because no three-way consensus exists.
Back to chapter index · Next chapter
12. Difference patterns should be measured by error type
The same language source can fail through actor reversal, scope change, source-date mismatch, wrong quantity, object identity confusion, lost negation or unauthorised action. Separate these failure types in results.
A single raw percentage of disagreement says little about severity. A harmless paraphrase difference and a dropped prohibition should not be counted as equally consequential merely because both produce different strings.
Report the number of cases attempted, valid and invalid comparisons, genuine mismatches, false alarms, unresolved oracles and human review effort. The denominators should reflect the actual test population.
Back to chapter index · Next chapter
13. Generate new cases with controlled semantics
A differential test can draw on QuickCheck-style generation or a custom generator to produce source-defined actor, threshold, date and exception cases. Generated examples help reach combinations the test designer did not manually anticipate.
But each generated case must remain valid under the source. A sentence that expresses a contradictory or impossible workflow may not have the single expected interpretation the comparator assumes.
The prior Part 101 Property-Based Meaning Tests explains how to specify properties and shrink failures. The two methods complement each other: generation exposes input variety; differential comparison highlights implementation divergence.
Back to chapter index · Next chapter
14. Shrink the disagreement without destroying context
A long source paragraph might yield disagreement about whether an extension is allowed after a deadline. An investigator can remove irrelevant background and preserve the critical source condition.
Unlike ordinary software shrinking, a language reducer can accidentally alter meaning when it deletes a clause or pronoun antecedent. Every reduced case needs verification that the same source-defined disagreement remains.
Save the original case, attempted reductions and final independently reviewed minimal example. The reduced input should support diagnosis, not erase the actual evidence that exposed the problem.
Back to chapter index · Next chapter
15. Cross-lingual differential testing
A source sentence may be translated into two languages and interpreted by different systems. Disagreement can reveal a lost modal verb, changed deadline or culturally scoped concept.
The evaluation must not assume a target-language paraphrase is exact simply because a model says so. Qualified reviewers should check the original and target texts under the intended source authority. Some concepts lack a perfect short equivalent.
Report language-pair coverage and uncertain mappings. A strong result in one bilingual workflow does not certify every possible linguistic transfer.
Back to chapter index · Next chapter
16. Tool permissions are an independent comparison layer
A language model can extract a correct instruction and still execute it without permission. A different model may refuse the action while explaining its meaning accurately. These outputs differ in execution, not necessarily interpretation.
A meaningful agent test records intent interpretation, target identification, permission check, proposed tool call and actual tool result separately. External actions should be simulated in a low-risk test and require real authorisation in production.
The evaluator should not equate a generated “I sent it” sentence with a confirmed send. A tool boundary can fail even when all interpreters agree on the text.
Back to chapter index · Next chapter
17. A fictional independent comparison protocol
Choose twenty non-sensitive public notices with independently reviewed source definitions. Each case contains a structured question about scope, dates or obligation. Test a direct language model, a typed parser and a simple reference evaluator under the same source-availability conditions.
Freeze prompt versions and case definitions. Include benign paraphrases, deliberate mutations, historical versions, unknown-source inputs and a held-out test set. Record disagreements in structured fields rather than merely comparing full reply text.
Qualified reviewers decide which disagreements reveal actual errors. Measure critical errors detected per review hour, missed errors, false alarms and the cost of maintaining the separate implementations. No measured outcomes are claimed in this article.
Back to chapter index · Next chapter
18. A successful comparison can still fail in deployment
An experimental harness may catch nearly all cases in its small suite while a live system encounters new languages, policies or unsupported file formats. An independent comparison is one source of evidence, not a guarantee of universal semantics.
Post-deployment monitoring, source-version checks, action restrictions and correction processes remain necessary. A model that changes during the test invalidates a frozen claim unless the change is documented and the evaluation updated.
The best conclusion is bounded: given these sources, implementations and cases, this procedure found and helped diagnose these discrepancies. That is a meaningful engineering result even without universal agreement.
Back to chapter index · Next chapter
19. The meaning of independence is itself testable
Separate source selection, training materials, model families and rule implementations where practical. When two ostensibly different agents are merely differently prompted instances of one underlying system, document that shared dependency.
A reviewer may prefer combining independent evidence from a source-linked rule evaluator and qualified human reference instead of adding more identical AI opinions. Diversity of methods can help, but cannot guarantee independence of errors.
The proposed Z architecture should welcome results that show its representation makes the same mistake as a simpler baseline. Those failures reveal an assumption shared by both and deserve more investigation, not stronger claims of consensus.
Frequently asked questions
If three AI systems agree, is the answer true?
Not necessarily. They may share source errors, assumptions or training data. Verify consequential interpretations against the appropriate authoritative evidence.
Can a disagreement identify which model is wrong automatically?
It identifies a case to investigate. A valid source-linked oracle or qualified review is still needed to assign error.
Why compare a simple rule parser with AI?
Different methods can expose different faults. A simple source-defined rule can outperform a complex model on a narrow, explicit condition.
Can differential testing detect all shared errors?
No. Identical wrong outputs produce no disagreement. Source-version audits and independent references are necessary additional controls.
Is this an existing W3C standard?
No. Differential testing is established software engineering; the proposed semantic harness is an exploratory adaptation.
Research and software testing references
- William McKeeman (1998), Differential Testing for Software.
- Yang, Chen, Eide and Regehr (2011), Finding and Understanding Bugs in C Compilers.
- NASA record: Analysis of Faults in an N-Version Software Experiment.
- Correlated Failures in Multi-Version Software (1985).
- W3C PROV — provenance of potentially shared sources.
- QuickCheck: Property-Based Software Testing (2000).
Continue Vocabulary Coding and Engineering
Research status: Differential testing is established for software implementations. The proposed language interpretation harness is an unvalidated adaptation. Fictional cases and model comparisons are examples, not observed findings or a proof that agreement among AI systems establishes truth.
