FEAT: Added VLSU Multimodal Dataset #1309
Merged
rlundeen2 merged 11 commits intomicrosoft:mainfrom Jan 14, 2026
Merged
Conversation
rlundeen2
reviewed
Jan 10, 2026
rlundeen2
reviewed
Jan 10, 2026
rlundeen2
reviewed
Jan 10, 2026
rlundeen2
reviewed
Jan 10, 2026
rlundeen2
reviewed
Jan 10, 2026
Contributor
rlundeen2
left a comment
There was a problem hiding this comment.
This is good! Thank you! I think once comments are addressed and CI passes it should be ready to merge.
…p_id and are added/skipped together based on combined_grade. This ensures they can be sent as a single multimodal message.
Contributor
Author
I've made all the changes you mentioned, please lmk if you think any more changes are needed! |
rlundeen2
approved these changes
Jan 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Added VLSU multimodal dataset. This dataset contains multimodal prompts (text+images) which have safety gradings and categories for the text, images and both combined. This functionality creates text prompts, image prompts and multimodal prompts from the same.
Closes #1285.
Files Changed:
pyrit/datasets/seed_datasets/remote/vlsu_multimodal_dataset.py(new)pyrit/datasets/seed_datasets/remote/__init__.py(updated exports)pyrit/datasets/__init__.py(updated exports)tests/unit/datasets/test_vlsu_multimodal_dataset.py(new)pyrit/models/seed.py(added optionalprompt_textoption in the image prompt)Features:
-- Text-only prompts: When text_grade is unsafe/borderline
-- Image-only prompts: When image_grade is unsafe/borderline
-- Combined prompts: When combined_grade is unsafe/borderline (captures emergent harm)
Tests and Documentation
Some essential unit tests added in
tests/unit/datasets/test_vlsu_multimodal_dataset.py-- Test dataset name property
-- Test initialization with categories
-- Test invalid categories raise ValueError
-- Test text-only prompt creation (unsafe text grade)
-- Test image-only prompt creation (unsafe image grade)
-- Test combined prompt creation (unsafe combined grade)
-- Test all prompts created when all grades unsafe
-- Test borderline grades trigger prompt creation
-- Test no prompts when all grades safe (expects error)
-- Test category filtering
-- Test handling of failed image downloads
pre-commit run --all-filespasses