Cost and trust

Token savings and grounding: a short research note

Token cost in agentic systems is often a knowledge problem in disguise. Cut the wrong context and you save money. Ground the agent in the right knowledge and you save money and reduce confident error. The two ideas are closely related.

Back to home · Contact

Direct answer

Why do token savings and grounding belong on the same page?

Because both are downstream of the knowledge layer. If the system retrieves the right knowledge, in the right slice, at the right time, it tends to spend fewer tokens and make fewer ungrounded mistakes. If it does not, it tends to spend more tokens compensating for weak knowledge and still get things wrong. Token savings and grounding are not separate tricks; they are two outcomes of a better knowledge and context design.

Where token cost actually comes from

Token cost is not just "how big is the model." In agentic systems, a lot of cost comes from how knowledge moves through the system.

A model call has an input side and an output side, and both are influenced by knowledge decisions. On the input side, every document chunk you retrieve, every prior turn you include, and every bit of context you paste costs tokens before the model has done anything useful. On the output side, a model that is unsure, or that is trying to compensate for missing knowledge by reasoning harder or by being verbose, can also cost more.

The practical point is that token cost is often not a model-pricing problem first. It is a knowledge-and-context problem:

  • Too much context. Sending more than the task needs is the most direct form of waste.
  • Repetition. Sending the same knowledge repeatedly across turns, or re-embedding and re-retrieving things that did not change, adds cost without adding value.
  • Noisy retrieval. Retrieving a large volume of marginally relevant text and expecting the model to find the one useful fact is expensive and unreliable.
  • Correction loops. A model that gets something wrong because it lacked grounded knowledge often needs more turns to fix it, which is more cost on top of the original mistake.

In other words, some of the cheapest wins in agentic cost are not "use a cheaper model." They are "send less, send better, and ground what you do send."

What grounding means here

Grounding is the practice of tying what the agent says or does to knowledge it can point to. A grounded answer is one you can check against something outside the model's memory: a retrieved document, the current state of a system of record, a verified context slice, or a permissioned source the agent is actually allowed to use.

This matters for two reasons. First, correctness. A model can sound authoritative and still be wrong about something it was never given. Grounding reduces that gap by making the agent work from evidence it has actually been given, and by making that evidence visible when it matters.

Second, trust. A grounded answer is easier to trust because it can be checked. If the agent can say what it relied on, and that thing is current and authoritative, then the answer is not just plausible; it is auditable. That distinction is often the difference between an agent you can use in a real process and an agent you only use in a demo.

Grounding, RAG, and the gap between them

Retrieval-augmented generation is one way to ground an answer. You retrieve external knowledge and include it in the context, so the model has something to work from. That is useful and widely used. But RAG is a technique, and grounding is the goal. They are not the same thing.

A RAG system can still fail at grounding. If the retrieval returns the wrong chunk, or too much noise, or stale knowledge, the model can still produce a confident answer that is not well supported. If the system treats retrieved text as equally authoritative regardless of source or freshness, grounding is weakened. If the system cannot show what it relied on, the answer is less checkable.

The useful distinction is this: RAG is one mechanism for putting knowledge into context. Grounding is the property that the agent's claims are traceable to knowledge that is current, authoritative, and appropriately scoped. You can have RAG without good grounding. You cannot have good grounding without good knowledge and a clear line from claim to source.

A short inventory of grounding techniques

Common grounding-oriented techniques, and what each is good for
TechniqueWhat it helpsWhere it can fall short
Retrieve and citeTying an answer to specific retrieved passagesDepends on retrieval quality and freshness; citations can be wrong if the retrieval is wrong
Curated context slicesReducing cost and noise by sending only what the task needsRequires good selection; a bad slice is worse than a larger one
Tool-grounded actionsGrounding actions in a system of record rather than in the model's memoryOnly as good as the tool and its data; does not help if the tool is the wrong one
Verification after generationCatching obvious errors by checking the output against a sourceAdds a step; not a substitute for getting the knowledge right in the first place
Refusal when ungroundedPreventing confident error by saying "I do not know" when the evidence is missingRequires the system to recognize when it lacks grounding; easy to under- or over-use

No single technique is the answer. Grounding is usually a combination: retrieve well, scope tightly, prefer authoritative sources, make the chain visible, and know when not to answer.

Where to go next

Frequently asked questions

From the knowledge the system moves, reads, and reasons over. Every document chunk you retrieve, every turn of conversation you keep, every long context you send, and every time you make the agent re-read something it already knew all consume tokens. A lot of cost is therefore a knowledge problem: sending too much, sending it repeatedly, or sending the wrong knowledge and then correcting it with more tokens.

Grounding is the practice of tying what the agent says or does to knowledge it can point to: retrieved documents, system-of-record state, verified context, or other evidence the agent is actually allowed to use. A grounded answer can be checked against something outside the model's memory. An ungrounded answer may sound right and still be wrong.

Grounding can reduce cost when it replaces long, generic context with a smaller, more relevant slice. If the agent retrieves exactly the knowledge it needs and does not carry around a large volume of unneeded text, it spends fewer tokens on reading and re-reading. Grounding also reduces the cost of getting things wrong, because a confident mistake is often more expensive than the retrieval that would have prevented it.

Not exactly. Retrieval-augmented generation is one way to ground an answer: you retrieve external knowledge and include it in the context. Grounding is the broader goal of making the agent's claims traceable to evidence. RAG can fail at grounding if the retrieval is poor, the context is noisy, or the agent treats everything it retrieved as equally authoritative. Grounding is the aim; RAG is one technique for it.

Sources and further reading

  1. Retrieval-Augmented Generation for Large Language Models: A Survey — background on RAG stages (naive, advanced, modular) and retrieval augmentation patterns. arxiv.org/abs/2312.10997
  2. A Survey on RAG Meets LLMs: Towards Retrieval-Augmented Large Language Models — overview of retrieval, augmentation, and generation integration. arxiv.org/abs/2405.06211
  3. Cost-Aware Query Routing in RAG: Empirical Analysis of Retrieval Depth Tradeoffs — cost/quality tradeoffs in retrieval depth and token billing. arxiv.org/abs/2606.02581
  4. Cost-Aware Retrieval-Augmentation Reasoning Models with Adaptive Retrieval Depth — latency and token cost observations in retrieval-augmented reasoning. arxiv.org/abs/2510.15719