Lost in Compaction: Evaluating Side-Constraint Loss under Context Compaction
This paper identifies that current context compaction methods systematically discard critical session constraints, quantifies this failure through the new COMPINT evaluation suite, and proposes a plug-and-play SC-aware extractor that achieves over 90% constraint retention without modifying existing models.
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 you are talking to a very smart, super-creative robot friend. You've been chatting for hours, sharing stories, solving puzzles, and planning your day. But suddenly, the robot's brain gets full. It can't hold any more words, so it decides to summarize everything you've said so far into a tiny, neat note to make space for new conversation. This is called "context compaction," and it's how AI systems try to keep talking when they run out of memory.
However, there's a tricky part. Sometimes, you give the robot a special rule for the whole chat, like, "Hey, before you send any emails, please show them to me first!" or "Don't ever use my real name." These are like secret handshakes or ground rules for the session. The problem is that when the robot makes its tiny summary note, it often forgets these rules entirely. It remembers what you were doing (like "reorganize the calendar"), but it drops the how (like "ask me first"). This paper investigates exactly how often this happens, why it's a big deal, and how we can fix it so our robot friends don't accidentally break their promises.
The Great Forgetfulness of AI Summaries
The researchers, Zhiqi Wang and his team from Penn State, discovered that when AI systems compress long conversations to save space, they are terrible at keeping these "Session Constraints" (SCs). They call these constraints the "rules of the road" for a conversation—things like "confirm with me before acting" or "reply only in bullet points."
To test this, they built a playground called COMPINT. Imagine COMPINT as a giant obstacle course where they sneak these special rules into long, boring stories (like chat logs or research tasks) and then ask the AI to summarize the story. After the AI makes its summary, the team checks: Did the summary still contain the rule? Did the AI follow the rule in the next step?
The results were a bit scary. On average, the AI's summarizer kept only 17% of the rules it was supposed to remember. That means if you told the robot a rule 100 times, it would likely forget it 83 times! Even worse, most of the time, the AI performed worse with the summary than it would have if it just kept the whole conversation without summarizing. It's like trying to navigate a city using a map that accidentally erased all the "Do Not Enter" signs.
Why Does This Happen?
The team found that this isn't just a random glitch; it's a systematic problem. They tested many different types of AI summarizers, from simple ones that just chop off the end of a conversation to advanced ones that use big language models to write summaries. None of them were good at keeping these rules.
They also discovered that the problem gets worse depending on:
- Where you put the rule: If you tell the rule at the very beginning of a long chat, it's almost guaranteed to be forgotten. If you tell it right before the summary is made, it has a better chance, but it's still risky.
- How you say it: Even if you say, "This is a super important rule!" the AI often ignores it.
- The type of rule: Rules about how to do something (like "always search the web first") were the hardest to keep, while rules about what to pick (like "choose the cheaper option") were slightly easier, but still often lost.
The researchers ruled out a few ideas that might have seemed like the culprit. They found that it wasn't just because the AI was "confused" by the length of the text, nor was it because the summarizer and the chatbot were from different companies. Even when the same AI did both the chatting and the summarizing, it still forgot the rules.
The Magic Fix: A Rule-Keeping Sidekick
So, is the solution to just stop summarizing? No, because then the AI runs out of memory and stops working. The team proposed a clever fix: a "Sidekick" module.
Imagine the summarizer is a chef who is chopping vegetables. The chef is great at chopping but bad at remembering the recipe's special instructions. The team added a tiny, fast robot (a smaller AI model) that sits right next to the chef. This sidekick's only job is to listen to the user and write down any special rules on a sticky note.
When the chef finishes the summary, the sidekick sticks its note right onto the summary before handing it to the main AI. This simple trick worked wonders. Instead of remembering only 17% of the rules, this new system kept over 90% of them across all the different scenarios they tested. It didn't require changing the main AI or the summarizer; it just added a dedicated "rule-keeper" to the team.
The Takeaway
This paper suggests that while AI is getting better at remembering long conversations, it's currently failing at remembering the rules of those conversations. If we want AI agents to be safe and reliable—especially when they are doing things like sending emails or managing calendars—we can't just rely on them to "summarize and move on." We need to build systems that actively protect these session rules, perhaps by using a dedicated sidekick to hold onto them. The good news is that the researchers have already built a prototype of this sidekick, and it works really well, turning a broken system into a reliable one without needing a complete overhaul.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.