SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2010.10418 · EMNLP · 2020

CONJNLI: Natural Language Inference Over Conjunctive Sentences

Mohit Bansal, Swarnadeep Saha, Yixin Nie

arXiv · PDF · Open in the Atlas

Code that ran

5 of 7 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 2 failures of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2010.10418.json · badge: /api/ran/2010.10418.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
swarnaHub/ConjNLI canonical (classifier label)
classifier basis: census
5 ran · 2 no recorded run
FunctionStatusWhere it lives
convert_examples_to_features Ran
ran; our contract draft was wrong, not the code
swarnaHub/ConjNLI/utils_conjnli.py
code served (permissive licence) · get_code("c4c16e96906f44c1")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned list, ndim 1, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging

logging.basicConfig(level=logging.INFO)

class SimpleTokenizer:
    """Mock tokenizer for testing."""
    def __init__(self):
        self.vocab = {
            '[CLS]': 101,
            '[SEP]': 102,
            '[PAD]': 0,
            'hello': 1,
            'world': 2,
            'this': 3,
            'is': 4,
            'a': 5,
            'test': 6,
            'example': 7,
            'text': 8,
            'good': 9,
            'bad': 10,
        }
    
    def tokenize(self, text):
        """Tokenize text into tokens."""
        return text.lower().split()
    
    def convert_tokens_to_ids(self, tokens):
        """Convert tokens to IDs."""
        return [self.vocab.get(token, 1) for token in tokens]


class Example:
    """Simple example class."""
    def __init__(self, guid, text_a, text_b, label):
        self.guid = guid
        self.text_a = text_a
        self.text_b = text_b
        self.label = label


# Create simple examples
examples = [
    Example('1', 'hello world', 'this is test', 'good'),
    Example('2', 'example text', None, 'bad'),
]

# Create label list
label_list = ['good', 'bad']

# Create tokenizer
tokenizer = SimpleTokenizer()

