Context Compression is a technique that summarizes, prunes, or distills long prompt contexts and conversational history into compact representations before passing them to an LLM context window.
Context Compression preserves critical semantic information while drastically reducing token count. As conversation histories expand, compression algorithms remove filler tokens, summarize historical turns, or synthesize key facts into dense memory blocks, keeping LLM API costs low and maintaining high attention accuracy.
By reducing total prompt tokens, context compression decreases pre-fill latency and attention computation overhead in transformers.
Truncation simply deletes older tokens, while context compression retains essential semantic facts through summarization or vector distillation.
Worldbuilding, the construction of coherent fictional worlds, is a foundational task in game design and literary creation. Large Language Models (LLM) offer...
Context window are becoming a computational bottleneck. The longer an agent runs, the more token accumulate from retrieved documents, reasoning traces and...