arXiv:2608.30827cs.CLAug 2026

Manuscript Offprint

arXiv:2608.30827

Error-Type-Aware Loss Reweighting for Robust Named Entity Recognition with Noisy LLM Labels

Elena Merdjanovska, Jonas Golde, Alan Akbik

Abstract

Large language models are increasingly used to annotate datasets for training smaller, task-specialized models such as named entity recognition. While this method yields effective models, it assumes that the synthetic dataset is correctly annotated. In this work, we find that (i) current fine-tuning processes simply ignore LLM-introduced annotation noise, resulting in degraded performance and (ii) existing noise-robust losses are not transferable to sequence labeling because annotation noise in named entity recognition is heterogeneous: for example, missing mentions and type errors affect the training signal in different ways. Treating all noisy tokens equally in noise-robust losses and applying a single reweighing criterion for all may therefore remove useful supervision or reinforce incorrect labels. To address this limitation, we propose error-type-aware loss reweighting for NER, which introduces separate reweighing rules for different types of potentially erroneous tokens. Our approach is simple and efficient, does not require additional training resources, and improves F1 by 0.8 - 2.0 percentage points on dataset-level average for noise levels between 15% and 40%, with a maximum improvement of 4.6 percentage points with 24.1% noise on Wikigold.1^{1}

1 Introduction

Recently, large language models (LLMs) are used as an alternative to manual annotation (Ding et al., 2023; Pavlovic and Poesio, 2024) as they reduce annotation costs and generate reliable supervision for large, previously unlabeled datasets (Tan et al., 2024). These annotations can be used to fine-tune smaller models for domain-specific tasks, including named entity recognition (NER). Compared with general-purpose LLMs, such smaller fine-tuned models provide lower latency, reduced memory use,

DatasetPromptingFine-Tuning w/
LLM-labelsclean labels
Ontonotes66.265.582.0
NoiseBench83.584.494.8
CDR74.271.285.4
Wikigold73.470.379.7

(a) Problem: Noise from LLM-annotations transfers to fine-tuned models on such data.

Figure

(b) Approach: Our proposed loss ignore erroneous annotations after some training.

Figure

(c) Results: Across different noise-level, we observe that our loss outperforms comparable loss functions. Plot shows the results with LmissingL_{missing} on Wikigold.

Figure 1: We introduce a error-type aware loss formulation for the task of named entity recognition as we find that noisy LLM-annotated datasets directly impact downstream performance. Our loss function helps to overcome this issue and improve over comparable loss functions across a range of noise levels.

and cheaper deployment (Bogdanov et al., 2024; Zaratiana et al., 2024; Golde et al., 2026).

1^{1} We release the code in https://github.com/elenamer/error-type-aware-losses

Despite these benefits, LLM-generated annotations are often incomplete or incorrect. For example, when looking at Figure 1a, we observe that prompting achieves 66.2 F1 on the gold-annotated test split of OntoNotes. At the same time, when fine-tuning on the LLM-annotated train split and evaluate on the corresponding clean test split, we observe across all four datasets in Figure 1a that the fine-tuned F1 stays within 3 points of the prompting approach. Thus, the annotation quality creates a practical ceiling on downstream performance performance and LLM-generated annotations directly transfers its errors to the smaller model.

Noise-robust learning approaches try mitigating the problem of erroneous labels in the training process. Existing approaches include sample selection, label correction, loss reweighting, regularization, and multi-network learning (Frénay and Verleysen, 2013; Han et al., 2018; Song et al., 2023). For example, loss reweighting aims to assign lower weight to incorrect annotations when calculating the total loss (Liu and Tao, 2016; Arazo et al., 2019) which prevents noisy examples from dominating the optimization process.

However, these approaches are primarily designed for classical classification problems. NER is a structured prediction problem in which one jointly models the detection entity types and span boundaries. Thus, the errors in NER datasets are of heterogeneous nature: (i) the LLM may miss an entity mention 2^{2}, (ii) hallucinate one that is not present, (iii) assign the wrong type or (iv) annotate the mention boundary incorrectly (Merdjanovska et al., 2024). Further, entity annotations are sparse and the majority of tokens is assigned the non-entity label O, resulting in a severe class imbalance. Treating all noisy tokens equally may therefore remove useful supervision or reinforce incorrect labels. Most prior NER-specific work on noisy supervision has focused on distant supervision rather than LLM-generated annotations which exhibit their very own error patterns (Zhang et al., 2025; Li et al., 2025).

To address this limitation, we propose error-type-aware loss reweighting for NER. Our idea is simple: we assume that most LLM annotations are correct and worth learning from, thus our goal becomes identifying and ignoring incorrectly labeled tokens from the loss. Since we assume that annotations are correct, we can treat disagreement between the models' prediction and actual annotation as the signal that a token may be mislabeled by using the models' confidence. We can make this distinction for all of the previous error types such that we can adapt what we want to mask, depending on the noise occurring in the LLM annotated data.

We summarize our contributions as follows:

  1. We analyze the main error types in LLM-generated NER annotations and find that errors differ greatly across datasets and prompting approaches, even with the same model.

  2. We propose six error-type-aware reweighting loss variants, that mask-out potentially unreliable tokens so they do not negatively impact the training process.

  3. We evaluate the losses across four datasets, three LLM annotators and two models against standard fine-tuning and representative noise-robust baselines.

  4. Our results show that the proposed error-type-aware reweighting is effective, with per-dataset F1 improvements over standard cross-entropy between 0.8 and 2.0 percentage points with DistilBERT and 1.2 - 1.6 with XLM-RoBERTa (large).

  5. We show that error-type-aware reweighting is more effective than global token reweighting, and find that LmissingL_{missing} that targets missing annotations is the best-performing loss overall.