Appearance
The bill for choosing every step
An accounts-payable agent running the same 30-step procedure on 20,000 invoices a month makes something like 600,000 model calls a month. Most of those calls decide things that never change: which tool to hit next, with which arguments, under which condition. On invoice 14,002 the model re-derives the branch it took on invoice 14,001, with the same arguments, for the same reason.
That re-derivation is cheap per call and expensive at volume. Three recent arXiv papers go after three versions of the same problem, and they land in the same place: move the stable part of the reasoning out of the model and into something that runs without it.
ReTrace (arXiv:2611.14492) compiles an SOP plus a few logged runs into a workflow where code picks the next step. TreeAgent (arXiv:2611.13946) reads long structured documents by their own hierarchy instead of by token offsets, so a memory agent stops losing records in the middle of a field. TIGA (arXiv:2611.13966) keeps tool grounding for taxonomy induction, constrains what the agent can do at each step, and pays for it in tokens.
ReTrace is the easiest place to start, because its numbers translate straight into money.
ReTrace: pulling conditions out of the reasoning
ReTrace's observation is small and consequential. When an agent calls a tool, the tool call records what it did. The reasoning text the agent writes alongside the call often records why. Log only the tool calls and you get a sequence of actions with no branch logic. Replay them on the same input and you get the same answer, and nothing else.
The pipeline runs like this:
Conditions get extracted per step, merged across runs into a compact rule document, then compiled into an executable workflow. Only that final compilation stage knows about the orchestration platform. The rule document is portable, so the same set of runs can produce a Temporal workflow, an Airflow DAG, or a LangGraph graph without re-deriving anything. That portability matters more than it sounds. Teams that swap their agent stack usually lose the decision logic in the migration, because the logic only existed inside prompts.
What the distillation costs and what it saves
On 79 production procedures, ReTrace workflows finish 93.8% of runs against 96.8% for the full agent, at 24% lower cost per task. That's the headline trade: about three points of completion for a quarter of the bill.
The latency numbers are harder to ignore.
| Setting | Agent, per task | Workflow, per task | Speedup |
|---|---|---|---|
| τ²-Bench | 170 s | 1.3 s | ~131x |
| SOP-Bench | 46.6 s | 0.40 s | ~116x |
| 79 production SOPs | not reported | not reported | 24% lower cost per task |
At 10,000 tasks a day, 170 seconds per task is 47 hours of aggregate wall clock. The same work at 1.3 seconds is under four hours. That changes what you can put behind a synchronous request. A support triage flow that had to be a background job becomes something a user waits on in the browser.
Three rounds of repair on labeled training failures moves a k=2 workflow from 66.7% to 81.2% on τ²-Bench. The same pattern holds on eight SOP-Bench procedures: without repair, workflows trail few-shot generation (80.6% vs 83.6%), and with repair they clear both the few-shot baseline and the agent (87.8% at 0.40 s per task, against 85.5% at 46.6 s).
Quick take: if your inputs are new instances of a shape you've already seen, you're paying an LLM to re-decide branches you already know.
The three-point gap doesn't vanish, and you shouldn't pretend it does. Route it. Let the compiled workflow finish the runs it can and hand the rest to the agent with its reasoning trace intact. That hybrid costs more than the pure workflow and less than the pure agent, and it gives you a labeled failure stream for the next repair round.
TreeAgent: reading hierarchy instead of slicing tokens
Long-document agents slice input into fixed token windows and carry a summary forward. On prose that works. On a 200 KB JSON API response it breaks in three specific ways. A fixed window splits a record across two segments and severs its field relationships. Segments carry no position, so the agent can't tell a child from a sibling. Successive memory updates overwrite earlier siblings, so reasoning about record 40 may have already dropped record 12.
TreeAgent builds segments out of complete subtrees and groups of adjacent sibling subtrees. Each segment carries a structural path, so the agent knows where it sits and what its ancestors are. Residual memory links run from low-level child segments directly to their parent segments, giving information a route around the sequential update chain.
The paper also bounds segment count, so you can pick a token budget that keeps the number of segments close to what fixed-length chunking would produce. That's the detail that makes it deployable. You aren't paying a five-fold segment tax to get structure.
Across four memory agents and eight retrieval and aggregation tasks, on JSON, HTML, YAML, and JavaScript inputs from 8K to 1M tokens, the average gain is 3.61%.
The 3.61% question
Three and a half points looks small next to 131x, until you look at what it averages over. Four different memory agents, some of which already handle structure better than others. Four input formats, some of which have far clearer hierarchy than others. A gain that shows up across all four agents and all four formats comes from the segmentation, not from a lucky prompt.
The practical read: if you're extracting fields from HTML or JSON at 100K tokens or more, structure-aware segmentation earns its implementation cost. That cost is real work, because you need a parser per format and a policy for what counts as a subtree. If your long inputs are mostly chat transcripts, TreeAgent has less to offer and fixed windows are fine.
TIGA: tool grounding with a policy that moves
Taxonomy induction is where free-form generation fails most visibly. Given a fixed candidate entity set, an LLM asked for a hierarchy will omit entities, invent entities, create invalid parent-child relations, and apply different organizing principles to different branches. A taxonomy that's 90% correct is a broken taxonomy.
TIGA recasts the task as an iterative decision process over an explicit state and a constrained action space. The agent gets executable taxonomy-editing tools. It keeps memory of tool calls, rationales, and outcomes. A runtime-adaptive organizational policy gets revised during inference, so the organizing principle can shift as the taxonomy grows. An optional global reviewer checks the result against the candidate set and the active policy.
On four benchmark taxonomies with two LLM backbones, TIGA produces the strongest structural quality in most configurations, though it doesn't win every precision measure. It also burns substantially more tokens, API calls, and inference time. The ablations are clear about which parts earn their keep: the policy and the interaction memory help consistently, and the global reviewer helps only when there's revision budget left to act on its findings. A reviewer with no budget is a token sink.
Key numbers from the three papers
131x: τ²-Bench wall-clock speedup, 170 s down to 1.3 s per task 24%: cost reduction per task across 79 production SOPs 93.8 vs 96.8: completion rate, workflow vs agent, same 79 procedures 87.8 vs 85.5: SOP-Bench success after three repair rounds, workflow vs agent 66.7 to 81.2: k=2 workflow success on τ²-Bench after repair 8K to 1M: the token range TreeAgent was tested on 3.61%: average gain from structure-aware segmentation across four memory agents
What trips people up
The first mistake is logging tool calls without the reasoning text. ReTrace's mechanism depends on the model's explanation stating why it took an action, and tool arguments alone don't carry that. If your observability stack stores request and response payloads but drops the assistant's reasoning content, you have nothing to extract conditions from, and you'll build a workflow that only works on your demo input. I've seen this cost a team two weeks, because the fix was to re-run the traffic with logging enabled and wait for the sample to accumulate.
The second is shipping a round-zero workflow. Without repair, ReTrace trails plain few-shot generation on SOP-Bench, 80.6% to 83.6%. Compilation gets you a correct skeleton; the repair loop gets you past the baseline. Budget two or three rounds of labeling failures before you compare the workflow to anything.
The third is treating distillation as lossless. Completion drops from 96.8% to 93.8% on production procedures, and those three points aren't random. They cluster on inputs where the governing condition never appeared in the logged runs. Without a fallback path to the agent, you ship a workflow that fails silently on the tail, and the tail is usually the expensive part.
The fourth is chunking structured data at fixed token offsets and then blaming the memory agent for dropping fields. Splitting a JSON record mid-field destroys the relationship between the id and the payload. Segment on subtree boundaries, attach the path, and check your segment count against a fixed-length baseline before you tune anything else.
The fifth is enabling TIGA's global reviewer because it sounds like a quality gate. The ablation says its value depends on the dataset and the available revision budget. With no budget to act on the review, it adds cost and changes nothing.
Where the three fit together
All three papers make the same bet: the expensive part of an agent is the part that decides, so decide less often. ReTrace does it by compiling decisions into code once and running them many times. TreeAgent does it by giving the agent a structure to navigate so it doesn't re-read what it already saw. TIGA goes the other way deliberately, spending more per decision to keep the state valid, and it's the one that admits the cost out loud.
Pick by how stable the decision is.
| What it removes from the loop | What stays in the loop | Main cost | |
|---|---|---|---|
| ReTrace | Step selection on repeated SOPs | Nothing at run time | ~3 points of completion |
| TreeAgent | Re-reading structureless chunks | The memory agent | A parser per input format |
| TIGA | Invalid edits, by construction | The policy and reviewer | Tokens, API calls, latency |
One thing to remember
The reasoning trace is the artifact worth keeping. Teams put a lot of effort into prompt versioning and almost none into storing why the model chose a branch, and that's the data every approach here depends on. Turn on reasoning capture for any agent you plan to automate, even if distillation is a year away.
The bottom line
If you run the same SOP on new inputs more than a few hundred times a month, start logging reasoning alongside tool calls today and compile the workflow once you have 20 to 30 clean runs. The 24% cost cut and the 131x latency drop both come out of that log.
If your long inputs are JSON, HTML, or YAML and your agent keeps dropping fields, switch to subtree segmentation before you switch models. A 3.61% average gain across four different memory agents is a segmentation effect, not a model effect, and it survives a model swap.
If you're building taxonomy or catalog hierarchies, expect to pay for tool grounding and cap the review loop. TIGA's structural quality comes with higher token and API costs, and its global reviewer only pays off when you leave revision budget for it to act on.