Wednesday, December 2, 2026
Tech

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

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 window

Savant 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.

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

Linear scaling, lower compute

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.

Subquadratic tells The New Stack that attention accounts for less than 20% of Savant’s latency across all supported context lengths, whereas architectures such as DeepSeek’s sparse attention spend the majority of their latency on attention at million-token context lengths, according to the company.

“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.”

Subquadratic expects much of the infrastructure dedicated to context compaction and eviction to become unnecessary for workloads that fit within Savant’s context window.

“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,” the company tells The New Stack.

Existing harnesses designed around smaller context windows will still require modifications, but Subquadratic expects developers to retain more of an agent’s original history.

“Teams will keep everything and trim only when they have a reason, instead of trimming to afford the model,” the company tells The New Stack.

The hallucination tradeoff

Subquadratic 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.

Caching changes the math

At 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.

Caching is automatic in Savant, and the unchanged prefix of an agent’s history remains eligible for the cached input rate as subsequent turns extend the context. Compaction, however, can invalidate part of that cache.

“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,” Subquadratic tells The New Stack.

Retrieval remains economical for larger corpora and high-volume applications that perform simple lookups, according to Subquadratic. The company has not published end-to-end cost comparisons with conventional RAG pipelines.

A context layer for frontier models

Subquadratic tells The New Stack that developers are already using Savant as a parallel worker orchestrated by other models, such as Claude Opus 5.5. The model integrates with existing coding agent harnesses, including Claude Code and OpenCode, according to the company.

Subquadratic sees an opportunity to automate context-intensive software engineering work that still depends heavily on human involvement.

“These include managing long-horizon memory across sessions, planning, and code review,” the company says.

Subquadratic could capture a substantial portion of coding agents’ inference spending without having to outperform the models developers already use for implementation.

AI Engineer Step by step guide to becoming an AI Engineer in 2026 Introduction Working With LLMs Context Engineering AI Models Embeddings & Vector Databases Embedding Models RAGs AI Agents AI Safety and Ethics Evaluation & Observabiity

Group Created with Sketch.