← Back to Machine Learning
cs.LG

Can you teach an AI to follow your workflow instead of managing it constantly?

Simon Dennis, Rivaan Patil, Kevin Shabahang, Hao Guo

May 21, 2026

Current AI agent systems use external orchestrators that repeatedly prompt a frontier model—expensive and context-heavy. Instead, the authors embedded complete workflows (like a 55-node insurance claims process) directly into small fine-tuned models' weights. Results: near-frontier quality on travel booking, customer support, and claims processing at a fraction of the cost, with no need to expose procedures to third-party APIs. Code and models are released.
Published as Compiling Agentic Workflows into LLM Weights: Near-Frontier Quality at Two Orders of Magnitude Less Cost arXiv:2605.22502
Read the original paper →