PlanCompiler: A Deterministic Compilation Architecture for Structured Multi-Step LLM Pipelines
Pranav Harikumar

TL;DR
PlanCompiler introduces a deterministic compilation architecture for structured multi-step LLM workflows, improving reliability and cost efficiency over traditional free-form code generation methods.
Contribution
It separates planning from execution using static validation and compilation, enabling high success rates and lower costs in complex LLM pipeline tasks.
Findings
Achieves 84-100% first-pass success on benchmark tasks.
Reduces planning cost to approximately $0.36 per task.
Outperforms GPT-4.1 and Claude Sonnet baselines in success rate.
Abstract
Large language models (LLMs) remain brittle in multi-step structured workflows, where errors compound across sequential transformations, validation stages, and stateful operations such as SQL persistence. We present PlanCompiler, a compilation architecture for structured LLM pipelines that separates planning from execution through a typed node registry, static graph validation, and deterministic compilation. Instead of relying on autoregressive chaining at runtime, the system first produces a typed JSON plan over a fixed registry of primitives, validates that plan against explicit structural and type constraints, and compiles only validated plans into executable Python. We evaluate the approach on a 300-task benchmark covering increasing workflow depth, SQL roundtrip persistence, and schema-themed stress tests. In this setting, PlanCompiler achieves 100% first-pass success on Sets A…
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.
