Elamur Research

Semantic Sensitivities and Inconsistent Predictions: Measuring the Fragility of NLI Models

Paper · 2024 · Erik Arakelyan, Zhaoqi Liu and Isabelle Augenstein

Summary

A system can correctly decide what follows from a sentence and then reverse its decision when the same claim is phrased differently. Arakelyan and colleagues study this problem in natural language inference, where a system reads a premise and a hypothesis and decides whether the premise supports the hypothesis, contradicts it, or leaves it unresolved. Benchmark accuracy gives credit for the right answer to each pair as written. The authors ask a further question about semantics: will the system give the same answer when the wording changes and the claim stays the same?

The experiment starts with pairs that a classifier answers correctly. An instruction-tuned generator proposes rewrites of the hypothesis, and the classifier checks each rewrite against the original hypothesis in both directions. A candidate qualifies if the classifier predicts entailment in both orders, thereby treating the two versions as equivalent when it compares them directly. The authors then put each accepted rewrite back alongside the unchanged premise and check whether the classifier preserves its original decision. In a human check of 100 original-and-rewrite pairs sampled across the datasets, annotators judged the claims equivalent in 99% of cases.

The authors evaluate BART, RoBERTa, DistilBART, and three sizes of DeBERTa. All the classifiers were fine-tuned on MultiNLI. On that benchmark, the relaxed fooling rate was 12.92% on average. This means that among originally correct examples, that share elicited a different answer under at least one of the 5 accepted rewrites. The corresponding average under transfer to SNLI and the rounds of Adversarial NLI was 23.71%, weighted by the number of sampled instances. Some changes went directly between entailment and contradiction. The study tracks those reversals in a stricter measure that also retains changes away from an original neutral answer.

The sensitivity appeared across the original answer categories. The comparison of DeBERTa sizes offered little evidence that increasing size consistently protects against it, especially after transfer. The rewrites that flipped a decision also tended to produce a larger shift in the probabilities assigned to the available answers and a less concentrated final distribution. The experiment exposes a form of inconsistency that ordinary accuracy leaves unmeasured. The same classifier can recognize two hypotheses as mutually entailing, give the right answer with the original wording, and then give a different answer when asked about the equivalent claim.

Deep dive: Semantic Sensitivities and Inconsistent Predictions: Measuring the Fragility of NLI Models

Arakelyan and colleagues measure how often a correct natural language inference changes when the hypothesis is reworded without changing its meaning. · about 32 minutes to read

The problem and its context

What an inference answer commits the system to

Natural language inference, or NLI, is a classification task built around the relationship between a pair of texts. The premise supplies the information the system is meant to work from. The hypothesis proposes a claim to assess in light of that information. Entailment means the claim follows from the premise. Contradiction means the premise is incompatible with the claim. Neutrality means the premise leaves the claim open. The same hypothesis can receive different labels against different premises because the unit of judgment is the relationship between the texts.

The distinction also matters when both texts sound plausible on their own. A hypothesis can describe an ordinary event and still be neutral because the premise gives too little information about whether it happened. A contradiction requires evidence of incompatibility. A system that confuses these labels can treat a lack of information as evidence against a claim. The directions of a label change therefore matter alongside its frequency. Moving from entailment to contradiction reverses what the system says the premise establishes. Moving from entailment to neutrality withdraws the claim of support.

The paper illustrates the stability it expects with a premise describing beads of perspiration on a person’s brow. In the authors’ reading, the premise supports a hypothesis about sweat accumulating on the person’s face. A small change to the phrasing of that hypothesis should preserve the inference. The reader uses the information about the sweat and its location in both cases. A classifier that supports the first formulation and rejects the second has changed its judgment even though the facts relevant to that judgment have stayed in place.

This expectation comes from compositional semantics, the study of how meaning arises from the parts of an expression and the way they are combined. Words matter, as does their arrangement. A change to scope, reference, or the relationship between words can affect the proposition expressed. Other changes leave the proposition intact. The authors’ test focuses on the latter cases. It asks whether a classifier can carry its assessment of a premise across alternative expressions of a claim that it already regards as equivalent.

The paper describes the target as denotative equivalence. Two expressions can convey the same factual content while differing slightly in nuance or connotation. The central concern for the experiment is whether the difference changes what has to be true for the hypothesis to hold. A rewrite can sound different and still be eligible. A fluent rewrite that adds a detail, removes a qualification, or changes the claim's scope could change its relationship to the premise and would undermine the intended comparison.

This gives the paper a concrete way to probe claims about natural language understanding. Suppose a classifier gives the right answer on a recorded example. That observation establishes a successful decision for the observed pair. A second observation, after a meaning-preserving rewrite, tests whether the successful decision extends to another expression of the same claim. The benchmark item supplies the starting point for a family of related tests. The authors are interested in what happens within that family.

Why a separate test was needed

The paper places its question in the context of strong benchmark results from systems based on the Transformer. It describes GLUE and SuperGLUE as part of a broad effort to assess language understanding. It also cites work on behavioral testing and grounded commonsense inference. Such evaluations ask whether systems can solve tasks that plausibly call for linguistic or semantic information. Success motivated studies into what systems learn about sentence structure, logic, and meaning. GLUE, SuperGLUE, CheckList, SWAG

