Skip to main content
QUICK REVIEW

[Paper Review] DiffusionNER: Boundary Diffusion for Named Entity Recognition

Yongliang Shen, Kaitao Song|arXiv (Cornell University)|May 22, 2023
Topic ModelingComputer Science6 citations
TL;DR

DiffusionNER proposes a novel generative approach for named entity recognition by formulating NER as a boundary-denoising diffusion process on noisy spans. It trains a reverse diffusion model to progressively refine noisy spans into accurate entity boundaries, achieving state-of-the-art or competitive performance on flat and nested NER benchmarks with faster, dynamic, and parallel inference compared to autoregressive methods.

ABSTRACT

In this paper, we propose DiffusionNER, which formulates the named entity recognition task as a boundary-denoising diffusion process and thus generates named entities from noisy spans. During training, DiffusionNER gradually adds noises to the golden entity boundaries by a fixed forward diffusion process and learns a reverse diffusion process to recover the entity boundaries. In inference, DiffusionNER first randomly samples some noisy spans from a standard Gaussian distribution and then generates the named entities by denoising them with the learned reverse diffusion process. The proposed boundary-denoising diffusion process allows progressive refinement and dynamic sampling of entities, empowering DiffusionNER with efficient and flexible entity generation capability. Experiments on multiple flat and nested NER datasets demonstrate that DiffusionNER achieves comparable or even better performance than previous state-of-the-art models.

Motivation & Objective

  • To address the inefficiency and exposure bias of autoregressive generation-based NER models by introducing a non-autoregressive, diffusion-based alternative.
  • To explore the application of diffusion models—previously used in image and audio generation—on discrete text sequences for extractive NLP tasks like NER.
  • To enable dynamic and flexible entity generation by decoupling the number of noisy spans from training constraints, allowing variable-length inference.
  • To improve entity boundary refinement through iterative denoising, enhancing precision in both flat and nested entity recognition.

Proposed method

  • Formulates NER as a boundary-denoising diffusion process, where entity boundaries are gradually corrupted by Gaussian noise in a fixed forward process.
  • Learns a reverse diffusion process using a denoising network that refines noisy spans step-by-step to recover gold-standard entity boundaries during training.
  • During inference, samples noisy spans from a standard Gaussian prior and generates entities via the learned reverse process, enabling parallel generation across spans.
  • Employs a shared transformer encoder across timesteps to improve inference efficiency and supports dynamic sampling of different numbers of noisy spans at test time.
  • Uses a span encoder with both self-attention among noisy spans and cross-attention to the input sentence to model interactions and improve boundary prediction.
  • Applies a variance scheduler (cosine or linear) to control noise intensity over timesteps, with hyperparameters tuned for optimal performance on each dataset.

Experimental results

Research questions

  • RQ1Can diffusion models be effectively adapted to extractive NLP tasks like named entity recognition on discrete text sequences?
  • RQ2Does a boundary-denoising diffusion process improve entity boundary refinement and generalization compared to autoregressive generation?
  • RQ3Can DiffusionNER achieve competitive performance with faster, non-autoregressive inference while supporting dynamic sampling of entity spans?
  • RQ4How sensitive is model performance to architectural choices such as the pre-trained language model, attention mechanisms, and variance scheduler?

Key findings

  • DiffusionNER achieves state-of-the-art or competitive performance on six flat and nested NER datasets, including 88.99 F1 on ACE04 and 92.89 F1 on CoNLL03 using RoBERTa-Large.
  • The model shows strong robustness to the number of noisy spans used during training, with performance stable across K=60, 120, and 150, indicating insensitivity to expansion strategy.
  • Random expansion strategy outperforms repetitive expansion, achieving 88.53 F1 on ACE04 and 92.79 F1 on CoNLL03 with K=120.
  • The cosine variance scheduler yields the best results on ACE04 (88.39 F1 at T=1000), while the linear scheduler performs best on CoNLL03 (92.87 F1 at T=1500).
  • Ablation studies confirm that both self-attention among spans and cross-attention to the input sentence are essential, with performance dropping by 1.37% and 1.15% respectively when removed.
  • The model demonstrates faster and more flexible inference than autoregressive methods due to parallel generation and dynamic sampling, with shared encoder across timesteps improving efficiency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.