# Why Inference Margins Rose Despite Higher Compute Costs

**Author:** WEKA

**Published:** December 2, 2026

![A pair of sleek metallic chopsticks resting on an exposed computer processor against a dark background.](https://cdn.sanity.io/images/ult5g8gw/production/a514680b948ddbe5de838e31168d0081a949e15c-1376x768.jpg)

## TL;DR

Discover how reusing context helped inference providers improve margins even as compute costs rose.

- Cache prior context instead of processing it again at every turn.
- Cut the cost of serving AI agents by more than half without adding GPUs.

Something happened to inference economics over the past year that shouldn’t have happened.

GPUs didn’t get cheaper. Power didn’t get cheaper. Demand didn’t soften; if anything, it went vertical with capacity staying scarce enough that nobody serving tokens had a comfortable quarter.

And yet gross margins on serving these tokens went _up_. Although growth was uneven across frontier labs, big clouds, and independent API providers — [sharp for some, modest for others](https://pitchbook.com/news/articles/anthropics-gross-margin-ipo) — all trended in the same direction.

When margins move in the opposite direction from input costs, that’s not a pricing story. Something changed in how the work gets done.

## Confirming the anomaly is real

We’re not the only ones making this claim, which matters.

At [RAISE Summit 2026](https://www.linkedin.com/company/raise-summit/), [SemiAnalysis](https://www.linkedin.com/company/semianalysis/) founder [Dylan Patel](https://www.linkedin.com/in/dylanpatelsa/) laid out a year of margin expansion across the industry: The labs turning their first real profits, the hyperscalers posting gross margin beats on the back of their inference businesses, the API providers showing rising margins in their funding rounds. Pricing power explains part of it. Demand is outrunning capacity everywhere, and scarcity lets you hold your rate.

It doesn't explain all of it. You can’t raise prices into a market where open-weight alternatives cost a fraction and buyers are actively routing around you. Something on the cost side moved, too.

## Ruling out the easy answers

It wasn’t cheaper hardware. The newest accelerators command a premium and the queue for them hasn’t shortened.

It wasn’t softer demand. Every operator we talk to is capacity-constrained, not demand-constrained.

And it wasn’t model efficiency alone. Smaller and better-distilled models help, but they arrived alongside agentic workloads that push vastly more context per request, which should have swamped the savings.

That last one is the thread worth pulling because agentic workloads didn’t simply increase the volume of work; they changed which half of the work is expensive.

## The expensive half stopped getting recomputed



Two years ago, [inference was mostly about decode](/learn/ai-ml/prefill-and-decode/), with the model generating tokens one at a time in response to a short prompt. Prefill, the work of processing the context before token generation starts, was the cheap half.

Agents inverted this ratio completely. “We’re seeing the context length is oftentimes 30,000, 100,000 tokens into the context of a model, and you may only generate 1,000 tokens,” Dylan said.

Per token, prefill is cheaper than decode. But at these ratios, it stops mattering and prefill becomes the dominant cost of serving the request. And because every turn in a multi-turn session has to account for every token before it, the work compounds. During the same discussion, WEKA co-founder and CEO [Liran Zvibel](https://www.linkedin.com/in/liranzvibel/) put it plainly: “If you have a 10-turn or 20-turn flow, it’s quadratic, so you have to go and recalculate 100 times or 400 times between the 10 and the 20, the same tokens over and over.”

None of this recomputation produces anything. It’s the same context, processed again, on the most expensive hardware in the building, while the GPU that could be generating new output waits its turn. Liran’s measurement of what that looks like underneath? “When you're looking at GPU yield, or how many of the cores are being used for inference, most of the chips are actually wasted.”

So here's the forensic answer. The operators whose margins improved are the ones who stopped paying for that work twice. Dylan described the mechanism, and named who's building it:



“One of the things that WEKA as well as many others are doing is now you calculate that once, you store it off in memory, whether it be system memory or storage, and then you pull it back in when you run the turn. And so now you have a massive decrease in cost because you don't actually have to do the prefill again.”

What used to be a recurring charge on your most expensive hardware became a lookup.

👉 Want to learn more about what’s driving the inference economy? Watch this [video](/video/the-inference-economy-runs-on-weka).

## What’s actually new here

We’ve sounded the alarm about the [memory wall](/learn/ai-ml/ai-memory-wall/) and the importance of understanding [key-value (KV) cache](/learn/ai-ml/what-is-kv-cache/) in WEKA Wire more than once, and it’s not just a warning anymore (👉 check out this [paper from PwC](https://arxiv.org/pdf/2601.06007) for a technical breakdown). It’s measured, in production, at a threshold nobody could credibly claim two years ago.

“We’re seeing cache hit rates above 95% for many agentic workflows. Which means the cost for a cache hit is not free, but it’s way, way cheaper than these very expensive GPUs,” Dylan said.

Dylan put the savings at more than half the cost of serving an agentic workload without buying a single additional GPU. This is the margin expansion. Not a clever pricing strategy, not a favorable hardware cycle. The [same workload, costing meaningfully less](https://www.digitalocean.com/community/conceptual-articles/prompt-caching-in-practice-hit-rate) to serve because the redundant work was eliminated.

The number to know about your own operation is what share of your GPU cycles produce something new versus reproducing context you already had. Whatever the second figure is, that’s the margin sitting on the table.

## The margin gap is now an architecture gap

The uncomfortable implication of a year when inference margins rose is that the rise wasn’t evenly distributed. Some operators captured it. Others watched their cost per token stay flat while their GPUs looked fully utilized. And they were busy, but busy redoing work.

Dylan’s conclusion, from a firm that benchmarks this hardware continuously and sells none of it, is that buying the newest accelerator alone won’t get you there. Storage and memory are now part of the inference economics equation, not adjacent to it.

The good news is the fix doesn’t require a hardware cycle, a model change, or a price increase. It requires not computing the same thing twice.

👉 Get more insights from Liran and Dylan's conversation in [this video](/video/why-ai-inference-margins-are-suddenly-getting-better).
