SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2402.01729 · EACL Findings · 2024

Contextualization Distillation from Large Language Model for Knowledge Graph Completion

Tianlong Chen, Dawei Li, Zhen Tan, Huan Liu

arXiv · PDF · Open in the Atlas

Code that ran

8 of 9 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; 3 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 5 failures of our instrument; 1 no recorded run); 1 of them was also run on the host, not in the jail, by the peer-agreement lane that set its level, measured 2026-11-22; 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/2402.01729.json · badge: /api/ran/2402.01729.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
David-Li0406/Contextulization-Distillation canonical (classifier label)
classifier basis: census
8 ran · 1 no recorded run
FunctionStatusWhere it lives
swish Ran
ran; our contract draft was wrong, not the code
David-Li0406/Contextulization-Distillation/kg-bert/model_distillation.py
pointer only (licence: NONE) · get_code("0f786c407fb1ee4c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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.

gelu Ran
ran, honoured the contract we drafted
David-Li0406/Contextulization-Distillation/kg-bert/model_distillation.py
pointer only (licence: NONE); the stored copy get_code serves, from tanmay1618/text_to_sql_bert, is pointer only (licence: NONE) · get_code("fdc64f4c72036ae4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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_num Ran
ran, honoured the contract we drafted
David-Li0406/Contextulization-Distillation/CSProm-KG/helper.py
pointer only (licence: NONE) · get_code("e74966ca8692821c")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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_num Ran
ran, honoured the contract we drafted
David-Li0406/Contextulization-Distillation/KG-S2S/helper.py
pointer only (licence: NONE) · get_code("effa50b5db3f0b19")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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.

read Ran
ran; our contract draft was wrong, not the code
David-Li0406/Contextulization-Distillation/CSProm-KG/helper.py
pointer only (licence: NONE) · get_code("d619daabb614dbe4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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.

read Ran
ran; our contract draft was wrong, not the code
David-Li0406/Contextulization-Distillation/KG-S2S/helper.py
pointer only (licence: NONE) · get_code("e1214bdb8f4557e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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.

read_file Ran
ran; our contract draft was wrong, not the code
David-Li0406/Contextulization-Distillation/CSProm-KG/helper.py
pointer only (licence: NONE) · get_code("f9537cf81348be25")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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.

read_file Ran
ran; our contract draft was wrong, not the code
David-Li0406/Contextulization-Distillation/KG-S2S/helper.py
pointer only (licence: NONE) · get_code("c005f30ead3132ac")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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.

load_tf_weights_in_bert Not yet run
unverified (harvested, no recorded run)
David-Li0406/Contextulization-Distillation/kg-bert/model_distillation.py
pointer only (licence: NONE); the stored copy get_code serves, from sreyan88/toxicity-detection-in-spoken-utterances, is pointer only (licence: NONE) · get_code("b1a7180868dd8d6a")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, David-Li0406/Contextulization-Distillation 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. No invocation recorded.

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 3 later) and 6 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
swish 206 other papers
176 dated earlier, 26 later, 4 same year, order not determinable · 44 only as an assembly brick
1408.5882 (2014-08)
Convolutional Neural Networks for Sentence Classification
1805.12114 (2018-05)
Deep Reinforcement Learning in a Handful of Trials using Probabilistic Dynamics Models
1809.01357 (2018-09)
Zero Shot Learning for Code Education: Rubric Sampling with Deep Learning Inference
and 203 more not named here
gelu 198 other papers
165 dated earlier, 30 later, 3 same year, order not determinable · 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
load_tf_weights_in_bert 15 other papers
14 dated earlier, 1 later
1810.04805 (2018-10)
BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding
1908.09355 (2019-08)
Patient Knowledge Distillation for BERT Model Compression
1911.00720 (2019-11)
ZEN: Pre-training Chinese Text Encoder Enhanced by N-gram Representations
and 12 more not named here

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

Repositories linked to this paper

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

Abstract

While textual information significantly enhances the performance of pre-trained language models (PLMs) in knowledge graph completion (KGC), the static and noisy nature of existing corpora collected from Wikipedia articles or synsets definitions often limits the potential of PLM-based KGC models. To surmount these challenges, we introduce the Contextualization Distillation strategy, a versatile plug-in-and-play approach compatible with both discriminative and generative KGC frameworks. Our method begins by instructing large language models (LLMs) to transform compact, structural triplets into contextrich segments. Subsequently, we introduce two tailored auxiliary tasks-reconstruction and contextualization-allowing smaller KGC models to assimilate insights from these enriched triplets. Comprehensive evaluations across diverse datasets and KGC techniques highlight the efficacy and adaptability of our approach, revealing consistent performance enhancements irrespective of underlying pipelines or architectures. Moreover, our analysis makes our method more explainable and provides insight into generating path selection, as well as the choosing of suitable distillation tasks. All the code and data in this work will be released at https://github.com/David-Li0406/Contextulization-Distillation

For agents

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

get_harvested_code_for_paper("2402.01729")
get_code_for_paper("2402.01729")
have("2402.01729")

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

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

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

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

Connect an agent — have() is free.