[Paper Review] UniversalNER: Targeted Distillation from Large Language Models for Open Named Entity Recognition
UniversalNER distills ChatGPT-like NER capabilities into smaller models via mission-focused instruction tuning, achieving state-of-the-art open-domain NER across a large UniNER benchmark without direct supervision.
Large language models (LLMs) have demonstrated remarkable generalizability, such as understanding arbitrary entities and relations. Instruction tuning has proven effective for distilling LLMs into more cost-efficient models such as Alpaca and Vicuna. Yet such student models still trail the original LLMs by large margins in downstream applications. In this paper, we explore targeted distillation with mission-focused instruction tuning to train student models that can excel in a broad application class such as open information extraction. Using named entity recognition (NER) for case study, we show how ChatGPT can be distilled into much smaller UniversalNER models for open NER. For evaluation, we assemble the largest NER benchmark to date, comprising 43 datasets across 9 diverse domains such as biomedicine, programming, social media, law, finance. Without using any direct supervision, UniversalNER attains remarkable NER accuracy across tens of thousands of entity types, outperforming general instruction-tuned models such as Alpaca and Vicuna by over 30 absolute F1 points in average. With a tiny fraction of parameters, UniversalNER not only acquires ChatGPT's capability in recognizing arbitrary entity types, but also outperforms its NER accuracy by 7-9 absolute F1 points in average. Remarkably, UniversalNER even outperforms by a large margin state-of-the-art multi-task instruction-tuned systems such as InstructUIE, which uses supervised NER examples. We also conduct thorough ablation studies to assess the impact of various components in our distillation approach. We release the distillation recipe, data, and UniversalNER models to facilitate future research on targeted distillation.
Motivation & Objective
- Motivate targeted distillation to close the performance gap between large language models and small instructional models for a broad application class, exemplified by open information extraction and NER.
- Investigate how to generate diverse instruction-tuning data from unlabeled web text to teach a smaller model to recognize arbitrary entity types.
- Assemble a comprehensive universal NER benchmark to evaluate cross-domain, cross-type generalization of distillation methods.
Proposed method
- Use ChatGPT to generate NER annotations for passages sampled from the Pile corpus, creating a diverse, unlabeled supervisory signal.
- Apply mission-focused instruction tuning on smaller models (LLaMA-2 family) with a conversation-style template to extract entities by type from passages (one type per query or all types in one query).
- Incorporate negative sampling by including entity types not present in the passage to mimic open-world conditions.
- Employ dataset-specific instruction templates to harmonize label semantics across diverse NER datasets and reduce conflicts; optionally augment with definitions to increase robustness to paraphrasing.
- Optionally perform supervised finetuning with human-annotated data to improve in-domain and out-of-domain performance; evaluate zero-shot and supervised regimes separately.
- Construct and evaluate on the UniversalNER benchmark consisting of 43 datasets across 9 domains (e.g., biomedicine, programming, social media, law, finance).
Experimental results
Research questions
- RQ1Can targeted distillation from an LLM, guided by mission-focused instruction tuning, replicate or surpass the LLM's open-domain NER capabilities across diverse entity types and domains?
- RQ2How do data construction choices (input sampling, negative sampling, and template design) affect zero-shot NER performance of distilled models?
- RQ3What is the impact of domain coverage, dataset-specific label harmonization, and partial-match evaluation on the effectiveness of UniversalNER?
- RQ4How does UniNER compare to strong instruction-tuned and supervised systems (e.g., ChatGPT, Vicuna, InstructUIE) in zero-shot and supervised settings?
- RQ5Does supervised finetuning with human annotations further improve cross-domain generalization for open-domain NER?
Key findings
- Distilled UniNER models (7B, 13B) outperform ChatGPT on average across the UniNER benchmark in zero-shot NER.
- UniNER-13B achieves higher average F1 than UniNER-7B, indicating benefit from larger distilled capacity.
- UniNER outperforms Vicuna and InstructUIE on average in zero-shot and supervised settings across multiple domains.
- Negative sampling with frequency-based selection is crucial for improving performance in instruction tuning.
- Dataset-specific templates generally improve performance, especially for labels with overlaps across datasets.
- In supervised in-domain evaluation, UniNER-7B achieves 84.78% average F1 on 20 datasets, surpassing BERT-base and InstructUIE-11B; continual supervised fine-tuning reaches 60.0% average F1 on out-of-domain evaluation.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.