# Welcome to FewRel

a Few-shot Relation classification dataset

FewRel is a Few-shot Relation classification dataset, which features 70, 000 natural language sentences expressing 100 relations annotated by crowdworkers.

Baseline models and a series of toolkits are released in this repo:

It is fairly easy for you to get started with FewRel. First, you can download a copy of the dataset by the following links. The dataset is distributed under the CC BY-SA 4.0 license:

To evaluate your model, please sample a pair of input and standard output file from the validation set, and compare your output with the standard one. The sampling scripts and evaluations scripts used in official evaluation are also accessible through the following work sheet.

Once you have built a model that works to your expectations on the validation set, you can submit it to get official scores on the hidden test set. To preserve the integrity of test results, we do not release the test set to the public. Instead, we require you to submit your model so that we can run it on the test set for you. Instructions to submit your model is here!

@inproceedings{han-etal-2018-fewrel,
title = "{F}ew{R}el: A Large-Scale Supervised Few-Shot Relation Classification Dataset with State-of-the-Art Evaluation",
author = "Han, Xu and Zhu, Hao and Yu, Pengfei and Wang, Ziyun and Yao, Yuan and Liu, Zhiyuan and Sun, Maosong",
booktitle = "Proceedings of the 2018 Conference on Empirical Methods in Natural Language Processing",
month = oct # "-" # nov,
year = "2018",
publisher = "Association for Computational Linguistics",
url = "https://www.aclweb.org/anthology/D18-1514",
doi = "10.18653/v1/D18-1514",
pages = "4803--4809"
}


# Model 5-way-1-shot 5-way-5-shot 10-way-1-shot 10-way-5-shot

#

Human 92.22 - 85.88 -

1

Matching the Blanks[paper]
(Feb 26, 2019)
93.8697.0689.2094.27

2

Anonymous Pony

(Jan 17, 2020)
91.6196.0186.7891.63

3

Anonymous Groundhog

(Nov 3, 2019)
90.3194.2885.4890.51

4

PAMN
Anonymous
(Jun 8, 2020)
90.1095.2284.1390.58

5

Anonymous Python

(Nov 3, 2019)
88.3095.9481.1092.67

6

BERT-PAIR[paper][code]
THUNLP, Tsinghua University
(Nov 3, 2019)
88.3293.2280.6387.02

7

MLMAN[paper][code]
NEL-SLIP, University of Science and Technology of China
(Jan 10, 2019)
82.9892.6673.5987.29

8

PLATO
Primer.ai
(Nov 19, 2019)
82.9391.7674.4185.91

9

Anonymous Rabbit

(Mar 3, 2020)
83.4792.3173.6485.30

10

TDCN
Anonymous
(Jul 23, 2019)
81.9392.0872.1885.98

11

Prototypical Network (LM-Transformer)
LAVIS, University of Applied Sciences RheinMain
(Jan 18, 2019)
81.4092.1172.5186.03

12

LM-ProtoNet (FGM)
Anonymous
(Feb 15, 2019)
76.6089.3165.3182.10

13

bert+maml(CNN)
Yanshan ISE
(Mar 17, 2020)
77.2188.0765.9080.06

14

Prototypical Network (CNN)

74.5288.4062.3880.45

15

anonymous venetian
Anonymous
(Jun 13, 2020)
82.7182.7367.5368.22

16

SNAIL (CNN)

67.2979.4053.2868.33

17

Meta Network (CNN)

64.4680.5753.9669.23

18

GNN (CNN)

66.2381.2846.2764.02

19

kNN (PCNN)

60.2872.4146.1559.11

20

kNN (CNN)

54.6768.7741.2455.87

21

Finetune (CNN)

44.2168.6627.3055.04

22

Finetune (PCNN)

45.6457.8629.6537.43