Skip to content

Commit 03e4840

Browse files
romanlutzCopilotValbuenaVC
authored
FEAT: Add MM-SafetyBench seed dataset loader (#1790)
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Victor Valbuena <50061128+ValbuenaVC@users.noreply.github.com>
1 parent 35ad9f0 commit 03e4840

7 files changed

Lines changed: 1025 additions & 1 deletion

File tree

‎doc/bibliography.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ All academic papers, research blogs, and technical reports referenced throughout
55
:::{dropdown} Citation Keys
66
:class: hidden-citations
77

8-
[@aakanksha2024multilingual; @adversaai2023universal; @andriushchenko2024tense; @anthropic2024manyshot; @aqrawi2024singleturncrescendo; @atr2026; @bethany2024mathprompt; @bhardwaj2023harmfulqa; @bhardwaj2024homer; @brahman2024coconot; @bryan2025agentictaxonomy; @bullwinkel2025airtlessons; @bullwinkel2025repeng; @bullwinkel2026trigger; @chao2023pair; @chao2024jailbreakbench; @cui2024orbench; @darkbench2025; @derczynski2024garak; @ding2023wolf; @embracethered2024unicode; @embracethered2025sneakybits; @gehman2020realtoxicityprompts; @ghosh2025aegis; @gong2025figstep; @gupta2024walledeval; @haider2024phi3safety; @han2024medsafetybench; @hines2024spotlighting; @ji2023beavertails; @ji2024pkusaferlhf; @jiang2025sosbench; @jones2025computeruse; @kingma2014adam; @li2024mossbench; @li2024saladbench; @li2024wmdp; @lin2023toxicchat; @liu2024flipattack; @lopez2024pyrit; @luo2024jailbreakv; @lv2024codechameleon; @mazeika2023tdc; @mazeika2024harmbench; @mckee2024transparency; @mehrotra2023tap; @microsoft2024skeletonkey; @palaskar2025vlsu; @pfohl2024equitymedqa; @promptfoo2025ccp; @robustintelligence2024bypass; @roccia2024promptintel; @rottger2023xstest; @rottger2025msts; @russinovich2024crescendo; @russinovich2025price; @scheuerman2025transphobia; @shaikh2022second; @shayegani2025computeruse; @shen2023donotanything; @sheshadri2024lat; @souly2024strongreject; @stok2023ansi; @tan2026comicjailbreak; @tang2025multilingual; @tedeschi2024alert; @vantaylor2024socialbias; @vidgen2023simplesafetytests; @vidgen2024ailuminate; @wang2023decodingtrust; @wang2023donotanswer; @wang2025siuo; @wei2023jailbroken; @xie2024sorrybench; @yu2023gptfuzzer; @yuan2023cipherchat; @zeng2024persuasion; @zhang2024cbtbench; @ziems2022mic; @zou2023gcg]
8+
[@aakanksha2024multilingual; @adversaai2023universal; @andriushchenko2024tense; @anthropic2024manyshot; @aqrawi2024singleturncrescendo; @atr2026; @bethany2024mathprompt; @bhardwaj2023harmfulqa; @bhardwaj2024homer; @brahman2024coconot; @bryan2025agentictaxonomy; @bullwinkel2025airtlessons; @bullwinkel2025repeng; @bullwinkel2026trigger; @chao2023pair; @chao2024jailbreakbench; @cui2024orbench; @darkbench2025; @derczynski2024garak; @ding2023wolf; @embracethered2024unicode; @embracethered2025sneakybits; @gehman2020realtoxicityprompts; @ghosh2025aegis; @gong2025figstep; @gupta2024walledeval; @haider2024phi3safety; @han2024medsafetybench; @hines2024spotlighting; @ji2023beavertails; @ji2024pkusaferlhf; @jiang2025sosbench; @jones2025computeruse; @kingma2014adam; @li2024mossbench; @li2024saladbench; @li2024wmdp; @lin2023toxicchat; @liu2024flipattack; @liu2024mmsafetybench; @lopez2024pyrit; @luo2024jailbreakv; @lv2024codechameleon; @mazeika2023tdc; @mazeika2024harmbench; @mckee2024transparency; @mehrotra2023tap; @microsoft2024skeletonkey; @palaskar2025vlsu; @pfohl2024equitymedqa; @promptfoo2025ccp; @robustintelligence2024bypass; @roccia2024promptintel; @rottger2023xstest; @rottger2025msts; @russinovich2024crescendo; @russinovich2025price; @scheuerman2025transphobia; @shaikh2022second; @shayegani2025computeruse; @shen2023donotanything; @sheshadri2024lat; @souly2024strongreject; @stok2023ansi; @tan2026comicjailbreak; @tang2025multilingual; @tedeschi2024alert; @vantaylor2024socialbias; @vidgen2023simplesafetytests; @vidgen2024ailuminate; @wang2023decodingtrust; @wang2023donotanswer; @wang2025siuo; @wei2023jailbroken; @xie2024sorrybench; @yu2023gptfuzzer; @yuan2023cipherchat; @zeng2024persuasion; @zhang2024cbtbench; @ziems2022mic; @zou2023gcg]
99

1010
:::

‎doc/code/datasets/1_loading_datasets.ipynb‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
"JailbreakV-28K [@luo2024jailbreakv],\n",
3434
"LLM-LAT [@sheshadri2024lat],\n",
3535
"MedSafetyBench [@han2024medsafetybench],\n",
36+
"MM-SafetyBench [@liu2024mmsafetybench],\n",
3637
"Moral Integrity Corpus [@ziems2022mic],\n",
3738
"MOSSBench [@li2024mossbench],\n",
3839
"Multilingual Alignment Prism [@aakanksha2024multilingual],\n",
@@ -120,6 +121,7 @@
120121
" 'mental_health_crisis_multiturn_example',\n",
121122
" 'ml_vlsu',\n",
122123
" 'mlcommons_ailuminate',\n",
124+
" 'mm_safetybench',\n",
123125
" 'moral_integrity_corpus',\n",
124126
" 'mossbench',\n",
125127
" 'msts',\n",

‎doc/code/datasets/1_loading_datasets.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@
3737
# JailbreakV-28K [@luo2024jailbreakv],
3838
# LLM-LAT [@sheshadri2024lat],
3939
# MedSafetyBench [@han2024medsafetybench],
40+
# MM-SafetyBench [@liu2024mmsafetybench],
4041
# Moral Integrity Corpus [@ziems2022mic],
4142
# MOSSBench [@li2024mossbench],
4243
# Multilingual Alignment Prism [@aakanksha2024multilingual],

‎doc/references.bib‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -697,3 +697,11 @@ @inproceedings{ziems2022mic
697697
url = {https://aclanthology.org/2022.acl-long.261},
698698
note = {ACL 2022},
699699
}
700+
701+
@inproceedings{liu2024mmsafetybench,
702+
title = {{MM-SafetyBench}: A Benchmark for Safety Evaluation of Multimodal Large Language Models},
703+
author = {Xin Liu and Yichen Zhu and Jindong Gu and Yunshi Lan and Chao Yang and Yu Qiao},
704+
booktitle = {Proceedings of the European Conference on Computer Vision (ECCV)},
705+
year = {2024},
706+
url = {https://arxiv.org/abs/2311.17600},
707+
}

‎pyrit/datasets/seed_datasets/remote/__init__.py‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,11 @@
100100
from pyrit.datasets.seed_datasets.remote.mlcommons_ailuminate_dataset import (
101101
_MLCommonsAILuminateDataset,
102102
) # noqa: F401
103+
from pyrit.datasets.seed_datasets.remote.mm_safetybench_dataset import (
104+
MMSafetyBenchCategory,
105+
MMSafetyBenchVariant,
106+
_MMSafetyBenchDataset,
107+
) # noqa: F401
103108
from pyrit.datasets.seed_datasets.remote.moral_integrity_corpus_dataset import (
104109
_MICDataset,
105110
) # noqa: F401
@@ -189,6 +194,8 @@
189194
"FigStepCategory",
190195
"FigStepVariant",
191196
"HiXSTestLanguage",
197+
"MMSafetyBenchCategory",
198+
"MMSafetyBenchVariant",
192199
"MossBenchOversensitivityType",
193200
"PromptIntelCategory",
194201
"PromptIntelSeverity",
@@ -231,6 +238,7 @@
231238
"_MedSafetyBenchDataset",
232239
"_MICDataset",
233240
"_MLCommonsAILuminateDataset",
241+
"_MMSafetyBenchDataset",
234242
"_MossBenchDataset",
235243
"_MSTSDataset",
236244
"_MultilingualVulnerabilityDataset",

0 commit comments

Comments
 (0)