The earlier work surveyed by the authors gave reasons to take these capabilities seriously. Studies cited in the paper trained systems to use semantic structure in ways that helped them acquire information about a task. The authors also describe findings that NLI classifiers can handle some examples involving presupposition and implicature. These phenomena concern information a speaker conveys or takes for granted beyond the most direct reading of the words. The fact that classifiers can handle some of these examples puts pressure on explanations that reduce all of their behavior to superficial matching.

Other studies described in the paper found weaknesses in the same broad area. Some examined representations or attention patterns and found limited evidence of the semantic relationships they were looking for. Others tested how NLI predictions respond to lexical substitutions and changes in word order. Work on dataset artifacts found that particular words can become predictive cues. Research on heuristics found that the amount of shared vocabulary between premise and hypothesis can influence a judgment even when the actual relationship between the texts requires a different answer. Annotation Artifacts in Natural Language Inference Data

These findings address different questions. A probe that recovers information about sentence structure from a representation shows that the representation contains a usable signal for the probe. A stress test that manipulates word overlap asks whether a classifier relies on that cue in its final decision. An evaluation of paraphrase stability asks whether the classifier carries a particular answer from one wording to another. A system could show evidence of syntactic information in its representations and still give inconsistent answers to two equivalent hypotheses. Conversely, a stable answer on related examples offers little insight into how the system represented their meaning internally. A Structural Probe for Finding Syntax in Word Representations

The authors identify work on monotonicity and controlled semantic fragments as especially relevant. Monotonicity concerns when a change in how broadly or narrowly an expression applies licenses an inference. Tests involving quantification and coordination can isolate particular constructions and examine whether a system follows the relevant pattern. These approaches make it possible to connect a failure to a specified reasoning operation. Arakelyan and colleagues use a different unit of comparison. They begin with an existing benchmark item and vary the wording of one of its sentences while aiming to preserve its meaning.

The preservation requirement is crucial because some seemingly small edits should change an answer. A substitution can change which objects a sentence applies to, and moving words can change their relationships. A test that mixes such edits with harmless rewordings makes the resulting label changes difficult to interpret. The paper tightens the condition by asking the classifier itself whether the original hypothesis and its rewrite entail each other. That turns the experiment into a test of how judgments made in different pairings fit together.

Why the classifier’s own equivalence judgment matters

A reader might expect a paraphrase test to begin with an independently certified collection of equivalent sentences. The paper adds a different constraint. Even when a human regards a rewrite as equivalent, the classifier may fail to recognize the relationship when asked directly. The authors are interested in the more specific case where the classifier gives evidence that it accepts the equivalence and still changes its answer when the rewrite appears alongside the original premise.

The distinction can be seen by separating the comparisons. First, a classifier says the premise entails the original hypothesis. It then says that the original hypothesis entails the rewrite and that the rewrite entails the original. Finally, faced with the unchanged premise and the rewrite, it can fail to predict entailment. These judgments would be difficult to reconcile if each answer expressed a single stable account of what follows from what. For contradictions and neutral examples, the same design asks whether the incompatibility or the open question survives the substitution.

The experiment therefore brings together evidence that conventional evaluation typically records separately. There is the reference label for the benchmark item, the classifier’s success on the item as written, the direct judgments of equivalence, and the judgment after replacement. Each addresses a different possible explanation for failure. A system could begin with an incorrect assessment. It could reject the paraphrase relationship. It could accept that relationship and still fail to preserve its answer. The paper isolates the last case by conditioning on the earlier successes.

The method, step by step

From an original pair to a set of comparable tests

The procedure starts with a benchmark pair and its reference label. The classifier reads the original premise and hypothesis and returns an NLI label. If the answer is correct, the hypothesis moves forward to the rewriting stage. The premise is saved for the final comparison. This first filter ensures that every case entering the main analysis starts with a known success for the classifier under examination.

An instruction-tuned generator then sees the hypothesis and receives a request to express the same claim in different words. The request takes the hypothesis alone as its subject. The generator can therefore propose an alternative expression before the classifier is asked what relationship that expression bears to the original premise. Generating from the hypothesis instead of asking how to change the answer makes the desired semantic constraint clear. The original benchmark sentence remains the point of comparison for each candidate.

Each proposal is tested twice by the NLI classifier. In the first test, the original hypothesis takes the role of premise and the rewrite takes the role of hypothesis. In the second test, their roles switch. A rewrite enters the candidate set only if both predictions are entailment. The authors use the same classifier for these equivalence checks and the final stability test. Each classifier’s results reflect candidates that passed its own screen.

Once there are 5 distinct accepted rewrites for an original hypothesis, the classifier assesses the original premise against each of them. The prediction for each replacement is compared with the label already obtained for the original pair. The main scores count original examples for which at least one eligible replacement changes the answer. An example contributes once to a score even if several of its rewrites qualify as changes.

Testing whether an inference survives a hypothesis rewrite

The steps in order.

Testing whether an inference survives a hypothesis rewriteStep 1: Classify the original premise and hypothesis1. Classify the original premise and hypothesisStep 2: Retain original pairs with correct predictions2. Retain original pairs with correct predictionsStep 3: Generate alternative phrasings of the hypothesis3. Generate alternative phrasings of the hypothesisStep 4: Require entailment in both directions4. Require entailment in both directionsStep 5: Collect distinct rewrites that pass the screen5. Collect distinct rewrites that pass the screenStep 6: Pair each rewrite with the unchanged premise6. Pair each rewrite with the unchanged premiseStep 7: Count original examples with changed predictions7. Count original examples with changed predictions

