AGORA: Adapter-Grounded Observation-Action Retention for Inference-Free Prompt Compression in LLM Agents
The AGORA paper proposes an adapter-grounded, inference-free prompt compression method for LLM agents that overcomes the structural limitations of existing token-level extractive compressors by isolating a structural floor as the primary quality bottleneck and achieving 1.0–11.5x adaptive compression through a learned scorer while maintaining near-uncompressed performance.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Imagine an LLM agent as a highly skilled detective trying to solve a mystery. To solve the case, the detective looks at a long notebook filled with clues, actions they've taken, and what they saw afterward. As the investigation goes on, this notebook gets huge—sometimes over 100,000 words long. If the notebook gets too big, the detective gets overwhelmed and can't think clearly.
The problem is: How do you shrink this notebook without deleting the clues that actually matter?
The Problem: The "Wrong" Kind of Shrinker
Researchers tried using standard "summarizers" (called token-level compressors) that work great for normal reading tasks, like summarizing a news article. These tools work by deleting words that seem "predictable" or "boring."
But for an agent detective, this approach is a disaster. The paper calls this "Action-Grammar Destruction."
Here's the analogy:
Imagine the detective's notebook contains a specific instruction: "Search for [red shoes size 10]."
- The words "Search," "for," and the brackets
[]are the action grammar. They are the commands that tell the computer what to do. - However, because these words are so common and predictable in English, the standard summarizer thinks, "Oh, 'for' and brackets are boring. I'll delete them to save space."
- The Result: The notebook now says "red shoes size 10."
- The Crash: The computer environment sees this and says, "I don't know what to do with this. It's not a command." The agent crashes or fails.
The paper tested 17 different scenarios and found that every single time they used these standard summarizers, the agent's performance collapsed to near zero, even though they successfully saved space. The tool was working perfectly, but it was deleting the only things that made the agent work.
The Solution: AGORA (The Smart Filing System)
The authors created a new system called AGORA. Instead of acting like a word-scrubber, AGORA acts like a smart filing clerk who understands the structure of the detective's notebook.
AGORA works in three simple layers:
The "Never-Touch" Floor (Structural Parser):
AGORA has a rule: "Never delete the System Instructions, the Current Clue, or the last two steps."- Analogy: Imagine the detective's notebook has a red sticky note on the last two pages and the cover page. AGORA says, "No matter what, we keep these pages exactly as they are." This ensures the agent always knows what it's doing and what just happened.
The "Relevance Score" (The 125M Parameter Scorer):
For the older pages in the notebook, AGORA uses a small, fast AI (a 125-million-parameter model) to ask: "If we remove this old clue, will the detective make a different decision right now?"- If the answer is "No, this old clue doesn't matter," it gets deleted.
- If the answer is "Yes, this clue is critical," it stays.
- Key Point: This happens in about 2 milliseconds. It doesn't ask a giant AI to rewrite the story; it just checks if the page is important.
The "Greedy" Filler:
Once the "Never-Touch" pages are safe, AGORA fills the remaining space with the most important old clues until the notebook is small enough.
Why It's a Big Deal
- No Extra Cost: Most other methods try to summarize the notebook by asking a second giant AI to do the work. This costs extra money and time for every single step. AGORA does it without asking a second AI, saving money and time.
- It Works: In 8 out of 9 different test scenarios, AGORA kept the agent performing at 75% or higher of its original speed and accuracy, even with a much smaller notebook.
- Adaptive: It automatically figures out how much to shrink the notebook. Sometimes it shrinks it by 1x (a little), sometimes by 11x (a lot), depending on how much "fluff" is in the history.
The Bottom Line
The paper proves that you can't just treat an AI agent's history like a normal book. You have to respect the "grammar" of its commands. AGORA is a lightweight, fast, and free way to keep the agent's memory clean without accidentally deleting the instructions that make it work. It's the difference between a summarizer that deletes the "Stop" sign from a road map and a filing system that keeps the map readable but removes the old, irrelevant street names.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.