Papers › Few-NERD: A Few-Shot Named Entity Recognition Dataset

Few-NERD: A Few-Shot Named Entity Recognition Dataset

16 May 2021ACL 2021 5arXiv:2105.07464archive 2025-07-28

Ning Ding, Guangwei Xu, Yulin Chen, Xiaobin Wang, Xu Han, Pengjun Xie, Hai-Tao Zheng, Zhiyuan Liu

Recently, considerable literature has grown up around the theme of few-shot named entity recognition (NER), but little published benchmark data specifically focused on the practical and challenging task. Current approaches collect existing supervised NER datasets and re-organize them to the few-shot setting for empirical study. These strategies conventionally aim to recognize coarse-grained entity types with few examples, while in practice, most unseen entity types are fine-grained. In this paper, we present Few-NERD, a large-scale human-annotated few-shot NER dataset with a hierarchy of 8 coarse-grained and 66 fine-grained entity types. Few-NERD consists of 188,238 sentences from Wikipedia, 4,601,160 words are included and each is annotated as context or a part of a two-level entity type. To the best of our knowledge, this is the first few-shot NER dataset and the largest human-crafted NER dataset. We construct benchmark tasks with different emphases to comprehensively assess the generalization capability of models. Extensive empirical results and analysis show that Few-NERD is challenging and the problem requires further research. We make Few-NERD public at https://ningding97.github.io/fewnerd/.

PaperPDFConference PDFCodeCode 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="2105.07464")

Code

Syntology Ran 1 of 7 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · honoured contract.

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

thunlp/Few-NERD officialmentioned in papermentioned on GitHubpytorchApache-2.0 report
katzurik/neretrieve mentioned on GitHub report
psunlpgroup/container mentioned on GitHubpytorchMIT report
renll/sparselt mentioned on GitHubpytorchApache-2.0 report
wangpeiyi9979/esd mentioned on GitHubpytorch report
zifengcheng/cdap mentioned on GitHubpytorch 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

7 samples harvested; 1 ran; 1 honoured the contract we drafted; 6 have 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 · honoured contract
6unverified

Licence: 0 of the 7 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 thunlp/Few-NERD. “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.

warmup_linear thunlp/Few-NERD/util/framework.py official repository ran · honoured contract fingerprinted Apache-2.0 (permissive) · 8570f28ccf82469e · report
collate_fn thunlp/Few-NERD/util/data_loader.py official repository unverified Apache-2.0 (permissive) · 1905bc80075cf1fb · report
convert_examples_to_features thunlp/Few-NERD/util/supervised_util.py official repository unverified Apache-2.0 (permissive) · 485fe5494e1efa6c · report
get_abstract_transitions thunlp/Few-NERD/util/framework.py official repository unverified Apache-2.0 (permissive) · e10ae768920721ff · report
get_class_name thunlp/Few-NERD/util/data_loader.py official repository unverified Apache-2.0 (permissive) · 65f10f78803a1085 · report
get_labels thunlp/Few-NERD/util/supervised_util.py official repository unverified Apache-2.0 (permissive) · 9288afdf0d017d87 · report
read_examples_from_file thunlp/Few-NERD/util/supervised_util.py official repository unverified Apache-2.0 (permissive) · f4626cb5d2ad80ca · report

Tasks

Few-shot NERNamed Entity RecognitionNamed Entity Recognition (NER)

Datasets

Introduced by this paper, per the archive.

Few-NERD

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Few-shot NER Few-NERD (INTER) StructShot 10 way 1~2 shot 43.34±0.10 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) StructShot 10 way 5~10 shot 49.57±3.08 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) StructShot 5 way 1~2 shot 51.88±0.69 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) StructShot 5 way 5~10 shot 57.32±0.63 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) NNShot 10 way 1~2 shot 38.87±0.21 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) NNShot 10 way 5~10 shot 49.57±2.73 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) NNShot 5 way 1~2 shot 47.24±1.00 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) NNShot 5 way 5~10 shot 55.64±0.63 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) ProtoBERT 10 way 1~2 shot 32.45±0.79 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) ProtoBERT 10 way 5~10 shot 52.92±0.37 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) ProtoBERT 5 way 1~2 shot 38.83±1.49 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTER) ProtoBERT 5 way 5~10 shot 58.79±0.44 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) StructShot 10 way 1~2 shot 21.03±1.13 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) StructShot 10 way 5~10 shot 26.42±0.60 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) StructShot 5 way 1~2 shot 30.21±0.90 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) StructShot 5 way 5~10 shot 38.00±1.29 #11 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) NNShot 10 way 1~2 shot 18.27±0.41 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) NNShot 10 way 5~10 shot 27.38±0.53 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) NNShot 5 way 1~2 shot 25.78±0.91 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) NNShot 5 way 5~10 shot 36.18±0.79 #12 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) ProtoBERT 10 way 1~2 shot 15.05±0.44 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) ProtoBERT 10 way 5~10 shot 35.40±0.13 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) ProtoBERT 5 way 1~2 shot 20.76±0.84 #13 of 13 Archive leaderboard report
Few-shot NER Few-NERD (INTRA) ProtoBERT 5 way 5~10 shot 42.54±0.94 #13 of 13 Archive leaderboard report
Named Entity Recognition (NER) Few-NERD (SUP) BERT-Tagger F1-Measure 67.13 #6 of 6 Archive leaderboard report
Named Entity Recognition (NER) Few-NERD (SUP) BERT-Tagger Precision 65.56 #6 of 6 Archive leaderboard report
Named Entity Recognition (NER) Few-NERD (SUP) BERT-Tagger Recall 68.78 #6 of 6 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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