Papers › Deep Bidirectional Language-Knowledge Graph Pretraining

Deep Bidirectional Language-Knowledge Graph Pretraining

17 Oct 2022arXiv:2210.09338archive 2025-07-28

Michihiro Yasunaga, Antoine Bosselut, Hongyu Ren, Xikun Zhang, Christopher D Manning, Percy Liang, Jure Leskovec

Pretraining a language model (LM) on text has been shown to help various downstream NLP tasks. Recent works show that a knowledge graph (KG) can complement text data, offering structured background knowledge that provides a useful scaffold for reasoning. However, these works are not pretrained to learn a deep fusion of the two modalities at scale, limiting the potential to acquire fully joint representations of text and KG. Here we propose DRAGON (Deep Bidirectional Language-Knowledge Graph Pretraining), a self-supervised approach to pretraining a deeply joint language-knowledge foundation model from text and KG at scale. Specifically, our model takes pairs of text segments and relevant KG subgraphs as input and bidirectionally fuses information from both modalities. We pretrain this model by unifying two self-supervised reasoning tasks, masked language modeling and KG link prediction. DRAGON outperforms existing LM and LM+KG models on diverse downstream tasks including question answering across general and biomedical domains, with +5% absolute gain on average. In particular, DRAGON achieves notable performance on complex reasoning about language and knowledge (+10% on questions involving long contexts or multi-step reasoning) and low-resource QA (+8% on OBQA and RiddleSense), and new state-of-the-art results on various BioNLP tasks. Our code and trained models are available at https://github.com/michiyasunaga/dragon.

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

Code

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

By repository: official repository: 18 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.

michiyasunaga/dragon officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
HaochenLiu2000/QAP mentioned 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; 2 ran; 1 honoured the contract we drafted; 16 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 · honoured contract
1ran · our draft was wrong
16unverified

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 michiyasunaga/dragon. “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.

gelu michiyasunaga/dragon/utils/layers.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · b75e9c793d2a286a · report
sep_params michiyasunaga/dragon/dragon.py official repository ran · our draft was wrong Apache-2.0 (permissive) · b7b66139532f1ae7 · report
clean_json_line michiyasunaga/dragon/preprocess_utils/convert_csqa.py official repository unverified Apache-2.0 (permissive) · b256ca817b4ee5e6 · report
concepts2adj michiyasunaga/dragon/preprocess_utils/graph.py official repository unverified Apache-2.0 (permissive) · 90b1b740bfed326c · report
construct_graph michiyasunaga/dragon/preprocess_utils/conceptnet.py official repository unverified Apache-2.0 (permissive) · be8c35c9c1d52b66 · report
convert_qajson_to_entailment michiyasunaga/dragon/preprocess_utils/convert_csqa.py official repository unverified Apache-2.0 (permissive) · 15baaf34a0e42ec6 · report
convert_qajson_to_entailment michiyasunaga/dragon/preprocess_utils/convert_obqa.py official repository unverified Apache-2.0 (permissive) · 174ae40015de395f · report
create_output_dict michiyasunaga/dragon/preprocess_utils/convert_obqa.py official repository unverified Apache-2.0 (permissive) · 345456d568545c8e · report
del_pos michiyasunaga/dragon/preprocess_utils/conceptnet.py official repository unverified Apache-2.0 (permissive) · 5f4eefd99c11e698 · report
dropout_mask michiyasunaga/dragon/utils/layers.py official repository unverified Apache-2.0 (permissive) · 866c784c24ba2fa8 · report
generate_adj_matrix_per_inst michiyasunaga/dragon/preprocess_utils/graph.py official repository unverified Apache-2.0 (permissive) · 96ec8d520ae857f1 · report
get_fitb_from_question michiyasunaga/dragon/preprocess_utils/convert_csqa.py official repository unverified Apache-2.0 (permissive) · a9a454bf4414e3fe · report
get_glove_score michiyasunaga/dragon/preprocess_utils/graph_umls_with_glove.py official repository unverified Apache-2.0 (permissive) · 29a699b766ece561 · report
glove_init michiyasunaga/dragon/preprocess_utils/conceptnet.py official repository unverified Apache-2.0 (permissive) · 9dcf00b849de8977 · report
make_one_hot michiyasunaga/dragon/modeling/modeling_gnn.py official repository unverified Apache-2.0 (permissive) · 440036c58abd9ccc · report
masked_softmax michiyasunaga/dragon/utils/layers.py official repository unverified Apache-2.0 (permissive) · 3841430a72ff67fa · report
plain_graph_generation michiyasunaga/dragon/preprocess_utils/graph.py official repository unverified Apache-2.0 (permissive) · 66135965fe362f47 · report
sent2glove michiyasunaga/dragon/preprocess_utils/graph_umls_with_glove.py official repository unverified Apache-2.0 (permissive) · fe81b86935035b80 · report

Tasks

Common Sense ReasoningKnowledge GraphsLanguage ModelingLanguage ModellingLink PredictionMasked Language ModelingQuestion AnsweringRiddle Sense

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Common Sense Reasoning CommonsenseQA DRAGON Accuracy 78.2 #9 of 38 Archive leaderboard report
Question Answering MedQA DRAGON + BioLinkBERT Accuracy 47.5 #18 of 27 Archive leaderboard report
Riddle Sense RiddleSense DRAGON Accuracy (%) 71.3 #1 of 3 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.

Methods

Absolute Position EncodingsAdamAttentionBPEDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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