VIEW THIS AS

Auto mode follows the Route Engine until you choose a viewpoint.

YOU ARE HERE

ROUTE CHECK

CONNECTED TO

WHAT NEXT

Use the canonical route for this room, or HELP if you are unsure.

What Is Vocabulary | Can One Changed Word Test Whether AI Understands? Contrast Sets, Counterfactual Data Augmentation and Semantic Invariance

Contrast sets are collections of closely related examples altered in meaningful ways to test whether a model responds to the relevant differences. A minimal pair consists of examples differing along a deliberately restricted dimension. Counterfactual data augmentation creates modified training examples for which an alternative label or outcome is appropriate. Semantic invariance concerns properties that ought to remain unchanged under a specified transformation. These concepts help distinguish an AI that follows the intended relationship in language from one that succeeds by relying on superficial patterns. Passing a conventional benchmark does not prove that a model will respond appropriately to a small but consequential change.

Vocabulary Coding and Engineering (VCE) extends this research into a proposed semantic boundary test suite. Gardner and colleagues’ contrast-set research at EMNLP 2020 examined model behaviour near local decision boundaries, while Kaushik, Hovy and Lipton’s counterfactually augmented data research at ICLR 2020 investigated carefully revised examples as training material. eduKate’s Fencing Method supplies a compatible educational idea: define a concept through examples, near misses and contrasts, then test transfer. The proposed VCE suite is an experimental framework, not evidence that every meaning can be isolated by changing a single word.

  • Contrast set: carefully altered test examples designed to reveal local decision boundaries.
  • Minimal pair: examples differing along a declared, restricted dimension.
  • Counterfactual data augmentation: constructing training examples with meaningful changes to the target outcome.
  • Invariance: an expected property remains unchanged under a specified transformation.
  • Sensitivity: an expected response to a relevant change.
  • Shortcut: a predictive pattern that does not reliably capture the intended task relationship.
  • Semantic boundary test: a proposed VCE test of whether a declared meaning distinction survives variation.
  • Frontier question: can a vocabulary system learn when changing language should change the answer and when it should not?

Chapter index

1. Begin with two almost identical sentences

Consider two invented notices: ‘The application is approved’ and ‘The application is not approved’. Most words are identical, yet the second denies the approval asserted in the first. A similarity score may find the sentences closely related. That relationship is not sufficient to establish that they express the same proposition.

Now consider ‘The library approved the application’ and ‘The application was approved by the library’. Under the same intended context, these can express the same approval relationship despite changing the grammatical structure. A reliable model needs sensitivity to the first change and appropriate invariance to the second. Vocabulary engineering starts by specifying which property is expected to change.

2. The boundary between a useful signal and a shortcut

A model may learn that a particular word is frequent in one training category. That association can be useful in some examples but unreliable in others. If a system classifies every document containing approved as an approval, it fails when the document says not approved, approval pending or approval withdrawn.

A shortcut is defined relative to the intended task and evidence. The mere use of a lexical pattern is not inherently wrong; some lexical distinctions are central to meaning. The evaluation should establish when the pattern corresponds to the required relationship and when it does not. This avoids replacing one oversimplification with another.

3. Minimal pairs and contrast sets are related but not identical

A minimal pair aims to restrict the difference between two examples to a selected dimension. In natural language, a single edit may affect grammar, reference, emphasis or other properties at the same time. A useful pair requires review to ensure that the intended contrast is meaningful and that the examples remain coherent.

Contrast sets need not always involve a single-word substitution. A small revision can change a date, actor, negation, relation or condition while retaining much of the original context. Gardner and colleagues used such revisions to examine whether conventional evaluations concealed weaknesses in local decision boundaries across several natural-language tasks. Their findings concern the tested models and datasets, not every system.

4. Test-time contrast versus training-time augmentation

A contrast set used as a held-out evaluation tests a model’s performance on newly constructed boundary cases. Counterfactual data augmentation can instead supply edited examples during training. The purposes differ. If the same variants are used to train and test a system, the reported evaluation may overstate generalisation.

Kaushik, Hovy and Lipton examined human-revised examples that make an alternative label appropriate while avoiding unnecessary changes. This provides a methodological foundation for investigating sensitivity to meaningful evidence. A textual counterfactual is not automatically a verified intervention on a real-world causal process. The annotation and task determine what can legitimately be concluded.

5. Worked example: four cases of a fictional permission rule

Suppose a fictional reading room allows a person to enter only after approval and during the confirmed booking period. Case A states that both conditions are met. Case B changes approval to pending while retaining the same period. Case C retains approval but places the visit outside the booking period. Case D changes both conditions. Under the assumed rule, only A supports permission.

Now rewrite each case with different sentence order, synonyms where appropriate and an irrelevant detail such as the colour of the imaginary booking form. If the meaning remains unchanged, the expected decision should remain unchanged. The exercise tests sensitivity to two relevant conditions and invariance to selected irrelevant changes. It does not establish any real institution’s rules.

6. Invariance and sensitivity must be specified together

A system that always returns the same answer is perfectly invariant to every textual change, yet useless for tasks requiring the answer to change. A system that changes its answer whenever the wording changes is sensitive but may be unstable. The desired response depends on which property the transformation affects.

VCE proposes recording both types of requirement for a semantic boundary. An invariance test asks whether a property survives a transformation that preserves it. A sensitivity test asks whether a relevant change leads to an appropriately changed result. For some examples the correct outcome may be ambiguity or a request for clarification rather than a definite label. The evaluation needs to permit that outcome when justified.

7. Worked example: why average accuracy can conceal broken pairs