The design separates generation from acceptance. The generator can phrase the request naturally and produce several alternatives, but it can also introduce factual changes. The entailment screen supplies an explicit rule for rejecting candidates from the generator. The subsequent comparison reintroduces the premise, which matters because equivalence was assessed between the hypotheses themselves. In the sweat example, the last stage puts the description of perspiration back into the input and asks whether each formulation of the claim still gets the same answer.

The starting filter also explains the relationship between errors and flips in this study. When a replacement receives a different answer, that answer departs from an originally correct label. If the replacement truly preserves the hypothesis, the new label is wrong under the original reference judgment. By conditioning on correct answers, the authors study the loss of an existing success. The design would answer a different question if it began with all benchmark examples, since some changes could then repair a mistake and others could replace one wrong answer with another.

The task and the two filters in notation

The paper represents the dataset as an indexed collection of premise and hypothesis pairs. In indexed form, the collection is:

D = ((pᵢ, hᵢ))ᵢ₌₁ⁿ

Here D is the collection of benchmark pairs and n is the number of original examples. The index i identifies an example, running from 1 through n. The symbols pᵢ and hᵢ denote the premise and hypothesis for that example. Parentheses group the two texts into a pair, and the equals sign defines the collection on the left.

The original notation uses the same letter for the label space and the contradiction label. A separate symbol for the space makes the distinction easier to follow.

𝒞 = {E, C, N}

Here 𝒞 is the set of possible labels. E stands for entailment, C for contradiction, and N for neutrality. Braces enclose the members of the set, and the equals sign defines the set.

The starting subset contains exactly the pairs the particular classifier answers correctly.

D_correct = {(pᵢ, hᵢ) ∈ D : M(pᵢ, hᵢ) = ŷᵢ = yᵢ}

D_correct is the retained subset of D. The symbol ∈ says that the pair comes from the original collection, and the colon introduces the condition for inclusion. M is the pretrained classifier adapted to NLI. M(pᵢ, hᵢ) is its chosen label when the premise occupies the first input position and the hypothesis the second. ŷᵢ names that prediction and yᵢ names the example’s reference label. The chain of equalities requires the prediction to agree with the reference.

This subset can differ across classifiers even for the same benchmark. Two classifiers with similar original accuracy can get different items right. Their retained examples can thus differ in subject matter, phrasing, or label composition. The benchmark provides the common starting collection, while the correct-answer filter defines the cases on which each classifier has an established decision to preserve.

The second filter checks an individual candidate. Write hᵢ′ for a rewrite of hᵢ. The paper’s symmetric entailment condition is:

M(hᵢ, hᵢ′) = E = M(hᵢ′, hᵢ)

M is the same NLI classifier, hᵢ is the benchmark hypothesis, and the prime in hᵢ′ marks its rewritten version. The first call puts the original hypothesis in the premise position. The second call puts the rewrite there. Both equalities require the output E, the entailment label.

Checking the reverse direction excludes an important class of changes. An alternative might be less specific than the original and therefore follow from it. The less specific statement might also hold in situations where the original claim would be false, so it would fail to support the original in return. Asking for both entailment predictions is meant to exclude that loss of information, as well as the reverse case in which a rewrite adds information. This logic motivates the screen. The screen’s output remains an empirical prediction from the classifier.

Generating and checking alternatives

The generator, denoted G in the paper, is FLAN-T5-XL. The authors chose an instruction-tuned system that could respond to a request for paraphrasing. Their prompt directs it to preserve the original meaning and supplies the hypothesis to rewrite. The method then generates and screens candidates until the required set of unique alternatives is assembled. The uniqueness requirement gives each of the 5 trials a distinct wording.

The authors use group beam search to generate varied outputs while limiting the search. Beam search keeps candidate continuations as it builds an output. The grouped version encourages the search to return alternatives that differ from one another. The paper also describes additional diversity measures during decoding. Diversity has a specific purpose in this experiment. Repeated outputs would exercise the same wording again, while varied proposals give the screen several possible ways to express the claim.

Generation and refinement use a temperature between 0.3 and 0.6 and cap each output at 40 tokens. Temperature controls how strongly generation favors the candidates it already assigns higher scores. A token is a unit of text used during processing, and the output cap limits how much text the generator can produce in response to the paraphrase request. These are settings of the rewriting procedure. The NLI classifier separately decides whether each generated sentence qualifies.

An independent check addresses the risk that the classifier could accept sentences whose meanings differ. The authors randomly sample 100 pairs consisting of an original hypothesis and a generated alternative across the datasets. Two annotators assess whether the sentences in each pair are equivalent in meaning and logic. The reported equivalence rate is 99%, and agreement between the annotators is Cohen’s κ of 0.94. Kappa measures agreement with an adjustment for how much agreement might occur by chance.

This human check complements the classifier screen. The experiment needs the screen to establish that the classifier itself accepts the relationship. Human judgments supply evidence that those acceptances typically correspond to equivalence as readers assess it. The annotations concern the relationship between the two forms of the hypothesis. The unchanged premise enters a separate evaluation stage, where its reference relation is carried forward under the equivalence assumption.

Turning predictions into example-level scores

After the replacements are generated, the comparison uses the original benchmark premise pᵢ in both calls. The first call pairs it with hᵢ. The other pairs it with the rewrite at candidate index j, written hᵢ′⁽ʲ⁾. Each comparison is between two categorical NLI decisions. The operator O determines which relationship between those labels should be counted.

