PapersSelected

PAIR method diagnoses context compression failures in long-horizon agents

Why we picked it

Compression damages run-to-run reliability before it makes tasks unsolvable, so single-run evals will miss the problem — repeated-run consistency is the metric to watch. Builders of long-horizon agent systems can use PAIR's replay-and-compare approach to pinpoint which compression events break their workflows. The paper's benchmarks, AppWorld and tau-Bench Retail, offer concrete testbeds for comparing compression prompts.

A new paper finds context compression hurts long-running agents at a few specific points rather than degrading whole runs.

Body

The PAIR method replays an agent from the same state with and without a given compression, isolating each compression event's impact.

Harmful compressions often drop unresolved task conditions — in one Venmo task, the summary lost the "only from coworkers" filter and counted all 36 payments — or reduce API specs to vague prose, adding about five steps as the agent reopens docs and logs in again.

PAIR diagnoses the dropped information and rewrites the matching sections of the compression prompt while keeping the agent, compressor model, and tools fixed.

On AppWorld, OfficeBench, and tau-Bench Retail, it delivers the most consistent task completion among compressed methods, close to running without compression.

Original · DAIR.AI

Context compression is a huge bottleneck for long-running agents.

This work finds that context compression hurts long-horizon agents at a few specific points.

They propose PAIR, which replays the agent from the same state with and without a given compression, instead of comparing whole runs that differ in many random ways.

A typical compression adds a few extra steps. The large drops in success come from a small number of compression events.

The harmful compressions drop task conditions the agent hasn't resolved yet. In one Venmo task, the summary dropped the "only from coworkers" filter and reported the total of all 36 payments as the answer.

Other compressions reduce API specs the agent already read to vague prose, so the agent reopens the docs and logs in again, which adds about five steps.

PAIR then diagnoses what information those compressions dropped and rewrites the matching sections of the compression prompt. The agent, compressor model, and tools stay fixed.

On AppWorld, OfficeBench, and tau-Bench Retail, it gives the most consistent task completion of any compressed method and comes close to running with no compression at all.

Compression also lowers run-to-run reliability before it makes tasks unsolvable, so check consistency across repeated runs in your own evals.

Paper: https://t.co/rwviRRq5A1

Chat with Paper: https://t.co/abta8Ebmix

Industry Coordinates & Source Verification

This report is categorized under AITOP's "Papers" desk. Within our cross-regional analytical framework, it directly maps to AI developer toolchains, coding agents, and engineering workflows. Key entities and technical topics under continuous tracking include agents, context compression, PAIR, AppWorld.

Source attribution: curated from DAIR.AI (@dair_ai).