SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 1911.03631 · 2019

Hierarchical Graph Network for Multi-hop Question Answering

arXiv · PDF · Open in the Atlas

Code that ran

4 of 6 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; 2 honoured the contract we drafted, 1 violated it and 0 have no contract verdict; 1 failure of our instrument; 2 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/1911.03631.json · badge: /api/ran/1911.03631.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
yuwfan/HGN canonical (classifier label)
classifier basis: census
4 ran · 2 no recorded run
FunctionStatusWhere it lives
gelu Ran
ran, honoured the contract we drafted
yuwfan/HGN/transformers/modeling_bert.py
pointer only (licence: MIT); the stored copy get_code serves, from lonePatient/BERT-SDA, is pointer only (licence: NONE) · get_code("211753ba29188d4e")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, yuwfan/HGN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

gelu_new Ran
ran, honoured the contract we drafted
yuwfan/HGN/transformers/modeling_bert.py
pointer only (licence: MIT); the stored copy get_code serves, from lonePatient/BERT-SDA, is pointer only (licence: NONE) · get_code("77601724cad03f95")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, yuwfan/HGN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

mean_pooling Ran
ran, violated the contract we drafted
yuwfan/HGN/models/layers.py
code served (permissive licence) · get_code("567eab7347ce0c60")
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 3, dtype family float, shape (2, 2, 3) 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 input tensor: (batch_size=2, seq_length=4, hidden_dim=3)
input = torch.randn(2, 4, 3)

# Create mask tensor: (batch_size=2, seq_length=4)
# Mask has 1s for valid positions and 0s for padding
mask = torch.ones(2, 4)
mask[0, 3] = 0  # Mask out last token in first sample
mask[1, 2:] = 0  # Mask out last two tokens in second sample
mask = mask.unsqueeze(-1)  # Shape: (2, 4, 1) to broadcast properly in sum

ARGS = {
    "input": input,
    "mask": mask,
}
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 3, dtype family float, shape (2, 2, 3) — shape (2, 2, 3) 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
tok_to_ent Ran
ran; our contract draft was wrong, not the code
yuwfan/HGN/models/layers.py
pointer only (licence: MIT) · get_code("566a814700763aa8")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, yuwfan/HGN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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.

load_tf_weights_in_albert Not yet run
unverified (harvested, no recorded run)
yuwfan/HGN/transformers/modeling_albert.py
pointer only (licence: MIT) · get_code("4f56c9a37e92815f")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, yuwfan/HGN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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. No invocation recorded.

load_tf_weights_in_bert Not yet run
unverified (harvested, no recorded run)
yuwfan/HGN/transformers/modeling_bert.py
pointer only (licence: MIT) · get_code("ca4a7d28d683cd33")
How it ran

The body of this sample is withheld: MIT, as GitHub detects it on this paper's repository, yuwfan/HGN, is in the permissive set, but a licence decision keeps the body a pointer: the reason for that decision is not recorded with it. 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. No invocation recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 6 are also present in other papers whose code we hold (4 with at least one paper dated earlier, 1 the same month, 4 later) and 0 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 198 other papers
28 dated earlier, 3 the same month, 167 later · 32 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1901.10125 (2019-01)
Glyce: Glyph-vectors for Chinese Character Representations
and 195 more not named here
gelu_new 23 other papers
2 dated earlier, 21 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
2002.10345 (2020-02)
Improving BERT Fine-Tuning via Self-Ensemble and Self-Distillation
and 20 more not named here
load_tf_weights_in_albert 1 other paper
1 dated earlier
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
load_tf_weights_in_bert 1 other paper
1 dated earlier
1909.11942 (2019-09)
ALBERT: A Lite BERT for Self-supervised Learning of Language Representations
mean_pooling 1 other paper
1 later
2010.09240 (2020-10)
Multi-hop Question Generation with Graph Convolutional Network
tok_to_ent 1 other paper
1 later
2010.09240 (2020-10)
Multi-hop Question Generation with Graph Convolutional Network

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-23.

Repositories linked to this paper

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

Abstract

In this paper, we present Hierarchical Graph Network (HGN) for multi-hop question answering. To aggregate clues from scattered texts across multiple paragraphs, a hierarchical graph is created by constructing nodes on different levels of granularity (questions, paragraphs, sentences, entities), the representations of which are initialized with pre-trained contextual encoders. Given this hierarchical graph, the initial node representations are updated through graph propagation, and multi-hop reasoning is performed via traversing through the graph edges for each subsequent sub-task (e.g., paragraph selection, supporting facts extraction, answer prediction). By weaving heterogeneous nodes into an integral unified graph, this hierarchical differentiation of node granularity enables HGN to support different question answering sub-tasks simultaneously. Experiments on the HotpotQA benchmark demonstrate that the proposed model achieves new state of the art, outperforming existing multi-hop QA approaches.

For agents

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

get_harvested_code_for_paper("1911.03631")
get_code_for_paper("1911.03631")
have("1911.03631")

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

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

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

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

Connect an agent — have() is free.