O : 𝒞 × 𝒞 → {0, 1}

O takes an ordered pair of labels from the label set 𝒞. The multiplication sign denotes the set of all ordered pairs from that set, and the arrow points to the possible outputs. The values 0 and 1 encode the absence or presence of the relationship being checked. For equality, 1 represents a match and 0 represents a mismatch. For the stricter comparison, the meaning of a positive result is fixed by the label transition the authors choose to count.

The paper gives the intermediate variable R a reverse coding relative to the operator output.

R(pᵢ, hᵢ, hᵢ′⁽ʲ⁾, O) = {
  1 if O(M(pᵢ, hᵢ), M(pᵢ, hᵢ′⁽ʲ⁾)) = 0
  0 if O(M(pᵢ, hᵢ), M(pᵢ, hᵢ′⁽ʲ⁾)) = 1
}

R is the coded outcome of comparing the original prediction and the prediction for the rewrite at index j. The classifier M is applied to the same premise pᵢ with hᵢ and with hᵢ′⁽ʲ⁾. The two output labels are the inputs to O. The brace gives the two cases, and the values 1 and 0 in R reverse the corresponding binary output of O.

For the relaxed rate, the comparison treats any difference between the two predicted labels as a relevant change. The counting rule can be written directly in terms of those labels.

rᵣ = ∑[i = 1 … n′] 𝟙{∃ j ∈ [1, k] : M(pᵢ, hᵢ′⁽ʲ⁾) ≠ M(pᵢ, hᵢ)} / n′

rᵣ is the relaxed fooling rate. The sum ∑ runs over the n′ originally correct examples, indexed here within the retained subset. The indicator 𝟙 gives 1 when the condition in braces is true and 0 otherwise. The symbol ∃ means that at least one candidate index j exists in the range from 1 to k. Here k is the number of rewrites per example. The colon introduces the test, and ≠ requires the classification of the replacement pair to differ from the classification of the original pair. Dividing by n′ makes the count a share of the retained examples.

For the strict rate, the authors narrow the qualifying changes from original entailment and contradiction. An original entailment qualifies if a rewrite produces contradiction. An original contradiction qualifies if a rewrite produces entailment. For an original neutral answer, the paper keeps the relaxed criterion, so a move from neutrality to either other label qualifies. The rule for neutrality matters when reading the overall strict rate, which includes these changes as well as direct reversals.

rₛ = ∑[i = 1 … n′] 𝟙{∃ j ∈ [1, k] : R(pᵢ, hᵢ, hᵢ′⁽ʲ⁾, =ₛ) ≠ 1} / n′

rₛ is the strict fooling rate. The sum, indicator, candidate range, and denominator have the same roles as in the relaxed rate. The inputs to R are the benchmark premise and hypothesis, the indexed rewrite, and the strict comparison =ₛ. Under the paper’s coding, R ≠ 1 identifies a qualifying label change. For an original entailment or contradiction, qualification requires the other of those labels. For original neutrality, any departure qualifies.

rₛ ≤ rᵣ ≤ 1

The ≤ signs mean “less than or equal to.” Every change counted by the strict rule also qualifies under the relaxed rule, which orders the two rates. The rightmost 1 is the upper bound for a proportion of examples. In the results, the authors express these proportions as percentages.

Both rates answer a question about vulnerability within the candidate set. If several rewrites flip an original example, it contributes the same to the numerator as an example with a single successful flip. Conversely, if every accepted rewrite preserves the answer, the example contributes to the denominator alone. The rates describe the incidence of at least one failure, with the generation procedure and candidate count held fixed.

Experiments and results

The benchmarks and the original answers

MultiNLI, or MNLI, is the fine-tuning dataset and the in-domain evaluation benchmark. The authors choose it for its coverage of varied topics and its use as a starting point for transfer to other classification settings. They apply the MNLI-trained classifiers to SNLI and Adversarial NLI, or ANLI, without fine-tuning them on those target benchmarks. This is the study’s zero-shot transfer setting. Here “zero-shot” refers to the transfer from MNLI to the target dataset. The classifiers already have training for the NLI task. MultiNLI, Adversarial NLI

The original evaluation accuracy measures the fraction of unmodified benchmark pairs classified correctly. It supplies a baseline for each classifier and defines how much of each evaluation set is eligible for the rewrite test. The paper reports 10,000 original MNLI examples and 10,000 original SNLI examples. The original set for ANLI round 1 has 1000 examples, the round 2 set has 1000, and the round 3 set has 1200. These counts refer to the original test or development sets used in the experiment, before the filter for correct answers.

The authors use pretrained checkpoints fine-tuned for NLI as supplied through the Transformers library. The classifier comparison covers BART-large, RoBERTa-large, and DistilBART, together with DeBERTa-base, DeBERTa-large, and DeBERTa-xlarge. Their ordinary test accuracies show how the task changes as the same classifiers move from the fine-tuning domain to the transfer datasets. BART, RoBERTa, DeBERTa, Transformers

On the unmodified MNLI evaluation set, BART-large reaches 90.10% accuracy and RoBERTa-large reaches 90.56%. DistilBART reaches 87.17%. For the DeBERTa family, MNLI accuracy is 88.77% for base, 91.32% for large, and 91.44% for xlarge. In zero-shot evaluation on the unmodified SNLI set, DistilBART scores 84.37%, BART-large scores 87.55%, and DeBERTa-large scores 88.87%. These scores establish that the classifiers can make many correct decisions on the original wording in both settings.

