6
stars
6
commits
Python
primary language
Aug 3, 2025
updated
conda environment and activate it by following commandconda create --name SDEval python=3.10
pip install -r requirements.txt
pip install --upgrade transformers
bash scripts/data.sh
bash scripts/eval.sh
We introduce SDEval, a safety dynamic evaluation framework for MLLMs.
After reviewing existing benchmarks, we identify the following main challenges in achieving reliable safety evaluation:
To tackle these challenges, we propose SDEval, a novel, general, and flexible framework for safety dynamic evaluation of MLLMs. To dynamically create new evaluation suites with flexible complexity, we divide the dynamic strategies into three parts: 1) Text Dynamics, which aims to figure out whether MLLMs can grasp the critical safety information in the prompt, which is presented in different types of expressions. We generate the new texts using methods such as character perturbation, linguistic mix, chain-of-thought injection, and so on. 2) Image Dynamics, which aims to explore whether MLLMs can consistently focus on safety-related subjects in images without being disturbed by other factors. We utilize tricks like diffusion-based generation and editing to modify original images. 3) Text-Image Dynamics, aiming to evaluate whether MLLMs can provide a deeper understanding of the safety of image-text pairs, and whether MLLMs can cope with common jailbreaking inputs. We focus on the combined impact of images and text on safety, as well as the influence of their interaction on safety. By integrating text and image dynamics into a comprehensive framework, SDEval can significantly improve data complexity and difficulty, as shown in Figure \ref{pipeline}. SDEval is general and flexible, which can co-exist and co-evolve with existing benchmarks. Additionally, SDEval can also be utilized for capability dynamic evaluation. From a capability-safety balance perspective, SDEval reveals that most models exhibit greater instability in safety compared to capability, indicating an urgent requirement for further improvements in model safety.
Examples of Dynamic Generation Datasets of MLLMGuard. The newly generated dynamic data maintains semantic consistency with the original data after verification.
6 commits
Python
98.3%
Shell
1.7%
6
stars
6
commits
Python
primary language
Aug 3, 2025
updated
conda environment and activate it by following commandconda create --name SDEval python=3.10
pip install -r requirements.txt
pip install --upgrade transformers
bash scripts/data.sh
bash scripts/eval.sh
We introduce SDEval, a safety dynamic evaluation framework for MLLMs.
After reviewing existing benchmarks, we identify the following main challenges in achieving reliable safety evaluation:
To tackle these challenges, we propose SDEval, a novel, general, and flexible framework for safety dynamic evaluation of MLLMs. To dynamically create new evaluation suites with flexible complexity, we divide the dynamic strategies into three parts: 1) Text Dynamics, which aims to figure out whether MLLMs can grasp the critical safety information in the prompt, which is presented in different types of expressions. We generate the new texts using methods such as character perturbation, linguistic mix, chain-of-thought injection, and so on. 2) Image Dynamics, which aims to explore whether MLLMs can consistently focus on safety-related subjects in images without being disturbed by other factors. We utilize tricks like diffusion-based generation and editing to modify original images. 3) Text-Image Dynamics, aiming to evaluate whether MLLMs can provide a deeper understanding of the safety of image-text pairs, and whether MLLMs can cope with common jailbreaking inputs. We focus on the combined impact of images and text on safety, as well as the influence of their interaction on safety. By integrating text and image dynamics into a comprehensive framework, SDEval can significantly improve data complexity and difficulty, as shown in Figure \ref{pipeline}. SDEval is general and flexible, which can co-exist and co-evolve with existing benchmarks. Additionally, SDEval can also be utilized for capability dynamic evaluation. From a capability-safety balance perspective, SDEval reveals that most models exhibit greater instability in safety compared to capability, indicating an urgent requirement for further improvements in model safety.
Examples of Dynamic Generation Datasets of MLLMGuard. The newly generated dynamic data maintains semantic consistency with the original data after verification.
6 commits
Python
98.3%
Shell
1.7%