Good Examples Make A Faster Learner: Simple Demonstration-based Learning for Low-resource NER
About
Recent advances in prompt-based learning have shown strong results on few-shot text classification by using cloze-style templates. Similar attempts have been made on named entity recognition (NER) which manually design templates to predict entity types for every text span in a sentence. However, such methods may suffer from error propagation induced by entity span detection, high cost due to enumeration of all possible text spans, and omission of inter-dependencies among token labels in a sentence. Here we present a simple demonstration-based learning method for NER, which lets the input be prefaced by task demonstrations for in-context learning. We perform a systematic study on demonstration strategy regarding what to include (entity examples, with or without surrounding context), how to select the examples, and what templates to use. Results on in-domain learning and domain adaptation show that the model's performance in low-resource settings can be largely improved with a suitable demonstration strategy (e.g., a 4-17% improvement on 25 train instances). We also find that good demonstration can save many labeled examples and consistency in demonstration contributes to better performance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Named Entity Recognition | CoNLL 2003 (test) | F1 Score65.11 | 539 | |
| Named Entity Recognition | CoNLL 03 | -- | 102 | |
| Named Entity Recognition | OntoNotes 5.0 (test) | F1 Score63.34 | 90 | |
| Named Entity Recognition | BC5CDR (test) | Macro F1 (span-level)62.87 | 80 | |
| Named Entity Recognition | Wnut 2017 | -- | 79 | |
| Named Entity Recognition | GUM | Micro F118.01 | 36 | |
| Named Entity Recognition | i2b2 2014 | Micro F1 Score0.3636 | 26 | |
| Named Entity Recognition | OntoNotes Onto-A 5.0 | Micro F149.25 | 26 | |
| Named Entity Recognition | OntoNotes Onto-B 5.0 | Micro-F163.02 | 26 | |
| Named Entity Recognition | OntoNotes Onto-C 5.0 | Micro F161.07 | 26 |