GuardReasoner-VL: Safeguarding VLMs via Reinforced Reasoning
About
To enhance the safety of VLMs, this paper introduces a novel reasoning-based VLM guard model dubbed GuardReasoner-VL. The core idea is to incentivize the guard model to deliberatively reason before making moderation decisions via online RL. First, we construct GuardReasoner-VLTrain, a reasoning corpus with 123K samples and 631K reasoning steps, spanning text, image, and text-image inputs. Then, based on it, we cold-start our model's reasoning ability via SFT. In addition, we further enhance reasoning regarding moderation through online RL. Concretely, to enhance diversity and difficulty of samples, we conduct rejection sampling followed by data augmentation via the proposed safety-aware data concatenation. Besides, we use a dynamic clipping parameter to encourage exploration in early stages and exploitation in later stages. To balance performance and token efficiency, we design a length-aware safety reward that integrates accuracy, format, and token cost. Extensive experiments demonstrate the superiority of our model. Remarkably, it surpasses the runner-up by 19.27% F1 score on average. We release data, code, and models (3B/7B) of GuardReasoner-VL at https://github.com/yueliu1999/GuardReasoner-VL/
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Response Harmfulness Detection | HarmBench | F1 Score86.82 | 100 | |
| Response Harmfulness Detection | XSTEST-RESP | Response Harmfulness F192.72 | 76 | |
| Text-based safety moderation | Beavertails | F1 Score84.49 | 60 | |
| Response Harmfulness Detection | Beavertails | F1 Score85.19 | 59 | |
| Harmfulness Detection | OpenAI Moderation | Macro F1 Score71.24 | 59 | |
| Safety Classification | SafeRLHF | F1 Score0.6663 | 48 | |
| Policy Following | POLICYSHIFTBENCH (Adaptive split) | Accuracy52.2 | 44 | |
| Prompt injection detection | PopUp attack (top visited websites) | Accuracy52 | 40 | |
| Safety Evaluation | UnsafeBench | F1 Score84.17 | 39 | |
| Response Classification | BeaverTails V Text-Image Response | F1 Score82.35 | 39 |