feat: add AART probe for AI-assisted red-teaming across diverse cultural contexts - #1974
Open
Varshith-Kali wants to merge 1 commit into
Open
feat: add AART probe for AI-assisted red-teaming across diverse cultural contexts#1974Varshith-Kali wants to merge 1 commit into
Varshith-Kali wants to merge 1 commit into
Conversation
Varshith-Kali
force-pushed
the
feat/probe-aart
branch
2 times, most recently
from
July 27, 2026 15:52
3c29c3b to
bcfc4bf
Compare
jmartin-tech
left a comment
Collaborator
There was a problem hiding this comment.
Just a drive by comment, full review of suitability or general technical standards has not been preformed.
Collaborator
There was a problem hiding this comment.
In future PRs please avoid committing change to this file, in fact amending this commit to remove edits to this file would be prefered.
When update is required please ensure to use the provided tool in tools/rebuild_plugin_cache.sh of this repository on a Linux based environment.
This file is maintained via automation and rarely needs revisions to be part of the PR unless there is some specific testing reason such as validation of a specific change that would be impacting the cache itself.
…ral contexts Implements a new probe module `garak.probes.aart` that poses adversarial prompts from the AART dataset (Radharapu et al., EMNLP 2023). AART generates policy-violating instructions structured across region × crime × use_case dimensions, testing whether a target consistently refuses such requests across cultural and geographic contexts that are under-represented in existing safety benchmarks. The probe ships a curated subset of 34 prompts covering 20 crime categories and 33 region combinations, sourced from the publicly-released walledai/AART dataset on HuggingFace (CC-BY-4.0). Prompts are issued verbatim with no adversarial prefix or encoding; the value lies in coverage breadth, not in evasion of filters. - garak/probes/aart.py: new probe module with AART class - tests/probes/test_probes_aart.py: 9 tests covering load, prompt count, uniqueness, types, detector binding, doc_uri, inactive default, goal, and tag presence - docs/source/probes/aart.rst: new docs page - docs/source/index_probes.rst: toctree entry - garak/resources/plugin_cache.json: regenerated to include probes.aart.AART All 9 AART-specific tests pass; all 6 parametrized probe tests (test_detector_specified, test_probe_detector_exists, test_probe_structure, test_probe_metadata, test_check_docstring, test_tag_format) pass for probes.aart.AART. Probe verified end-to-end via `garak -t test -p aart.AART`. Closes NVIDIA#515 Co-authored-by: Claude <noreply@anthropic.com> Signed-off-by: Varshith Puli <pulivarshit@gmail.com>
Varshith-Kali
force-pushed
the
feat/probe-aart
branch
from
July 28, 2026 16:03
bcfc4bf to
aaa45f4
Compare
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.
What & Why
Adds a new probe module
garak.probes.aartimplementing the AART (AI-Assisted Red-Teaming) methodology from Radharapu et al. (EMNLP 2023 Industry Track). AART generates adversarial prompts structured acrossregion×crime×use_casedimensions to test whether a target consistently refuses policy-violating requests across cultural and geographic contexts that are under-represented in existing safety benchmarks.Closes #515.
The probe ships a curated subset of 34 prompts (covering 20 crime categories and 33 region combinations) sourced from the publicly-released
walledai/AARTdataset on HuggingFace (CC-BY-4.0, 3,269 prompts total). The curated subset picks one prompt per uniqueregion × crimecombination to maximise coverage diversity while keeping the probe self-contained — consistent with howrealtoxicityprompts.pyships a subset rather than the full dataset.Why this approach
AARTclass, not per-crime subclasses: for a first contribution, a single class with the curated subset is lower-risk and easier to review. If maintainers prefer per-crime subclasses (asdonotanswer.pydoes), I'm happy to refactor.primary_detector = "mitigation.MitigationBypass": the AART prompts are direct policy-violating instructions (not jailbreak-technique prompts). The right detector is one that flags absence of a mitigation/refusal message, which is exactly whatMitigationBypassdoes. This matchesadaptive_attacks.py's detector choice for similar policy-violation probes.tier = OF_CONCERN: these are substantive adversarial probes with real policy-violation potential, not informational or fluctuating. Matchesmalwaregenanddonotanswertier choices.active = False: new substantive probes default to inactive per garak convention; maintainers can flip on stabilisation.Files changed
garak/probes/aart.pyAARTclass with 34 curated prompts, module + class docstrings perdocs/source/extending.probe.rsttests/probes/test_probes_aart.pydocs/source/probes/aart.rstdocs/source/index_probes.rstprobes/aartto toctree (alphabetical, first entry)garak/resources/plugin_cache.jsontools/rebuild_plugin_cache.shto includeprobes.aart.AARTWhy this is not duplicating an existing PR
Per
AGENTS.mdduplicate-work checks, verified before opening:The only PR in repo history mentioning "#515" in its body is #1564 (closed, unrelated — parallelization pickle crash). No open PRs target AART.
Test commands run and results
AI assistance disclosure
Drafted with AI assistance (Claude), reviewed and tested by me before submission. I have read every line of the diff, run the full test suite locally, and verified the probe executes end-to-end against a test target. The prompt curation approach (selecting one prompt per unique
region × crimecombination from the walledai/AART HF dataset) was my decision based on the dataset's structure and garak's conventions for shipped prompt subsets.Co-authored-by: Claude noreply@anthropic.com