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

In this study, we aim to reduce generation latency for Named Entity Recognition (NER) with Large Language Models (LLMs). The main cause of high latency in LLMs is the sequential decoding process, which autoregressively generates all labels and mentions for NER, significantly increase the sequence length. To this end, we introduce Parallel Decoding in LLM for NE} (PaDeLLM-NER), a approach that integrates seamlessly into existing generative model frameworks without necessitating additional modules or architectural modifications. PaDeLLM-NER allows for the simultaneous decoding of all mentions, thereby reducing generation latency. Experiments reveal that PaDeLLM-NER significantly increases inference speed that is 1.76 to 10.22 times faster than the autoregressive approach for both English and Chinese. Simultaneously it maintains the quality of predictions as evidenced by the performance that is on par with the state-of-the-art across various datasets.

Paper

Similar papers

Peer review

Reviewer 1fG56/10 · confidence 4/52024-07-12

Summary

This paper introduces a novel approach to reduce generation latency in Named Entity Recognition (NER) using Large Language Models (LLMs). The primary issue addressed is the high latency caused by the sequential decoding process in LLMs, which significantly lengthens the sequence by autoregressively generating all labels and mentions for NER. To tackle this, the authors propose Parallel Decoding in LLM for NER (PaDeLLM-NER), which integrates into existing generative model frameworks without requiring additional modules or architectural changes. PaDeLLM-NER enables simultaneous decoding of all mentions, effectively reducing generation latency. Experimental results show that PaDeLLM-NER can improve the inference speed than the traditional autoregressive approach.

Strengths

- The parallel decoding strategy is well-designed and experimental results prove the effectiveness. - The authors provide comprehensive experiments with different setting and with furthre analysis. - The paper is easy to follow.

Weaknesses

- The proposed method cannot improve the inference speed in scenarios where only one type of entity is predicted. - Since the method focuses on the inference efficiency of LLMs-based NER, it is better to report both inference speed and performance compared to zero-shot (Table 3) and supervised (Tables 4 and 5) methods. Notably, Table 3 only reports performance without considering the efficiency of different LLMs. Furthermore, why not report the performance of AutoReg_aug and AutoReg_struct in Table 3? - For better understanding of the training resource usage when compared with other methods, it is better to report the base language models used (SOTA methods) in Tables 4 and 5. - The writing of this paper could be further improved. For example, Line 219, “As per Ning et al...” appears to be a typo; the meanings of the underline (second performance) and bold (best performance) are not provided; and there is no explanation for why “*” indicates that results are not directly comparable in the Table 5 caption. - Comparing with fixed few-shot in-context learning of LLMs may also be worth considering, as caching the fixed prompt could improve the inference speed of LLMs.

Questions

Please see the weakness.

Rating

6

Confidence

4

Soundness

3

Presentation

2

Contribution

2

Limitations

The authors provide one limitation section.

Reviewer 1fG52024-08-09

To Authors

Thanks for your responses. > W1-speedup is weak when only one entity type... This may need to be acknowledged in your paper. Since only one mention also existing in many scenarios. > W3-report base model... Thanks your adding this column. This is very important for readers to understand the cost of reaching the coressponding performance. Though the decoding techniques could improve the efficiency. I still believe that using caching techniques and long-context ICL, i.e., fixed 1000-shots, may reach better performance but good efficiency. But I acknowledge that these techniques could be used in the decoding methods propoed in this paper. Since most of my concerns have been addressed. I increase my soundness score to 3 and over accessment score to 6.

Authorsrebuttal2024-08-09

Thanks

Thank you for the thoughtful review. We will address the speedup weakness and other necessary modifications in the revised version.

Reviewer 14Sq9/10 · confidence 4/52024-07-13

Summary

They create an NER system where an LLM first outputs the number of mentions there are of a given type (for all possible types). Then all mentions can be generated in parallel. This results in faster inference times as each generation is short, and they can be done in parallel.

Strengths

They compare to several different baseline on multiple NER datasets in multiple different settings. Their method is much faster than others.

Weaknesses

Their reformulation of NER as predicting (label, mention) pairs removes a critical component of classical NER, the actual alignment of the mention to the tokens. Polysemous words are often mentions in some context and not in others and it if often important to know which one was the actual mention, especially if it is used for things like editing downstream. The deduplication strategy is very aggressive and removes the possibility that some surface text is a label for multiple types in a single sentence. For example, "It is England vs. Italy on this sunny day in England", England is both a place (LOC) and a sports team (ORG) this would get filtered by their setup. The prose's definition of " prediction quality [...] that is on par" is rather loose, with their model being 6 points behind on average for zero-shot (table 3) and behind by a point of two on most supervised datasets.

Questions

