Risk-certified prompt optimization for LLM-as-a-judge guardrails
Hussein Jawad, Alexandre Landeau, Guy Fleury Iradukunda, Paul Beaumont, Théodore Rezel, Sofiane Schaack, Nicolas J-B. Brunel
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 α 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.
Create a lesson
Related papers
Hy-MT3: More Accurate, Robust and Practical Multilingual Translation Models in the Wild
Mao Zheng, Zheng Li, Fangxu Liu et al.
Auditing Post-Training Unlearning in Diffusion Language Models using Sparse Autoencoders
Yunha Seo, Changhoon Kim
Tasklets: A Unit-Test Benchmark for Language Model Architectures
Zayd Muhammad Kawakibi Zuhri, Munachiso Samuel Nwadike, Kentaro Inui et al.
Alliance Rupture and Repair in Simulating Cognitive Behavioral Therapy Dialogues
Jian Chai, Yitian Yang, Siqi Liu et al.
Open CDLM: A Benchmark and Library for Continuous Diffusion Language Models
Hao Jiang, Ruixi Chen, Jiayi Han et al.
How Many Bytes Has a BPE Model Seen? Estimating Byte-Token Exposure in Pretraining from Corpus Statistics and Embedding Norms
Liwei Zhang, ZhiMing Tong, Mochen Guan et al.