The ANLI sets yield substantially lower original accuracies. For example, DeBERTa-xlarge scores 53.00% on round 1, 35.40% on round 2, and 38.75% on round 3. DistilBART has original accuracies of 41.40%, 32.80%, and 32.75% on the respective rounds. The rewrite test starts with the correct cases in each of these sets. Consequently, the ANLI fooling rates measure how often an initially successful judgment can be disrupted, even though the supply of such judgments is smaller than on MNLI or SNLI.

Ordinary accuracy and the rewrite rates describe different populations. Accuracy concerns every original benchmark example. The rewrite rates concern originally correct items and mark an item if any vetted alternative changes its answer. The study’s headline figures are measurements of that second outcome. Reading them as accuracy changes on the entire test set would lose the distinction between those denominators and between a set of replacement attempts and a single prediction per item.

Sensitivity within MultiNLI

On MNLI, the relaxed fooling rate averages 12.92% across the classifiers and the strict rate averages 6.58%. Thus even in the fine-tuning domain, a successful judgment can be sensitive to how the hypothesis is phrased. The aggregate includes instability among originally neutral items and changes involving entailment and contradiction. The strict result identifies the qualifying transitions under the narrower rule described above.

Classifier comparison on MNLI by relaxed fooling rate

Every classifier shows wording sensitivity, with the lowest relaxed rate for DeBERTa-xlarge.

Classifier comparison on MNLI by relaxed fooling rateDistilBART: 16.80DistilBART16.80DeBERTa-base: 13.81DeBERTa-base13.81BART-large: 12.35BART-large12.35RoBERTa-large: 11.56RoBERTa-large11.56DeBERTa-large: 11.54DeBERTa-large11.54DeBERTa-xlarge (this paper): 11.49DeBERTa-xlarge (this paper)11.49
The numbers
System or setting%
DistilBART16.80
DeBERTa-base13.81
BART-large12.35
RoBERTa-large11.56
DeBERTa-large11.54
DeBERTa-xlarge (this paper)11.49

The system-level results show the behavior across several architectures. RoBERTa-large pairs its relaxed rate of 11.56% with a strict rate of 5.71%. BART-large has a relaxed rate of 12.35% and a strict rate of 6.64%. DistilBART records 16.80% relaxed and 9.20% strict. Among the DeBERTa variants, the classifier with the lowest relaxed rate, xlarge, has a strict rate of 5.89%, while large has a strict rate of 5.38%. Which system appears most resistant can therefore depend on which transitions the evaluation counts.

An originally correct example with a label flip represents a specific failure: the classifier gave up an answer that the benchmark already credited, after accepting the replacement as equivalent to the original hypothesis. The paper’s test exposes this behavior without training a new inference system. Its comparison is between the label a checkpoint supplies under the original phrasing and the labels it supplies under the vetted alternatives.

Sensitivity after transfer

Across the out-of-domain tests, the reported weighted average relaxed fooling rate is 23.71%. The paper notes that the experiments use datasets with different numbers of sampled instances and weights the aggregate accordingly. It reports an out-of-domain strict rate of 15.8%. These aggregates combine settings with substantially different rates, so the results for SNLI and the ANLI rounds help explain what the average represents.

The across-classifier relaxed rate is 16.54% on SNLI, with a strict rate of 10.24%. On ANLI round 1 the averages are 41.30% relaxed and 29.97% strict. For round 2, they are 48.53% relaxed and 31.32% strict, and for round 3 they are 48.17% relaxed and 27.04% strict. The highest relaxed rate in the individual classifier results is DistilBART on ANLI round 2, at 57.49%. Its strict rate in that setting is 36.09%.

Transfer benchmark comparison by relaxed fooling rate averaged across classifiers

Originally correct answers are more susceptible to rewrites in each ANLI round than on SNLI.

Transfer benchmark comparison by relaxed fooling rate averaged across classifiersSNLI (this paper): 16.54SNLI (this paper)16.54ANLI round 1: 41.30ANLI round 141.30ANLI round 2: 48.53ANLI round 248.53ANLI round 3: 48.17ANLI round 348.17
The numbers
System or setting%
SNLI (this paper)16.54
ANLI round 141.30
ANLI round 248.53
ANLI round 348.17

SNLI shows that vulnerability can rise under transfer even where ordinary accuracy remains comparatively strong. For BART-large, the SNLI relaxed rate is 15.52%, and the strict rate is 10.11%. RoBERTa-large records 14.98% relaxed and 8.38% strict. Its relaxed rate then reaches 42.80% on ANLI round 2. The results place the greatest observed instability on the more challenging transfer sets in this evaluation, within the examples each classifier already answered correctly.

The paper interprets the out-of-domain pattern as a difficulty transferring the semantic judgments needed to preserve a relation through a rewrite. The evidence is the consistency comparison across datasets under the same evaluation method. ANLI also presents harder original cases by the study’s accuracy measure. Higher fooling rates there show that even the available correct answers are frequently phrasing-dependent. The experiment leaves open which features of the transfer sets produce that pattern.

What the ablations show

Distillation changes the stability comparison