How do you expect this to scale to NER datasets like Ontonotes where a there are 20+ different mention category? Similarly what about long documents that could have 10-30+ mentions of a given type? Did you see inconsistencies in the model outputs? For example a model that output that there is `1` person but then generated <mention 2> ${person name}?

Rating

9

Confidence

4

Soundness

3

Presentation

3

Contribution

3

Limitations

yes

Reviewer XzjF6/10 · confidence 3/52024-07-14

Summary

This paper presents PaDeLLM-NER, a novel approach for accelerating Named Entity Recognition (NER) inference in Large Language Models (LLMs) through parallel decoding. A reformulation of the NER task that enables parallel generation of label-mention pairs, significantly reducing inference latency. A two-step inference process involving mention count prediction and parallel mention generation. Extensive experiments demonstrated significant speedups (1.76x to 10.22x faster) compared to autoregressive approaches while maintaining or improving prediction quality across multiple datasets and two languages.

Strengths

The parallel decoding strategy for NER is innovative and addresses a significant bottleneck in LLM inference speed, which is important in some speed-sensitive applications. The authors conduct extensive experiments across multiple datasets, languages, and settings (zero-shot and supervised), proving the method's effectiveness. The reported speedups are substantial and could have a meaningful, practical impact on NER applications. The method is compatible with existing LLM architectures and can be integrated with other acceleration techniques. The methodology is well-explained with helpful diagrams and examples.

Weaknesses

Some details and corner cases are not well explained. For example, I didn't see the token location information in Figure 2. If the input has multiple and same mentions (e.g., "Donald Trump owns the Trump Organization" ), how does this framework distinguish with the same mentions? (e.g. Trump in the above example) In addition, it is not clear how the de-duplicate model processes the partially duplicated mentions. For example, in the above case, the "Trump organization" was recognized as ORG, and what if the person module predicted the "Trump" in the "Trump organization" as a person? Will the de-duplicate model filter this case?

Questions

No

Rating

6

Confidence

3

Soundness

3

Presentation

3

Contribution

3

Limitations

No

Reviewer GKXR6/10 · confidence 4/52024-07-18

Summary

This paper proposes an interesting extension of the parallel text generation paradigm, where the authors tackle the NER task and propose to generate the labels independently. For each label prediction, the proposed method first predicts the number of mentions and then predicts the exact entity. The results show that the proposed model performs reasonably well, while achieving faster inference.

Strengths

1. The proposed method is a pioneer work to accelerate LLM generation following the parallel generation paradigm. 2. We do observe significant speed-up empirically, which suggests the proposed method may be of value in real word applications.

Weaknesses

1. The importance of the two-step prediction for each entity is not justified. I feel there should be a baseline such that the multiple mentions can be predicted together in an autoregressive fashion. For example, I can predict "entity type: LOC Italy English" as a whole. 2. Fundamentally, parallel predictions should be weaker than autoregressive predictions due to the drop in dependency capturing. However, we observe from Table 4 that AR models are noticeably worse than the parallel approach. Since these results contradict common wisdom, there needs more effort to justify them. For example, the authors may need to reveal the full training/testing configurations of both the AR and parallel models, and there could be some more detailed error analysis to show how AR models are making more mistakes than the parallel approach. 3. The proposed approach may face difficulty when a word is used multiple times with different types. For example, in "Washington lives in Washington," the proposed approach may predict "LOC" and "PER" for both "Washington"; however, it can not align them because the parallel approach is ordered agnostic among entities. 4. The proposed method needs finetuning to adjust the LLMs, which can be difficult when it comes to very large LLMs.

Questions

1. Is the duplication issue, as mentioned in Figure 2, very common? Do you have statistics for this? 2. Do you know if the testing datasets are in the training data of the LLM?

Rating

6

Confidence

4

Soundness

2

Presentation

3

Contribution

2

Limitations

The authors make earnest efforts to discuss the limitations. In addition, the previously mentioned Weakness 3 is another potential limitation. The authors may include further discussion in this regard.

Reviewer GKXR2024-08-09

Thanks for the responses. I have some follow-up comments/questions. **W1** Which decoding strategies were used in the "one-step" baselines? How do you handle the order, i.e., "LOC Italy England" vs "LOC English Italy." **W2** Can you elaborate more on "All AR methods struggle to identify this nested structure? In contrast, PaDeLLM, which decomposes from dependencies?" Why is dropping dependency free from errors for the nested structure? (Additionally, can you provide a more formal definition for this nested structure?) **W3** Thanks for providing the statistics. However, I feel this is a fundamental limitation (in terms of capability) of the proposed method and should be addressed explicitly in the paper (at least in the Limitation section). Having post hoc refinements could be a solution, but they may also be applied to other methods, which would not be a fair comparison. **W4** Just to confirm: the "zero-shot generalizability of PaDeLLM" refers to the zero-shot datasets, right? The PaDeLLM model itself needs to be trained. Do you think you can make PaDeLLM a prompt-only LLM-based method?