Imagine an invented dataset of 100 contrast pairs, each containing two items. A model answers 180 of the 200 items correctly. Its item accuracy is 90 percent. If all 20 errors occur in 20 separate pairs, only 80 pairs have both answers correct. If the errors occur two at a time in ten pairs, 90 pairs have both answers correct.

The same item-level score can therefore correspond to different pair-level performance. Neither measure alone establishes every useful property. A model might also achieve consistent but jointly incorrect answers on invariance pairs. Report ordinary accuracy, joint correctness, appropriate change rates and relevant error types separately. Use the actual denominator and do not turn an invented calculation into an empirical result.

8. Fencing Method: build a boundary map, not a word list

The eduKate Fencing Method proposes developing a concept through examples inside its boundary, examples outside it and neighbouring concepts that are easily confused. For a technical evaluation, those examples can be organised into source families with explicit intended changes. An approval boundary might include eligibility, preliminary review, refusal, withdrawal and expiry.

Independent reviewers should check that the edits preserve the intended background, change the required property and do not accidentally create a new ambiguity. Record disagreements rather than forcing one interpretation without justification. An independently reviewed contrast suite can turn a teaching concept into a researchable evaluation. The result is not a universal definition registry or proof that all language has sharp boundaries.

9. Text zoom TX0–TX6: preserve or change the right level

At TX0, a single word may change. At TX1, a phrase can alter a sense or qualifier. At TX2, the relevant proposition can change its actor, condition or relation. At TX3 and TX4, an edit may affect a surrounding exception or attribution. At TX5, the purpose of the document matters. At TX6, an unchanged statement may acquire a different application when its institutional context changes.

A test suite should specify the level at which the expected property is preserved. Changing an actor’s name may be irrelevant in one fictional task but decisive in another where a permission applies only to that actor. The TX framework organises these differences; it is not an established universal numerical measure of meaning.

10. Civilisation zoom Z0–Z6: develop transferable judgement

At Z0, a learner explains how a single relevant difference affects an answer. At Z1 and Z2, people compare definitions and develop reviewed examples. At Z3, organisations can use regression tests when updating language-dependent systems. At Z4, public institutions need accountable interpretation and correction procedures. At Z5, multilingual networks must test whether meaning boundaries survive translation. At Z6, later societies need records of which distinctions earlier systems were expected to preserve.

The Second Intelligence Pool is eduKate’s conceptual framework for human and artificial intelligence working together. Carefully designed boundary tests could help communicate what a receiving model or person needs to understand. That possibility must be validated, and linguistic variation must not be mistaken for inferior reasoning or a failure of legitimate local terminology.

11. Ztime: a regression test can become obsolete

At T0, a definition, scope and reference answer are established. At T1, examples are constructed. At T2, an evaluated model produces results. At T3, a policy revision or new linguistic usage may change the reference interpretation. At T4 and beyond, newer model versions require renewed testing. These stages illustrate distinct histories rather than a fixed testing process.

Version the semantic requirement independently from the examples and model. A failed test against an outdated definition may reflect a benchmark problem rather than a model error. A passed historical test does not prove that a current answer is applicable. Ztime helps distinguish changes in the evidence, the meaning and the model’s behaviour.

12. Frontier experiment: semantic boundary regression suite

Construct fictional administrative and educational source families with independently specified meanings. For each family, create label-changing contrasts, label-preserving paraphrases, ambiguous cases and combinations of more than one condition. Separate entire source families across training, development and final evaluation. Compare an ordinary training baseline, a counterfactually augmented condition and a VCE condition that uses a structured Fencing Method annotation record. Match resources and report differences where matching is infeasible.

Measure item accuracy, joint pair correctness, sensitivity to relevant edits, invariance to irrelevant edits, valid abstention, errors on novel compositions and human review time. Include cases of genuine annotation disagreement and test unfamiliar wording without leaking near duplicates into training. Report confidence intervals or other suitable uncertainty measures and negative findings. The experiment has not been run. Its purpose is to investigate a proposed technology, not to claim demonstrated improvement.

13. Four-week learning progression and EnDist

Week one: distinguish a changed word from a changed proposition. Week two: build and review the four fictional permission cases. Week three: construct independent paraphrase and contrast families, documenting what is supposed to change and what should remain invariant. Week four: calculate item and pair scores from fictional results and design a held-out evaluation for a new concept.

EnDist is eduKate’s proposed organising concept for net useful intelligence after losses from misunderstanding, rework and coordination. A task-specific evaluation could measure independently correct interpretations per measured review budget, while reporting severe mistakes and unresolved cases separately. It is not a validated universal intelligence unit. The research ambition is to make meaning boundaries sufficiently explicit that progress can be measured and errors can be repaired.

Comparison table

TermMeaningDoes not establish
Contrast setMeaningful changes to related test casesA universal causal intervention
Minimal pairControlled difference between examplesEvery other linguistic property is identical
Counterfactual augmentationEdited examples for a training objectiveIndependent test evidence
InvarianceExpected stability under a stated changeThe model should never change its answer
SensitivityExpected response to a relevant changeEvery textual change is relevant
Pair correctnessBoth related test items answered correctlyPerformance on all unseen combinations
Semantic boundary suiteProposed VCE evaluation and regression recordDemonstrated universal understanding

Conclusion

The frontier of vocabulary is the ability to distinguish changes that matter from changes that merely look different. Contrast sets and counterfactual augmentation provide established methods for studying those boundaries. VCE proposes extending them into versioned semantic requirements that can be independently evaluated, shared and corrected across intelligent systems.

Frontier technology: companion articles

Research sources and further reading