Papers › Explaining Answers with Entailment Trees

Explaining Answers with Entailment Trees

17 Apr 2021EMNLP 2021 11arXiv:2104.08661archive 2025-07-28

Bhavana Dalvi, Peter Jansen, Oyvind Tafjord, Zhengnan Xie, Hannah Smith, Leighanna Pipatanangkura, Peter Clark

Our goal, in the context of open-domain textual question-answering (QA), is to explain answers by showing the line of reasoning from what is known to the answer, rather than simply showing a fragment of textual evidence (a "rationale'"). If this could be done, new opportunities for understanding and debugging the system's reasoning become possible. Our approach is to generate explanations in the form of entailment trees, namely a tree of multipremise entailment steps from facts that are known, through intermediate conclusions, to the hypothesis of interest (namely the question + answer). To train a model with this skill, we created ENTAILMENTBANK, the first dataset to contain multistep entailment trees. Given a hypothesis (question + answer), we define three increasingly difficult explanation tasks: generate a valid entailment tree given (a) all relevant sentences (b) all relevant and some irrelevant sentences, or (c) a corpus. We show that a strong language model can partially solve these tasks, in particular when the relevant sentences are included in the input (e.g., 35% of trees for (a) are perfect), and with indications of generalization to other domains. This work is significant as it provides a new type of dataset (multistep entailments) and baselines, offering a new avenue for the community to generate richer, more systematic explanations.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2104.08661")

Code

Syntology Ran 2 of 17 code samples harvested from 1 repository linked to this paper; 15 have no recorded run. Of those that ran: 1 ran · our draft was wrong; 1 ran with no contract checked.

By repository: community (archive-listed): 17 samples from 1 repository, 2 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

allenai/entailment_bank mentioned on GitHubApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

17 samples harvested; 2 ran; 0 honoured the contract we drafted; 15 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · our draft was wrong
1ran
15unverified

Licence: 0 of the 17 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from allenai/entailment_bank. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

replace_punctuation allenai/entailment_bank/utils/eval_utils.py community (archive-listed) ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · d2166ef001a9e416 · report
trim_batch allenai/entailment_bank/utils/angle_utils.py community (archive-listed) ran Apache-2.0 (permissive) · eeb8dc60c6ef1fa4 · report
count_phrase_matches allenai/entailment_bank/utils/entail_trees_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 44b66cb0347665db · report
decompose_slots allenai/entailment_bank/utils/nlp_agent.py community (archive-listed) unverified Apache-2.0 (permissive) · a09d8995568f8d93 · report
encode_line allenai/entailment_bank/utils/angle_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · ab5d9464aeabf9fd · report
load_jsonl allenai/entailment_bank/utils/angle_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · c30d329a797e15bd · report
load_slot_data_by_id allenai/entailment_bank/utils/eval_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 51014481762b0d1b · report
make_predslot_record allenai/entailment_bank/eval/run_scorer_task3.py community (archive-listed) unverified Apache-2.0 (permissive) · 213992abc08e4d79 · report
new_dict_update allenai/entailment_bank/utils/nlp_agent.py community (archive-listed) unverified Apache-2.0 (permissive) · baf18760bfe228c7 · report
parse_lisp allenai/entailment_bank/utils/proof_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 970c22892bfbf76b · report
parse_lisp_tokens allenai/entailment_bank/utils/proof_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · af3e6075f5840574 · report
recursive_polish_notation allenai/entailment_bank/utils/proof_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · b015b685dfa43094 · report
score_string_similarity allenai/entailment_bank/utils/eval_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 00139853f0c3a89e · report
sentence_index allenai/entailment_bank/utils/entail_trees_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 8f025f3f4d630f9a · report
sort_sentence_ids_match allenai/entailment_bank/utils/entail_trees_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · bc66cae80c3a0886 · report
split_info_sentences allenai/entailment_bank/eval/run_scorer.py community (archive-listed) unverified Apache-2.0 (permissive) · 110b38cab88d9900 · report
split_mcoptions allenai/entailment_bank/utils/nlp_agent.py community (archive-listed) unverified Apache-2.0 (permissive) · 6cfa0a08a9e5f18a · report

Tasks

Language ModellingQuestion Answering

1 archive task tag without a task page not shown.

Datasets

Introduced by this paper, per the archive.

EntailmentBank

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections