The Cost Challenge of Large-Scale ASR Inference

Deploying Automatic Speech Recognition (ASR) at scale presents a significant cost challenge. Beyond achieving low latency, the primary driver for reducing inference expenses is maximizing the throughput extracted from each GPU. A common bottleneck is the inefficient utilization of GPU resources when a single model instance is dedicated to a single GPU, even when that GPU is not fully saturated. This post details how a collaboration between AWS, NVIDIA, and Heidi leveraged NVIDIA Multi-Process Service (MPS) on Amazon EC2 instances to dramatically cut inference costs, achieving up to a 75% reduction.

The core problem is that, for many inference workloads, a single GPU can handle multiple requests concurrently without a substantial increase in latency. Traditional approaches often lead to underutilization, as a GPU might be idle for significant portions of time. To address this, several GPU sharing strategies exist:

  • Time-slicing: This method interleaves work from multiple processes on the same GPU. While effective, it can introduce overhead and complexity in managing the scheduling.
  • MIG (Multi-Instance GPU): Supported by certain NVIDIA GPUs, MIG partitions a GPU into smaller, isolated instances. This provides dedicated resources but can be less flexible if the workload doesn't neatly fit the available partitions.
  • MPS (Multi-Process Service): MPS allows multiple processes to share a single GPU by providing a lightweight, low-latency mechanism for them to submit inference requests. It bypasses the typical overhead of CUDA context switching, enabling higher concurrency and better GPU utilization.

For ASR inference, where models can be computationally intensive but also benefit from batching and parallel processing, MPS emerged as the most promising solution to drive down costs by maximizing GPU utilization.

Implementing NVIDIA MPS for ASR on EC2

The setup involved deploying an ASR pipeline on Amazon EC2 instances equipped with NVIDIA GPUs. The goal was to run multiple inference requests in parallel on a single GPU, facilitated by MPS. This approach is particularly effective for ASR because inference requests, while requiring significant computation, can often be batched or processed concurrently without severely impacting the end-user experience, provided the overall throughput is high.

Heidi, an AI company focused on speech technology, partnered with AWS and NVIDIA to implement and validate this strategy. The key was to identify the optimal configuration of MPS to achieve the highest possible throughput per GPU while maintaining acceptable latency thresholds. This involved careful tuning of parameters related to MPS server settings, batch sizes, and the ASR model itself.

Jerron Chua, a Deep Learning Architect at the Generative AI Innovation Center at Amazon Web Services (AWS), provided critical insights into optimizing the deployment on AWS infrastructure. The collaboration focused on understanding the interplay between the EC2 instance type, the GPU model, the NVIDIA driver versions, and the MPS configuration.

The success of this implementation hinges on the ability of MPS to efficiently manage multiple inference requests. Instead of each request needing to spin up its own CUDA context and potentially contend for GPU resources in a less managed way, MPS provides a unified server that handles requests from different processes. This shared service minimizes overhead, allowing the GPU to spend more time performing actual computations rather than managing context switches.

Diagram illustrating how NVIDIA MPS enables multiple inference processes to share a single GPU efficiently.

Quantifying the Cost Savings

The most compelling outcome of this initiative is the dramatic reduction in inference costs. By enabling a single GPU to serve significantly more inference requests concurrently, the number of GPUs required to handle a given workload is reduced. This translates directly into lower operational expenses.

The reported cost reduction of up to 75% is substantial. This saving is achieved by moving from a model where each GPU might only be utilized at 20-30% capacity for a single-model-per-GPU deployment, to one where a single GPU, managed by MPS, can reach 80-90% utilization with multiple concurrent inference tasks. The tradeoff, as noted, is carefully managing the latency-throughput curve. While individual request latency might increase slightly compared to a dedicated GPU, the overall cost per inference drops significantly because many more inferences are completed within the same timeframe and at the same hardware cost.

This scenario highlights a critical point for anyone running AI inference workloads at scale: optimizing hardware utilization is paramount for cost efficiency. Simply throwing more hardware at the problem is often not the most sustainable or economical solution. Techniques like MPS allow for a more intelligent and efficient use of existing resources.

Broader Implications for AI Inference

The success of this ASR inference optimization on AWS EC2 with NVIDIA MPS has significant implications beyond just speech recognition. Any AI inference workload that can benefit from higher concurrency and efficient GPU sharing can potentially see similar cost reductions.

Consider natural language processing (NLP) models, computer vision inference, or recommendation systems. If these models can tolerate a slight increase in individual request latency in exchange for massive gains in overall throughput and cost savings, MPS becomes an indispensable tool. The ability to share GPU resources more effectively means that smaller companies or those with tighter budgets can deploy more sophisticated AI models without prohibitive hardware costs.

Furthermore, this work underscores the value of deep collaboration between cloud providers (AWS), hardware manufacturers (NVIDIA), and end-users or AI companies (Heidi). Such partnerships are essential for pushing the boundaries of AI deployment efficiency and uncovering innovative solutions to complex operational challenges. The Generative AI Innovation Center at AWS plays a crucial role in facilitating these advancements.

For organizations evaluating their AI inference infrastructure, this case study provides a clear blueprint. It demonstrates that by understanding the nuances of GPU sharing technologies like MPS and carefully tuning deployment parameters, substantial cost efficiencies can be realized. The question for many is no longer *if* they can afford to run AI at scale, but *how* efficiently they can do it.