Signal Over Noise

· 3 min read

Caveman: The Dumbest Idea That Actually Works

Token compression is usually framed as a semantic problem: summarize the conversation, extract the key points, maintain a rolling context window through distillation. Caveman treats it as a typographic problem. It replaces verbose English with abbreviations before the text ever reaches the model. "Without" becomes "w/o". "Configuration" becomes "cfg". "However" becomes "tho". The name is accurate. The approach is crude. For specific production scenarios, it is also correct.

Not universally. The failure modes matter and I'll name them. First, the reason this works at all, because understanding that changes how you deploy it.


Context costs compound in ways the pricing page doesn't surface clearly. When you're running an agentic pipeline at scale, you're not paying for occasional smart conversations. You're paying for the same large system prompt sent across thousands of invocations per hour. A 4,000-token system prompt at Claude Sonnet 4.6 pricing, run 10,000 times a day, becomes a significant infrastructure cost before you've written a single line of application logic. The standard responses are summarization, which requires an LLM call that itself costs tokens and introduces information loss, or truncation, which loses information more bluntly. Caveman offers a third approach: reduce the text's token footprint without altering its information content.

LLMs can process compressed, abbreviated text without meaningful quality degradation. That claim runs against the conventional guidance to write clean, complete English in your prompts. The explanation is in the tokenization. Language models don't read text. They tokenize it first. BPE (byte-pair encoding) and similar algorithms fragment words into subword units before the model's attention mechanism sees anything. "Configuration" becomes something like ["Con", "fig", "ur", "ation"] depending on the vocabulary. "cfg" has its own token representations. Both forms appear millions of times in the training corpus, in contexts where they carry identical meaning. The model has learned to handle both. The question is whether the abbreviated form preserves enough signal for the task at hand.

"meeting w/ pm at 3, need arch doc before then." If a colleague texts you that, you parse it without effort. The grammatical incompleteness is irrelevant because the information density is identical to the full-sentence version. LLMs have developed the same pattern recognition from the same data, because developers write exactly this way in documentation, commit messages, Stack Overflow posts, and code comments constantly. The model isn't confused by abbreviations. It's fluent in them.


The Caveman repository (github.com/JuliusBrussee/caveman) reports 10-20% token reductions depending on input type. Higher numbers come from verbose instructional content. Lower numbers from dense technical text where abbreviation opportunities are rarer. In production pipelines sending the same prompts thousands of times per hour, a 10-20% reduction on the context-heavy portions of your API calls translates directly to billing.

Because abbreviation robustness is a surface-level phenomenon, it holds only where surface-level precision doesn't matter. That distinction is the deployment guide.

The right targets are procedural texts with high information density and low word-level precision requirements. System prompts work well. Multi-step agent instructions work well. Schema definitions and boilerplate context work well. "Please ensure that you respond with a valid JSON object containing the following fields" compresses without meaningful semantic loss. The information is intact; only surface verbosity is gone.

The wrong targets are where the approach starts costing you. Chain-of-thought instructions, nuanced reasoning prompts, any context where specific word choice is doing cognitive work rather than carrying information. If your instruction reads "carefully weigh the tradeoff between latency and throughput against the specific constraints of this deployment environment", compressing that compresses the framing you've constructed. The model receives a degraded instruction set and reasons accordingly. The token savings are not worth the output quality loss.

There's a second failure mode worth naming: consistency across compressed prompts. Caveman applies compression deterministically, which is good for reproducibility within a single call. Across a pipeline with multiple prompt files or dynamic context assembly, you can end up with your system prompt calling something "cfg" while your conversation history or tool descriptions use "configuration". The consistency failure doesn't break pipelines outright. It's the kind of subtle degradation that surfaces in debugging logs two weeks later and takes time to attribute correctly, particularly in multi-step agentic flows where each inference builds on the previous one.


The practical decision straightens out once you've profiled where your token volume actually lives. In most agentic systems, a small number of high-frequency prompts account for the majority of context. System prompts, tool descriptions, repeated task instructions: those are the right targets. Dynamic content, reasoning chains, and user-generated text should stay uncompressed. The savings come from the static, high-repetition parts of your context, and Caveman's preprocessing approach adds negligible latency: a few milliseconds of text processing against hundreds of milliseconds of inference time.

For pipelines running under a thousand invocations per day, the dollar savings don't justify the maintenance surface. For pipelines above that threshold with verbose static prompts, run the numbers. The math is almost always cleaner than it looks on paper.

What the Caveman experiment ultimately demonstrates is that LLM prompts carry more redundancy than most practitioners account for. The models handle surface-level variation better than the "write clean English" guidance implies. Knowing that matters as context windows expand. A 200k-token window is not an invitation to use 200k tokens. The same economics apply at every scale. Caveman is one concrete application of that principle.

The dumb name doesn't make it wrong.

Discussion

Leave a comment

We’ll email you a link to confirm. Comments appear after review.

Get the next post by email