Repository navigation
The FATAL line is the easy case: does compression keep the low-salience text (negations, qualifiers, stop conditions)? #3824
Replies: 1 comment 1 reply
|
This is one of the most critical and under-discussed failure modes in LLM context compression (and token pruning in general). Dropping a 4-token FATAL trace degrades observability, but dropping a 1-token negation ( Here is an analysis of why this happens mechanically, how eval suites should benchmark it, and how to safeguard constraint spans in production: 1. Why Salience Models Systematically Drop Negations and QualifiersInformation-theoretic compressors (LLMLingua, perplexity-guided pruning, and small-model scorers like Kompress) rely primarily on conditional entropy / perplexity or cross-attention saliency:
2. Practical Safeguards for Headroom & Tool ContextsTo prevent catastrophic constraint dropping: A. Verbatim / Pinning AnchorsAny production compression pipeline sitting between tools/MCP and the model should support uncompressed span pinning:
B. Negation-Governor Dependency ClampingIf regex or lightweight spaCy/Stanza dependency parsing is integrated into the pre-token filter, any token with a C. Structural Tool Schema Preservation in MCPIn MCP servers and tool pipelines, structured arguments (JSON keys, boolean flags, path bounds) must never be passed through neural string compressors. The compression should only be applied to string leaf nodes above a length threshold (e.g. 3. How to Benchmark Constraint Retention (Eval Suite Recommendations)To reliably catch this rather than relying on needle-in-a-haystack (NIAH) tests:
Would love to see explicit pinned-span configuration and contrastive negation evaluations formalized in upcoming Headroom releases! |
Uh oh!
There was an error while loading. Please reload this page.
Disclosure up front: I build Grunz, a hosted chat + coding agent on open-weight models. I'm not selling anything here. I have a question about what the compression benchmark measures, from someone who has been burned by lossy context.
The FATAL line is the easy case
The demo is convincing: 10,144 tokens down to 1,260, and the FATAL line survives. But a FATAL line is the most salient thing in a log, so any reasonable compressor keeps it. In our agent, the text that got lost when context was squeezed was never the salient part. It was the low-salience text that changes what the salient text means:
>=2.1,<3, "timeout in ms"src/api"Each of these is a few tokens and looks unimportant to a relevance model, and dropping one flips the meaning of the text around it. The output still reads fine, the agent does the wrong thing confidently, and nothing in the trace shows why. CCR only helps if the model knows something was dropped, and with a dropped qualifier it doesn't.
Why this matters more on smaller windows
On most hosted OpenAI-compatible endpoints I've checked, the context actually served is about 32K, whatever the model card says. That's exactly where a compression layer is worth the most. It's also where history gets compressed hardest, so the original instructions, the oldest and least-repeated text in the session, are the first to be squeezed.
Questions
All reactions