Technology

4 million tokens for 40 cents — the economics of RAG just changed

4 million tokens for 40 cents — the economics of RAG just changed
Image: The New Stack

The economics of long-context inference have shaped how developers architect AI agents. Cheaper multimillion-token inference could reduce context management outside the model, simplifying the infrastructure developers need to maintain.

On Wednesday, Subquadratic announces the general availability of SubQ Savant, a reasoning model with a 4-million-token context window that costs approximately 40 cents to fill with uncached input. The company charges $0.10 per million input tokens, $0.50 per million output tokens and $0.01 per million cached input tokens, regardless of prompt length.“a big leap toward replacing Transformer-based LLMs.”Subquadratic co-founder and CEO Alex Whedon describes Savant on X as “a big leap toward replacing Transformer-based LLMs,” encouraging developers to start “contextmaxxing and tokenmaxxing.”A 4M-token context windowSavant achieves 92.6% on RULER at 4 million tokens, according to Subquadratic, with a median time to first token of 45 seconds for uncached input, compared with 10.28 seconds at 1 million tokens.

Subquadratic’s 12-million-token context window announced in May remains a research result. Developers can access Savant through the company’s OpenAI-compatible API using subq-savant-1.4, with support for function calling and structured outputs.

Linear scaling, lower computeSavant builds on the company’s Subquadratic Sparse Attention (SSA) architecture, which dynamically selects token positions for attention based on their content.

Both token selection and attention computation scale linearly with sequence length, according to Subquadratic. At 4 million tokens, dense grouped-query attention requires 575 times as many floating-point operations per attention layer during prefill as SSA.

Attention accounts for less than 20% of Savant’s latency across all supported context lengths, Subquadratic tells The New Stack. At 1 million tokens, the company says attention still dominates latency even with architectures such as DeepSeek’s sparse attention.“Every token of the text is being seen by the model,” Whedon tells The New Stack in a July interview. “It’s just not being redundantly compared to every other token of the text.”Subquadratic trains Savant directly on multimillion-token sequences rather than relying on generalization from shorter contexts. Researchers use graph-based synthetic data generators to construct documents with programmatically verifiable answers that require the model to synthesize evidence across the input.

Savant scores 98% at 128,000 tokens on RULER, with most of its performance degradation occurring after 2 million tokens. The model also scores 68% on LongBench V2 and 84.5% on Artificial Analysis’ long-context reasoning benchmark, AA-LCR, according to company-reported results.“Teams will keep everything and trim only when they have a reason, instead of trimming to afford the model.”For workloads that fit within Savant’s context window, the company expects much of the infrastructure dedicated to context management to become unnecessary.“Compaction, summarization and eviction exist because keeping everything has been too expensive, and each one throws information away before the model knows whether it needs it,” Subquadratic tells The New Stack.

Existing harnesses designed around smaller context windows will still need adapting.“Teams will keep everything and trim only when they have a reason, instead of trimming to afford the model,” the company says.

The hallucination tradeoffSubquadratic researchers found that Savant tended to get stuck in reasoning loops when it encountered ambiguous or insufficient evidence. A token-level preference optimization technique helped the model break out of those loops but increased hallucinations because Savant sometimes stopped searching before it had enough evidence to answer.

To address this, researchers developed a technique called competence-anchored calibration that estimates the model’s ability to answer a question through repeated response sampling during training. They combine it with preference optimization and reinforcement learning to penalize incorrect answers more heavily than appropriate abstentions.

The company’s launch materials do not quantify the increase in hallucinations or the effectiveness of its calibration technique.

Caching changes the mathAt nearly 4 million input tokens per call, 100 requests would cost about $40 in input charges without caching or $4.36 if the cache hits in full after the first request.

Savant automatically caches the unchanged prefix of an agent’s history as subsequent turns extend the context.“Change something early in the context and everything after it is recomputed, which is one more reason to stop compacting.”“Change something early in the context and everything after it is recomputed, which is one more reason to stop compacting,” Subquadratic tells The New Stack.

The company has not identified a universal economic crossover point between full-context inference and RAG because the calculation depends on corpus size and query volume.“When the corpus fits in Savant’s 4 million-token window, giving the model everything is simpler, and at these prices it can cost less than running retrieval infrastructure,” the company says.

Retrieval still makes sense for larger corpora and high-volume applications that perform simple lookups, according to Subquadratic. The company has yet to publish end-to-end cost comparisons with conventional RAG pipelines.A context layer for frontier modelsDevelopers are already using Savant as a parallel worker orchestrated by models such as Claude Opus 5.5 within existing harnesses like Claude Code and OpenCode, Subquadratic tells The New Stack.

The company also wants Savant to take on context-intensive work that engineers still largely manage themselves, particularly long-horizon memory across sessions, planning, and code review.

tokenssubquadraticaiinferencecontext

This summary is from The New Stack, published Dec 2, 2026. NewsFusion links to the original reporting and groups related coverage.

Open Source app icon

Find more in the app

Keep reading in Open Source

Get every Open Source story as it breaks, follow the topics you care about, and get alerts the moment something big happens. Free on iPhone and Android.

  • Breaking-news alerts
  • Follow topics & teams
  • Related coverage grouped by AI