Pane says token usage is a poor measure of success because tokens are a cost of doing work, not the work itself. OutRival processes billions of tokens daily, so redundant model calls add up in latency and compute costs.
How to Actually Tokenmaxx and Save Millions
Speaker
Alvin Pane, head of agent intelligence at OutRival, explains how to reduce AI task costs while measuring whether prompt and model changes preserve or improve quality at AI Engineer.
Pane recommends tracing each model attempt, including prompt version, settings, tokens, latency, cost, tools, and retries. In an example, a cheaper model disagreed with production on 18% of cases, but production disagreed with itself about 7% of the time across three runs. That ceiling test helps distinguish model variance from changes caused by an optimization.
Pane’s first cost lever is arranging prompts to improve prefix caching. The second is reducing prompt size: a HarborBite classification prompt had grown to nearly 5,000 tokens through added rules and worked examples. Using DSPy and GEPA to search against a benchmark cut instruction tokens by 51% while preserving the application contract.
Pane recommends assigning routing or extraction to cheaper models and reserving frontier models for harder reasoning. A search loop can also help a smaller model match a large model’s benchmark performance, though it can overfit or introduce failures. For validation, compare production and candidate consistency as well as their cross-version results on the same inputs.
Pane cautions that a difference from production is not automatically a regression, so teams should review disagreements for improvements, regressions, and acceptable alternatives. In the HarborBite example, review found 2,463 improvements and 443 regressions. He recommends paired confidence intervals, checking critical categories, and shipping only when the lower confidence bound on net gain is above zero.
Takeaways
- Instrument model calls with prompt versions, settings, token use, latency, and cost.
- Measure production’s own disagreement before judging a cheaper candidate against it.
- Improve prefix caching and use benchmark-guided prompt search to reduce repeated input and instruction tokens.
- Route simpler subtasks to smaller models and reserve expensive models for demanding reasoning.
- Review candidate disagreements and require positive confidence bounds on quality gains, including in critical categories.
Mentioned in this talk
Search inside this talk
What was claimed 9
- works atAlvin Pane works at
OutRivalFounding Engineer / Engineering Lead (head of agent intelligence)“I'm Alvin, the head of agent intelligence at OutRival.”
YouTube Verified2 sources· Talk, Web· archived
- metric
OutRival: Processes billions of tokens every day at the application layer“we're processing billions of tokens every single day”
YouTube Unverified1 source· Talk
- featureOpenTelemetry: Tracks model calls, tools, retries, token usage, latency, and cost
“OpenTelemetry is a great framework for tracking this.”
YouTube Unverified1 source· Talk
- metricceiling test: Production model disagreed with itself roughly 7% of the time; agreement was about 93%
“it disagreed with itself roughly 7% of the time. Production's own agreement was only about 93%.”
YouTube Unverified1 source· Talk
- metric
OutRival: HarborBite prompt example was nearly 5,000 tokens long“This prompt is almost 5,000 tokens long.”
YouTube Unverified1 source· Talk
- uses
“Then you hand it off to an optimizer like GEPA.”
YouTube Verified2 sources· Talk
- metricprompt optimization: Reduced instruction tokens by 51% with the same application contract
“a 51% reduction in instruction tokens with the same application contract”
YouTube Unverified1 source· Talk
- featureshadow deployment: Compares production against production, candidate against candidate, and candidate against production on identical inputs
“measure the system from three angles: production against production, candidate against candidate, and candidate against production.”
YouTube Unverified1 source· Talk










