Learn AI Math

Context Compression

What is Context Compression?

In one sentence: Context compression shrinks the information in a model's context so more fits or it costs less.

This can mean summarizing old messages, removing repeated text, or keeping only the most relevant sentences. The goal is to keep the meaning while using fewer tokens.

What does Context Compression look like?

Replacing 50 old chat messages with a 5-sentence summary is context compression.

Why does Context Compression matter?

It lets long conversations and tasks continue without hitting limits.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.