Papers › Bidirectional Attentive Memory Networks for Question Answering over Knowledge Bases

Bidirectional Attentive Memory Networks for Question Answering over Knowledge Bases

6 Mar 2019NAACL 2019 6arXiv:1903.02188archive 2025-07-28

Yu Chen, Lingfei Wu, Mohammed J. Zaki

When answering natural language questions over knowledge bases (KBs), different question components and KB aspects play different roles. However, most existing embedding-based methods for knowledge base question answering (KBQA) ignore the subtle inter-relationships between the question and the KB (e.g., entity types, relation paths and context). In this work, we propose to directly model the two-way flow of interactions between the questions and the KB via a novel Bidirectional Attentive Memory Network, called BAMnet. Requiring no external resources and only very few hand-crafted features, on the WebQuestions benchmark, our method significantly outperforms existing information-retrieval based methods, and remains competitive with (hand-crafted) semantic parsing based methods. Also, since we use attention mechanisms, our method offers better interpretability compared to other baselines.

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

Code

Syntology Ran 0 of 11 code samples harvested from 2 repositories linked to this paper; 11 have no recorded run.

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

hugochan/BAMnet officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
hugochan/PFoodReq mentioned on GitHubpytorchApache-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

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

11unverified

Licence: 0 of the 11 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

create_mask hugochan/BAMnet/src/core/bamnet/modules.py official repository unverified Apache-2.0 (permissive) · 5724b23174c5ed85 · report
get_text_overlap hugochan/BAMnet/src/core/bamnet/bamnet.py official repository unverified Apache-2.0 (permissive) · 785387dacb6461ef · report
to_cuda hugochan/BAMnet/src/core/bamnet/utils.py official repository unverified Apache-2.0 (permissive) · f9709cf808e3e49a · report
expand_personalized_query hugochan/PFoodReq/data_builder/src/generate_all_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · e5bbaef1e96051cb · report
expand_query_with_guidelines hugochan/PFoodReq/data_builder/src/generate_all_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · 7b91003a8f6ce910 · report
generate_personal_preferences hugochan/PFoodReq/data_builder/src/generate_all_qa.py community (archive-listed) unverified Apache-2.0 (permissive) · 798984742b8f27da · report
load_json hugochan/PFoodReq/data_builder/src/utils/io_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · e26cf1b4355fc107 · report
load_ndjson hugochan/PFoodReq/data_builder/src/utils/io_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · e666a0b5fcf7e4e1 · report
load_ndjson_to_array hugochan/PFoodReq/data_builder/src/utils/io_utils.py community (archive-listed) unverified Apache-2.0 (permissive) · 4462c267d24c10ba · report
prepare_similar_ground_truth_answers hugochan/PFoodReq/BAMnet/src/run_online.py community (archive-listed) unverified Apache-2.0 (permissive) · aebe3994bd79e09a · report
string_search hugochan/PFoodReq/BAMnet/src/core/bamnet/bamnet.py community (archive-listed) unverified Apache-2.0 (permissive) · 58012762e2fad6b4 · report

Tasks

Information RetrievalKnowledge Base Question AnsweringQuestion AnsweringRetrievalSemantic Parsing

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

InterpretabilityMemory Network

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