Yesterday's Shield, Today's Spear: A Self-Evolving Safety Guardrail in Production

Cong Ming, Jingyi Chen, Bin Liu, Qi Chu, Tao Gong +2 more
8/9/2026
cs.AI

Official code: Trams1017/SESG (10 stars, last commit 2026-10-26).

Abstract

Deployed LLM safety guardrails are predominantly static: trained once and frozen at release, while new jailbreak techniques and previously un-addressed harmful categories emerge within days, leaving the defense perpetually a step behind. We present SESG (Self-Evolving Safety Guardrails), a multi-agent system running in production.

Show full abstract

SESG monitors the live traffic behind a deployed guardrail and surfaces two classes of failure: jailbreaks novel in form and harmful categories novel in content. Once a failure is confirmed, a generation agent synthesizes paired training data targeted at it; a validation agent rebalances the batch toward the direction in which the deployed model errs, so that the model's own mistakes steer its training set; and a routing agent matches the training action to the diagnosed gap and returns the next version to production. Over six rounds of live evolution (V0 to V6), a 1.7B guardrail adapts to a new threat in 16-24 hours, with about 2 hours of human effort, versus the 40-90 hours of the manual process it replaces. On six emerging threats, it outperforms static guardrails from 0.6B to 9B and an adaptive baseline while preserving its general screening competence. Since April 2026, SESG has been the primary update pipeline of Sangfor's guardrail, autonomously closing 14 of 15 new threat scenarios in two months. We release 9 test sets for the 6 new threats at https://github.com/Trams1017/SESG. Warning: This paper contains examples that may be harmful or offensive.

View on arXivView PDF

Code Implementations(1)

Trams1017/SESGOfficial100%
102May 28, 20261 months ago

Similar Papers

Cite this paper

@article{ming2026yesterdays,
  title  = {Yesterday's Shield, Today's Spear: A Self-Evolving Safety Guardrail in Production},
  author = {Cong Ming and Jingyi Chen and Bin Liu and Qi Chu and Tao Gong and Nenghai Yu and Yingfei Xiang},
  year   = {2026},
  eprint = {2608.08471},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2608.08471v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2608.08471.svg)](https://codeofpaper.com/paper/2608.08471)

Discussion