SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1811.07039 · 2018

Combining Fact Extraction and Verification with Neural Semantic Matching Networks

arXiv · PDF · Open in the Atlas

Code that ran

4 of 5 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; 1 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 3 failures of our instrument; 1 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/1811.07039.json · badge: /api/ran/1811.07039.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
easonnie/combine-FEVER-NSMN canonical (classifier label)
classifier basis: classifier_2025
4 ran · 0 no recorded run
ShyamSubramanian/HESM extension (classifier label)
classifier basis: classifier_2025
0 ran · 1 no recorded run
FunctionStatusWhere it lives
eval_model Ran
ran, honoured the contract we drafted
easonnie/combine-FEVER-NSMN/src/nli/mesim_wn_simi_v1_3.py
code served (permissive licence) · get_code("75be915616e6844d")
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) and returned tuple, 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 torch
import torch.nn as nn

torch.manual_seed(0)

# Define a minimal model that satisfies the function's usage
class SimpleModel(nn.Module):
    def __init__(self, input_dim=4, num_classes=3):
        super().__init__()
        self.linear = nn.Linear(input_dim, num_classes)
    
    def forward(self, batch):
        x = batch['input']
        return self.linear(x)

# Create model instance
model = SimpleModel(input_dim=4, num_classes=3)

# Create a minimal data iterator (list of batches)
# Each batch is a dict with 'input' and 'label' keys
data_iter = [
    {
        'input': torch.randn(2, 4),
        'label': torch.tensor([0, 1])
    },
    {
        'input': torch.randn(2, 4),
        'label': torch.tensor([2, 0])
    }
]

# Create a criterion (loss function)
criterion = nn.CrossEntropyLoss()

# Define ARGS dict with all parameters
ARGS = {
    'model': model,
    'data_iter': data_iter,
    'criterion': criterion
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, dtype family float — a tuple 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_sampled_data Ran
ran; our contract draft was wrong, not the code
easonnie/combine-FEVER-NSMN/src/nli/mesim_wn_simi_v1_3.py
code served (permissive licence) · get_code("1039f6e2c844fd60")
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) 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 torch
import numpy as np
from pathlib import Path
import tempfile
import pickle

torch.manual_seed(0)

# Create temporary files with mock tokenized data
temp_dir = tempfile.mkdtemp()

# Create a mock tokenized_data_file
tokenized_data = {
    'tokens': [[1, 2, 3, 4], [5, 6, 7, 8]],
    'ids': [0, 1],
    'metadata': {'version': '1.0'}
}
tokenized_data_file = Path(temp_dir) / "tokenized_data.pkl"
with open(tokenized_data_file, 'wb') as f:
    pickle.dump(tokenized_data, f)

# Create a mock additional_data_file
additional_data = {
    'extra_info': [{'label': 0}, {'label': 1}],
    'counts': [10, 20]
}
additional_data_file = Path(temp_dir) / "additional_data.pkl"
with open(additional_data_file, 'wb') as f:
    pickle.dump(additional_data, f)

# Mock the sample_v1_0 function since it's imported in the actual code
def sample_v1_0(tokenized_data_file, additional_data_file, tokenized=True):
    """Mock implementation of sample_v1_0"""
    with open(tokenized_data_file, 'rb') as f:
        tok_data = pickle.load(f)
    with open(additional_data_file, 'rb') as f:
        add_data = pickle.load(f)
    
    # Return sampled data list
    sampled_list = [
        {'tokens': tok_data['tokens'][0], 'label': add_data['extra_info'][0]['label']},
        {'tokens': tok_data['tokens'][1], 'label': add_data['extra_info'][1]['label']}
    ]
    return sampled_list

# Inject the mock function into the module namespace
import sys
current_module = sys.modules[__name__]
setattr(current_module, 'sample_v1_0', sample_v1_0)

ARGS = {
    'tokenized_data_file': str(tokenized_data_file),
    'additional_data_file': str(additional_data_file)
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy, torch — 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
merge_nli_results Ran
ran; our contract draft was wrong, not the code
easonnie/combine-FEVER-NSMN/src/pipeline/auto_pipeline.py
code served (permissive licence) · get_code("371411805502aad4")
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) 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 copy
import numpy as np

id2label = {0: 'SUPPORTS', 1: 'REFUTES', 2: 'NOT ENOUGH INFO'}

# Construct valid arguments for merge_nli_results
# The function expects a list of NLI results
# Each result is a list of dictionaries with 'id' and 'logits' keys

