Compression

Fit more signal into fewer tokens: compaction, summarization, token-efficient formats, repo packers, caching.

13 listed entries

Screenshot of the TOON website

TOON

Token-Oriented Object Notation: a compact, human-readable encoding of JSON for LLM prompts.

tool

Website captured Oct 19

Screenshot of the LLMLingua website

LLMLingua

Microsoft's prompt-compression method: drops low-information tokens; the repo reports up to 20x compression.

tool

Website captured Oct 19

Attention budget

The finite attention an LLM spends across its context; every new token draws it down, so context must be curated.

term

    Compaction

    When a conversation nears the window limit, summarize it and restart a fresh window with the summary.

    process

      Context editing

      Automatically clearing stale tool calls and results from the context as it nears its limit (a Claude Developer Platform feature).

      term

        KV-cache hit rate

        The share of prompt tokens served from the model's key-value cache; higher means lower latency and cost.

        term

          KV-cache-friendly context

          Keep the prompt prefix stable and the context append-only so cached tokens get reused.

          process

            Prompt caching

            Mark the stable prefix (system prompt, tools, reference docs) for caching so repeated calls reuse it.

            process

              How they connect