SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · aaai_26578 · AAAI · 2023

Relation-Aware Language-Graph Transformer for Question Answering

Hyunwoo Kim, Jinyoung Park, Kyungmin Kim, Kyu Hyeong, Choi, Juyeon Ko, Ji-Hoon Kim, Jisu Jeong, Hyeonjin Park

Open in the Atlas

Code that ran

10 of 20 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 1 honoured the contract we drafted, 0 violated it and 7 have no contract verdict; 2 failures of our instrument; 10 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/aaai_26578.json · badge: /api/ran/aaai_26578.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
mlvlab/QAT canonical (classifier label)
classifier basis: census
10 ran · 10 no recorded run
FunctionStatusWhere it lives
convert_qajson_to_entailment Ran
ran on a synthesized input
mlvlab/QAT/utils/convert_obqa.py
code served (permissive licence) · get_code("174ae40015de395f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

qa_json = {
    'question': {
        'stem': 'What is the capital of France?',
        'choices': [
            {'text': 'Paris', 'label': 'A'},
            {'text': 'London', 'label': 'B'},
            {'text': 'Berlin', 'label': 'C'}
        ]
    },
    'answerKey': 'A'
}

ARGS = {
    'qa_json': qa_json
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_hypothesis Ran
ran on a synthesized input
mlvlab/QAT/utils/convert_csqa.py
code served (permissive licence) · get_code("e4b000b919d28344")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import re

BLANK_STR = '___'

def create_hypothesis(fitb: str, choice: str, ans_pos: bool) -> str:
    if '. ' + BLANK_STR in fitb or fitb.startswith(BLANK_STR):
        choice = choice[0].upper() + choice[1:]
    else:
        choice = choice.lower()
    if not fitb.endswith(BLANK_STR):
        choice = choice.rstrip('.')
    if not ans_pos:
        try:
            hypothesis = re.sub('__+', choice, fitb)
        except:
            print(choice, fitb)
        return hypothesis
    choice = choice.strip()
    m = re.search('__+', fitb)
    start = m.start()
    length = len(choice) - 1 if fitb.endswith(BLANK_STR) and choice[-1] in ['.', '?', '!'] else len(choice)
    hypothesis = re.sub('__+', choice, fitb)
    return (hypothesis, (start, start + length))


ARGS = {
    'fitb': 'The quick ___ fox jumps over the lazy dog',
    'choice': 'brown',
    'ans_pos': False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
create_output_dict Ran
ran on a synthesized input
mlvlab/QAT/utils/convert_obqa.py
code served (permissive licence) · get_code("345456d568545c8e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned dict. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

ARGS = {
    'input_json': {'existing_key': 'existing_value'},
    'statement': 'This is a test statement',
    'label': True
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type dict — a dict output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a dict output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
del_pos Ran
ran on a synthesized input
mlvlab/QAT/utils/conceptnet.py
code served (permissive licence) · get_code("5f4eefd99c11e698")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import numpy as np

# Create valid arguments for the del_pos function
ARGS = {
    "s": "example/n"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
dropout_mask Ran
ran; our contract draft was wrong, not the code
mlvlab/QAT/utils/layers.py
code served (permissive licence) · get_code("866c784c24ba2fa8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small tensor to use as x
x = torch.randn(2, 4)

# Define arguments
ARGS = {
    'x': x,
    'sz': (2, 4),
    'p': 0.5
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fractional_max_pool2d_with_indices Ran
ran on a synthesized input
mlvlab/QAT/modeling/multihead_functional.py
code served (permissive licence) · get_code("7b7d7471990d1cc9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 5, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from torch.nn.modules.utils import _pair

torch.manual_seed(0)

# Create a small input tensor for fractional_max_pool2d_with_indices
# Shape: (batch_size, channels, height, width) = (2, 3, 4, 5)
input_tensor = torch.randn(2, 3, 4, 5)

# kernel_size parameter - a 2D kernel size
kernel_size = (2, 2)

# output_size parameter - optional, but we'll provide it
output_size = (2, 3)

# output_ratio parameter - optional, we'll set to None since we're using output_size
output_ratio = None

# return_indices parameter - boolean flag
return_indices = False

# _random_samples parameter - optional random samples tensor
# Shape should be (n_batch, channels, 2) where n_batch matches input batch size
_random_samples = None

ARGS = {
    "input": input_tensor,
    "kernel_size": kernel_size,
    "output_size": output_size,
    "output_ratio": output_ratio,
    "return_indices": return_indices,
    "_random_samples": _random_samples,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 5, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
fractional_max_pool3d_with_indices Ran
ran on a synthesized input
mlvlab/QAT/modeling/multihead_functional.py
code served (permissive licence) · get_code("11718c9e5bb9cf2f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 6, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create input tensor: (batch_size=2, channels=4, depth=8, height=6, width=5)
input_tensor = torch.randn(2, 4, 8, 6, 5)

# kernel_size: can be a single int or tuple of 3 ints
kernel_size = 3

# output_size: target output size, can be None if output_ratio is provided
output_size = (4, 3, 2)

# output_ratio: optional, ratio of output to input size
output_ratio = None

# return_indices: whether to return indices
return_indices = False

# _random_samples: optional tensor for random sampling, will be auto-generated if None
_random_samples = None

ARGS = {
    "input": input_tensor,
    "kernel_size": kernel_size,
    "output_size": output_size,
    "output_ratio": output_ratio,
    "return_indices": return_indices,
    "_random_samples": _random_samples,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 6, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
gelu Ran
ran, honoured the contract we drafted
mlvlab/QAT/utils/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from qshi95/lergv, is pointer only (licence: NONE) · get_code("b75e9c793d2a286a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from qshi95/lergv, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_fitb_from_question Ran
ran; our contract draft was wrong, not the code
mlvlab/QAT/utils/convert_csqa.py
code served (permissive licence) · get_code("a9a454bf4414e3fe")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned str. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

# Setup code for replace_wh_word_with_blank and get_fitb_from_question

# The function takes a question_text string and returns a FITB (Fill In The Blank) version
# Let's create test cases for different scenarios

ARGS = {
    "question_text": "What is the capital of France?"
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
max_pool1d_with_indices Ran
ran on a synthesized input
mlvlab/QAT/modeling/multihead_functional.py
code served (permissive licence) · get_code("d848f1660c62c95c")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple, ndim 4, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

# Create a small input tensor for 1D max pooling
# Shape: (batch_size, channels, length)
input_tensor = torch.randn(2, 4, 16)

# Define arguments for max_pool1d_with_indices
ARGS = {
    "input": input_tensor,
    "kernel_size": 3,
    "stride": 2,
    "padding": 1,
    "dilation": 1,
    "ceil_mode": False,
    "return_indices": True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 4, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
construct_graph Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/conceptnet.py
code served (permissive licence) · get_code("be8c35c9c1d52b66")
How it ran

no invocation recorded.

convert_qajson_to_entailment Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/convert_csqa.py
code served (permissive licence) · get_code("15baaf34a0e42ec6")
How it ran

no invocation recorded.

evaluate_accuracy Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/main_qat.py
code served (permissive licence) · get_code("3998b926dccc833e")
How it ran

no invocation recorded.

glove_init Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/conceptnet.py
code served (permissive licence) · get_code("9dcf00b849de8977")
How it ran

no invocation recorded.

load_bert_xlnet_roberta_input_tensors Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/data_utils.py
code served (permissive licence) · get_code("63a5fdd70ae0dad4")
How it ran

no invocation recorded.

load_gpt_input_tensors Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/data_utils.py
code served (permissive licence) · get_code("f5bf748c1ba5356a")
How it ran

no invocation recorded.

load_sparse_adj_data_and_metapathonehot_with_contextnode Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/data_utils_path.py
code served (permissive licence) · get_code("2ee7399bc42e932c")
How it ran

no invocation recorded.

load_sparse_adj_data_and_metapathonehot_with_contextnode_changed Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/data_utils_path.py
code served (permissive licence) · get_code("fb0f119665b3d656")
How it ran

no invocation recorded.

load_sparse_adj_data_with_contextnode Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/data_utils.py
code served (permissive licence) · get_code("8e5ec767eec386c2")
How it ran

no invocation recorded.

masked_softmax Not yet run
unverified (harvested, no recorded run)
mlvlab/QAT/utils/layers.py
code served (permissive licence) · get_code("9817d48b7e5f1a76")
How it ran

no invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 20 distinct functions with an identity, 12 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 0 the same month, 1 later) and 8 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
gelu 51 other papers
38 dated earlier, 6 later, 7 same year, order not determinable · 8 only as an assembly brick
1706.03762 (2017-06)
Attention Is All You Need
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.02860 (2019-01)
Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context
and 48 more not named here
del_pos 5 other papers
4 dated earlier, 1 same year, order not determinable
1909.02151 (2019-09)
KagNet: Knowledge-Aware Graph Networks for Commonsense Reasoning
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
and 2 more not named here
construct_graph 4 other papers
3 dated earlier, 1 same year, order not determinable
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
2210.09338 (2022-10)
Deep Bidirectional Language-Knowledge Graph Pretraining
and 1 more not named here
dropout_mask 4 other papers
4 dated earlier
2021.findings-emnlp.130 (2021 (year only))
Cross-lingual Transfer for Text Classification with Dictionary-based Heterogeneous Graph
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
and 1 more not named here
get_fitb_from_question 4 other papers
4 dated earlier
1909.02151 (2019-09)
KagNet: Knowledge-Aware Graph Networks for Commonsense Reasoning
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
and 1 more not named here
glove_init 4 other papers
3 dated earlier, 1 same year, order not determinable
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
2210.09338 (2022-10)
Deep Bidirectional Language-Knowledge Graph Pretraining
and 1 more not named here
convert_qajson_to_entailment 3 other papers
3 dated earlier
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
2210.09338 (2022-10)
Deep Bidirectional Language-Knowledge Graph Pretraining
create_output_dict 3 other papers
3 dated earlier
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
2210.09338 (2022-10)
Deep Bidirectional Language-Knowledge Graph Pretraining
masked_softmax 3 other papers
3 dated earlier
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
2210.09338 (2022-10)
Deep Bidirectional Language-Knowledge Graph Pretraining
convert_qajson_to_entailment 2 other papers
2 dated earlier
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
2210.09338 (2022-10)
Deep Bidirectional Language-Knowledge Graph Pretraining
create_hypothesis 2 other papers
2 dated earlier
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering
2022.findings-naacl.131 (2022 (year only))
Great Truths are Always Simple: A Rather Simple Knowledge Encoder for Enhancing the Commonsense Reasoning Capacity of Pre-Trained Models
load_gpt_input_tensors 1 other paper
1 dated earlier
2104.06378 (2021-04)
QA-GNN: Reasoning with Language Models and Knowledge Graphs for Question Answering

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Question Answering (QA) is a task that entails reasoning over natural language contexts, and many relevant works augment language models (LMs) with graph neural networks (GNNs) to encode the Knowledge Graph (KG) information. However, most existing GNN-based modules for QA do not take advantage of rich relational information of KGs and depend on limited information interaction between the LM and the KG. To address these issues, we propose Question Answering Transformer (QAT), which is designed to jointly reason over language and graphs with respect to entity relations in a unified manner. Specifically, QAT constructs Meta-Path tokens, which learn relation-centric embeddings based on diverse structural and semantic relations. Then, our Relation-Aware Self-Attention module comprehensively integrates different modalities via the Cross-Modal Relative Position Bias, which guides information exchange between relevant entites of different modalities. We validate the effectiveness of QAT on commonsense question answering datasets like Common-senseQA and OpenBookQA, and on a medical question answering dataset, MedQA-USMLE. On all the datasets, our method achieves state-of-the-art performance. Our code is available at http://github.com/mlvlab/QAT.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("aaai_26578")
get_code_for_paper("aaai_26578")
have("aaai_26578")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/aaai_26578.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/aaai_26578.svg)](https://syntology.ai/paper/aaai_26578)

Connect an agent — have() is free.