Skip to content

The Decoding Stack Is Part of Your Agent's Reasoning

#llm-agents #speculative-decoding #tool-use #hierarchical-agents #agent-benchmarks #skill-memory

The Decoding Stack Is Part of Your Agent's Reasoning ​

Speculative decoding has been sold as a free lunch for two years: a small draft model guesses tokens, the target model verifies them in one pass, and the output distribution stays exactly where it was. Same model, fewer milliseconds per token.

That promise holds for a single completion. It falls apart for an agent running forty steps deep.

Speculative decoding was never free ​

The authors of Adversarial Speculative Reasoning took frontier open-weight models and ran them on complex agentic tasks under several speculative decoding setups. Two effects showed up. Numerical noise accumulates inside verification windows. And the accept/reject decisions made while the model is thinking can shift the output distribution after roughly 30 steps, pushing reasoning accuracy in random directions.

Thirty steps is not an exotic regime. That's a moderate refactor in a coding agent, a dozen web pages in a browser agent, or half an hour of tool calls in a data pipeline. Shorter than most of what people are actually shipping.

Deployment translation: someone on your team swaps the draft model for a faster one because the latency graph looks good. The target weights are untouched. The API contract is unchanged. Your long-horizon success rate drifts anyway, and the regression shows up as "the agent got dumber this week" with no obvious cause.

This also poisons evaluation. If two harness variants run with different draft models, quantization settings, or batching behavior, part of the delta you're attributing to your prompt rewrite is decoding noise. I've made that mistake. It's an easy one.

Training the draft model to lose ​

The fix is strange and I like it. You can't change the token distribution the target model verifies. You can change where the draft model is allowed to guess.

The method extracts decision points from agent traces, the moments where a wrong branch costs the rest of the rollout. Then it trains the draft model with an adversarial preference so that it gets rejected at exactly those points. At inference, draft and target split there. Verification restarts. The critical thinking tokens get sampled from the target model, in the state where its noise is lowest.

The reported result: end-to-end success rate improves on agentic coding benchmarks with no change to the target model or its output distribution. Training touches 0.06% to 0.28% of hosted parameters. For a 70B-class model that's roughly 40M to 200M parameters, so the fine-tuning bill is trivial. The real cost is identifying decision points in your own traces, which requires you to have traces in the first place.

Quick Take: the headline of this cluster isn't a stronger base model, it's that scaffolding decisions around a fixed model move long-horizon success by double digits.

A planner you actually update ​

JHiMA-WebRL starts from an observation most agent builders have made the hard way: monolithic policies choke on web tasks because the same weights have to infer a high-level plan, track progress across a long history, and emit pixel-grounded clicks.

Earlier modular designs split the planner out. The problem was that the planner stayed frozen while the actor learned, so the two drifted apart. JHiMA couples a 7B task decomposer with a 7B actor and trains both. A strong teacher model builds structured subtask supervision from multimodal GUI trajectories, that supervision fine-tunes the decomposer and the subtask-conditioned actor, and then GRPO is extended with hierarchical rollout grouping and role-specific advantages so both modules get gradients in WebArena.

ScaleCUA-32B, RL fine-tunedJHiMA-WebRL-14B
Total parameters32B14B (7B decomposer, 7B actor)
Planner updated during RLno, single policyyes, jointly with the actor
WebArena-Lite-v2 success24.0%37.2%
Training signalRL on the same tasksteacher-built subtask supervision, then hierarchical GRPO

A 14B agent beating a 32B one by 13 points on the same tasks under the same evaluation protocol is the number that matters. In bf16 those 14B weights are about 28GB, so the entire agent runs on one 40GB-class GPU. You can host your own web agent for the price of a workstation card instead of paying per step to a closed API.

The ablation is the part I'd tape to a monitor: updating the decomposer during RL beats updating the actor alone. If your planner is frozen and your agent fails, you're tuning the wrong module.

Tool environments built from execution, not schemas ​

Most synthetic MCP environments are generated backwards. You write a database schema, invent a scenario, derive tools from it, then generate tasks. ToolSpace argues that produces three specific defects: interfaces that don't match real ones, tool compositions that were never executed, and tasks that never cross an environment boundary.

ToolSpace reverses the order. It mines data, state, and retry dependencies from adjacent calls in real MCP service traces and open agent corpora, using deterministic rules instead of LLM judgment, then clusters the resulting weighted tool-composition graph into environments. Databases get synthesized only for state-mutating environments; query and stateless tools replay recorded returns. State-aware random walks with rollback produce chains, each chain is decompiled into a natural-language task with assertion checks, and only samples that replay successfully from the initial state survive.

The Pro versions built on AutomationBench and tau3-Bench Banking drop seven frontier models by up to 38.2 points. That number is a warning about every eval suite you built from a schema. Your synthetic environment was measuring the schema author's imagination, not the service.

Training on ToolSpace data moves Qwen3.6-35B-A3B from 23.0 to 41.0 average across seven long-horizon tool-use benchmarks, and to 43.2 with RL. GLM-5.2 goes from 44.6 to 56.6, which the authors place on par with Claude Opus 5.

Key numbers 30 steps is where draft acceptance starts shifting the output distribution. 0.06% to 0.28% of hosted parameters is what the adversarial draft trains. 37.2% versus 24.0% on WebArena-Lite-v2 for a 14B hierarchical agent against a 32B monolith. 38.2 points is how far frontier models fall on ToolSpace's harder Pro environments. 7.5x fewer tokens is GeoFaham's advantage over the next-best coding agent on its own benchmark.

