Token Gravity

Bulky or salient tokens warping subsequent next-token probabilities toward themselves.

Tell someone "don't think of a pink elephant" and you have already lost. The phrase is now the most vivid thing in their head, and their next thoughts bend toward it.

Agents have their own version. A model writes each next token based on everything in its context, so whatever is large or striking there tends to shape what comes next. Drop a 300-line stack trace, an all-caps warning or a long error dump into the window, and the following turns bend toward it. The agent quotes it, reasons about it and plans its next call around it, even when it has little to do with the task. The Guide calls this pull token gravity. Mass comes from size, from salience (emphasis, formatting, repetition) and from the agent's own earlier words, which it tends to treat as settled.

In practice

A CI agent is fixing a failing build. In this example the test run returns about 2,400 lines, and most of them are one deprecation warning from a logging library, repeated:

WARN  [legacy-logger] configure() is deprecated and will be removed in v5
WARN  [legacy-logger] configure() is deprecated and will be removed in v5
... 310 more ...
FAIL  test_invoice_rounding  expected 10.05, got 10.04

The agent spends its next four turns upgrading the logging library. The line that mattered, a rounding bug, was one line under 312 copies of a warning. The warning had more mass, so it set the agenda.

Here is the same run after the test tool collapses repeats and leads with failures:

1 failed, 211 passed
FAIL test_invoice_rounding: expected 10.05, got 10.04 (tests/billing/test_round.py:48)
warnings: 1 distinct (legacy-logger deprecation, x312) · full log: log_7f2

Nothing was hidden. The warning is still reported, once, with its count and a handle to the full log. It simply no longer outweighs the failure.

Why it matters

Gravity decides where the agent spends its next turns. Heavy noise produces off-task work that looks plausible: the logger upgrade above might even pass code review. Mistakes have mass too. A wrong guess or a long failed attempt that stays in the window keeps pulling later reasoning back toward it, which is how one bad turn becomes several.

What to do about it

H-03 Token Hygiene & High Observation Yield controls mass at the source by deduplicating, summarizing and pointing to full output instead of pasting it. H-10 Poka-Yoke Boundaries rejects malformed calls inside the tool, so a preventable mistake never lands in context as a heavy error dump. H-14 Memory Metabolism removes heavy blocks once they have served their purpose.

Context poisoningLexicon · 21Context PoisoningAn early hallucination or error repeatedly re-referenced in later turns. is token gravity attached to a falsehood: a wrong claim keeps getting re-used because it is there and it is heavy. Attention geometryLexicon · 14Attention GeometryPositional layout of information across primacy, middle and recency zones. is about where a block sits, while gravity is about how heavy it is, and a heavy block at the end of the window has both working for it. Observation yieldLexicon · 25Observation YieldUseful, decision-relevant signal per token returned by a tool. is the counterweight, because a high-yield response spends its mass on the lines that matter.

esc

Try “tokens”, “errors”, “stale”, “handoff” or “blast radius”.