USTC and others propose RePolicy: a 4B agent guardrail that autonomously selects safety policies, outperforming Claude Sonnet 4.6 in evaluation
4B小模型逆袭!中科大提出RePolicy:会自己挑选安全规则的Agent安全护栏
A team from USTC, together with Zhejiang University and the National University of Singapore, proposes an agent safety guardrail, RePolicy, which lets the guardrail autonomously select applicable rules from a policy library as if calling a tool, then make risk judgments based on the rules; RePolicy-4B, based on Qwen3-4B, achieves an overall Unsafe F1 of 88.15 across 6 benchmark evaluations including ATBench and R-Judge, exceeding Claude Sonnet 4.6's 84.17. The team built the PolicyTraj-20K dataset of more than 20,000 samples, first using SFT for cold start and then GRPO reinforcement learning; reinforcement learning raises policy selection accuracy from 94.4% to 98.5%, with a decoy policy selection rate below 1%. Ablation experiments show that removing the policy selection step lowers the overall metric by 2.3 points. The paper also lists limitations such as assuming the correct policy must be in the candidate library and currently being offline evaluation rather than real-time interception. The dataset, code, and model weights are open-sourced, and the paper is at arXiv 2608.24275.