Reproducible Evaluation as the Substrate for Safe Prompt Compression in Production Agents
Organizations: Mx ML, DoorDash Inc.
Abstract
Evaluating conversational agents that act on live, mutable enterprise data is hard: replayed sessions drift as backend state changes, and a benchmark built today can silently go stale as the data it describes moves on. We present an offline evaluation harness for a production conversational agent that stays reproducible despite the live data it operates on changing, and that can be regenerated on demand once it goes stale. We then use this harness as the fitness function for GEPA-based prompt optimization under a correctness gate that guards against reward hacking. Applied to a production merchant-facing agent, correctness-gated compression shrinks the agent's full prompt surface by 3.5-7.6% without regressing held-out task correctness, consistently across three independent subject-model families, and for one, correctness measurably improves.
Figures & tables
| Family | Tokens (seed winner) | Compression | (95% CI) |
|---|---|---|---|
| Anthropic | 36,336 33,567 | [ , ] | |
| Gemini | 36,336 34,380 | [ , ] | |
| OpenAI | 36,336 35,077 | [ , ] |
Prompt Compression
Prompt compression reduces the tokens sent to language models while trying to preserve the information needed for accurate, efficient responses.
See all 35 papers