Research question
Can post-training improve prompt-injection resistance while preserving useful behavior and fairness?
Approach
- Developing SFT/DPO experiments on Qwen2.5-1.5B with PyTorch, Hugging Face TRL, and PEFT/LoRA.
- Using Microsoft BIPIA prompts for instruction-in-untrusted-content scenarios.
- Designed comparisons with spotlighting, sandwich prompting, and instruction hierarchy.
- Implemented a regression-evaluation pipeline using JailbreakBench, XSTest, and BBQ, with paired statistical tests and human-audit design.
Findings & status
- The safety release-evaluation pipeline and CI tests have been implemented.
- Full checkpoint comparisons and efficacy results are pending.
This is active research; no completed post-training safety gains are claimed.
Benchmarks & safety release-gate architecture
Safety post-training often trades off against helpfulness through excessive refusals or demographic bias regressions. RAI-Gate treats model release as a multi-dimensional regression gate combining four established evaluation dimensions: indirect prompt-injection resistance (Microsoft BIPIA), jailbreak robustness (JailbreakBench), exaggerated refusal on benign look-alike prompts (XSTest), and social-bias auditing (BBQ), paired with statistical hypothesis testing and LoRA SFT/DPO comparisons against prompt-level mitigations such as spotlighting and instruction hierarchy.
Technical Q&A
Why evaluate XSTest and BBQ alongside JailbreakBench and BIPIA? ▾
Measuring only attack refusal can reward checkpoints that refuse benign requests or amplify demographic stereotypes. Pairing JailbreakBench and BIPIA with XSTest (over-refusal) and BBQ (bias) enforces balanced release gating before a post-trained checkpoint is promoted.
How does post-training defense complement runtime security? ▾
Post-training methods (SFT/DPO and instruction hierarchy) strengthen model-internal adherence to privilege levels, whereas runtime guards such as AgentSentry enforce external execution boundaries at the tool interface.
References
- Yi et al. (2023), Benchmarking and Defending Against Indirect Prompt Injection Attacks on Large Language Models (BIPIA) (arXiv:2312.14197) ↗
- Chao et al. (2024), JailbreakBench: An Open Robustness Benchmark for Jailbreaking Large Language Models (arXiv:2404.01318) ↗
- Röttger et al. (2024), XSTest: A Test Suite for Identifying Exaggerated Safety Behaviours in Large Language Models (arXiv:2308.01263) ↗
- Parrish et al. (2022), BBQ: A Hand-Built Bias Benchmark for Question Answering, Findings of ACL 2022 ↗
- Rafailov et al. (2023), Direct Preference Optimization (DPO) (arXiv:2305.18290) ↗
