CPPF: A contextual and post-processing-free model for automatic speech recognition

Lei Zhang, Zhengkun Tian, Xiang Chen, Jiaming Sun, Hongyu Xiang, Ke Ding, Guanglu WanarXiv 2023 · OpenReview

Abstract

ASR systems have become increasingly widespread in recent years. However, their textual outputs often require post-processing tasks before they can be practically utilized. To address this issue, we draw inspiration from the multifaceted capabilities of LLMs and Whisper, and focus on integrating multiple ASR text processing tasks related to speech recognition into the ASR model. This integration not only shortens the multi-stage pipeline, but also prevents the propagation of cascading errors, resulting in direct generation of post-processed text. In this study, we focus on ASR-related processing tasks, including Contextual ASR and multiple ASR post processing tasks. To achieve this objective, we introduce the CPPF model, which offers a versatile and highly effective alternative to ASR processing. CPPF seamlessly integrates these tasks without any significant loss in recognition performance.

Introduction

Traditional Automatic Speech Recognition (ASR) systems typically produce "raw" text: a stream of words lacking punctuation, proper formatting (e.g., "ten thirty" instead of "10:30"), and semantic highlighting. To make this output useful for end-users, developers usually build a "cascading pipeline" where the ASR output is passed through several independent models for Punctuation Restoration (PUNC), Inverse Text Normalization (ITN), and Named Entity Recognition (NER).

This approach has two major flaws:

  1. Cascading Errors: If the ASR model makes a mistake, that error propagates through every subsequent stage, often worsening the final result.
  2. Complexity and Latency: Maintaining multiple models increases system complexity and computational overhead.

The CPPF (Contextual and Post-Processing-Free) framework addresses these issues by handling these tasks "in-situ" during the decoding process, inspired by the multi-functional capabilities of Large Language Models (LLMs).

Architecture and Methodology

The CPPF model utilizes a standard Transformer or Conformer encoder-decoder architecture, augmented with a CTC (Connectionist Temporal Classification) module to enhance the encoder's speech representation. The core innovation lies in its multi-task training format, which treats the decoder as a promptable language model.

  • Task Specifiers: Before the <SOT> (Start of Token) marker, the model is fed special tokens (e.g., <PUNC>, <KWR>, <ITN>, <BIAS>) that act as prompts, instructing the decoder which tasks to perform.
  • Contextual ASR (Prompting): Unlike traditional systems using separate bias encoders, CPPF inserts the bias word list directly into the decoder’s initial tokens. This leverages the internal attention mechanism to "look up" relevant terms from the prompt.
  • Inline Tagging: For Keyword Recognition (KWR), the model learns to wrap specific words in <kw> and </kw> tags directly in the output string.
Overview of the CPPF architecture and multi-task training examples.

Experimental Setup

The model was trained and evaluated on Aishell-2, a massive dataset containing 1,000 hours of Chinese spoken data. Performance was measured using Character Error Rate (CER) for ASR, Precision/Recall/F1 for PUNC and KWR, and Sentence Accuracy (SA) for ITN. CPPF was benchmarked against a "Baseline + Pipeline" approach and specialized models like E2E speech NER.

Key Results and Analysis

CPPF demonstrated that integrating post-processing tasks does not degrade recognition performance; in fact, it slightly improved it. The model achieved a CER of 6.92% (Transformer) and 6.33% (Conformer), outperforming the baseline ASR-only models (7.08% and 6.40%, respectively).

Comprehensive performance comparison and ablation study results.

Key findings include:

  • Contextual ASR Effectiveness: When provided with a bias list, the model achieved a 96.57% recall rate for specific words, validating the prompting approach.
  • ITN Superiority: In Inverse Text Normalization, CPPF (61.92% SA) slightly outperformed the rule-based pipeline (61.46% SA).
  • Task Interdependency: Ablation studies (shown in the table above) indicate that removing one task (like PUNC) can cause fluctuations in ASR performance. This suggests that learning to punctuate or normalize text helps the model better understand the linguistic structure of the speech.

Conclusion and Future Work

CPPF successfully eliminates the need for complex multi-stage pipelines by producing "ready-to-use" text directly from audio. While it slightly trails pipeline methods that use massive pre-trained models (like RoBERTa) for punctuation, it is significantly more efficient and easier to deploy. Future work will explore integrating pre-trained language models and scaling the number of tasks to further investigate the deep relationships between different text-processing objectives.

Summary updated

BibTeX
@misc{zhang2023cppf,
  author = {Lei Zhang and Zhengkun Tian and Xiang Chen and Jiaming Sun and Hongyu Xiang and Ke Ding and Guanglu Wan},
  title = {{CPPF: A contextual and post-processing-free model for automatic speech recognition}},
  year = {2023},
  eprint = {2309.07413},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2309.07413},
}
Figure