# Create first NLI result list
nli_result_1 = [
    {
        'id': 'claim_0',
        'logits': [2.5, 1.2, 0.3]
    },
    {
        'id': 'claim_1',
        'logits': [0.1, 3.2, 0.5]
    }
]

# Create second NLI result list (same structure, different logits)
nli_result_2 = [
    {
        'id': 'claim_0',
        'logits': [2.1, 1.5, 0.4]
    },
    {
        'id': 'claim_1',
        'logits': [0.2, 2.9, 0.6]
    }
]

# Create third NLI result list
nli_result_3 = [
    {
        'id': 'claim_0',
        'logits': [2.3, 1.1, 0.5]
    },
    {
        'id': 'claim_1',
        'logits': [0.15, 3.1, 0.4]
    }
]

nli_r_list = [nli_result_1, nli_result_2, nli_result_3]

ARGS = {
    'nli_r_list': nli_r_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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
merge_sent_results Ran
ran; our contract draft was wrong, not the code
easonnie/combine-FEVER-NSMN/src/pipeline/auto_pipeline.py
code served (permissive licence) · get_code("a3d6db7060e3abbb")
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) 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 copy
import numpy as np

# Construct valid arguments for merge_sent_results
# The function expects a list of lists, where each inner list contains dicts
# Each dict must have 'selection_id', 'prob', and 'score' keys

sent_r_list = [
    # First sentence result
    [
        {
            'selection_id': 0,
            'prob': 0.8,
            'score': 0.75
        },
        {
            'selection_id': 1,
            'prob': 0.6,
            'score': 0.65
        },
        {
            'selection_id': 2,
            'prob': 0.9,
            'score': 0.85
        }
    ],
    # Second sentence result
    [
        {
            'selection_id': 0,
            'prob': 0.7,
            'score': 0.72
        },
        {
            'selection_id': 1,
            'prob': 0.5,
            'score': 0.55
        },
        {
            'selection_id': 2,
            'prob': 0.85,
            'score': 0.80
        }
    ],
    # Third sentence result
    [
        {
            'selection_id': 0,
            'prob': 0.75,
            'score': 0.78
        },
        {
            'selection_id': 1,
            'prob': 0.55,
            'score': 0.60
        },
        {
            'selection_id': 2,
            'prob': 0.88,
            'score': 0.82
        }
    ]
]

ARGS = {
    'sent_r_list': sent_r_list
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — 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
norm_weight Not yet run
unverified (harvested, no recorded run)
ShyamSubramanian/HESM/src/nli/hesm_fever.py
code served (permissive licence) · get_code("08ddede5a1a67a1f")
How it ran

no invocation recorded.

Also present in other papers' code

Of 5 samples lifted from this paper's linked repositories, 5 carry a function identity and 0 do not. Of the 5 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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.

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

The increasing concern with misinformation has stimulated research efforts on automatic fact checking. The recently-released FEVER dataset introduced a benchmark fact-verification task in which a system is asked to verify a claim using evidential sentences from Wikipedia documents. In this paper, we present a connected system consisting of three homogeneous neural semantic matching models that conduct document retrieval, sentence selection, and claim verification jointly for fact extraction and verification. For evidence retrieval (document retrieval and sentence selection), unlike traditional vector space IR models in which queries and sources are matched in some pre-designed term vector space, we develop neural models to perform deep semantic matching from raw textual input, assuming no intermediate term representation and no access to structured external knowledge bases. We also show that Pageview frequency can also help improve the performance of evidence retrieval results, that later can be matched by using our neural semantic matching network. For claim verification, unlike previous approaches that simply feed upstream retrieved evidence and the claim to a natural language inference (NLI) model, we further enhance the NLI model by providing it with internal semantic relatedness scores (hence integrating it with the evidence retrieval modules) and ontological WordNet features. Experiments on the FEVER dataset indicate that (1) our neural semantic matching method outperforms popular TF-IDF and encoder models, by significant margins on all evidence retrieval metrics, (2) the additional relatedness score and WordNet features improve the NLI model via better semantic awareness, and (3) by formalizing all three subtasks as a similar semantic matching problem and improving on all three stages, the complete model is able to achieve the state-of-the-art results on the FEVER test set.

For agents

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

get_harvested_code_for_paper("1811.07039")
get_code_for_paper("1811.07039")
have("1811.07039")

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

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

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

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

Connect an agent — have() is free.