Skill memory needs triage before it becomes policy ​

Skill memories are past experience written out as text and injected into the prompt. They work until they don't. Self-generated memories carry noisy supervision, redundant steps, and outright conflicting instructions, and distilling them directly into a policy can make the agent worse than the RL baseline it started from.

MDSKILL organizes skill memories into three functional views (state grounding, action planning, execution control), scores skills with dynamic metrics, and builds view-specific reasoning branches plus an integrated one. On-policy self-distillation then moves experiential knowledge from those branches into a shared policy without needing a stronger external teacher.

The gains are 7.1% on ALFWorld and 8.1% on WebShop over the prior state of the art, with no added inference overhead. Those are saturated-ish benchmarks, so the takeaway isn't the magnitude. It's that filtering memory by function before distilling it beats dumping raw memory into the prompt, and it costs nothing at serve time.

Five seasons is a different test than five steps ​

GM Bench evaluates models as general managers of professional sports teams across multiple seasons. Four sports simulators, financial constraints, player demands, and market mechanisms, with rosters built from real player data and comparable strength. Each model is scored on competitive performance, cash reserves, and cross-season improvement.

Over five NBA seasons, Claude Opus 5.5 ranks first among 29 LLMs, while GPT-6 Astra and GPT-6.1 Sol pair strong on-court results with larger cash reserves. That split is the interesting part. Winning this season and holding capital are different objectives, and the benchmark separates models that trade one for the other.

A five-season run is hundreds of sequential decisions with compounding state. Local wins don't survive a budget. If your agent product has a resource axis (API spend, rate limits, compute quota), single-episode evals will not tell you which model manages it.

Where domain agents break ​

GeoFaham is a multi-agent geospatial system for disaster response, and its failure taxonomy generalizes well beyond GIS. The listed failure modes: mishandling large artifacts, selecting the wrong evidence source, losing spatial or temporal metadata, and applying invalid geometric operations.

The design answers each one. Specialist agents handle vector operations, map feature retrieval, imagery discovery, and raster analysis, coordinated by an Orchestrator with a dual-ledger control loop for dependency-aware planning, progress tracking, validation, and replanning. A Response Store keeps full geospatial outputs and typed metadata outside the context window while agents exchange compact identifiers and summaries.

On GeoFaham-Bench, 40 tasks grounded in 17 real disaster records with non-rigid ground truth, it scores 0.940 against 0.879 for the next-best general coding agent (Codex, Claude Code, OpenCode were the baselines) while using 7.5 times fewer tokens.

The token number is the one to steal. Keeping rasters and vector layers out of context and passing IDs instead is the difference between a benchmark run that costs tens of dollars and one that costs hundreds, and it removes a whole class of context corruption.

What I hit when I wired this up ​

I bolted two of these ideas onto an existing tool-use harness. The first was environment construction: our test suite had been generated from a JSON schema, and every tool signature was tidy in ways the real service never was. Once I rebuilt a handful of scenarios from recorded execution traces, our pass rates fell by roughly a third. The agent hadn't regressed. The eval had been lying.

The second was the planner. We had a decomposer that we never trained, essentially a prompt with a fixed model behind it, while the actor got all the RL attention. Task lists drifted two or three steps in and the actor kept executing faithfully against a plan that no longer matched the page. Adding gradient to the decomposer fixed more failures than another week of actor tuning.

Third, and this one cost me a weekend: I switched draft models on a long agentic task to shave latency, and the run-to-run success variance widened enough that my earlier A/B comparisons were meaningless. I now pin the draft model alongside the target model in every experiment record, the same way you'd pin a seed.

What trips people up ​

  • Benchmarking prompt or harness changes while letting the draft model, quantization, or batching float. Past 30 steps you're partly measuring decoding noise, not your change.
  • Freezing the planner during RL and then attributing failures to the actor. The JHiMA ablation says the joint update is where the gain lives.
  • Building evaluation environments from schemas instead of execution. Interfaces drift from reality, and the resulting scores read high by tens of points.
  • Shoveling large artifacts through the context window. Rasters, GeoJSON blobs, and database dumps belong in a store that returns IDs and summaries.
  • Distilling self-generated skill memory without filtering it. Redundant and conflicting memories teach the policy bad habits, then the RL phase inherits them.
  • Treating five-step success as evidence of long-horizon competence. Cumulative resource constraints change which model wins.

One thing to remember ​

Every result in this cluster came from changing something around a fixed model, not from a bigger base model: a rejected draft token, an extra set of gradients on the planner, a trace-derived environment, a filtered memory, an artifact store. That's where the remaining headroom sits for people shipping agents right now, and most of it is cheaper than another fine-tuning run.

What this means ​

If you're running open-weight models behind a multi-hour agent, pin your draft model per experiment and consider training a small adversarial draft or disabling speculation for critical steps. The latency you lose is smaller than the accuracy swing you're currently accepting without measuring it.

If you're building a GUI or web agent and your planner is a frozen prompt, unfreeze it before you scale the model. A jointly trained 14B pair beat a 32B monolith by 13 points on WebArena-Lite-v2, and it fits on one 40GB card, so the cheaper architecture is also the more accurate one.

If your evaluation suite was generated from a schema, rebuild at least a slice of it from recorded execution traces before your next launch decision. Frontier models lose up to 38.2 points on execution-grounded variants, and that gap is sitting between your benchmark and your users.