The authors compare DistilBART with the larger BART system from which it is distilled. Distillation trains a smaller system using information from a larger one. The comparison asks whether similar performance on unmodified pairs extends to the stability of those decisions after rewriting. DistilBART has a higher relaxed fooling rate in every dataset setting reported in the paper. The authors summarize its greater sensitivity across the in-domain and transfer evaluations as 18.4% in relaxed fooling rate.

The result is visible on both the easier and harder setups. On SNLI, BART-large gets 87.55% of the original examples right and DistilBART gets 84.37% right. Among the examples that pass their respective correct-answer filters, the relaxed rate is 15.52% for BART-large and 23.68% for DistilBART. On ANLI round 1, the relaxed rate is 42.89% for BART-large and 52.30% for DistilBART, while the strict rates are 31.51% and 31.48%, respectively. The latter comparison shows why the two measures are useful. In that round, the difference between the checkpoints appears more clearly when the evaluation includes all label changes.

The authors interpret the comparison as evidence that sensitivity can increase during distillation, even where a compact classifier retains substantial original accuracy. The experiment compares the published checkpoints and the sets of rewrites they accept. Its most direct finding concerns their observed behavior. It gives a reason to evaluate consistency separately when judging what a distilled classifier has retained from a larger one.

Increasing DeBERTa size has uneven effects

The DeBERTa comparisons keep the architecture family in view while changing checkpoint size. On MNLI, the relaxed fooling rate falls from 13.81% for base to 11.54% for large and 11.49% for xlarge. The strict rates are 6.66%, 5.38%, and 5.89%, respectively. This shows a modest improvement in the relaxed measure and illustrates that even within a family the rate of any label change and the rate of the stricter transitions can move differently.

SNLI gives a different ordering at the upper sizes. DeBERTa-large has a relaxed rate of 13.39%, and xlarge has a relaxed rate of 14.69%. Their SNLI strict rates are 7.83% and 9.50%. The same two checkpoints score 88.87% and 88.54%, respectively, on the unmodified SNLI set. The largest checkpoint occasionally has an advantage in the ANLI results, including round 1, where its relaxed rate is 30.73% and the large checkpoint’s is 37.88%. Taken across conditions, the ordering depends on the dataset and metric.

The authors use these comparisons to argue that increasing size offers an incomplete account of semantic stability. The comparison within DeBERTa gives a concrete instance where performance on equivalent rewrites improves somewhat in-domain and shows a less regular pattern after transfer. The training dataset is a possible part of that explanation, as the authors suggest. The experiment varies dataset at evaluation and compares sizes of existing checkpoints, so its direct evidence is about how size and setting accompany the observed rates.

The original label affects the form of instability

The paper groups examples by their original labels to ask whether instability is concentrated in a single kind of judgment. On MNLI, the relaxed rate is 13.41% for originally entailed hypotheses, 14.33% for neutral hypotheses, and 11.17% for contradictions. All three kinds of inference contribute to the overall result. The order varies in the transferred settings. On SNLI, the average relaxed rates are 18.73% for entailment, 19.42% for neutrality, and 11.82% for contradiction. On ANLI round 3, they are 52.00%, 47.18%, and 46.50%, respectively.

The strict breakdown helps distinguish changes into neutrality from reversals between the opposing labels. For original entailments on MNLI, the strict rate is 2.78%. For original contradictions it is 3.69%. ANLI round 2 produces strict rates of 20.84% for initial entailment and 21.89% for initial contradiction. These figures are direct evidence of reversals, since the rule for those original labels counts only an answer at the opposite pole. In contrast, the strict rate for original neutrality is 14.33% on MNLI and 49.41% on ANLI round 2. In these neutral groups the strict and relaxed values coincide by definition.

This breakdown addresses the possibility that the aggregate consists largely of sensitivity in one original class. Changes appear throughout the label space. It also shows that the strict aggregate alone is insufficient for answering how often the classifier goes directly between entailment and contradiction. The relevant entries for that question are the strict rates within those original classes. The neutral contribution captures instability of a different kind, when an unresolved relation is recast as support or conflict.

Rewrites that flip an answer are close to the originals

The authors examine the distance between the original and rewritten hypotheses in sentence embedding space. A sentence embedding is a numerical representation of a sentence. Cosine distance compares the direction of two such representations. Figure 3 reports a mean cosine distance of 0.0416 between original and rewritten hypotheses. The authors also compare the distributions of distances for replacements that change a prediction and replacements that preserve it. The Jensen–Shannon divergence between those input-distance distributions is 0.001.

The appendix provides a separate check based on shared wording. It measures token overlap between the original and rewritten hypotheses, including a fuzzy matching measure that permits near matches. The reported fuzzy token match is 84.83% on MNLI and 81.55% on SNLI. Across the ANLI rounds the corresponding values are 87.59% for round 1, 86.49% for round 2, and 85.17% for round 3. The appendix reports an average original hypothesis length of 14.31 tokens on MNLI and 10.81 on SNLI. The overlap figures describe the generation procedure’s tendency to produce edits of existing wording, even though the search aims to obtain distinct alternatives.

Embedding distances and word overlap answer questions about different aspects of similarity. A high share of matching tokens can coexist with an important semantic change, and different expressions can carry equivalent content with limited vocabulary in common. Here the measures describe how close the candidates generally are, while the entailment screen and the human checks address equivalence. The comparison between flip and no-flip groups makes a more specific point. The rewrites that cause failures look much like those that preserve the prediction by the distribution of embedding distances used in the paper.

