SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2203.02721 · ACL Findings · 2022

Consistent Representation Learning for Continual Relation Extraction

Hua Xu, Kai Gao, Kang Zhao, Jiangong Yang

arXiv · PDF · Open in the Atlas

Code that ran

7 of 12 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (4 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 4 have no contract verdict; 1 failure of our instrument; 5 no recorded run), measured 2026-11-22; 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/2203.02721.json · badge: /api/ran/2203.02721.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
thuiar/CRL community
Papers with Code archive
5 ran · 5 no recorded run
fd2014cl/RP-CRE community
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
Attention_Memory_Simplified Ran
ran on a synthesized input · constructed an object; no result was computed
fd2014cl/RP-CRE/model/memory_network/attention_memory_simplified.py
pointer only (licence: NONE) · get_code("8a168b556cae88dc")
How it ran

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

Encoder Ran
ran on a synthesized input · constructed an object; no result was computed
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("803f29e39d3fcc0d")
How it ran

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

base_model Ran
ran on a synthesized input · constructed an object; no result was computed
fd2014cl/RP-CRE/model/memory_network/attention_memory_simplified.py
pointer only (licence: NONE) · get_code("e1833fd60f20049a")
How it ran

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

data_set Ran
ran on a synthesized input · constructed an object; no result was computed
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("27ec67b2ade9f286")
How it ran

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

dot_dist Ran
ran, honoured the contract we drafted
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("f7bfb113b24ce037")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thuiar/CRL 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_data_loader Ran
ran; our contract draft was wrong, not the code
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("137f6961fd6db94d")
How it ran

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

osdist Ran
ran, honoured the contract we drafted
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("817364403367f730")
How it ran

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

Bert_Encoder Not yet run
unverified (harvested, no recorded run)
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("273fd3bad678fcf3")
How it ran

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

Manager Not yet run
unverified (harvested, no recorded run)
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("237fe81052ab56f8")
How it ran

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

Moment Not yet run
unverified (harvested, no recorded run)
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("d351c67cc90b1c0f")
How it ran

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

data_sampler Not yet run
unverified (harvested, no recorded run)
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("bfe20427b6312483")
How it ran

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

get_tokenizer Not yet run
unverified (harvested, no recorded run)
thuiar/CRL/methods/manager.py
pointer only (licence: NONE) · get_code("761ebbc2e39d4f59")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, thuiar/CRL 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 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 12 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.

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

Continual relation extraction (CRE) aims to continuously train a model on data with new relations while avoiding forgetting old ones. Some previous work has proved that storing a few typical samples of old relations and replaying them when learning new relations can effectively avoid forgetting. However, these memory-based methods tend to overfit the memory samples and perform poorly on imbalanced datasets. To solve these challenges, a consistent representation learning method is proposed, which maintains the stability of the relation embedding by adopting contrastive learning and knowledge distillation when replaying memory. Specifically, supervised contrastive learning based on a memory bank is first used to train each new task so that the model can effectively learn the relation representation. Then, contrastive replay is conducted of the samples in memory and makes the model retain the knowledge of historical relations through memory knowledge distillation to prevent the catastrophic forgetting of the old task. The proposed method can better learn consistent representations to alleviate forgetting effectively. Extensive experiments on FewRel and TACRED datasets show that our method significantly outperforms state-of-the-art baselines and yield strong robustness on the imbalanced dataset. The code is publicly available at https://github.com/thuiar/CRL.

For agents

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

get_harvested_code_for_paper("2203.02721")
get_code_for_paper("2203.02721")
have("2203.02721")

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

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

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

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

Connect an agent — have() is free.