Cascaded Encoder ASR Model for Streaming and Non-Streaming Recognition

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Conventional end-to-end automatic speech recognition (ASR) models are limited in their ability to operate efficiently in both streaming and non-streaming modes, often requiring separate models for each application and struggling with accuracy on long-tail proper nouns and rare words due to insufficient training data.

Innovation Solution

A cascaded encoder architecture is introduced, comprising a streaming encoder and a non-streaming encoder, with a shared decoder that can operate in both modes, combined with an on-device neural language model trained on text-only data, allowing for real-time streaming recognition and improved accuracy through contextual awareness.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Device complexity

If a single E2E model is used for both streaming and non-streaming applications, then device complexity is reduced, but performance accuracy deteriorates due to inability to optimize for specific application requirements

Engineering Contradiction:
Improvemodel architectureVSAvoidrecognition accuracy
Core Design Contradiction:
Device complexityVSMeasurement precision

Solution Approach 1:

The model is segmented into two distinct encoder paths: a streaming encoder for real-time applications and a non-streaming encoder for offline applications. Each encoder is optimized for its specific application type, allowing the system to maintain high accuracy for both streaming and non-streaming tasks while using a single unified model architecture.

Inventive Principle:
Principle #1Segmentation

2Loss of time

If streaming mode is used for real-time recognition, then latency is reduced, but accuracy on rare words and long-tail proper nouns deteriorates due to limited context availability

Engineering Contradiction:
Improverecognition latencyVSAvoidrare word recognition accuracy
Core Design Contradiction:
Loss of timeVSMeasurement precision

Solution Approach 1:

The streaming encoder is designed with local quality optimization, using causal convolution and attention mechanisms that are specifically tailored for real-time processing. This allows the encoder to maximize accuracy within the constraints of limited context availability, improving rare word recognition performance in streaming mode without requiring future context.

Inventive Principle:
Principle #3Local quality

3Measurement precision

If non-streaming mode is used with future context, then accuracy on rare words and long-tail proper nouns is improved, but latency increases due to requirement of complete audio input

Engineering Contradiction:
Improverare word recognition accuracyVSAvoidrecognition latency
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The non-streaming encoder employs dynamic bidirectional processing that can adaptively utilize future context when available. The model dynamically adjusts its processing based on whether complete audio input is available, allowing it to achieve high accuracy on rare words and long-tail proper nouns by leveraging contextual information from the entire audio sequence when operating in non-streaming mode.

Inventive Principle:
Principle #15Dynamics

4Productivity

If E2E models are trained on limited audio-text pairs, then training efficiency is improved, but performance on long-tail proper nouns and rare words deteriorates due to insufficient training data

Engineering Contradiction:
Improvetraining efficiencyVSAvoidlong-tail word recognition accuracy
Core Design Contradiction:
ProductivityVSMeasurement precision

Solution Approach 1:

The model is trained with multi-functionality in mind, using a unified architecture that can handle both common and rare words effectively. The training process incorporates techniques that enable the model to generalize better to long-tail proper nouns and rare words, allowing it to maintain high performance on these challenging cases even when trained on limited audio-text pairs, thus improving both training efficiency and rare word recognition accuracy.

Inventive Principle:
Principle #6Universality (Multi-functionality)

Data Source

PatentUS20240371363A1Efficient streaming non-recurrent on-device end-to-end model
Publication Date: 2024.11.07 GOOGLE LLC
  • US20240371363A1 patent drawing
  • US20240371363A1 patent drawing
  • US20240371363A1 patent drawing

AI summary

An ASR model includes a first encoder configured to receive a sequence of acoustic frames and generate a first higher order feature representation for a corresponding acoustic frame in the sequence of acoustic frames. The ASR model also includes a second encoder configured to receive the first higher order feature representation generated by the first encoder at each of the plurality of output steps and generate a second higher order feature representation for a corresponding first higher order feature frame. The ASR model also includes a decoder configured to receive the second higher order feature representation generated by the second encoder at each of the plurality of output steps and generate a first probability distribution over possible speech recognition hypothesis. The ASR model also includes a language model configured to receive the first probability distribution over possible speech hypothesis and generate a rescored probability distribution.