Using Large Language Model for End-to-End Chinese ASR and NER

Yuang Li, Jiawei Yu, Min Zhang, Mengxin Ren, Yanqing Zhao, Xiaofeng Zhao, Shimin Tao, Jinsong Su, Hao Yang

Introduction

Spoken language understanding (SLU) traditionally relies on a cascaded pipeline where an Automatic Speech Recognition (ASR) system transcribes audio into text, which is then processed by a Named Entity Recognition (NER) model. However, this approach suffers from significant error propagation: acoustic ambiguities in the ASR stage—particularly prevalent in tonal languages like Chinese with many homophones—often lead to irreversible errors in entity extraction.

To address this, researchers have explored end-to-end (E2E) systems that map audio directly to semantic labels. While promising, these systems often lack the sophisticated linguistic reasoning of modern Large Language Models (LLMs). This paper presents a novel integration of the Whisper speech encoder with the ChatGLM3 LLM to bridge the gap between acoustic signals and semantic understanding, achieving state-of-the-art results on Chinese benchmarks.

Architectural Philosophies

The study investigates two primary methods for injecting speech features into an LLM, utilizing a frozen Whisper-large-v2 encoder and a ChatGLM3-6B model fine-tuned via LoRA (Low-Rank Adaptation).

  1. Decoder-only (Adapter-based): Speech features are downsampled and projected into the LLM's embedding space via a linear adapter. The LLM treats these as "speech tokens" that serve as a prefix for text generation, allowing the model to process speech as if it were a specialized prompt.
  2. Encoder-Decoder (Cross-attention): Speech features are integrated into every layer of the LLM using gated cross-attention mechanisms. This follows a more traditional Transformer ASR structure but leverages the LLM as the powerful decoder component.
Comparison of (a) Decoder-only and (b) Encoder-Decoder architectures for integrating speech into LLMs.

The results indicate a performance trade-off: while the Encoder-Decoder model excels at short, isolated audio clips, the Decoder-only architecture is superior for long-form context. The decoder-only setup allows for more natural interaction between speech and historical text across all layers, which is crucial for resolving ambiguities in continuous speech.

Chain-of-Thought NER

A key contribution of this work is the "Chain-of-Thought" (CoT) NER approach. Rather than predicting entities directly from raw audio, the model is trained to first generate a full ASR transcription and then output the corresponding NER labels (e.g., Person, Location, Organization). This sequential processing forces the model to ground its semantic judgments in a textual representation, effectively allowing the LLM to "think through" the transcription before identifying entities.

Key Insights: Dynamic Attention and Context

Analysis of the model's internal mechanics reveals how it manages the interplay between acoustic and linguistic information. Visualization of gate values and attention scores shows that the model dynamically adjusts its focus. As textual context grows (historical utterances), the model relies less on the raw speech signal and more on linguistic history to resolve phonetic ambiguities.

Analysis of (a) gate values and (b) attention scores across LLM layers, showing how the model balances speech and text context.

This dynamic weighting helped reduce omission errors—missing an entity entirely—by nearly 50% compared to standard Conformer baselines. The LLM's internal knowledge allows it to "hallucinate" the correct characters for rare entities even when the acoustic signal is fuzzy or degraded, a feat difficult for traditional ASR systems.

Performance and Results

The proposed system achieved significant improvements on the AISHELL-NER benchmark:

  • ASR Performance: The LLM-based systems achieved a relative Character Error Rate (CER) reduction of 19.7% over the baseline Conformer model.
  • SOTA NER: The CoT NER approach reached a state-of-the-art F1 score of 0.805.
  • Contextual Benefit: For the decoder-only model, incorporating historical context improved the "Correct Entity" rate by 2.8% absolute, proving that LLMs effectively use past information to disambiguate current speech.

Conclusion and Future Work

By combining the robust acoustic encoding of Whisper with the semantic power of ChatGLM3, this research demonstrates the potential of LLMs for complex SLU tasks. While challenges remain—specifically substitution errors where the model selects the wrong character for a correct sound—the move toward multi-task, context-aware audio-language models represents a significant step forward. Future work aims to scale these experiments to larger datasets and expand capabilities to include audio event detection, moving closer to a universal audio-language assistant.

Summary updated

BibTeX
@inproceedings{li2024using,
  author = {Yuang Li and Jiawei Yu and Min Zhang and Mengxin Ren and Yanqing Zhao and Xiaofeng Zhao and Shimin Tao and Jinsong Su and Hao Yang},
  title = {{Using Large Language Model for End-to-End Chinese ASR and NER}},
  booktitle = {Interspeech},
  year = {2024},
  doi = {10.21437/interspeech.2024-103},
}
Figure