# Set up ARGS
ARGS = {
    'examples': examples,
    'label_list': label_list,
    'max_seq_length': 32,
    'tokenizer': tokenizer,
    'output_mode': 'classification',
    'cls_token_at_end': False,
    'cls_token': '[CLS]',
    'cls_token_segment_id': 0,
    'sep_token': '[SEP]',
    'sep_token_extra': False,
    'pad_on_left': False,
    'pad_token': 0,
    'pad_token_segment_id': 0,
    'sequence_a_segment_id': 0,
    'sequence_b_segment_id': 1,
    'mask_padding_with_zero': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_start_transitions Ran
ran on a synthesized input
swarnaHub/ConjNLI/finetune_srl.py
code served (permissive licence) · get_code("47f15af7a9459695")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 1, dtype family float, shape (5,) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects labels to be a sequence where each label is indexable
# and we check if label[0] == 'I' (i.e., checking the first character)
# So labels should be a list of strings representing BIO tags

labels = [
    'B-PER',
    'I-PER',
    'B-LOC',
    'I-LOC',
    'O'
]

ARGS = {
    'labels': labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 1, dtype family float, shape (5,) — shape (5,) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_tasks Ran
ran; our contract draft was wrong, not the code
swarnaHub/ConjNLI/download_mnli.py
pointer only (licence: MIT); the stored copy get_code serves, from dinghanshen/Cutoff, is pointer only (licence: NONE) · get_code("18962b43885bc12f")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from dinghanshen/Cutoff, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_verb_indicators Ran
ran on a synthesized input
swarnaHub/ConjNLI/utils_conjnli.py
code served (permissive licence) · get_code("6342b759454cc214")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import os
import tempfile
from io import open

# Create a temporary directory with test SRL data files
temp_dir = tempfile.mkdtemp()

# Create train_mnli_srl.txt
train_file = os.path.join(temp_dir, 'train_mnli_srl.txt')
with open(train_file, 'w', encoding='utf-8-sig') as f:
    f.write("The cat sat on the mat\n")
    f.write("word1\tword2\tword3\tword4\tword5\tword6\n")
    f.write("O\tB-V\tO\tO\tO\tO\n")
    f.write("\n")
    f.write("Dogs run fast\n")
    f.write("word1\tword2\tword3\n")
    f.write("O\tB-V\tO\n")
    f.write("\n")

# Create conj_dev_srl.txt
dev_file = os.path.join(temp_dir, 'conj_dev_srl.txt')
with open(dev_file, 'w', encoding='utf-8-sig') as f:
    f.write("She walks home\n")
    f.write("word1\tword2\tword3\n")
    f.write("O\tB-V\tO\n")
    f.write("\n")

# Create adversarial_train_srl.txt
adv_file = os.path.join(temp_dir, 'adversarial_train_srl.txt')
with open(adv_file, 'w', encoding='utf-8-sig') as f:
    f.write("Birds fly high\n")
    f.write("word1\tword2\tword3\n")
    f.write("B-V\tO\tO\n")
    f.write("\n")

ARGS = {
    'data_dir': temp_dir,
    'mode': 'train'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_viterbi_pairwise_potentials Ran
ran on a synthesized input
swarnaHub/ConjNLI/finetune_srl.py
code served (permissive licence) · get_code("83f6e6b95b62a816")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (5, 5) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects labels to be a list of strings
# where labels can be like 'B-PER', 'I-PER', 'B-LOC', 'I-LOC', 'O'
# The function checks constraints for I-XXX labels
labels = ['O', 'B-PER', 'I-PER', 'B-LOC', 'I-LOC']

ARGS = {
    'labels': labels
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (5, 5) — shape (5, 5) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
get_srl_rep Not yet run
unverified (harvested, no recorded run)
swarnaHub/ConjNLI/utils_conjnli.py
code served (permissive licence) · get_code("bc65475fb06dcd8a")
How it ran

no invocation recorded.

read_examples Not yet run
unverified (harvested, no recorded run)
swarnaHub/ConjNLI/utils_srl.py
code served (permissive licence) · get_code("f2b9ddadc9070d8a")
How it ran

no invocation recorded.

Also present in other papers' code

Of 7 samples lifted from this paper's linked repositories, 7 carry a function identity and 0 do not. Of the 7 distinct functions with an identity, 2 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 2 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
get_tasks 13 other papers
8 dated earlier, 4 later, 1 same year, order not determinable
1711.05225 (2017-11)
CheXNet: Radiologist-Level Pneumonia Detection on Chest X-Rays with Deep Learning
1804.07461 (2018-04)
GLUE: A Multi-Task Benchmark and Analysis Platform for Natural Language Understanding
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
and 10 more not named here
convert_examples_to_features 5 other papers
5 later
2306.11074 (2023-06)
Simple and Fast Group Robustness by Automatic Feature Reweighting
2309.06717 (2023-09)
Bias Amplification Enhances Minority Group Performance
2310.06161 (2023-10)
Mitigating Simplicity Bias in Deep Learning for Improved OOD Generalization and Robustness
and 2 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Reasoning about conjuncts in conjunctive sentences is important for a deeper understanding of conjunctions in English and also how their usages and semantics differ from conjunctive and disjunctive boolean logic. Existing NLI stress tests do not consider non-boolean usages of conjunctions and use templates for testing such model knowledge. Hence, we introduce CONJNLI, a challenge stress-test for natural language inference over conjunctive sentences, where the premise differs from the hypothesis by conjuncts removed, added, or replaced. These sentences contain single and multiple instances of coordinating conjunctions ("and", "or", "but", "nor") with quantifiers, negations, and requiring diverse boolean and non-boolean inferences over conjuncts. We find that large-scale pre-trained language models like RoBERTa do not understand conjunctive semantics well and resort to shallow heuristics to make inferences over such sentences. As some initial solutions, we first present an iterative adversarial fine-tuning method that uses synthetically created training data based on boolean and non-boolean heuristics. We also propose a direct model advancement by making RoBERTa aware of predicate semantic roles. While we observe some performance gains, CONJNLI is still challenging for current methods, thus encouraging interesting future work for better understanding of conjunctions. 1

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2010.10418")
get_code_for_paper("2010.10418")
have("2010.10418")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2010.10418.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2010.10418.svg)](https://syntology.ai/paper/2010.10418)

Connect an agent — have() is free.