Risk-certified prompt optimization for LLM-as-a-judge guardrails
Hussein Jawad, Alexandre Landeau, Guy Fleury Iradukunda, Paul Beaumont, Th\'eodore Rezel, Sofiane Schaack, Nicolas J-B. Brunel
Key points
From the paper's conclusion- LLM-as-a-judge guardrails are often controlled primarily through system prompts, yet standard prompt optimization methods target average performance rather than explicit safety constraints.
Abstract
LLM-as-a-judge guardrails are often controlled primarily through system prompts, yet standard prompt optimization methods target average performance rather than explicit safety constraints. This paper studies system-prompt selection as a constrained optimization problem: maximize benign pass rate while keeping the missed-attack rate below a user-specified level {\alpha} with finite-sample statistical control. The framework combines LLM-based judging, automatic prompt generation, and distribution-free risk certification. This work instantiates it in two procedures: CPS and CRISP. CPS generates a fixed pool of prompts from training data, then certifies candidates on a held-out evaluation set using simultaneous upper confidence bounds and selects the certified prompt with the highest benign utility. CRISP instead integrates risk feedback into an adaptive search, using hard example-guided rewriting and a reusable-holdout interface to steer generation toward the feasible utility frontier. Experiments on four datasets covering prompt injection, system-prompt leakage, and sensitive-information disclosure show that risk-certified selection consistently respects the target missed-attack level on heldout tests, while utility improves as the permitted risk is relaxed. CRISP is especially useful when fixed-pool search fails to produce certifiable high-utility candidates.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- C-SafeGen: Certified Safe LLM Generation with Claim-Based Streaming GuardrailsarXiv · 2026
- Tight PAC-Bayes Generalisation Guarantees for Large Language Model JudgesarXiv · 2026
- ProbGuard: Calibrated Safety Risk Estimation from LLM Output DistributionsarXiv · 2026
- MLCommons Jailbreak Benchmark v1.0arXiv · 2026
- Treating the Model as an Untrusted Component: Deterministic Policy Enforcement, Human Approval and Taint Tracking Against Prompt Injection in Tool-Using Agents, with Validation on Open-Weights ModelsarXiv · 2026
- ToolFence: Fine-Grained Authorization for Secure Tool-Using LLM AgentsarXiv · 2026