Papers › Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering

Graph-Based Reasoning over Heterogeneous External Knowledge for Commonsense Question Answering

9 Sep 2019arXiv:1909.05311archive 2025-07-28

Shangwen Lv, Daya Guo, Jingjing Xu, Duyu Tang, Nan Duan, Ming Gong, Linjun Shou, Daxin Jiang, Guihong Cao, Songlin Hu

Commonsense question answering aims to answer questions which require background knowledge that is not explicitly expressed in the question. The key challenge is how to obtain evidence from external knowledge and make predictions based on the evidence. Recent works either learn to generate evidence from human-annotated evidence which is expensive to collect, or extract evidence from either structured or unstructured knowledge bases which fails to take advantages of both sources. In this work, we propose to automatically extract evidence from heterogeneous knowledge sources, and answer questions based on the extracted evidence. Specifically, we extract evidence from both structured knowledge base (i.e. ConceptNet) and Wikipedia plain texts. We construct graphs for both sources to obtain the relational structures of evidence. Based on these graphs, we propose a graph-based approach consisting of a graph-based contextual word representation learning module and a graph-based inference module. The first module utilizes graph structural information to re-define the distance between words for learning better contextual word representations. The second module adopts graph convolutional network to encode neighbor information into the representations of nodes, and aggregates evidence with graph attention mechanism for predicting the final answer. Experimental results on CommonsenseQA dataset illustrate that our graph-based approach over both knowledge sources brings improvement over strong baselines. Our approach achieves the state-of-the-art accuracy (75.3%) on the CommonsenseQA leaderboard.

PaperPDFCodeCode 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="1909.05311")

Code

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

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

DecstionBack/AAAI_2020_CommonsenseQA officialpytorchApache-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; 7 ran; 2 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.

2ran · honoured contract
5ran · our draft was wrong
10unverified

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 DecstionBack/AAAI_2020_CommonsenseQA. “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.

swish DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_bert.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 0f786c407fb1ee4c · report
Identity DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_utils.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · f44985272d18127a · report
build_tf_to_pytorch_map DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_transfo_xl.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 35ef111fc00c21b4 · report
gelu DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_gpt2.py official repository ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · 8d23fbe2b99b840b · report
gelu DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_bert.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · fdc64f4c72036ae4 · report
prune_linear_layer DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_utils.py official repository ran · our draft was wrong Apache-2.0 (permissive) · d30d6c3098df2c42 · report
sample_logits DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_transfo_xl_utilities.py official repository ran · our draft was wrong Apache-2.0 (permissive) · 93228a3eb5c4d179 · report
build_tf_xlnet_to_pytorch_map DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_xlnet.py official repository unverified Apache-2.0 (permissive) · c92ba449e48ecffe · report
gelu DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_xlnet.py official repository unverified Apache-2.0 (permissive) · b05b2bb38c0e4e72 · report
gelu DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_xlm.py official repository unverified Apache-2.0 (permissive) · b3c2618f6b7fb60c · report
get_masks DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_xlm.py official repository unverified Apache-2.0 (permissive) · f5d8d44f65a08b76 · report
load_tf_weights_in_bert DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_bert.py official repository unverified Apache-2.0 (permissive) · 03a94dbb436249a3 · report
load_tf_weights_in_gpt2 DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_gpt2.py official repository unverified Apache-2.0 (permissive) · 07bb0220eb5b609f · report
load_tf_weights_in_openai_gpt DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_openai.py official repository unverified Apache-2.0 (permissive) · 42ee168c3ae12e60 · report
load_tf_weights_in_transfo_xl DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_transfo_xl.py official repository unverified Apache-2.0 (permissive) · 23d246e59ef9447b · report
load_tf_weights_in_xlnet DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_xlnet.py official repository unverified Apache-2.0 (permissive) · 4a94662ff3b5c5cf · report
prune_conv1d_layer DecstionBack/AAAI_2020_CommonsenseQA/pytorch_transformers/modeling_utils.py official repository unverified Apache-2.0 (permissive) · 7183a17dd79327a8 · report

Tasks

Common Sense ReasoningGraph AttentionQuestion AnsweringRepresentation Learning

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Common Sense Reasoning CommonsenseQA XLNet+GraphReason Accuracy 75.3 #14 of 38 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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