Learning Nested Named Entity Recognition from Flat Annotations
Organizations: Lomonosov Moscow State University Leninskie Gory, 1/4, Moscow, Russia
Abstract
Nested named entity recognition identifies entities contained within other entities, but requires expensive multi-level annotation. While flat NER corpora exist abundantly, nested resources remain scarce. We investigate whether models can learn nested structure from flat annotations alone, evaluating four approaches: string inclusions (substring matching), entity corruption (pseudo-nested data), flat neutralization (reducing false negative signal), and a hybrid fine-tuned + LLM pipeline. On NEREL, a Russian benchmark with 29 entity types where 21% of entities are nested, our best combined method achieves 26.37% inner F1, closing 40% of the gap to full nested supervision. Code is available at https://github.com/fulstock/Learning-from-Flat-Annotations.
Figures & tables
| Training | Prompt | Ovrl. | Inner | Outer |
|---|---|---|---|---|
| Flat | Keyword | 76.59 | 3.84 | 83.28 |
| Flat | Lex-all-out | 76.72 | 3.11 | 83.40 |
| Flat+Incl. | Keyword | 76.70 | 21.36 | 83.05 |
| Flat+Incl. | Lex-all-out | 76.93 | 22.16 | 83.17 |
| Full nested | Keyword | 85.81 | 65.48 | 83.95 |
| Full nested | Lex-all-out | 85.55 | 65.33 | 83.59 |
| Symbol | Position | Overall | Inner | Outer |
|---|---|---|---|---|
| Digits | end | 77.85 | 23.96 | 82.61 |
| Letters | end | 77.81 | 25.92 | 82.39 |
| Diglets | start | 78.08 | 22.43 | 82.27 |
| Semicolon | start | 74.59 | 19.16 | 77.13 |
| Comma | start | 74.23 | 19.46 | 76.38 |
| Approach | Micro F1 (%) | ||
|---|---|---|---|
| Overall | Inner | Outer | |
| Baseline | |||
| Flat | 76.59 0.23 | 3.84 0.77 | 83.28 0.23 |
| Inclusions | 76.70 0.17 | 21.36 1.53 | 83.05 0.26 |
| Neutralization | |||
| Flat+Neutral. | 76.82 0.19 | 5.43 0.81 | 83.01 0.22 |
| Method | Overall | Inner | Outer |
|---|---|---|---|
| Traditional Approaches | |||
| Flat | 76.59 0.23 | 3.84 0.77 | 83.28 0.23 |
| Flat+Inclusions | 76.70 0.17 | 21.36 1.53 | 83.05 0.26 |
| LLM Approaches (MFE) | |||
| DeepSeek-R1 (0-shot) | 38.35 | 2.69 | 38.86 |
| DeepSeek-R1 (1-shot) | 39.15 | 4.57 | 40.14 |
| Method | Overall | Inner | Outer |
|---|---|---|---|
| Weak Supervision (Fine-tuned) | |||
| Flat (baseline) | 76.59 | 3.84 | 83.28 |
| + Inclusions | 76.70 | 21.36 | 83.05 |
| + Corruption (letters, end) | 77.81 | 25.92 | 82.39 |
| + Lem.Incl.+Corr.+Neutral. | 77.89 | 26.37 | 82.54 |
| LLM-based | |||
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| Type | True | Incl. | Prec. | Lem. | Prec. |
| inner | (%) | incl. | (%) | ||
| PERSON | 433 | 2,845 | 2.81 | 41,347 | 0.07 |
| PROFESSION | 1,820 | 884 | 28.05 | 14,042 | 0.97 |
| ORGANIZATION | 2,001 | 662 | 59.82 | 13,456 | 1.43 |
| COUNTRY | 1,773 | 619 | 82.55 | 13,874 | 1.28 |
| NUMBER | 194 | 456 | 3.29 | 2,477 | 0.04 |
| Training | Prompt | Micro F1 (%) | Macro F1 (%) | ||||
|---|---|---|---|---|---|---|---|
| Overall | Inner | Outer | Overall | Inner | Outer | ||
| Flat Training (NEREL-outerflat) | |||||||
| Keyword | 76.59 0.23 | 3.84 0.77 | 83.28 0.23 | 76.67 0.17 | 3.30 0.58 | 82.94 0.27 | |
| Definition | 76.43 0.17 | 4.42 0.52 | 82.96 0.31 | 76.57 0.17 | 3.76 0.79 | 82.66 0.32 | |
| Most-freq | 76.60 0.21 | 3.66 0.46 | 83.08 0.56 | 76.67 0.24 | 3.23 0.53 | 82.80 0.55 | |
| Context | 75.32 0.17 | 3.32 0.72 | 81.38 0.23 | 75.42 0.12 | 2.79 0.69 | 81.05 0.30 | |
| Corruption | Position | Micro F1 (%) | Macro F1 (%) | ||||
|---|---|---|---|---|---|---|---|
| Overall | Inner | Outer | Overall | Inner | Outer | ||
| Digits Corruption | |||||||
| Early | random | 77.98 0.04 | 21.23 2.16 | 82.74 0.01 | 78.15 0.01 | 17.41 1.86 | 82.53 0.05 |
| start | 77.74 0.10 | 23.32 0.45 | 82.68 0.25 | 77.76 0.11 | 19.38 0.67 | 82.33 0.29 | |
| end | 77.85 0.21 | 23.96 0.73 | 82.61 0.30 | 77.95 0.24 | 20.35 0.82 | 82.33 0.22 | |
| middle | 78.12 0.16 | 22.07 1.77 | 82.45 0.12 | 78.29 0.12 | 18.45 1.23 | 82.24 0.07 | |
Named Entity Recognition
Named Entity Recognition identifies and classifies people, places, organizations, and other entities in text, speech, and multimodal data.
See all 106 papers