Papers › Logic-Guided Data Augmentation and Regularization for Consistent Question Answering

Logic-Guided Data Augmentation and Regularization for Consistent Question Answering

21 Apr 2020ACL 2020 6arXiv:2004.10157archive 2025-07-28

Akari Asai, Hannaneh Hajishirzi

Many natural language questions require qualitative, quantitative or logical comparisons between two entities or events. This paper addresses the problem of improving the accuracy and consistency of responses to comparison questions by integrating logic rules and neural models. Our method leverages logical and linguistic knowledge to augment labeled training data and then uses a consistency-based regularizer to train the model. Improving the global consistency of predictions, our approach achieves large improvements over previous methods in a variety of question answering (QA) tasks including multiple-choice qualitative reasoning, cause-effect reasoning, and extractive machine reading comprehension. In particular, our method significantly improves the performance of RoBERTa-based models by 1-5% across datasets. We advance the state of the art by around 5-8% on WIQA and QuaRel and reduce consistency violations by 58% on HotpotQA. We further demonstrate that our approach can learn effectively from limited data.

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="2004.10157")

Code

Syntology Ran 8 of 18 code samples harvested from 1 repository linked to this paper; 10 have no recorded run. Of those that ran: 8 ran · our draft was wrong.

By repository: official repository: 18 samples from 1 repository, 8 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

AkariAsai/logic_guided_qa officialmentioned in papermentioned on GitHubpytorch 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

18 samples harvested; 8 ran; 0 honoured the contract we drafted; 10 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.

8ran · our draft was wrong
10unverified

Licence: 0 of the 18 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 AkariAsai/logic_guided_qa. “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.

add_negation AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 51f66e8f1e74e6c8 · report
add_transitive_examples_one AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong MIT (permissive) · f6c8f9aff2db5ca6 · report
add_transitive_examples_two AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong MIT (permissive) · 497cb8886c3b4385 · report
extract_cause_effect AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong MIT (permissive) · a306ceb694d0ae50 · report
flip_answer_label_as_choice AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong MIT (permissive) · 1d14d98b6b0e76b3 · report
flip_label AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong MIT (permissive) · 902ccd6779092b1a · report
more_less_transforme AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 9123e010fd4a0874 · report
replace_words AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · ceddf9a4afdfb9f8 · report
create_examples AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · e250d92ff7a4e1c2 · report
create_symmetric_eight AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · 06b700e5d1ed3afe · report
create_symmetric_five AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · 264777adb796f474 · report
create_symmetric_four AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · 5bc487d92545d2e4 · report
create_symmetric_nine AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · fa8c05981e128568 · report
create_symmetric_one AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · 90447dfa80f4cafb · report
create_symmetric_seven AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · b1c84c791d839380 · report
create_symmetric_six AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · 11ef557fab1d6b7b · report
create_symmetric_three AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · f88f92a0c48c48a5 · report
create_symmetric_two AkariAsai/logic_guided_qa/wiqa_augmentation.py official repository unverified MIT (permissive) · 551c47e3d79424f2 · report

Tasks

Data AugmentationMachine Reading ComprehensionMultiple-choiceQuestion AnsweringReading Comprehension

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