Repository navigation
Headroom as a baseline in a study on learned field projections for agent tool outputs #4668
alepom
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hi, and thanks for Headroom.
I've just published an exploratory study and an open-source library, tracetrim, on a question close to Headroom's: which fields of a tool output does an agent actually reuse in what it writes, and can the rest be removed by learning that from the agent's own traces? Headroom is the main baseline in the paper, so I'd like you to see how we used it before anyone reads the comparison.
How Headroom was used.
headroom-ai0.39.1, run once per conversation (stateless, so TOIN had no history of these tools), withCompressConfig(protect_recent=0, protect_analysis_context=False, target_ratio=0.2, compress_user_messages=True). The input was the conversation's user message, tool calls and tool messages, with no system prompt, andmodel="gpt-4o". We measured tokens only (tiktokeno200k_base), not the effect on answers. The script isexperiments/headroom_baseline.py.What we saw, on the same conversations. Headroom removed 17–28% of tool-output tokens on two agents with real APIs and 31–33% on two simulated ones (Stripe- and GitHub-shaped). A projection learned from seven runs of the same task removed 46–53% and 57–61%. A plain JSON minifier, which removes no field, removed 16–24% and 18–33%. That last baseline is the one I'd most like your read on. In this stateless, one-shot setting Headroom's result was often close to minification, which makes me think our configuration didn't let it do what it is designed for. TOIN learning over repeated calls and CCR retrieval are close in spirit to what we do (CCR is very much like our
expand), and the paper's related-work section says so.Questions:
Everything is reproducible from the repository, and any correction to how we described or ran Headroom is welcome.
Alessio Pomaro
All reactions