A changed label can reflect a broad shift in scores

The paper also studies the class probabilities that precede the final chosen label. A classifier’s softmax layer converts its scores into a distribution over entailment, contradiction, and neutrality. A label change could occur because two nearly tied probabilities change order. It could also accompany a broader redistribution of probability across the answers. Studying the output distributions gives the authors a way to distinguish these patterns at the aggregate level.

The analysis separates candidate pairs according to whether the edited hypothesis flips the original prediction. The authors compare the output probabilities of the original pairs with those obtained from the rewritten pairs, grouping the analysis by flip status. They use Jensen–Shannon divergence to compare distributions and the Kolmogorov–Smirnov test to assess differences between samples. The paper expresses the former as:

JSD(P ∥ Q) = ½ D_KL(P ∥ M) + ½ D_KL(Q ∥ M)

JSD denotes Jensen–Shannon divergence. P and Q are the two distributions under comparison, and M within this formula is their equally weighted mixture. The symbol ∥ separates the arguments of a divergence. D_KL denotes Kullback–Leibler divergence, which measures how one distribution departs from a reference distribution. Both terms use M as their reference, and the coefficients ½ give them equal weight. The plus sign adds the weighted terms.

The paper reports a rise of 0.51 in its Jensen–Shannon divergence comparison and 0.54 in its Kolmogorov–Smirnov measure when examining the group with changed predictions. These output comparisons concern the probability distributions assigned to inference labels. They have a different object from the divergence of 0.001 for the distributions of input cosine distances. Together the results show that limited separation in measured input distance can coexist with substantial separation in the classifier’s output behavior.

A final analysis looks at how concentrated the probabilities are. The authors calculate the standard deviation of the probabilities over the available labels and compare the original pairs, the replacements that preserve the answer, and the replacements that change it. The reference maximum in their setup is:

softmax = [1, 0, 0] ⇒ σ_max = 0.471

softmax denotes the output vector of class probabilities in this example. The brackets contain the probabilities assigned to the answer categories. 1 places all probability on one class and the 0 entries leave none on the others. The arrow ⇒ indicates the consequence for the spread of the vector. σ_max is the maximum standard deviation in the paper’s setting, with reported value 0.471. Permuting the class positions leaves that spread the same.

The paper reports that the original predictions have relatively concentrated probability distributions. When a replacement preserves the label, the average concentration rises slightly on most datasets. When a replacement changes the label, the reported average drop in standard deviation across datasets is 0.1. The classifier tends to spread its probability more broadly among the alternatives in these failure cases. That quantity describes confidence in the sense of concentration of the output distribution. It gives the label flips a probabilistic context while leaving open how accurately the probabilities reflect the chance that an answer is correct.

Limitations

Limits identified by the authors

The experiments concern natural language inference. The authors suggest that the framework could apply to other forms of classification, but the evidence in the paper comes from decisions about relations between premises and hypotheses. The design draws much of its strength from having an entailment classifier that can also compare two phrasings directly. Extending it to another task would require specifying which changes preserve the task label and how to check that condition.

The evaluation covers English benchmarks and English-language systems. The authors explicitly identify multilingual and cross-lingual settings as outside the study. Conclusions about the rates therefore concern the tested English data. The transfer comparisons change benchmarks within that language. They provide evidence about the effect of moving beyond the MNLI training domain while keeping the task and language in common.

The authors also call for more datasets, a larger human evaluation, and examination of larger general-purpose systems used zero-shot for inference. In the experiments, FLAN-T5-XL proposes rewrites, while the final NLI decisions come from classifiers fine-tuned for the task. Accordingly, the zero-shot results characterize transfer of MNLI-trained classifiers. They leave the broader question about zero-shot inference through prompting a general-purpose system for a separate experiment.

The human evaluation supports the validity of the rewrites and is limited in scale. Sampling original-and-rewrite pairs across the datasets supplies a check on the general generation procedure. The reported agreement and equivalence rates describe those judgments. A larger evaluation could establish how equivalence judgments vary by dataset, classifier, original label, or the kind of edit that was made. The paper’s aggregate supports its intended interpretation while leaving such more detailed comparisons open.

Limits that follow from the setup

The correct-answer filter makes the result interpretable as a loss of an existing success. It also conditions the denominator on each classifier and dataset. An original pair that one classifier gets right may be ineligible for another. When original accuracy falls, the selected set can change in composition as well as size. Cross-classifier and cross-dataset rates are therefore comparisons of behavior under the same procedure on separately selected sets. A shared subset of items would answer the complementary question of how classifiers differ on precisely the same original successes.

The equivalence filter introduces a second form of selection. The same classifier helps decide which rewrites it will face in the final test. That choice is central to the paper’s claim about internal consistency, since a qualifying rewrite is one the classifier already treats as equivalent in a direct comparison. It also means each classifier can face a different collection of candidates. A comparison between rates reflects both the classifier’s willingness to accept particular rewrites and its ability to preserve its inference once it has accepted them. The design makes the latter test meaningful in the classifier’s own terms.

A mutual entailment prediction gives evidence about how the classifier reads the two sentences. Human agreement gives independent evidence of equivalence. Neither check is exhaustive across the entire set of generated pairs. An accepted rewrite that actually changes meaning could legitimately receive a different label against the fixed premise. This ambiguity is especially relevant when an evaluation concentrates on examples that change the answer. The annotation sample estimates general candidate quality, and the paper’s reported human result leaves uncertainty about the quality of each subgroup used in the comparisons.

