Why Search When You Can Transfer? Amortized Agentic Workflow Design from Structural Priors

arXiv cs.LG / 4/29/2026

📰 NewsSignals & Early TrendsIdeas & Deep AnalysisModels & Research

Key Points

  • The paper argues that agentic workflow design is inefficient because it uses costly per-task iterative search and cannot reuse structural knowledge across tasks.
  • It finds that optimized workflows tend to fall within a small set of domain-specific topology families, making much of the combinatorial search redundant.
  • The proposed SWIFT framework amortizes workflow design by learning reusable “structural priors” (compositional heuristics and interface contracts) from contrastive analysis of prior search trajectories.
  • For unseen target tasks, SWIFT synthesizes a complete executable workflow in a single LLM generation pass using those priors plus cross-task workflow demonstrations, avoiding iterative search.
  • Experiments show SWIFT outperforms state-of-the-art search-based methods on five benchmarks, cuts per-task optimization cost by ~three orders of magnitude, generalizes to additional unseen benchmarks, and transfers across multiple foundation models with evidence that topology transfer matters more than surface semantics.

Abstract

Automated agentic workflow design currently relies on per-task iterative search, which is computationally prohibitive and fails to reuse structural knowledge across tasks. We observe that optimized workflows converge to a small family of domain-specific topologies, suggesting that this combinatorial search is largely redundant. Building on this insight, we propose SWIFT (Synthesizing Workflows via Few-shot Transfer), a framework that amortizes workflow design into reusable structural priors. SWIFT first distills compositional heuristics and output-interface contracts from contrastive analysis of prior search trajectories across source tasks. At inference time, it conditions a single LLM generation pass on these priors together with cross-task workflow demonstrations to synthesize a complete, executable workflow for an unseen target task, bypassing iterative search entirely. On five benchmarks, SWIFT outperforms the state-of-the-art search-based method while reducing marginal per-task optimization cost by three orders of magnitude. It further generalizes to four additional unseen benchmarks and transfers successfully from GPT-4o-mini to three additional foundation models (Grok, Qwen, Gemma). Controlled ablations reveal that workflow demonstrations primarily transfer topological structure rather than surface semantics: replacing all operator names with random strings still retains over 93% of the full system's average performance.