Compiled AI: Deterministic Code Generation for LLM-Based Workflow Automation
Geert Trooskens (1), Aaron Karlsberg (1), Anmol Sharma (1), Lamara De Brouwer (1), Max Van Puyvelde (2), Matthew Young (1), John Thickstun (3), Gil Alterovitz (4), Walter A. De Brouwer (2) ((1) XY.AI Labs, Palo Alto, CA, (2) Stanford University School of Medicine, Stanford, CA

TL;DR
This paper introduces a system for deterministic, compiled AI workflows that generate executable code during a compilation phase, enhancing reliability and security in enterprise applications like healthcare.
Contribution
It presents a novel architecture and validation pipeline for constrained LLM-based code generation tailored for high-stakes enterprise workflows.
Findings
Achieves 96% task completion with zero execution tokens on function-calling tasks.
Matches key field extraction performance of direct LLM methods in document intelligence.
Demonstrates high accuracy in security evaluations with minimal false positives.
Abstract
We study compiled AI, a paradigm in which large language models generate executable code artifacts during a compilation phase, after which workflows execute deterministically without further model invocation. This paradigm has antecedents in prior work on declarative pipeline optimization (DSPy) and hybrid neural-symbolic planning (LLM+P); our contribution is a systems-oriented study of its application to high-stakes enterprise workflows, with particular emphasis on healthcare settings where reliability and auditability are critical. By constraining generation to narrow business-logic functions embedded in validated templates, compiled AI trades runtime flexibility for predictability, auditability, cost efficiency, and reduced security exposure. We introduce (i) a system architecture for constrained LLM-based code generation, (ii) a four-stage generation-and-validation pipeline that…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
