Risk-certified prompt optimization for LLM-as-a-judge guardrails
On the map: LLM safety and security → Prompt injection and agent security also fits: Safety alignment, refusal and guardrails
Abstract (arXiv)
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 α 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.
Key facts. No citing papers in the map yet (data through 24 Nov 2026). Placed in Prompt injection and agent security, one of 12 directions in LLM safety and security. Builds on 24 of its 38 references that are in the map. Submitted 15 Nov 2026.
Builds on
24 of 38 references.
Closest ancestors · 1
Same direction, newest first
- 2023Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models21 Dec
Other references · 23
- 2023Judging LLM-as-a-Judge with MT-Bench and Chatbot Arenacited by 9,360
- 2024A Survey on LLM-as-a-Judgecited by 1,528
- 2023Llama Guard: LLM-based Input-Output Safeguard for Human-AI Conversationscited by 1,337
- 2023Large Language Models are not Fair Evaluatorscited by 1,204
- 2022Large Language Models Are Human-Level Prompt Engineerscited by 1,102
- 2023Large Language Models as Optimizerscited by 985
- 2023Quantifying Language Models' Sensitivity to Spurious Features in Prompt Design or: How I learned to start worrying about prompt formattingcited by 916
- 2023BeaverTails: Towards Improved Safety Alignment of LLM via a Human-Preference Datasetcited by 908
- 2023Automatic Prompt Optimization with "Gradient Descent" and Beam Searchcited by 711
- 2025GEPA: Reflective Prompt Evolution Can Outperform Reinforcement Learningcited by 699
- 2023Promptbreeder: Self-Referential Self-Improvement Via Prompt Evolutioncited by 619
- 2023NeMo Guardrails: A Toolkit for Controllable and Safe LLM Applications with Programmable Railscited by 397
11 more
- 2023JudgeLM: Fine-tuned Large Language Models are Scalable Judgescited by 387
- 2022Conformal Risk Controlcited by 369
- 2021Learn then Test: Calibrating Predictive Algorithms to Achieve Risk Controlcited by 345
- 2024Optimizing Instructions and Demonstrations for Multi-Stage Language Model Programscited by 332
- 2021Distribution-Free, Risk-Controlling Prediction Setscited by 329
- 2024ShieldGemma: Generative AI Content Moderation Based on Gemmacited by 276
- 2023Conformal Language Modelingcited by 189
- 2024Best-of-N Jailbreakingcited by 92
- 2023Prompt Risk Control: A Rigorous Framework for Responsible Deployment of Large Language Modelscited by 20
- 2024Adaptive Learn-then-Test: Statistically Valid and Efficient Hyperparameter Selectioncited by 16
- 2019Guaranteed Validity for Empirical Approaches to Adaptive Data Analysiscited by 8
Built on by
Not cited yet.
Similar, not cited
Close in wording, no citation either way
- 2026Prompt Attack Detection with LLM-as-a-Judge and Mixture-of-Models
- 2025Auto-Tuning Safety Guardrails for Black-Box Large Language Models
- 2026Proactive Hardening of LLM Defenses with HASTE
- 2025Are My Optimized Prompts Compromised? Exploring Vulnerabilities of LLM-based Optimizers
- 2026A Dual-Hypothesis Reasoning Framework for LLM Guardrails
- 2026Test-Time Training Undermines Safety Guardrails
- 2026Evaluating Prompt Injection Defenses for Educational LLM Tutors: Security-Usability-Latency Trade-offs
- 2024Optimization-based Prompt Injection Attack to LLM-as-a-Judge