Papers › Learning Knowledge-Enhanced Contextual Language Representations for Domain Natural...

Learning Knowledge-Enhanced Contextual Language Representations for Domain Natural Language Understanding

12 Nov 2023arXiv:2311.06761archive 2025-07-28

Ruyao Xu, Taolin Zhang, Chengyu Wang, Zhongjie Duan, Cen Chen, Minghui Qiu, Dawei Cheng, Xiaofeng He, Weining Qian

Knowledge-Enhanced Pre-trained Language Models (KEPLMs) improve the performance of various downstream NLP tasks by injecting knowledge facts from large-scale Knowledge Graphs (KGs). However, existing methods for pre-training KEPLMs with relational triples are difficult to be adapted to close domains due to the lack of sufficient domain graph semantics. In this paper, we propose a Knowledge-enhanced lANGuAge Representation learning framework for various clOsed dOmains (KANGAROO) via capturing the implicit graph structure among the entities. Specifically, since the entity coverage rates of closed-domain KGs can be relatively low and may exhibit the global sparsity phenomenon for knowledge injection, we consider not only the shallow relational representations of triples but also the hyperbolic embeddings of deep hierarchical entity-class structures for effective knowledge fusion.Moreover, as two closed-domain entities under the same entity-class often have locally dense neighbor subgraphs counted by max point biconnected component, we further propose a data augmentation strategy based on contrastive learning over subgraphs to construct hard negative samples of higher quality. It makes the underlying KELPMs better distinguish the semantics of these neighboring entities to further complement the global semantic sparsity. In the experiments, we evaluate KANGAROO over various knowledge-aware and general NLP tasks in both full and few-shot learning settings, outperforming various KEPLM training paradigms performance in closed-domains significantly.

PaperPDFCode 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="2311.06761")

Code

Syntology Ran 9 of 10 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 1 ran · our draft was wrong; 8 ran with no contract checked.

By repository: found in paper text by Syntology: 10 samples from 1 repository, 9 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

alibaba/EasyNLP found in paper text by SyntologyApache-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

10 samples harvested; 9 ran; 0 honoured the contract we drafted; 1 has 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 · our draft was wrong
8ran
1unverified

Licence: 0 of the 10 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 alibaba/EasyNLP. “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.

check_number_comma alibaba/EasyNLP/easynlp/modelzoo/convert_slow_tokenizer.py found in paper text by Syntology ran Apache-2.0 (permissive) · a727df5fd2f5599a · report
gelu_fast alibaba/EasyNLP/easynlp/modelzoo/activations.py found in paper text by Syntology ran · our draft was wrong fingerprinted Apache-2.0 (permissive) · a4475703ff58ecf9 · report
gelu_new alibaba/EasyNLP/easynlp/modelzoo/activations.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · 45bb87451230d5e8 · report
get_linear_schedule_with_warmup alibaba/EasyNLP/easynlp/core/optimizers.py found in paper text by Syntology ran Apache-2.0 (permissive) · a3af4655933264d7 · report
get_model_predictor alibaba/EasyNLP/easynlp/core/predictor.py found in paper text by Syntology ran Apache-2.0 (permissive) · f761e4504b526823 · report
is_remote_url alibaba/EasyNLP/easynlp/modelzoo/file_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · 899d1e2736236351 · report
quick_gelu alibaba/EasyNLP/easynlp/modelzoo/activations.py found in paper text by Syntology ran fingerprinted Apache-2.0 (permissive) · e21f72f1a9834aef · report
replace_return_docstrings alibaba/EasyNLP/easynlp/modelzoo/file_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · 108f25573123b007 · report
torch_only_method alibaba/EasyNLP/easynlp/modelzoo/file_utils.py found in paper text by Syntology ran Apache-2.0 (permissive) · 56ffa4b32330ceab · report
convert_slow_tokenizer alibaba/EasyNLP/easynlp/modelzoo/convert_slow_tokenizer.py found in paper text by Syntology unverified Apache-2.0 (permissive) · 9339ca51cea1f469 · report

Tasks

Contrastive LearningData AugmentationFew-Shot LearningKnowledge GraphsNatural Language UnderstandingRepresentation Learning

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

Contrastive Learning

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