Cut LLM Inference Latency Without a Model Upgrade
A common story in enterprise AI: a generative AI copilot launches to thousands of internal support agents for ticket summarisation, knowledge-base lookups and draft responses. The feature is technically live. It is also, by any honest measurement, unusable.
Agents are not using it, for a simple and unromantic reason: when the P95 response time is several seconds, the assistant arrives after the agent has already typed the answer. Adoption stalls, and the internal verdict is that the model is the problem and the team needs the next frontier release.
The model is rarely the problem. This article walks through an illustrative scenario showing how we would diagnose and fix a slow LLM copilot without a model upgrade. The figures are representative examples used to explain the method; they do not describe a specific client engagement.
The typical starting point
The architecture is usually the standard 2025-era enterprise RAG stack, assembled by a competent team under time pressure. Requests flow from the agent console to an API gateway, to an orchestration layer running on a managed serverless platform, into a retrieval step against a vector database, then into a frontier-tier LLM via the vendor's API, then back through a post-processing step that runs a separate moderation call. Nothing is unusual. Everything is slow.
The team's instinct is to look at the model. Start where the time actually is — which, almost without exception in these reviews, is not where teams expect.
Where the time usually goes
Instrument the full call path with distributed tracing and run a couple of weeks of production traffic through it. In a stack like this, the breakdown typically looks something like this:
- Cold starts on the orchestration layer. The serverless platform provisions a fresh container on a share of requests, and each cold start adds a second or more before any meaningful work begins.
- Sequential retrieval. Three separate retrieval calls — vector search, a keyword search and a metadata lookup — run one after the other, so their latencies add up even though the actual database work is a fraction of the total.
- Full-response generation. The frontend waits for the model to finish before rendering anything. A few hundred tokens at typical generation speeds means several seconds of dead air on long responses.
- Post-processing moderation. A second LLM call to a separate moderation model runs serially after generation, adding hundreds of milliseconds to most requests.
- The model itself. First-token latency from the vendor is often the smallest, not the largest, component of total latency.
A procurement case for a faster model would reduce one of the smaller components of the latency budget while leaving the larger ones intact.
What to change
Work through the call path in roughly the order the time is being spent. Make each change independently measurable and ship them in sequence so the gains can be attributed correctly.
1. Kill the cold starts
Move the orchestration layer off the serverless platform and onto a small autoscaled service running on the existing AI deployment architecture cluster, with minimum replicas pinned to cover off-peak traffic plus headroom. At this scale the cost difference is usually negligible, and the cold-start tail disappears.
2. Parallelise retrieval
If the retrieval calls have no dependencies between them, fan them out concurrently and merge the results downstream. The retrieval step is then dominated by the slowest call rather than the sum of all three.
3. Switch to streaming with incremental rendering
Usually the single highest-impact change. Switch the model call to streaming, and the frontend to render tokens as they arrive with a subtle indicator that generation was still in progress. Time-to-first-useful-token becomes the perceived latency, not time-to-last-token, which transforms how fast long responses feel.
This requires real frontend work — handling partial markdown, partial code blocks, abort semantics, and the moderation step (more on that below). It is the kind of change that gets deferred because it touches three teams. It is also the change that matters most.
4. Restructure moderation
A blocking post-generation moderation call is often the second-largest opportunity. Split it into two paths: a fast input-side classifier that runs in parallel with retrieval, and a streaming output-side classifier that runs concurrently with generation and can interrupt the stream if a violation is detected. Moderation overhead falls to a few tens of milliseconds, and the catch rate on prompt-injection attempts can actually improve because the input-side check now runs on every request.
5. Add a semantic cache for the obvious cases
Support work has long tails of near-duplicate questions. A semantic cache with a tight similarity threshold and short TTL, sitting in front of the model call, can absorb a meaningful share of traffic in milliseconds. Cache misses fall through to the normal path with no measurable overhead.
6. Route by complexity
In support workloads, many requests are short factual lookups against the knowledge base. A lightweight classifier can route those to a smaller, faster model — same vendor, one tier down — while leaving long-form drafting on the original model. Check that evaluation scores hold on the routed traffic; when they do, that segment gets faster and cheaper at the same time.
What teams commonly get wrong
Three patterns sit underneath slow AI copilots.
- Treating latency as a model problem. The model is often only a minority of the latency budget. The rest is system design. Teams default to upgrading the model because it feels like progress; it rarely is.
- Measuring the wrong latency. P95 of the API call is not the number that matters. Time-to-first-useful-token from the user's perspective is. The two can differ by several seconds.
- Sequential work that doesn't need to be sequential. Slow AI systems very often have retrieval, moderation, or enrichment steps running in series for no reason other than the order they were written.
How to measure success
Set baselines before you change anything: P95 and P99 latency, time-to-first-useful-token, agent adoption and per-request cost. Then re-measure after each change. No frontier model upgrade, no vendor change and no procurement cycle are needed for this work.
Most enterprise AI systems are not slow because the models are slow. They are slow because they were assembled rather than designed. Treating the system as a system — with the same engineering discipline as any other latency-critical production service — is almost always the answer.
If your AI assistant has poor adoption and the working theory is "the model is too slow", it is worth one week of real instrumentation before you spend a quarter on a procurement decision. The bottleneck is usually somewhere quieter, and it is usually fixable.