Streaming ASR Latency Tuning With Chunked Self-Attention

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Existing streaming APIs for automatic speech recognition (ASR) face a tradeoff between latency and recognition performance, with sub-second latency leading to a 30% relative reduction in word error rate, failing to meet varying use case requirements for latency and transcription quality.

Innovation Solution

Implementing a chunk-based self-attention mechanism that segments utterances into chunks with a hop size of 50%, allowing the model to attend to current and past frames, with dynamic chunk sizes influenced by a tunable latency parameter, enabling flexible latency and accuracy adjustments.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Loss of time

If streaming ASR processes audio in real-time with limited context, then latency is reduced, but transcription accuracy deteriorates with more than 30% relative reduction in word error rate

Engineering Contradiction:
ImprovelatencyVSAvoidtranscription accuracy
Core Design Contradiction:
Loss of timeVSMeasurement precision

Solution Approach 1:

The system dynamically adjusts the context window size based on the latency parameter. When latency is reduced, the context window is limited to only past and current frames. When latency is increased, the context window can include future frames, allowing the model to access more contextual information for improved accuracy.

Inventive Principle:
Principle #15Dynamics

Solution Approach 2:

The invention changes the latency parameter to control the tradeoff between speed and accuracy. By adjusting this parameter, users can specify how much forward context should be available, enabling the system to adapt to different use case requirements without retraining the model.

Inventive Principle:
Principle #35Parameter changes

2Measurement precision

If batch transcription processes complete audio files, then transcription accuracy is improved, but latency increases making it unsuitable for real-time applications

Engineering Contradiction:
Improvetranscription accuracyVSAvoidlatency
Core Design Contradiction:
Measurement precisionVSLoss of time

Solution Approach 1:

The ASR model is designed to serve multiple functions: it can operate in streaming mode with limited context for low-latency applications, or in batch mode with full context for high-accuracy applications. The same model handles both scenarios by adjusting the context window based on the latency parameter.

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

3Productivity

If streaming ASR uses limited context to improve latency, then processing speed increases, but performance degradation occurs with 30% relative reduction in word error rate

Engineering Contradiction:
Improveprocessing speedVSAvoidperformance
Core Design Contradiction:
ProductivityVSReliability

Solution Approach 1:

The system dynamically adjusts the context window size based on the latency parameter. When latency is reduced, the context window is limited to only past and current frames. When latency is increased, the context window can include future frames, allowing the model to access more contextual information for improved accuracy.

Inventive Principle:
Principle #15Dynamics

4Loss of time

If existing streaming APIs optimize for sub-second latency, then real-time processing is achieved, but transcription quality deteriorates failing to meet diverse use case requirements

Engineering Contradiction:
ImprovelatencyVSAvoiduse case flexibility
Core Design Contradiction:
Loss of timeVSAdaptability or versatility

Solution Approach 1:

The invention changes the latency parameter to control the tradeoff between speed and accuracy. By adjusting this parameter, users can specify how much forward context should be available, enabling the system to adapt to different use case requirements without retraining the model.

Inventive Principle:
Principle #35Parameter changes

Solution Approach 2:

The ASR model is designed to serve multiple functions: it can operate in streaming mode with limited context for low-latency applications, or in batch mode with full context for high-accuracy applications. The same model handles both scenarios by adjusting the context window based on the latency parameter.

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

Data Source

PatentUS12505827B1Customizable latency for automatic speech recognition
Publication Date: 2025.12.23 AMAZON TECH INC
  • US12505827B1 patent drawing
  • US12505827B1 patent drawing
  • US12505827B1 patent drawing

AI summary

Techniques for customizable latency, from the customer's side, for automatic speech recognition (ASR) are described. In particular, the customer may specify a parameter that controls how fast or how slow the customer's media content will be streamed or processed. Slower processing means higher accuracy, with near real-time latency, while faster processing means lower accuracy, but offers much lower latency (e.g., less than 600 ms). Enabling tuning of the latency-versus-accuracy tradeoff of the ASR system offers customers the flexibility to meet varying needs for different ASR applications.