Evoflux: Inference-Time Evolution of Executable Tool Workflows for Compact Agents

Kushal Raj Bhandari, Ling Yue, Ching-Yun Ko, Dhaval Patel, Shaowu Pan, Pin-Yu Chen, Jianxi GaoarXiv 2026

TL;DR

Compact language models often fail at complex tool use because they cannot reliably recover when an execution step goes wrong. Evoflux solves this by using an inference-time evolutionary search loop to dynamically repair tool workflows based on real execution feedback. This approach boosts execution feasibility from a meager 3% up to 24% on held-out tasks, vastly outperforming traditional fine-tuning methods on small data budgets.

What Problem Does This Paper Address?

Small language models (1.5B to 4B parameters) are highly desirable for building AI agents due to their low latency, reduced serving costs, and privacy advantages. However, when tasks require multi-step tool orchestration—such as interacting with external APIs via the Model Context Protocol (MCP)—these compact models become incredibly brittle.

While they can generate plans that look textually plausible, their workflows frequently break during live execution due to malformed JSON, invalid parameters, or broken dependency links between tools. Traditional approaches try to fix this by distilling behavior from larger "teacher" models using Supervised Fine-Tuning (SFT) or Direct Preference Optimization (DPO). The authors argue that this is a trap: a small corpus of a few hundred teacher traces might teach a model the correct format, but it fails to teach the recovery behavior needed to fix a broken plan when real-world execution fails.

Methods

Instead of updating model weights, Evoflux shifts the computational burden to online, inference-time search. It treats tool use as an executable workflow repair problem, using the compact model as a proposal operator inside a closed feedback loop.

Figure 1: Dynamic training and evaluation pipeline for Evoflux. A teacher model first generates and refines workflows through execution feedback, typed edits, and LLM-judge scores, producing traces and preference pairs for student training. At evaluation, Evoflux keeps the base small model in a dynamic repair loop that mutates, executes, scores, and selects workflow candidates, while distilled inference uses a trained student in a static one-pass setting.

The core algorithm consists of several key components:

  1. Typed Workflow Graphs: Plans are represented as Directed Acyclic Graphs (DAGs) where nodes are explicit tool calls and edges represent data dependencies.
  2. Execution Scoring: Feasible workflows are executed in a live environment and scored across six subdimensions (like task fulfillment and parameter accuracy) using an LLM-judge.
  3. Evidence-Conditioned Mutation: Rather than unconstrained graph rewriting, Evoflux uses a finite "typed edit language" (e.g., tool swaps, parameter edits, step reordering) guided by actual node-level execution errors.
  4. Adaptive Intensity & Meta-Guidance: A controller tracks progress. If improvements stall, it increases exploration or triggers a high-level "meta-guided redesign" to completely restructure the workflow and escape local minima.
  5. Diversity Pruning: To prevent the population of candidate plans from collapsing into near-identical variations, candidates are pruned using action-hash binning.

Datasets

The authors evaluate Evoflux using MCP-Bench, a challenging benchmark featuring 28 live MCP servers and 250 tools spanning domains like finance, travel, and academic search. The dataset is split into:

  • $D_{search}$ (Search Split): 177 examples used for prompt development and mining teacher traces.
  • $D_{eval}$ (Evaluation Split): A strictly held-out set used exclusively to compare deployment configurations.

Key Insights and Ideas

  • The Train-vs.-Search Trade-off: When data is scarce (e.g., a budget of a few hundred teacher traces), spending compute on test-time search and repair over the actual live catalog is far more reliable than updating model weights.
  • The Fine-Tuning Trap: Fine-tuning compact models on small datasets can actually degrade performance. For instance, Qwen3.5-4B suffered a complete planning collapse after SFT+DPO, learning shallow imitation of workflow shapes while completely losing the ability to generate executable plans.
  • Structure over Length: Popular sequential agent patterns like ReAct tend to generate very deep workflows, leading to runaway token costs as the context window expands. Evoflux naturally optimizes for workflow width over depth, inserting parallel validation and lookup steps, which keeps token costs bounded.

Key Results

  • Massive Feasibility Gains: On held-out validation tasks, zero-shot initialization resulted in a baseline execution success rate of only about 3%. Evoflux successfully raised this validation feasibility to 17% for Llama-3.2-3B and 24% for Qwen3.5-4B.
Score distributions across stages for small planners.
  • Fine-Tuning Failure: SFT and SFT+DPO checkpoints consistently hovered around or fell below the zero-shot baseline, proving unable to generalize their training to unseen tasks.
  • Token Efficiency: While the ReAct baseline achieved high peak scores on more capable models, it did so with massive variance and a punishingly high token cost. Evoflux delivered steadier, more predictable improvements at a fraction of ReAct's token budget.

Limitations and Future Work

While promising, the authors note several boundaries to their current work:

  • Scope: The evaluation is restricted to MCP-Bench and compact models under 4B parameters; how this scales to frontier-class models remains an open question.
  • Judge Dependency: The scoring mechanism relies heavily on an execution-based LLM-judge, which introduces latency and potential evaluation biases.
  • Future Directions: The authors suggest exploring larger data budgets for training, developing learned search controllers rather than heuristic ones, and designing training objectives that directly optimize the model for the typed edit space.

Summary updated

BibTeX
@misc{bhandari2026evoflux,
  author = {Kushal Raj Bhandari and Ling Yue and Ching-Yun Ko and Dhaval Patel and Shaowu Pan and Pin-Yu Chen and Jianxi Gao},
  title = {{Evoflux: Inference-Time Evolution of Executable Tool Workflows for Compact Agents}},
  year = {2026},
  eprint = {2606.12674},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.12674},
}
Figure