SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2005.00806 · EMNLP Findings · 2020

Teaching Machine Comprehension with Compositional Explanations

Xiang Ren, Qinyuan Ye, Xiao Huang, Elizabeth Boschee

arXiv · PDF · Open in the Atlas

Code that ran

10 of 10 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 4 honoured the contract we drafted, 1 violated it and 1 has no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-22; 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/2005.00806.json · badge: /api/ran/2005.00806.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
INK-USC/mrc-explanation marked official in Papers with Code
Papers with Code archive
5 ran · 0 no recorded run
INK-USC/nl-explanation marked official in Papers with Code
Papers with Code archive
4 ran · 0 no recorded run
copy not recorded community
not in the paper's declared repositories
1 ran · 0 no recorded run
FunctionStatusWhere it lives
Occurrence Ran
ran on a synthesized input · constructed an object; no result was computed
INK-USC/mrc-explanation/module/modules.py
pointer only (licence: NONE) · get_code("db9dff06388f701c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/mrc-explanation 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.

_and Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
INK-USC/nl-explanation/module/modules.py
pointer only (licence: NONE) · get_code("d9f13dc05f7e1bb0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/nl-explanation 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.

find Ran
ran; our contract draft was wrong, not the code
INK-USC/mrc-explanation/module/modules.py
pointer only (licence: NONE) · get_code("a33c4f77cdf2cc58")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/mrc-explanation 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_st_ed Ran
ran, honoured the contract we drafted
INK-USC/mrc-explanation/module/modules.py
pointer only (licence: NONE) · get_code("a3b5708ff6975fb3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/mrc-explanation 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.

normalize_answer Ran
ran; our contract draft was wrong, not the code
this paper's copy was not recorded; identical code first harvested from saptarshi059/cdqa-project
pointer only; the stored copy get_code serves, from saptarshi059/cdqa-project, is pointer only (licence: NONE) · get_code("6a96435eba311b08")
How it ran

The body of this sample is withheld: this paper's copy of the code was not recorded (its link names no repository or source path), so no licence was read for it. 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.

remove_repeated Ran
ran; our contract draft was wrong, not the code
INK-USC/mrc-explanation/module/modules.py
pointer only (licence: NONE) · get_code("0fb83ac29ef90e19")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/mrc-explanation 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.

root Ran
ran, honoured the contract we drafted
INK-USC/nl-explanation/module/modules.py
pointer only (licence: NONE) · get_code("828af04bf6b3de78")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/nl-explanation 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.

softened_string_eq Ran
ran, violated the contract we drafted
INK-USC/mrc-explanation/module/modules.py
pointer only (licence: NONE) · get_code("12a347dd24e25948")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/mrc-explanation 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.

to_tensor Ran
ran, honoured the contract we drafted
INK-USC/nl-explanation/module/modules.py
pointer only (licence: NONE) · get_code("5405b2997338abd0")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/nl-explanation 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.

tuple_fy Ran
ran, honoured the contract we drafted
INK-USC/nl-explanation/module/modules.py
pointer only (licence: NONE) · get_code("2391c1cafa690f61")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, INK-USC/nl-explanation 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.

Also present in other papers' code

Of 10 samples lifted from this paper's linked repositories, 10 carry a function identity and 0 do not. Of the 10 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 1 the same month, 1 later) and 9 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
normalize_answer
brick of this paper's assembly: helper
37 other papers
8 dated earlier, 1 the same month, 28 later · 1 only as an assembly brick
1808.07042 (2018-08)
CoQA: A Conversational Question Answering Challenge
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1902.01718 (2019-02)
End-to-End Open-Domain Question Answering with BERTserini
and 34 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-22.

Repositories linked to this paper

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

Abstract

Advances in machine reading comprehension (MRC) rely heavily on the collection of large scale human-annotated examples in the form of (question, paragraph, answer) triples. In contrast, humans are typically able to generalize with only a few examples, relying on deeper underlying world knowledge, linguistic sophistication, and/or simply superior deductive powers. In this paper, we focus on "teaching" machines reading comprehension, using a small number of semi-structured explanations that explicitly inform machines why answer spans are correct. We extract structured variables and rules from explanations and compose neural module teachers that annotate instances for training downstream MRC models. We use learnable neural modules and soft logic to handle linguistic variation and overcome sparse coverage; the modules are jointly optimized with the MRC model to improve final performance. On the SQuAD dataset, our proposed method achieves 70.14% F1 score with supervision from 26 explanations, comparable to plain supervised learning using 1,100 labeled instances, yielding a 12x speed up 1 . Reference Instance Q: When was Queen Victoria's funeral ✿✿✿✿ held? C: Her funeral was ✿✿✿✿ held on Saturday, 2 February, in St George's Chapel, Windsor Castle, and after two days of lying-in-state ... A: Saturday, 2 February Semi-structured Explanation X is "funeral". Y is " ✿✿✿✿ held". In the question X is within 4 words after "when was" and Y is directly after X. "on" is directly before the answer. Y is within 2 words before the answer. X is within 3 words left of Y. The question starts with "when", so the answer should be a date.

For agents

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

get_harvested_code_for_paper("2005.00806")
get_code_for_paper("2005.00806")
have("2005.00806")

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

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

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

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

Connect an agent — have() is free.