Evaluating Knowledge Interventions › The evaluation axes, precisely
Language AI HandbookAll chapters CounterFact evaluates factual edits using counterfactual assertions. The evaluation below organizes probes by the behavior that should change or stay stable.
Before writing code, we need crisp definitions. Vague axes produce vague metrics and optimistic conclusions. Each axis below comes with the failure it is designed to catch and the typical way it lies to you.
Efficacy
Efficacy asks whether the intended knowledge changed on the edit surface: the questions the intervention was explicitly designed to answer correctly. For a fact edit, the edit surface is a small set of prompts that directly query the target triple, usually the prompts used to construct the edit plus close variants.
A subtlety: efficacy should be measured after the intervention with the same decoding configuration you will deploy. If your editor was validated at temperature 0 with a specific prompt template and you deploy at temperature 0.7 with a different template, the efficacy number you reported is not the efficacy you ship. Record the decoding config. In this chapter we will evaluate mostly with greedy decoding for determinism and then add a sampled uncertainty check, mirroring the distinction between autoregressive generation determinism and sampling.
Efficacy has two aspects that should be reported separately:
- Edit success rate: fraction of edit-surface prompts on which the target answer is produced (or the target behavior observed).
- Target probability and margin record different quantities. In the toy candidate set, subtract the strongest alternative probability from the target probability. For a language model, specify how you score whole answers and normalize across any restricted candidates before comparing scores.
In a two-answer evaluation, probabilities of 0.51 for the new answer and 0.49 for the old answer give greedy success and a probability margin of 0.02. With the stated sampling distribution, the chance of emitting the old answer is 0.49. The margin describes this prompt and candidate set. It does not determine robustness to a different prompt.
Locality
Locality is the requirement that the intervention not disturb behavior it was not meant to touch. Locality is not one blob; it decomposes into distinct test slices, and the slices matter because they fail differently:
- Same subject, different relation checks another fact about the edited subject. Changing a book's author should preserve its publication year when the update does not affect that date.
- Same-relation, different-subject: other facts with the same relation should be preserved. Editing who wrote one book should not change who wrote another book.
- Unrelated knowledge: facts far from the edit should be preserved. This catches gross representational damage.
- Capability preservation: general abilities (reasoning, syntax, instruction following, refusal) should survive. This is often measured on a small capability battery.
These slices separate test behavior by query structure. A loss concentrated on same-subject queries suggests where to investigate. The pattern alone cannot identify which weights or representations changed.
An edit can preserve every control and still fail to transfer beyond the direct prompt. Report preservation and generalization separately so that success on one axis cannot mask failure on the other.
Generalization
Generalization measures transfer beyond the literal edit surface. Rephrasing the same fact and deriving consequences through additional facts are distinct probes.
- Paraphrases: the same question asked differently. "Who is the author of The Night Orchard?" vs. "Who wrote The Night Orchard?" vs. "The Night Orchard was written by whom?"
- Compositional / multi-hop: questions that require the edited fact as an intermediate step. "Did the author of The Night Orchard also write The Copper River?" requires knowing both the edited authorship and that Jonah Reed wrote The Copper River. A model that integrated the edit and reasons over it will answer yes; a model with a surface lookup will flounder.
- Reasoning over the change: questions whose correct answer changes because of the edit. If the edit changes an author, then "Which of these two authors is associated with The Night Orchard?" should flip.
A multiple-choice reformulation can still query a single fact. A compositional probe requires an additional fact or relation. MQuAKE defines multi-hop questions with answers that change as consequences of edited facts. RippleEdits covers multiple kinds of consequences.
Never include an exact copy of an edit-construction prompt in a held-out paraphrase score. Keep an explicit overlap gate and track other shared inputs, including templates and facts.
Side effects
Side effects are damage that is neither efficacy nor locality in the narrow sense: degradation of fluency, reasoning, safety behavior, calibration, or the model's tendency to hallucinate. A rewrite can make the model more confident in wrong answers globally, or push it toward producing the edited answer for unrelated prompts (over-generalization / bleeding). We measure a small battery before and after and report deltas with uncertainty.
Use the same evaluation items and decoding configuration before and after the edit. A preexisting weakness can otherwise be mistaken for an intervention effect. Include controls where the edited answer would be an incorrect response.
Leakage and privacy
For suppression, test the routes permitted by the stated threat model. Direct output, paraphrases, and retrieval are possible disclosure channels. Inference of training membership is a different target and needs its own controls.
Auditability
Record the target, editor configuration, evaluated data version, decoder, and before/after model identifiers. Keep the source of each expected answer. Together these records support a replication and make a later regression easier to diagnose.
Versioned records can reveal that an earlier change stopped holding after a later release. Re-run the earlier probes on the approved model and test versions to confirm which output changed.
Comments
Add to the conversation
A question, a correction, or an example from your own work.
No comments yet. Be the first to share your thoughts!