User-perceived Latency

User-perceived latency (UPL) is defined as the time difference between the instant when the speaker finishes saying a word and the instant when the word appears as a transcript on a screen. In practice, it can be measured by streaming audio to a server live and measuring the response time for each word. The performance page gives each model’s UPL.

UPL is the sum of the following latencies:

  • audio frame latency (recording-device/model)
  • compute latency (model)
  • network latency (network)
  • emission latency (model)

Audio Frame Latency

Streaming ASR systems buffer audio for a fixed duration before sending it to the server. The buffer length is typically set to match the audio chunk length used during training. CAIMAN-ASR models were trained on audio chunks of 60 ms. However, the end of the word can appear anytime during buffering, which means that its contribution is half the audio frame length on average (30 ms for CAIMAN-ASR).

Compute Latency

The compute latency measures how long it takes for a model to make a prediction for one audio frame. This latency depends on the model size, accelerator backend, server load, decoding strategy, and whether state resets is turned on. The contribution of the compute latency is strictly additive. The performance page gives each model’s 99th-percentile compute latency (CL99) at its public number of real-time streams for an FPGA backend, with and without state resets.

Network Latency

The network latency corresponds to sending the audio chunk to the server and receiving a response back. The contribution of the network latency is roughly equal to the round-trip response time, as measured using ping. In case the solution is deployed on-premise, the expected value is well below 1 ms. In the case the solution is deployed on cloud, the network latency can exceed 100 ms.

Emission Latency

The emission latency (EL) is explained in detail in this document. Together with the network latency, it is the only latency the user can directly influence, as explained in the delay penalty doc. Its contribution is strictly additive. The table below gives each model’s median emission latency, averaged across the HF Leaderboard evaluation datasets.

ModelDecodingMedian EL (<pnc>)Median EL (<nopnc>)
basegreedy192 ms175 ms
basebeam192 ms173 ms
largegreedy162 ms135 ms
largebeam150 ms125 ms
extra-largegreedy122 ms90 ms
extra-largebeam115 ms88 ms