betaFeedback

WorksComputer Science

ReTrace: Distilling Tool-Using Agents into Planner-Free Workflows

Abstract

Business process automation runs the same Standard Operating Procedure (SOP) again and again on new inputs. Large Language Model (LLM) agents can follow an SOP written in natural language, but they call an LLM to choose every step of every run, which adds latency and cost at scale. We present ReTrace, which turns an SOP and a few logged agent runs into a reusable workflow in which code, not an LLM, selects the next step. The agent's reasoning, the explanation it writes with each tool call, often states why it took an action; the tool calls alone do not. ReTrace extracts the condition behind each step, merges these conditions across runs into a compact rule document, and generates an executable workflow from it. Only this last stage depends on the platform, so rule documents can be compiled for different orchestration platforms. On 7979 procedures from our production platform, ReTrace workflows reach 93.8%93.8\% completion, against 96.8%96.8\% for the agent, at 24%24\% lower cost per task. On τ2τ^2-Bench, they reach 75.8%75.8\% task success (agent: 80.6%80.6\%) and run in 1.31.3s instead of 170170s; three rounds of repair on training failures lift k=2k{=}2 workflows from 66.7%66.7\% to 81.2%81.2\%. On eight SOP-Bench procedures, ReTrace without repair trails few-shot generation (80.6%80.6\% vs. 83.6%83.6\%), but repair from labeled training failures lifts it to 87.8%87.8\% at 0.400.40s per task, compared to 85.5%85.5\% in 46.646.6s for the agent.

Paper details

vlnc:W_yyxssaq3
Version
v1 · latest
Published
Fresh — added to the Hub within the last 30 days
Added
License
CC-BY-NC-ND-4.0
Usage

views · 5

downloads · 0

A view counts once per browser per day, a download each time the PDF is requested.

  • Computer Science

Not recorded for this paper

View statement
Looking for related papers…