InferES : A Natural Language Inference Corpus for Spanish Featuring Negation-Based Contrastive and Adversarial Examples
Paper · 2022 · Venelin Kovatchev and Mariona Taulé
Summary
A sentence can share a subject and several words with another sentence while drawing a very different conclusion. A description of what someone agreed to, for instance, can resemble a description of what they merely considered. Natural language inference asks a system to tell these relationships apart. Given a premise and a proposed conclusion, called a hypothesis, it must decide whether the premise supports the hypothesis, rules it out, or leaves it open. InferES brings that task to European Spanish with 8,055 labeled sentence pairs. The authors describe it as the first Spanish corpus built specifically for this task from original examples, following earlier resources based on translation or adaptation.
The authors start with sentences from Spanish Wikipedia and build examples in several ways. Trained linguistics students write hypotheses that follow from or conflict with the source sentences. Other students revise existing examples, changing what a sentence says while retaining enough of its wording to make the change easy to overlook. A separate process combines statements into candidate pairs for crowd workers to label. The authors also assemble and check pairs intended to exemplify the neutral relation. Negation is a particular focus throughout the corpus design. A sentence can contain a negative expression and still be supported by the premise, and revising the words around that expression can change the inference even when the negative marker stays in place.
On the standard InferES test split, the Spanish BERT system BETO reaches 72.8% accuracy, and multilingual BERT reaches 69.6%. When trained and tested on hypotheses alone, without the premises needed to judge the relationships, they score 42.3% and 38.8%, respectively, against 36.8% for always choosing the most frequent label. Those smaller gains suggest that the wording of a hypothesis supplies relatively weak clues to its label for these systems. On examples held out from the rewrite portion, accuracy falls to around half, although both systems still beat the majority baseline. The topic experiments give a different picture. Systems trained with an entire topic withheld generally score close to their results when that topic is represented in training. The corpus thus offers distinct tests of ordinary classification, dependence on the premise, sensitivity to altered meaning, and transfer among its Wikipedia topics.
Deep dive: InferES : A Natural Language Inference Corpus for Spanish Featuring Negation-Based Contrastive and Adversarial Examples
InferES is a Spanish natural language inference corpus that tests how well systems handle negation and transfer to unfamiliar topics. · about 34 minutes to read
The problem and its context
The relationship between a premise and a hypothesis
Natural language inference is a task in natural language understanding. The input is a pair of texts in a specified order. The premise supplies the information the reader is asked to take as given. The hypothesis is a claim to assess against that information. Entailment means the premise supports the truth of the claim. Contradiction means the premise supports its falsity. Neutral means the premise leaves the claim undecided. The label expresses a relationship between these particular texts. Whether the hypothesis happens to be true in the wider world is a separate question.
The paper illustrates the distinction with a person who regularly commutes by car. A claim that the person is employed follows from the account. The paper treats a claim that the person makes that commute by bus as a contradiction. A hypothesis naming a particular make of car remains open, since the premise gives no details about the vehicle beyond its type. The same short premise thus supports judgments in every class. The difference lies in what the hypothesis asks the reader to infer.
Direction matters as well. A statement that supports a broader claim need not be supported by that broader claim in return. The commuting example contains more detail than the statement that the commuter has a job. Starting with the employment statement would leave the means of travel open. That directional property becomes a practical issue in corpus construction. When the researchers combine statements, they must specify which one supplies the evidence and which one is being assessed.
Contradiction introduces another decision. Two accounts can sound incompatible because the reader assumes they describe the same people or the same event. The InferES writing guidelines ask for explicit conflict when students generate contradictions. If an example depends on silently treating different mentions as the same event or actor, the apparent conflict can come from that assumption. The instructions narrow the task so that, for the generated pairs, the conflict should be recoverable from the texts themselves.
That still leaves room for coreference resolution, the work of determining when different expressions refer to the same entity. A hypothesis can use a pronoun where a premise uses a name, or refer to the same person by a description. The reader then has to make the connection before judging the claim. InferES distinguishes between a reference that a reader can resolve and an assumption on which the existence of a contradiction would depend. The authors saw reference and negation as reasons to construct some examples deliberately. They wanted a corpus that could also serve as an instrument for studying particular linguistic phenomena.
From a benchmark score to a diagnosis
As the authors describe its history, natural language inference grew out of Recognizing Textual Entailment. The earlier challenge asked whether the premise supported the hypothesis, with entailment and non-entailment as its alternatives. The later formulation used in SNLI and MultiNLI distinguished contradiction from cases where the premise provided insufficient evidence either way. That distinction matters for evaluation. A system asked only whether a claim follows can answer correctly while treating a refuted claim and an undecidable one alike. The expanded label set requires a different decision in each case. PASCAL Recognizing Textual Entailment Challenge, SNLI, MultiNLI
These tasks became part of broader evaluation benchmarks for language understanding. The InferES paper describes a period in which leading systems reached scores reported as comparable to human performance. The concern was how to interpret those scores. A benchmark awards credit for the right classification regardless of the process that produced it. A system can therefore answer correctly by using a regularity in the examples, even when that regularity would be a poor guide to the meaning of a new pair. GLUE, SuperGLUE
The hypothesis-only test makes that concern concrete. The evidence for the correct label is supposed to be the relationship between the sentences, so a classifier that sees only the hypothesis is missing essential information. Yet the practice of asking writers for a particular relation can influence their wording in recurring ways. A choice that is perfectly natural in an individual pair can become an annotation artifact if it predicts the label across examples. Negation is especially pertinent here. If writers frequently express contradiction by producing a negative hypothesis, a system can learn to associate negative wording with the label without resolving what the premise and hypothesis say. Earlier work found that hypotheses alone carried predictive information and examined the role of dataset artifacts and heuristics in NLI. Hypothesis-Only Baselines in Natural Language Inference, Annotation Artifacts in Natural Language Inference Data
The paper also places InferES in a tradition of testing recognizable kinds of failure. A stress test draws attention to examples that require a particular capability or that expose a possible shortcut. Earlier work examined conjunction, negation, and other linguistic phenomena. Researchers also developed contrastive examples, which stay close to an existing sentence or pair while altering a feature relevant to the judgment. Adversarial collections focus evaluation on difficult examples. In that setting, an edit can make an instance informative precisely because so much of the original wording survives. Two pairs may look almost interchangeable until the reader notices the expression that changes the relation. Stress Test Evaluation for Natural Language Inference, CheckList, ConjNLI, Negation in NLI Benchmarks
The authors cite Adversarial NLI and Dynabench as further evidence that the way examples are collected affects what a benchmark can reveal. InferES adopts the idea of making hard examples part of the design. Its rewrites begin with human-authored pairs and target changes in meaning. The authors also cite work that put linguists into the data collection process. InferES takes expertise as a consideration at several points, including premise cleanup, hypothesis writing, rewrites, and checking examples intended to be neutral. Other judgments are assigned to crowd workers through a procedure with separate annotation questions. Adversarial NLI, Dynabench
Why build the examples in Spanish?
Most of the NLI corpora discussed by the authors were in English. One route to broader coverage was XNLI, which made English examples available in other languages through machine translation or translation more generally. Spanish also had SPARTE, a textual entailment resource adapted from question answering data. These were ways to provide Spanish input for inference evaluation. The InferES authors wanted the source sentences, writing instructions, and resulting examples to originate in Spanish within an inference-specific collection process.
The distinction concerns what can be designed into the evidence. Translation starts with a choice of premise and hypothesis made for another language. Adaptation from question answering starts with examples selected for a different purpose. A new corpus gives its designers direct control over which Spanish expressions to include, how to vary polarity, and where to put changes of reference. The authors describe non-English resources for languages including Chinese and Indonesian as part of the wider move towards language-specific inference data, alongside work on Indigenous languages of the Americas. OCNLI, IndoNLI, AmericasNLI
Native collection, fewer annotation shortcuts, and better evidence about negation and reference were related objectives. Writing examples in Spanish makes the linguistic choices available to the researchers. Giving writers constraints about negation, overlap, and reference determines how those choices appear in the material. Keeping track of topic and construction procedure then allows the resulting examples to be selected for different evaluations. The corpus is designed around these linked decisions, beginning before anybody writes a hypothesis.
The method, step by step
Selecting sentences that can support varied inferences
The authors chose the October 2019 version of Spanish Wikipedia as the source of premises. They drew on the main articles for Pablo Picasso, Christopher Columbus, the Olympic Games, video games, the European Union, and the Soviet Union. These topics range across history, art, sports, technology, and politics. The topics were also chosen in pairs. Picasso and Columbus are historical figures. Olympic and video games share a term for activities with otherwise different subject matter. The European Union and the Soviet Union supplied another pair of related names. The authors expected such pairings to be useful when constructing contrasts involving reference.
A premise had to be a single sentence, long enough and rich enough to support several possible claims. The team used spaCy for sentence segmentation and tokenization, the division of text into units such as words and punctuation. They split each article into paragraphs and dropped paragraphs with only one sentence or with more than five. From each retained paragraph, they selected a sentence with negation when possible. Their screening procedure looked for common Spanish negative particles, adverbs, and verbs. Where there was no such sentence to prioritize, they selected a sentence at random. The selected sentence had to contain between 15 and 45 tokens.
The screening step favored sources in which negation could already play a role. That was useful for building an entailment pair whose hypothesis contains negative wording. When a premise describes a prohibition, exclusion, or other negative situation, a faithful inference might preserve that aspect of meaning. The same selection also furnished material for rewrites that change a negative expression, its scope, or the vocabulary around it. Because the initial screening used keywords, the incidence of those words reflects a deliberate selection decision.
The extraction yielded 471 candidate premises. There were 82 from Picasso, 60 from Columbus, 68 from the Olympic Games, 73 from video games, 107 from the European Union, and 81 from the Soviet Union. The authors retained the surrounding paragraph for each candidate. They could draw on this material when looking for neutral pairs, and they kept it available for experimental conditions that would supply additional context.
One of the authors inspected all 471 candidates. The inspection corrected sentence breaks, removed URLs and internal Wikipedia references, and made ambiguous references explicit. A pronoun that depended on a previous sentence could be replaced with a clear name or description. This step matters because a sentence originally written inside a paragraph can be hard to interpret after extraction. Restoring enough information to identify its referents allows it to function independently as a premise. Writers could subsequently introduce resolvable reference variation in their hypotheses.
How InferES turns source sentences into labeled pairs
The steps in order.
Writing supported and conflicting hypotheses
The expert generation procedure started with a finished premise and an assigned relation. In the entailment task, the writer produced distinct claims supported by the premise. In the contradiction task, the writer produced distinct claims incompatible with it. Writers were asked to use different ways of obtaining their examples. For an assigned relation, their instructions called for an affirmative hypothesis and a negated one. They also called for low word overlap and, where possible, alternative ways of referring to named entities.
Polarity and inference label were therefore separate dimensions of the writing task. Polarity concerns whether and how an expression denies something. The relation depends on what that expression says in comparison with the premise. For a premise that conveys a negative situation, a negative hypothesis can express the correct consequence. An affirmative hypothesis can contradict a premise by asserting what the premise denies. Requiring writers to cover these combinations gives the corpus examples in which the presence of negation by itself is a weak guide to the label.
Low overlap served a related purpose. A useful hypothesis can draw an inference without copying the sentence that supports it. Conversely, sharing many words can leave an important difference intact. Asking writers to reformulate encourages them to express conclusions at a different level of detail or through different vocabulary. The authors paired this instruction with a strict rule for contradiction. When writers changed the wording, the resulting conflict still had to be explicit.
The paper illustrates the task with a premise about software media in the 1980s. The source describes cartridges as the usual medium for consoles and gives magnetic disks or cassette tapes for computers. An entailment hypothesis generalizes from those details, saying in effect that the platforms were unlikely to have used the same medium. The contradiction hypothesis challenges the timing of cartridge use by presenting cartridges as already obsolete during that decade. The premise and hypotheses share a subject area, but each decision depends on a different part of the information. The entailment draws a comparison across platforms. The contradiction makes a claim about what was current or out of date.
Four graduate students in linguistics undertook the main writing task. They received written instructions and examples, attended an interactive training session, and met with the authors weekly to discuss examples that raised questions. The team distributed assignments with attention to topics, premises, and relation balance. For a given premise, an individual writer was assigned one relation. Other writers could work with the same premise, and some premises were used repeatedly. That gave the researchers several hypotheses for a source while limiting one writer's influence over the range of labels associated with that source.
The authors also recruited 24 undergraduates for a shorter hypothesis-writing exercise after interactive training. The generators were native speakers of European Spanish. The graduate students contributed 2,284 pairs, and the undergraduates produced a further 872. The direct writing procedure yielded 3,156 pairs divided equally between the entailment and contradiction tasks. The final generation portion has a larger count because it also contains neutral examples constructed in a separate step.
Rewriting both sides and judging the new pairs
The rewrite strategy began with examples produced by the writers. The authors selected 20 entailment and 20 contradiction pairs per topic, for 240 starting pairs, with balanced representation of the original writers. Two graduate students in linguistics revised the premises and hypotheses. Their instructions called for changes substantial enough to affect meaning. Where possible, the students changed the polarity and introduced synonyms or alternative references. They were encouraged to look beyond the simple insertion or deletion of a negative word.
The authors' example concerns the queen's response to Columbus's proposal. In the starting premise, the queen makes clear that she has yet to rule the plan out entirely. In the revised premise, she stops short of fully accepting it. The original and revised hypotheses likewise move between a qualified judgment about how acceptable the plan is and a qualified judgment about how feasible it is. Negative wording survives in the Spanish revisions. The change in the verbs and adjectives matters because leaving a proposal open and withholding full acceptance convey different positions, even within a similar sentence frame.
That example shows why the authors took rewriting to be a matter of meaning. Someone can decline to commit to a plan while allowing that it might later prove workable. An inference about the speaker's view depends on which action is being qualified and how the qualification is expressed. The Spanish cues in the example include the meaning of the chosen words and negation within word forms as well as sentential negative wording. Checking whether a negative marker is present would leave the main interpretive work unresolved.
For each starting pair, the authors formed three additional pairings. They used the original premise with the rewritten hypothesis, the rewritten premise with the original hypothesis, and the original hypothesis as a premise for the rewritten hypothesis. The authors omitted a pairing of the original and rewritten premises because of sentence length. The rewriters then labeled the new relationships directly. The process therefore treats the original label as a property of the starting pair, with fresh decisions needed for the altered ones.
In the Columbus example, the authors assign contradiction to the original premise with the rewritten hypothesis, neutral to the rewritten premise with the original hypothesis, and entailment to the pairing of the original and rewritten hypotheses in that order. The set illustrates how an edit can create examples in every class from nearby sentences. It also illustrates why an altered sentence has to be read against the particular partner it receives. The procedure produced 720 new pairings at this stage. Separate neutral balancing contributed examples to the final rewrite portion used in experiments.
Recombining sentences for the crowd to label
The crowd strategy separated sentence production from the judgment of the final pairs. The authors selected 20 source sentences from the extracted premises, with five each from Picasso, Columbus, the Olympic Games, and video games. They chose sentences that described multiple actions, states, or relations. Such a source gives writers more choices about what to preserve, generalize, or change when producing hypotheses. The team trained 26 undergraduates in linguistics for the writing task. Each contributed 20 supported statements and 20 conflicting ones based on the shared sources. The resulting pool contained 1,040 statements.
At this point, a statement's designation as true or false referred to what its source premise said. The design then took statements out of their original pairs and matched them to other statements about the same source. In the example about personal computers, the source explains that they can serve as gaming platforms while having other uses, and that they are distinguished from consoles. The authors give a supported statement about non-gaming uses and a conflicting statement that limits computers to gaming and treats them as consoles. Each is labeled relative to the source during writing. Once the statements are put into a new pair, the task becomes judging what one of those claims implies about the other.
The recombination procedure drew from true–true, false–false, and true–false matchings within a source. Two true claims can discuss different details and leave each other undecided. Two false claims can express different departures from the source. A true and a false claim can conflict when they make incompatible assertions about the same issue. Their classes relative to the Wikipedia sentence help select candidates. The researchers still need people to assess the relationship inside each new pair.
The authors sampled 2,000 candidate pairs for annotation and aimed for equal representation of the pairing strategies. They departed from the earlier procedure they were adapting by leaving out random pairing and by retaining the same sampling treatment for the false–false and true–false groups. Keeping the source constant gives the paired statements a shared origin. It also means that the recombination procedure explores relationships within the range of claims students made about those selected sentences.
For linguistic annotation, crowd workers used the WARP-Text interface. They answered separate yes-or-no questions about entailment and contradiction. For entailment, each pair was presented in both directions so that workers could judge what followed from whichever sentence appeared first. The procedure assigned neutral when the pair received neither an entailment nor a contradiction decision. Three workers annotated each example. The authors then retained the labeled entailments and contradictions and randomly reduced the neutral group, which had been the largest. The resulting annotate portion contains 1,290 pairs.
This process has a different division of labor from expert generation. The students who write the initial statements know which relationship each statement is meant to have to its source. The crowd judges know the paired texts they must compare. The final label comes from that latter judgment. The design lets the authors generate a substantial pool for review while retaining human decisions about the actual pairs, including neutral relations that emerge from the matchings.
Adding neutral examples to the other portions
Neutral examples required their own procedure. The writing task had been framed around true and false claims, leaving a gap in the generated portion. Rewriting produced neutral relations, but they were underrepresented there. The authors used rule-based matching to supply additional examples for both portions. A candidate for neutral status arose by putting together sentences for which the premise was unlikely to decide the hypothesis.
The authors used four approaches. Within a topic, they paired a premise with hypotheses written for other premises. They also paired premises with sentences selected from other stored context paragraphs on the same topic. A similar process paired existing hypotheses with sentences drawn from same-topic context paragraphs. Finally, they made a small fixed collection whose constituent sentences came from different topics. Those last examples tested whether a system could recognize a lack of relevant evidence even when the pair offered little apparent connection.
Within-topic matches matter because they can preserve the appearance of a coherent pair. A passage about a figure can use the same name as a hypothesis about that figure while discussing different parts of the person's life. Shared names or subject matter establish relatedness. The task is to judge whether that relatedness includes evidence for or against the specific claim. In this part of the construction, the retained context paragraphs supplied potential sentence partners after the original premises had been extracted.
The authors sampled 240 neutral candidates for human validation, with 60 drawn from each matching procedure. A generator first judged whether the texts were semantically related, then assessed whether the relation was neutral. Those judgments answer different questions. A pair can be strongly related in subject matter and still leave the hypothesis unresolved. The checking procedure measured both properties, so that the authors could assess whether their neutral examples consisted mainly of unrelated statements or included substantial topical overlap.
Assembling data and preparing the classifiers
The authors combined the portions into the final InferES corpus. The generation portion contains 5,029 pairs, the rewrite portion 1,716, and the annotate portion 1,290. The portion names record the main construction procedure. In generation and rewrite, some neutral pairs were added through the matching procedure. In annotate, neutral pairs come from the crowd's judgments of recombined statements. The authors aimed to give original premises comparable coverage across hypotheses and relations in the generation and rewrite portions.
The paper describes the inference task using p for a premise and h for a hypothesis. Its procedure is presented through label definitions, writing and sampling rules, and empirical measures. There is no displayed training or corpus-construction formula. The statistical measures used to describe the corpus and assess the classifiers each answer a concrete counting question. Word overlap asks how much wording from one member of a pair appears in the other. Accuracy asks how often a predicted label matches the corpus label. Agreement asks how consistently annotators make the same judgment.
For the classification experiments the authors chose multilingual BERT, abbreviated mBERT, and Spanish BERT, called BETO. Both are pretrained for use with Spanish. BERT is based on the Transformer architecture. The authors used the versions available through Hugging Face as of May 2022 and applied fine-tuning on InferES, adapting the pretrained systems to predict its inference labels. The paper identifies BERT as the basis of the classifiers and the Transformers software as the source of the implementations used in the experiments. BERT, Transformers
After trying training settings, the authors selected a polynomial-decay learning-rate schedule and trained for five epochs. The schedule changes the size of updates during training, and an epoch is a pass through the training examples. They used Adam to update the parameters and left the other hyper-parameters at their defaults. The paper reports averages over five random initializations and describes a separate repeated split procedure for the within-topic analysis. The authors made the InferES data and experimental code available through the InferES repository, released the trained baselines, and included InferES in Hugging Face's dataset collection.
Experiments and results
What the finished corpus contains
The full 8,055-pair corpus has 2,399 entailments, 2,687 contradictions, and 2,969 neutral examples. The generation portion contains 1,574 entailments, 1,582 contradictions, and 1,893 neutrals. Rewrite has 398 entailments, 712 contradictions, and 606 neutrals. Annotate has 427 entailments, 393 contradictions, and 470 neutrals. These distributions are relevant to interpreting the evaluation. The majority label is a more favorable default in the rewrite test than in the full-corpus condition, so the benchmark against which the classifiers should be read changes with the test set.
The authors report 12,877 distinct vocabulary types, meaning distinct token forms counted across the corpus. On average, 22.6% of premise tokens appear in the corresponding hypothesis, and 33.4% of hypothesis tokens appear in the corresponding premise. These figures use different denominators. For the first, the denominator is premise length, and a premise token counts if it occurs in the hypothesis. For the second, the operation is reversed and the denominator is hypothesis length. Repeated tokens participate in the counts. The measure tracks shared wording from each side's perspective, so equality between the percentages is unnecessary.
The authors put those figures alongside overlap values from English work. The numbers they cite are 20% and 38% for MultiNLI and 18% and 34% for the linguist-in-the-loop collection. They regard the aggregate overlap in InferES as comparable. That comparison gives a sense of how much surface material a premise and hypothesis usually share. It does not identify what the shared words do in individual examples. The same overlap percentage can occur where a changed word is decisive or where all overlapping words merely identify the subject of discussion.
The crowd validation produced 86.9% agreement for entailment and 85.6% for contradiction. The authors computed each as the average share of annotators voting for the majority judgment on an example. They also report moderate agreement using Fleiss’ kappa. This latter measure takes expected chance agreement into account. The authors point to the prevalence of negative judgments in the separate annotation tasks as a likely reason that the kappa assessment is more modest than the raw rates suggest. They report that about 22% of the candidate pairs contained entailment and 20% contained contradiction before class balancing.
Neutral validation gave information about both correctness and relatedness. Of the 240 candidates checked, 237 were judged neutral, a rate of 98.75%. The other judgments included two entailments and one contradiction. For the checked pairs, 55% had some semantic relationship, and 26% were judged strongly related. The matching process could therefore produce premises and hypotheses that shared meaningful content while leaving the hypothesis undecided. The reported accuracy of the neutral construction is the outcome of that sample check.
Standard and hypothesis-only tests
The main experiment placed 80% of the full corpus in training, 10% in validation, and 10% in testing. Examples from all construction strategies were available on both sides of the train–test distinction. The reported metric is accuracy, the share of test predictions that match the reference label. The majority baseline always chooses the most frequent label and provides a reference that uses no wording from either sentence. The paper discusses F1 in connection with earlier benchmark results, but the quantitative comparisons for InferES in the main results use accuracy.
Classifier and majority-baseline accuracy on the InferES standard test split
BETO leads the standard evaluation, and both trained classifiers outperform the majority baseline.
The numbers
| System or setting | accuracy % |
|---|---|
| Majority baseline | 36.8 |
| mBERT | 69.6 |
| BETO (this paper) | 72.8 |
BETO has the highest standard test accuracy, at 72.8%, against 69.6% for mBERT and 36.8% for the majority baseline. The authors cite reported scores of 82% for BETO-cased and 78.5% for mBERT on the Spanish part of XNLI to give context for the InferES results. These figures come from a different benchmark. They help situate the scale of the scores, while the comparison between BETO and mBERT within InferES is the one made under the study's shared corpus and evaluation procedure.
For the hypothesis-only condition, the systems are trained and tested without the premises. This is a separate training condition. It measures the ability to learn label-predictive patterns from hypotheses when the training examples also lack premises. The majority baseline remains 36.8%. BETO reaches 42.3%, and mBERT reaches 38.8%.
Classifier and majority-baseline accuracy on InferES with hypotheses alone
Both classifiers improve on the majority baseline, with a larger gain for BETO.
The numbers
| System or setting | accuracy % |
|---|---|
| Majority baseline | 36.8 |
| mBERT | 38.8 |
| BETO (this paper) | 42.3 |
The authors report a gain over the majority baseline of 5.5% for BETO and 2% for mBERT in their detailed discussion of the hypothesis-only condition. They compare the InferES results with earlier reports of 55% hypothesis-only accuracy on MultiNLI using a non-Transformer system and over 50% on the full linguist-in-the-loop collection using RoBERTa. Their interpretation is that InferES offers less useful hypothesis-only evidence in this test than those earlier datasets did in the cited tests. The measured gains still show that hypotheses carry some information about the label. The diagnostic measures how useful that information was to each classifier under the specified conditions.
Testing held-out rewrites
For the adversarial evaluation, the authors trained on the generation and annotation portions and tested on rewrite. This changes both what the systems see during training and the construction process used for evaluation examples. A system has to apply what it learned from written, recombined, and matched pairs to a portion built around edits of generated examples and supplemented with neutral pairs. The authors use the experiment to assess how well the systems handle the challenge concentrated in that held-out portion.
Classifier and majority-baseline accuracy on the InferES adversarial rewrite test
Both classifiers beat the majority baseline, and mBERT has the highest reported accuracy.
The numbers
| System or setting | accuracy % |
|---|---|
| Majority baseline | 41.5 |
| BETO | 51.2 |
| mBERT (this paper) | 52 |
mBERT achieves 52% accuracy, and the paper's main results table gives BETO 51.2%. The prose discussion of that experiment instead gives BETO 51.1%. Both figures put BETO near mBERT and above the 41.5% majority baseline for rewrite. The ranking differs from standard evaluation, where BETO leads. The authors emphasize the drop for both systems and read their continued advantage over the majority choice as evidence that the rewritten pairs remain learnable to some extent from the other portions.
The motivating comparison is with earlier research that evaluated the effect of negating a main verb. The InferES authors point out that their rewrites can use different kinds of negation, including word choice and changes in word forms. A system might encounter qualified rejection, qualified acceptance, or a predicate whose wording has changed while the negative marker remains in place. The results establish the difficulty of this collection as a test condition. Explaining the accuracy for any individual kind of negation would require separating the examples further.
Generalizing across topics
The topic experiment distinguishes in-distribution and out-of-distribution evaluation. Here, in-distribution means the topic is represented during training. The authors trained on splits of the full corpus using an 80/10/10 ratio, then divided each test set by topic to measure accuracy for each one. They repeated the process with five random splits. This gives a topic-level average across test subsets that can differ from one split to the next. The overall reference scores in the results table are 69.6% for mBERT and 72.8% for BETO.
For out-of-distribution evaluation, each system was trained on five topics and evaluated on the sixth, which was withheld from training. They repeated this arrangement for the different choices of held-out topic. The shift is therefore defined by the topic labels in InferES. The test still uses the corpus's collection and labeling framework. It explores the extent to which the relation between two sentences can be learned in some subject areas and recognized in another.
The reported numbers show where results track each other. On Picasso, mBERT scores 73.1% when the topic is represented in training and 67.9% when it is withheld. BETO scores 78.5% and 73.8% under those conditions. For the European Union, mBERT moves from 77.1% to 76.1%, and BETO from 78.3% to 77.2%. Both topics draw on the same source collection as the others, but these comparisons show that the effect of withholding a topic varies across topics and classifiers.
Some cases give similar scores in both conditions. On the Olympic Games, mBERT obtains 70.8% in-distribution and 70.9% out-of-distribution. On video games, BETO obtains 69.4% and 69.7%, respectively. The authors single out these cases for their closeness. On the Soviet Union, both classifiers score higher when the topic is held out. mBERT's scores are 65.3% in-distribution and 69.8% out-of-distribution, and BETO's are 68.6% and 69.6%. The authors investigate the stability of the estimates before attributing meaning to that reversal.
The in-distribution test subsets have between 100 and 120 examples per topic. The out-of-distribution tests use over 1,000 examples per topic. Accordingly, the within-topic scores from random splits can move more as individual examples enter or leave the test subset. The paper describes the out-of-distribution estimates as generally more stable. The main result is the broadly similar range of performance when the topic is withheld. The paper reports that for most topics out-of-distribution accuracy drops by between 1% and 5% compared with in-distribution accuracy. Individual increases and decreases have to be read against the different sizes and variability of the test sets.
What the ablations show
Removing the premise isolates one kind of shortcut
The paper reports no component-by-component ablation of the corpus design or the classifiers. Its diagnostic evidence comes from changing the available input, holding out portions or topics, checking labels, and measuring corpus properties.
The hypothesis-only comparison is the closest to an input ablation. The ordinary condition gives the classifier the texts whose relationship it must predict. The restricted condition removes the premise during training and testing. The score therefore captures what a system can learn from the second sentence when it has been given repeated opportunities to associate that kind of sentence with a label. It does not depend on the classifier trying to make sense of an unfamiliar input format at test time.
The comparison matters because the full classifier can use at least two types of evidence. It can attend to how the premise and hypothesis fit together, and it can attend to any recurring pattern that predicts a label. In the hypothesis-only setup, the former source is unavailable. The small gains over majority indicate that the latter source provides limited predictive power for these particular classifiers. Both improve substantially in the full-input condition, in which the premise is available. The experiment leaves open the possibility of heuristics that depend on features of both sentences, such as shared words or the presence of particular combinations of expressions.
Several construction decisions could contribute to the hypothesis-only result. The polarity instructions put negation into hypotheses with different labels. The distributed assignments vary who writes hypotheses for each source. Sentence recombination creates pairs whose final label comes from a new relationship rather than the original role of either sentence. Neutral matching adds yet another process. The comparison establishes the aggregate behavior of the finished corpus. It does not assign a separate effect to any one of those decisions because the paper gives no matched corpus with each decision removed in turn.
Holding out rewrites changes the kind of example
The rewrite experiment asks whether training on the remaining portions prepares a classifier for a set concentrated on meaning-changing edits. Its difficulty has a concrete basis: a predictor may encounter familiar topics, similar sentence frames, and shared vocabulary, yet need to attend to a changed predicate or a narrower qualification. In the Columbus example, noticing a negative construction is only a start. The reader also has to interpret what is being accepted or ruled out, and how fully. A classifier that associates general sentence resemblance with entailment will have poor evidence in a pair whose decisive detail changes inside otherwise similar wording.
At the same time, rewrite is a collection-level comparison. Its class mix differs from the full corpus. Its origin in expert edits differs from generation and crowd annotation. Its neutral pairs include automatically assembled examples, and the edits can affect wording or reference along with negation. The experiment measures what happens when this collection is reserved for testing. It does not estimate the effect of changing polarity while holding the rest of every tested pair constant.
The paper's design gives a way to ask closer questions in subsequent analyses. An original sentence and its revision are known to share an origin, and the new combinations were labeled directly. One could use that information to distinguish cases where a system gets the starting judgment right and then misses the change from cases where it struggles with both formulations. The published aggregate accuracy pools those possibilities. Its clearest finding is that examples from the held-out construction process are more difficult under the reported training regime.
The authors connect the above-majority results with some ability to handle complex negation. The collective result supports the less specific conclusion that there is predictive information in the rewrite examples which the trained systems can use. The available evidence does not locate that information in a particular negative word, construction, or reference chain. The swap in ranking between the classifiers is informative in the same way. BETO's advantage on the ordinary split does not carry through to the rewrite condition, and the rewrite experiment supplies no breakdown that would attribute mBERT's lead to a particular edit type.
Withholding topics probes a different kind of transfer
The withheld-topic study varies subject matter while preserving the corpus's task and overall approach to construction. This is useful because subject matter can change the names, vocabulary, and facts encountered in evaluation. A system that depends heavily on topic-specific associations may have difficulty when one of the subjects is absent during training. Conversely, results that remain close suggest that training on several topics supplies information useful on another topic within this corpus.
The two topic conditions differ in how the test sets are drawn. In the standard condition, topic results come from small subsets of randomly split test material. In the holdout condition, the test can use the withheld topic at much greater scale. The Soviet Union result illustrates why this matters. Its scores rise in the holdout comparison for both classifiers, but the authors note the greater instability of the smaller in-distribution samples. The data support a finding of broadly successful transfer across the selected topics. They give weaker grounds for interpreting an individual increase as a benefit of excluding a topic from training.
The rewrite and topic comparisons address different sources of difficulty. Holding out a topic changes what sentences discuss. Holding out rewrite concentrates evaluation on a particular way of making sentence pairs, complete with different sources of neutrality and a different label distribution. Relative stability in the former condition can therefore coexist with a marked drop in the latter. The combined experiments reveal why an ordinary split alone gives an incomplete picture of which changes a classifier can accommodate.
Checking that neutral means undecided
The neutral audit addresses a corpus construction question that accuracy cannot answer on its own. A quick way to produce neutral candidates is to pair sentences that share little. A corpus built heavily from such pairs would give a system a potential shortcut: when the sentences seem unrelated, choose neutral. The same-topic matching strategies aimed to provide neutral examples where the topic, participants, or other details could still be related.
Assessing semantic relatedness separately from inference makes that design visible. The human check found related and strongly related pairs while confirming neutrality for most of the sample. The distinction is central to the task. Topical or semantic overlap can suggest which information to inspect, but a neutral decision depends on the absence of support for either accepting or rejecting the particular hypothesis. A label-distribution table alone would not show whether the automatically matched neutrals had this property.
The crowd agreement figures serve a different validation purpose. Agreement asks whether workers given a pair make similar judgments. It does not track how varied the examples are or whether any single cue predicts the class. The checks complement each other. The neutral audit examines one type of candidate-label decision, the agreement statistics describe consistency in crowd judgments, and the hypothesis-only test examines the usefulness of incomplete input to a trained classifier.
Limitations
Limits identified by the authors
The authors explicitly leave the contribution of coreference in rewrite for future work. They designed examples to include pronouns and other ways of referring to entities, and some edits can change reference along with other aspects of a sentence. The experiments offer no dedicated score for cases whose solution depends on resolving those references. The coreference choices are therefore an available subject of study, with the paper's quantitative emphasis on whole subsets and the challenge of negation.
They also note that within-topic test estimates are sensitive to the random split. A topic subset with between 100 and 120 examples gives individual examples a greater influence on the average than the larger held-out-topic test. The authors use this point to qualify their interpretation of topic reversals. Their broad finding about transfer rests on patterns across the topic conditions. Success on any one small subset remains more sensitive to which pairs were sampled.
The paper treats the accuracy on rewrite as evidence of room for further work on complex and lexical negation. It does not set a human performance reference for the adversarial test. Crowd agreement pertains to crowd-annotated candidates, and neutral validation pertains to a sample of neutral pairs. Neither supplies a directly comparable human score on the held-out rewrite collection. The claims about the difficulty of that test come from its construction and the performance of the systems under the reported conditions.
What follows from the setup
The hypothesis-only test measures one form of annotation bias. A low score in that condition gives evidence about the usability of the hypothesis on its own to mBERT and BETO. Patterns based on the premise alone, on the relative lengths of the texts, or on combinations of surface cues could remain in the corpus. Some patterns could also be confined to a construction strategy or topic. The paper reports the diagnostic at the aggregate level, where a small overall gain can coexist with stronger cues for a particular subset.
Comparisons with earlier corpora also combine several changes. The cited studies differ in their data and the classifiers used, and some use a different language. Their hypothesis-only figures provide context for the InferES result. The experiment on InferES does not hold those factors fixed to estimate exactly how much the writing instructions reduced artifacts. Nor does it compare a translated corpus and a native corpus made from matched premises. The native collection gives the authors control over the wording and coverage of InferES, while the causal effect of that choice on measured performance remains open.
The intended language and subject coverage are bounded by the collection process. The premises come from a small set of Spanish Wikipedia articles, and the premise extraction favors relatively substantial sentences and the presence of negation. European Spanish speakers produced the generated hypotheses. These choices suit the paper's objectives, and they shape the distribution being measured. Results on the corpus leave transfer to other Spanish varieties or other sources of text unmeasured.
The same point applies to the term out-of-distribution. It refers to excluding a topic from InferES training. The held-out material still comes from the same broad source and is processed with the same extraction, writing, and annotation framework. There is also thematic kinship among some of the selected topics, by design. The results support generalization under this particular shift. Stronger claims about transfer to new genres, writing communities, or annotation procedures would require other evaluations.
The standard split answers a related question about new examples drawn from the combined corpus. Multiple hypotheses can be associated with shared premises, and rewrites are derived from generated pairs. The paper describes random splits and representation of all construction strategies without detailing whether families of related examples were assigned together. Accordingly, the ordinary test score cannot establish performance on entirely unseen premise families. Likewise, the adversarial setup withholds rewritten pairs while the generation portion can supply their source material. It tests transfer to altered pairs, with independence from all source material left unspecified.
For the rewrite test, the inclusion of several varieties of edit broadens what the examples cover and limits what aggregate accuracy can diagnose. A drop in performance could reflect trouble with lexical contrast, polarity, degree, reference, or the different distribution of relations. The figures supplied by the paper do not break results down by these properties. A test that grouped examples by the particular feature changed would be needed to make those attributions.
The neutral validation is a sample-based quality check. The 98.75% figure describes the 240 examples reviewed, and the labels were judged by a single expert in that check. The result supports the matching procedure's value while leaving uncertainty about the unchecked cases and about agreement among experts on borderline examples. The crowd procedure does use multiple judgments, but it concerns a different source of pairs and a different task format. The two figures cannot be substituted for one another.
Some of the paper's reported counts and scores also require care. For the total produced through neutral generation and downsampling, the prose gives 1,291, then describes assigning 298 to rewrite and 1,893 to generation. Those statements cannot all describe the same allocation. The final label-distribution table supplies the counts for the released portions as summarized in the paper. It gives 606 neutral examples in rewrite and 1,893 in generation. The table describes the finished distribution, while the intermediate prose leaves the neutral accounting unclear. Similarly, the 720 newly created rewrite pairings are an intermediate count, distinct from the 1,716 pairs attributed to the final rewrite portion. The paper also gives two nearby values for BETO's rewrite accuracy, 51.2% in the results table and 51.1% in the prose. Either value supports the same comparison with the other reported systems and the majority baseline.
What came after
The later citing work applies a cartography-based curriculum learning method to RoNLI, which its authors describe as the first Romanian natural language inference corpus. A curriculum, in this context, concerns how training examples are presented. The title identifies the training method and the Romanian resource on which it is applied. InferES addressed an earlier part of the problem for Spanish by constructing examples expressly for inference and arranging evaluations around how those examples were made. Both studies concern inference resources for a language other than English, with the later work focusing on the use of a corpus in training. RoNLI and cartography-based curriculum learning
The citation establishes a connection between the studies. The description of the later work gives no experiment using InferES, no comparison with the InferES baselines, and no account of whether RoNLI adopted its rewrite or annotation procedures. The grounded connection is the development and use of language-specific NLI corpora. In InferES, the origin of an example determines which evaluation it can support. In the Romanian study, the stated contribution concerns the organization of training on RoNLI.
Cite
Cite as Venelin Kovatchev and Mariona Taulé. 2022. InferES : A Natural Language Inference Corpus for Spanish Featuring Negation-Based Contrastive and Adversarial Examples. Proceedings of the 29th International Conference on Computational Linguistics.
@inproceedings{kovatchev2022inferes,
title = {{InferES : A Natural Language Inference Corpus for Spanish Featuring Negation-Based Contrastive and Adversarial Examples}},
author = {Venelin Kovatchev and Mariona Taulé},
booktitle = {Proceedings of the 29th International Conference on Computational Linguistics},
year = {2022},
url = {https://aclanthology.org/2022.coling-1.340/}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/kovatchev-2022-inferes-natural-language-inference-corpus/