Making Prompts First-Class Citizens for Adaptive LLM Pipelines
Ugur Cetintemel, Shu Chen, Alexander W. Lee, Deepti Raghavan, Duo Lu, Andrew Crotty

TL;DR
This paper introduces SPEAR, a novel framework that treats prompts as first-class citizens in LLM pipelines, enabling structured management, adaptive refinement, and policy-driven control for improved flexibility and reuse.
Contribution
SPEAR's design allows prompts to be dynamically refined during execution, enhancing adaptability and integration within complex LLM workflows.
Findings
Preliminary results show promising potential for runtime prompt refinement.
Structured prompt management improves introspection and provenance tracking.
Policy-driven control enables automatic prompt updates based on runtime feedback.
Abstract
Modern LLM pipelines increasingly resemble complex data-centric applications: they retrieve data, correct errors, call external tools, and coordinate interactions between agents. Yet, the central element controlling this entire process -- the prompt -- remains a brittle, opaque string that is entirely disconnected from the surrounding program logic. This disconnect fundamentally limits opportunities for reuse, optimization, and runtime adaptivity. In this paper, we describe our vision and an initial design of SPEAR (Structured Prompt Execution and Adaptive Refinement), a new approach to prompt management that treats prompts as first-class citizens in the execution model. Specifically, SPEAR enables: (1) structured prompt management, with prompts organized into versioned views to support introspection and reasoning about provenance; (2) adaptive prompt refinement, whereby prompts can…
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.