The fooling rates also depend on the search that supplies the candidate set. The study uses a particular generator, a paraphrasing request, diversity settings, and 5 unique accepted rewrites. The probability of finding a change within that set can depend on which wordings the procedure produces. An example counted as stable has survived the accepted variants it encountered. Different paraphrasing procedures, or more eligible variants of the same sentence, could reveal a different pattern. The paper quantifies vulnerability under a defined procedure and budget.

Only the hypothesis changes in the final test. This keeps the comparison focused, since the premise serves as a fixed statement of the evidence. Equivalent rewrites of premises could pose related questions, as could simultaneous rewrites of both sentences. The measured rates characterize the effect of substituting the hypothesis alone. That scope matters when interpreting the results as evidence about NLI behavior in settings where users can change either part of a pair.

The stricter rate needs particular care when condensed into an overall figure. It counts entailment-to-contradiction and contradiction-to-entailment transitions for the two opposing classes, while retaining every departure from an originally neutral label. The combined figure measures severity under the paper’s convention. The class breakdown gives the direct evidence about logical reversals. How frequently neutral examples appear among the originally correct cases can affect the aggregate.

Finally, the experiment observes decisions and distributions of probabilities. A flip after an equivalent rewrite demonstrates inconsistency under the test conditions. Several causes could contribute to the same observed pattern, including sensitivity to particular lexical cues, difficulty preserving sentence structure across rewordings, or a change in how the hypothesis interacts with the premise. The embedding, token overlap, and probability analyses characterize the cases in which the behavior appears. The setup leaves the internal cause of a particular reversal unresolved. It also leaves open whether an originally correct answer came from a sound inference process that failed on the rewrite or from a surface cue that happened to work on the original.

What came after

Paraphrase errors and benchmark reliability

How Often Are Errors in Natural Language Reasoning Due to Paraphrastic Variability? brings the connection between reasoning errors and alternate wording to the foreground. Its question can be read alongside Arakelyan and colleagues’ choice of denominator. Their experiment begins with correct answers and counts how frequently alternative formulations can turn them into failures. A study framed around the sources of reasoning errors asks how much of the error landscape is associated with paraphrastic variability. The direction of inquiry changes, while the distinction between a proposition and its wording remains central.

FinNLI introduces a dataset for benchmarking natural language inference across financial genres. Its connection to the fragility study is through the role of domain and dataset in interpreting inference performance. Arakelyan and colleagues compare training-domain evaluation with transfer to other NLI benchmarks. Financial text spanning multiple genres gives that issue a more specific benchmark setting. An inference system can face a shift in vocabulary and genre at the same time that readers expect equivalent formulations of a financial claim to lead to consistent judgments.

When LLMs Annotate: Reliability Challenges in Low-Resource NLI considers reliability when language systems supply annotations for low-resource inference. This moves the concern earlier in the workflow. Arakelyan and colleagues start with a reference label and ask whether an inference classifier preserves its correct answer. In an annotation setting, a system’s judgment can help determine the labels that later serve as references. The connection is particularly direct wherever different expressions of the same underlying relation may enter an annotated collection. Stability then matters for the creation of the evaluation data as well as for the decisions evaluated against it.

Relations and perturbations beyond the original task

Reference-Free Evaluation of Taxonomies addresses the evaluation of taxonomies without a reference taxonomy. This gives the citation a different setting from the benchmark pairs in the fragility paper. Arakelyan and colleagues have a reference label for each original NLI decision and use related judgments to probe whether it survives a rewrite. Reference-free taxonomy evaluation puts more weight on how relationships can be assessed when a corresponding reference structure is unavailable. The common concern is how to evaluate judgments about meaning and relationships when surface expressions give only part of the evidence.

Using Topological Data Analysis to Characterize the Layers of Language Models Before and After Word Substitution Attacks examines the effects of wording changes at the level of internal layers. The fragility study measures label flips and changes in class probabilities, with a separate sentence-embedding comparison to describe the similarity of the inputs. A layer-level analysis places the comparison inside the system and asks how representations change after substitutions. That is a different observational scale for the question of sensitivity to input wording. The relation to Arakelyan and colleagues is clearest in the distinction between the size of a textual change, its effect on representations, and its eventual effect on a decision.

Cite

Cite as Erik Arakelyan, Zhaoqi Liu and Isabelle Augenstein. 2024. Semantic Sensitivities and Inconsistent Predictions: Measuring the Fragility of NLI Models. Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers).

The paper itself, not this page. BibTeX from the library's record of the work. DOI 10.18653/v1/2024.eacl-long.27

@inproceedings{arakelyan2024semantic,
  title = {{Semantic Sensitivities and Inconsistent Predictions: Measuring the Fragility of NLI Models}},
  author = {Erik Arakelyan, Zhaoqi Liu and Isabelle Augenstein},
  booktitle = {Proceedings of the 18th Conference of the European Chapter of the Association for Computational Linguistics (Volume 1: Long Papers)},
  year = {2024},
  doi = {10.18653/v1/2024.eacl-long.27},
  url = {https://doi.org/10.18653/v1/2024.eacl-long.27}
}

↑ back to top

This page in Markdown https://md.research.elamur.ai/free/en/papers/arakelyan-2024-semantic-sensitivities-inconsistent-predictions-measuring/