NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

PaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognition

Jinghui Lu, Yanjie Wang, Ziwei Yang, Xuejing Liu, Brian Mac Namee, Can Huang

Introduction

Named Entity Recognition (NER) is a fundamental task in natural language processing, traditionally handled by discriminative models. Recently, Large Language Models (LLMs) have redefined NER as a generative sequence-to-sequence task. While this approach offers flexibility and high accuracy, it introduces a significant "sequential bottleneck." Standard LLMs generate text token-by-token; in NER, this means listing every entity and label in a single, often lengthy, output string. This autoregressive process results in high inference latency, hindering real-time deployment.

PaDeLLM-NER (Parallel Decoding in LLM for NER) addresses this challenge by reframing the instruction-tuning process to enable parallel decoding. By decoupling the extraction of individual entities, the framework achieves up to a tenfold increase in inference speed without sacrificing state-of-the-art (SOTA) accuracy.

The Parallel Decoding Strategy

The core innovation of PaDeLLM-NER lies in decomposing the NER task into two distinct, parallelizable steps:

  1. Mention Counting: Instead of listing entities immediately, the model is first prompted to predict the total number of mentions for a specific entity type within the text (e.g., "How many 'Person' entities are present?").
  2. Parallel Extraction: Based on the count obtained in the first step, the model generates each mention independently in its own sequence (e.g., "What is the 1st 'Person' entity?", "What is the 2nd 'Person' entity?").

By breaking the task into independent sub-tasks, PaDeLLM-NER leverages GPU batching capabilities. Rather than generating one long sequence of 100 tokens, the system can process multiple short sequences simultaneously. This approach reduces the average generated sequence length to approximately 13% of that required by conventional autoregressive methods, directly tackling the primary driver of LLM latency.

System Architecture and Optimization

PaDeLLM-NER is architecture-agnostic, meaning it can be applied to standard decoder-only models like Llama-2 or Baichuan-2 without modifying model weights. The speedup is achieved purely through prompt engineering and output structuring.

To ensure data integrity, the authors implemented a Probability-based De-duplication mechanism. In cases where the model assigns the same word to multiple labels across different parallel sequences, the system retains the label associated with the highest prediction probability. Furthermore, the strategy is compatible with other acceleration techniques such as int8 quantization and speculative sampling, allowing for cumulative performance gains.

Experimental Evaluation

The researchers evaluated PaDeLLM-NER across a wide range of benchmarks, including flat NER (CoNLL2003), nested NER (ACE2005, GENIA), and various Chinese datasets (MSRA, Ontonotes 4.0, and industrial datasets like YouKu).

Speed and Efficiency

The most significant result is the dramatic reduction in latency. PaDeLLM-NER achieved inference speeds 1.76 to 10.22 times faster than standard autoregressive baselines. The highest speedups were observed in datasets with high entity density, such as the Chinese Weibo dataset, where sequential generation is most penalized.

Accuracy and Zero-Shot Performance

Despite the focus on speed, PaDeLLM-NER maintains high precision. Its Micro F-scores are competitive with or superior to current SOTA supervised models like BINDER and GoLLIE. Additionally, the model demonstrated robust zero-shot capabilities. When trained on the Pile-NER dataset and tested on unseen benchmarks like CrossNER and MIT, it outperformed most LLM-based competitors, highlighting its generalizability.

Limitations and Future Directions

While PaDeLLM-NER represents a significant step forward, the authors identified several areas for improvement:

  • Counting Accuracy: The primary source of error (56.8%) is "Count Mismatch," where the model fails to correctly identify the total number of entities. LLMs still face inherent difficulties with precise counting tasks.
  • Training Overhead: Reframing the task increases the number of training examples, as each mention requires a separate prompt-response pair, leading to longer fine-tuning times.
  • Contextual Offsets: As a generative method, it does not inherently provide the character offsets (exact locations) of entities in the source text, which may be required for certain downstream applications.

Future work will focus on integrating specialized counting modules and optimizing the inference pipeline through "KV cache reuse" to prevent redundant encoding of the input text.

Conclusion

PaDeLLM-NER demonstrates that the latency issues inherent in generative NER can be mitigated through strategic task reframing. By enabling parallel decoding through mention counting and independent extraction, the framework provides a scalable, architecture-agnostic solution for high-speed, high-accuracy information extraction.

Summary updated

BibTeX
@inproceedings{lu2024padellm,
  author = {Jinghui Lu and Yanjie Wang and Ziwei Yang and Xuejing Liu and Brian Mac Namee and Can Huang},
  title = {{PaDeLLM-NER: Parallel Decoding in Large Language Models for Named Entity Recognition}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=vjw4TIf8Bo},
}
Figure