Making Prompts First-Class Citizens for Adaptive LLM Pipelines

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Cetintemel, Ugur, Chen, Shu, Lee, Alexander W., Raghavan, Deepti, Lu, Duo, Crotty, Andrew
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866915914242326528
author Cetintemel, Ugur
Chen, Shu
Lee, Alexander W.
Raghavan, Deepti
Lu, Duo
Crotty, Andrew
author_facet Cetintemel, Ugur
Chen, Shu
Lee, Alexander W.
Raghavan, Deepti
Lu, Duo
Crotty, Andrew
contents 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 evolve dynamically during execution based on runtime feedback; and (3) policy-driven control, a mechanism for the specification of automatic prompt refinement logic as when-then rules. By tackling the problem of runtime prompt refinement, SPEAR plays a complementary role in the vast ecosystem of existing prompt optimization frameworks and semantic query processing engines. We describe a number of related optimization opportunities unlocked by the SPEAR model, and our preliminary results demonstrate the strong potential of this approach.
format Preprint
id arxiv_https___arxiv_org_abs_2508_05012
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Making Prompts First-Class Citizens for Adaptive LLM Pipelines
Cetintemel, Ugur
Chen, Shu
Lee, Alexander W.
Raghavan, Deepti
Lu, Duo
Crotty, Andrew
Databases
Artificial Intelligence
Computation and Language
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 evolve dynamically during execution based on runtime feedback; and (3) policy-driven control, a mechanism for the specification of automatic prompt refinement logic as when-then rules. By tackling the problem of runtime prompt refinement, SPEAR plays a complementary role in the vast ecosystem of existing prompt optimization frameworks and semantic query processing engines. We describe a number of related optimization opportunities unlocked by the SPEAR model, and our preliminary results demonstrate the strong potential of this approach.
title Making Prompts First-Class Citizens for Adaptive LLM Pipelines
topic Databases
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2508.05012