Research Published here Reported by arXiv on

SPLICE optimizes your agent prompt without quietly deleting the clauses you cannot remove

Anish Acharya, Phillip Studans, Amit Dhanda, Sina Amini Niaki, Ninad Vivek Rao, Vishal Amarlal Khatri, and Brian Verkhovsky introduce SPLICE, a prompt optimization framework built around a problem that automated optimizers routinely cause: they edit the whole prompt freely and discard constraints that cost metric points. The paper names three recurring failure modes in existing natural-language optimization methods — unsafe global edits, beam collapse, and uncontrolled prompt growth — and addresses each with a formal guarantee rather than a heuristic. SPLICE treats a prompt as a block-structured, selectively-mutable state: some blocks are frozen contract clauses, others are open to mutation, and search proceeds as constrained combinatorial evolution over that structure. The theoretical contributions are a price-of-freezing bound for contract preservation, exponential tail bounds on regression under noisy evaluation, an explicit accuracy-length bias bound via ratio regularization, and convergence rate bounds based on edit-graph reachability. Empirically it wins on four of seven public benchmarks and matches the strongest prior methods on the other three, while preserving contract clauses that unconstrained optimizers sacrifice for metric gains. Ablations attribute the gains to the critique mechanism and elitist search.

Why it matters

Anyone who has run an automated prompt optimizer in production has watched it find a clever phrasing that scores better and quietly removes the refusal policy, the output schema instruction, or the regulatory disclaimer — because the objective function never mentioned them. SPLICE's framing is that those lines are a contract, not prose, and should be structurally immutable rather than defended by hoping the optimizer behaves. The "matches, does not beat, on three of seven" result is the honest reading: you are buying safety properties roughly at parity on accuracy, which is a good trade and a weak headline. The price-of-freezing bound is the genuinely useful abstraction — it puts a number on what your non-negotiable clauses cost you in achievable performance, which is a conversation you can finally have with evidence.

What to do

Restructure your production prompts into explicit blocks now, even if you never run an optimizer: mark which sections are contract — output format, safety policy, compliance language, tool-use constraints — and which are free text, because that annotation is what makes every later automated edit reviewable. Add a contract-preservation check to your prompt CI that fails the build when a required clause disappears, which catches both optimizers and well-meaning humans. And when you evaluate an optimized prompt, measure prompt length and clause retention alongside accuracy, since uncontrolled growth and silent deletion are the two ways these systems degrade while their scores improve.

Tags: Prompt Engineering Evaluation Research Agents

More from November 19, 2026

All AI news