Authorsrebuttal2024-08-09

Response for comment

Thanks for the further discussion and we are grateful for the opportunity to address the concerns. **W1-one-step pred** : - In "one-step baselines". all mentions under the same label are predicted in one single sequence. If there is no label related to any mention in the example, the result is empty. Please refer to the exact prediction example below. The latency of the slowest sequence is reported as the overall latency of one example. | Entity | Text | NER Result | |--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------| | ORG | \<entity>ORG\<text>2004-12-20T15:37:00 Microscopic microcap Everlast, mainly a maker of boxing equipment, has soared over the last several days thanks to a licensing deal with Jacques Moret allowing Moret to buy out their women's apparel license for $$ 30 million, on top of a $$ 12.5 million payment now. | NER result: ["Microscopic microcap Everlast", "a maker of boxing equipment", "their"] | | PER | \<entity>PER\<text>2004-12-20T15:37:00 ... million payment now. | NER result: ["Jacques Moret", "Moret", "their", "their women"] | | GPE | \<entity>GPE\<text>2004-12-20T15:37:00 ... million payment now. | NER result: [] | | LOC | \<entity>LOC\<text>2004-12-20T15:37:00 ... million payment now. | NER result: [] | - The order of mentions is kept the same as in the ground truth, aligning with the data provided by the respective dataset. **W2-nested NER elaborate**: - Definition of nested structure: In the table (ground truth), the phrase 'highly diverged [Drosophila [homeodomain |DNA] |DNA]' shows a nested structure where 'homeodomain' (DNA) is nested within 'Drosophila homeodomain' (another DNA). - Elaboration AR methods struggle with such hierarchies due to their reliance on linear dependencies. The table's results (Auto_Aug, Auto_struct) highlight the need for models to not only **understand the input and effectively model long-range dependencies to produce the correct format to be parsed.** In contrast, PaDeLLM simplifies nested dependencies by breaking the tasks down during the two-step prediction, allowing it to maintain a shorter output format, making PaDeLLM better suited for handling nested structures compared to AR methods. We will add this discussion to the Appendix in the updated version. | | | | --- | --- | | **Input** | When the homeodomain from HB24 was compared to known mammalian and Drosophila homeodomains it was found to be only moderately conserved, but when it was compared to a highly diverged Drosophila homeodomain, H2.0, it was found to be 80% identical. | | **Ground truth** | When the [ homeodomain /DNA] from [ HB24 /DNA] was compared to known mammalian and Drosophila homeodomains it was found to be only moderately conserved, but when it was compared to a highly diverged [ Drosophila [ homeodomain /DNA] /DNA] , H2.0, it was found to be 80% identical. | | **Auto_Aug** | When the [ homeodomain /DNA] from [ HB24/DNA] was compared to known mammalian and Drosophila homeodomains it was found to be only moderately conserved, but when it was compared to a highly diverged [ Drosophila [ homeodomain /DNA] , [ H2.0, /DNA] it was found to be 80% identical." | | **Auto_struct** | ((DNA:homeodomain),(DNA:HB24),(DNA:homeodomains),(DNA:Drosophila homeodomain),(DNA:H2.0),(RNA:null),(cell_line:null),(protein:null),(cell_type:null)) | | **PaDeLLM** | str1:entity type:\nDNA\n\n<num>3\n<mention 1>homeodomain| ||str2:entity type:\nDNA\n\n<num>3\n<mention 2>HB24| ||str3:entity type:\nDNA\n\n<num>3\n<mention 3>Drosophila homeodomain| **W3**:We agree that this is a fundamental limitation of our proposed method. We will explicitly discuss this in the Limitation section. Additionally, we will include the experimental results without de-duplication in Table 4 (currently only presented in Table 6), to ensure a fair comparison for readers in the updated version. **W4**:Yes, the "zero-shot generalizability of PaDeLLM" refers to the zero-shot datasets, PaDeLLM model itself needs to be trained. We believe that the strong instruction-following capabilities of LLMs (especially those much larger LLMs) make it feasible to implement PaDeLLM through in-context learning or other prompt engineering techniques without additional training. If this addresses your concern, we would be fully appreciated if you would consider to improve the rating.

Reviewer GKXR2024-08-11

Thanks for clarifying. I'll raise my overall recommendation to 6, and I hope our discussion can help the revision.

Authorsrebuttal2024-08-11

Thanks

Thank you for the thoughtful discussion and for raising the rating. We will continue to improve the revision by taking the feedback into account.

Program Chairsdecision2024-09-25

Decision

Accept (poster)

© 2026 NYSGPT2525 LLC