Why choose the adversarial model with AdversarialBenchmark
A team that must pick the chat model driving PyRIT's multi-turn attacks needs a comparison that isolates the model. AdversarialBenchmark does that by holding the objective target and the dataset constant and varying only the adversarial chat model. The default techniques are role_play_video_game, crescendo_simulated and tap. Because the target and prompts do not change between runs, any difference in attack results can be traced to the adversarial model rather than to a shifting test setup. Before you start, confirm which adversarial models your environment can reach, which credentials each one needs under ~/.pyrit/.env, and who in your organization approves sending test objectives to each provider.
Teams usually need this benchmark when they are choosing a standing adversarial model for recurring assessments, when a provider change or model retirement forces a swap, or when a risk owner asks why one model was selected. The output shows how each candidate performs at driving these three techniques against one target. Plan for each candidate to be run against the same objectives, and record the configuration, dataset version and PyRIT version alongside the results so the comparison can be repeated later.
The benchmark does not tell you which model is safest, most capable in general, or suitable for every target. A strong adversarial model against one application may perform differently against another, and attack success depends on the scorer and objectives you chose. Treat the results as evidence for one decision in one environment. Confirm the scoring method and the scenario version with the PyRIT documentation for your release before you present findings to a governance board.
How the benchmark isolates the adversarial model
The run starts with the objective target and the dataset, which stay fixed across every run. Only the adversarial chat model changes: it generates each attacker turn for the default techniques role_play_video_game, crescendo_simulated and tap. Each technique sends its turns to the same target, the scorer grades each response, and every conversation and result lands in PyRIT memory. When comparing candidates, check that the target, dataset and scorer settings match across runs, so any difference in results comes from the adversarial model.
Only the adversarial chat model varies; the target, dataset and scorer stay fixed.
Default versus light technique sets
PyRIT's AdversarialBenchmark runs three multi-turn techniques by default: role_play_video_game, crescendo_simulated and tap. Each technique uses the adversarial chat model to write the attacker side of every conversation, so each attacker turn is a model call billed to whichever provider serves that model. The objective target and dataset stay constant, which means differences in call volume between techniques come from how each technique searches, not from a changed workload.
- role_play_video_game: frames each objective inside a game scenario, so the adversarial model writes an in-character attacker whose conversation length depends on how the target responds.
- crescendo_simulated: escalates gradually across several turns, so the adversarial model is called on each turn of a conversation that builds over time.
- tap: generates and prunes candidate prompts across branches, so its adversarial calls depend on branching and depth settings and can outnumber the other two techniques.
- Shared workload: the same target and dataset feed all three techniques, so a cost comparison between candidate models stays fair only if the technique set is held constant.
Before you estimate anything, check the technique names, branching and depth settings in the PyRIT version you run, using the PyRIT benchmark scenario documentation.
A light technique set removes one or more of the default techniques to reduce the number of adversarial model calls. The light set is a configuration choice you make, so confirm which technique names the benchmark accepts in your version before you define one. Fewer techniques means fewer conversations for each objective, so adversarial calls fall as the removed work falls. The saving comes with a coverage cost, because attacks that only a dropped technique finds will not appear in the results.
- Fewer conversations: each technique you remove drops its conversations for every objective in the dataset, which lowers the call count in proportion to that technique's share of the work.
- Branching savings: if a branching technique such as tap is removed, the largest variable part of the call count goes with it.
- Coverage trade-off: a lighter set tests a smaller attack surface, so a low success rate under a light set does not show the same thing as a low rate under the default set.
- Consistent definition: use the same light set for every candidate model, or the comparison measures technique choice instead of model behavior.
Write the exact technique list into the record of each run, so the comparison can be repeated and the coverage difference is visible to reviewers.
This page gives no per-run figures. Your cost depends on your provider's rates, your contract terms, your dataset and your technique set, so measure it in your own environment before you commit to a budget. The main components are adversarial model usage, objective target usage, scorer calls if an LLM judges responses, and memory storage in SQLite or Azure SQL. Setup and review time is a separate cost, paid through your staff or through a partner under a written scope. Setup and target registration are one-time costs, while every benchmark run and every retest of a model recurs.
- Run a pilot: run a small dataset subset against each candidate model and count the calls from provider usage logs.
- Count calls per technique: record totals for each technique so you can see where the cost concentrates.
- Include scorers: if LLM-based scorers judge the responses, their calls add to the bill and should be counted separately.
- Price from your contract: convert measured usage to money with your negotiated provider rates, not with published list prices copied into a spreadsheet.
Ask your provider for usage reporting broken down by model and deployment, so the numbers you collect can be matched to each run.
Cost moves with the number of candidate models, the size of the dataset, the technique set, the depth of each conversation and the retry settings. Each of these multiplies or adds to the adversarial call count, so a change in one can outweigh a change in another. Pricing also differs between adversarial models, so two models with the same call count can produce different bills. Retries deserve attention because rate-limited or failed requests may be counted and billed again by the provider.
- Dataset size: more objectives multiply every technique's calls, so a larger dataset raises cost even with the same techniques.
- Conversation depth: more turns per conversation means more adversarial calls for each objective.
- Retries and concurrency: failed requests that are retried are billed again if the provider counts them, and high concurrency can trigger rate limits that cause more retries.
- Model pricing: adversarial models with different per-token or per-request rates change the cost even when their call counts match.
When you request a quote for a benchmark project, ask for the candidate models, dataset size, technique set and retry settings it assumes, so you can compare quotes on the same basis.
Benchmark options and when each fits
This table compares the inputs you can vary in PyRIT's AdversarialBenchmark and when each choice fits. Hold the objective target and dataset constant when you compare adversarial models, and change one input at a time so differences in results have a single cause. Confirm every parameter name against the PyRIT 1.1.0 benchmark documentation before you write a configuration.
| Input | When it fits | Trade-off to weigh |
|---|---|---|
| Adversarial chat model | Comparing candidate models that will drive multi-turn attacks against the same target and dataset | Each model adds request cost and its own rate limits; a stronger attacker can raise attack success on the target you are testing |
| Objective target | Keeping one system under test fixed while you swap the adversarial model | Changing the target at the same time as the attacker makes results impossible to attribute to either |
| Dataset size | A small first run to check configuration, connectivity and scoring before a full comparison | A small set gives noisy success rates, so differences between models may not hold at full size |
| Technique set: default | Full comparison across role_play_video_game, crescendo_simulated and tap when the cost of a wider run is acceptable | Runs all three multi-turn techniques, so request volume and time per objective are highest |
| Technique set: light | Budget-constrained comparisons or repeated runs in a CI pipeline where the default set is too costly | Covers fewer techniques, so a model that ranks lower may still be weaker only under techniques left out |
| Scoring | Using the same scorer for every candidate so outcomes are comparable across adversarial models | Changing the scorer between runs invalidates the comparison; record the scorer configuration with each result |
| Memory labels and run records | Keeping each benchmark run traceable to its model, dataset and technique set for later review | Without consistent labels, results from different configurations are hard to separate in memory |
Running a fair model comparison step by step
This sequence holds the objective target and dataset constant so that any difference in results comes from the adversarial model alone. It ends with a comparison of runs in PyRIT memory that you can repeat for a new candidate model.
Register the fixed objective target
Register the system you want to test as a PyRIT target in your own environment, using the target configuration your team already keeps in ~/.pyrit/.pyrit_conf and credentials in ~/.pyrit/.env. Record the exact model version, endpoint, system prompt and any safety settings in your run notes, since every later comparison depends on this target staying unchanged. Done when a single test prompt returns a response from the intended endpoint and the target's configuration is written down with a version identifier.
Fix the dataset and seed objectives
Choose the objective dataset and the seed prompts that the attacks start from, and freeze them as a file that every run reads. Confirm with your team which harms the dataset covers and how many objectives it contains, because a small change in objectives can shift results more than a change in adversarial model. Record a checksum of the file and the dataset name. Done when every planned run points to the same file and the checksum matches across the team's copies.
Register each candidate adversarial model
Register each candidate chat model that will drive the multi-turn attacks as its own adversarial target, one entry per model, with a clear name such as the provider and model version. Keep the candidates' credentials and endpoints separate from the objective target so that no candidate can reach the system under test by mistake. Check that each candidate answers a simple chat request before the benchmark starts. Done when every candidate is listed with a unique name and a passing test call.
Pin the technique set for every run
Set the AdversarialBenchmark to the same techniques for each candidate. The documented default techniques are role_play_video_game, crescendo_simulated and tap, and a lighter set can be chosen for cost reasons. Whichever set you use, write it into the run record and do not change it between candidates, because the technique set changes both the attack and the request volume. Ask your provider or team to confirm the request and token cost of the chosen set before the full run. Done when the technique list in each run's configuration is identical.
Run the benchmark for each candidate
Run the AdversarialBenchmark once per candidate adversarial model, using the same objective target, dataset file and technique set. Give each run a distinct memory label that includes the candidate name and a shared benchmark identifier, so results can be grouped later. Watch for failed or partial objectives in the output and note them in the run record rather than rerunning until the numbers look better. Done when each candidate has a completed run tagged with its label.
Check that the controls match across runs
Before reading any scores, compare the target configuration, dataset checksum, seed file, technique list and labels across all runs. Any mismatch means the comparison is invalid for that pair, and the run should be repeated under identical settings. Also confirm that the objective target was not updated during the benchmark window. Done when a short written check confirms that only the adversarial model differs between runs.
Compare results in PyRIT memory
Query the PyRIT memory store, which records conversations and results in SQLite or Azure SQL, to pull the outcomes for each labeled run. Compare how many objectives each candidate pushed to a successful attack, how many turns the attacks took, and which techniques produced the successes. Export the conversations that drove the decision so a reviewer can read them. Done when you have a side-by-side table keyed by the shared benchmark identifier and the reviewed conversations are saved with the decision record.
Repeat the comparison when inputs change
Rerun the same sequence when you add a candidate model, change the objective target version, or update the dataset. Keep the earlier run records so you can show how the choice was made and when it was revisited. Confirm that the new run reuses the frozen dataset and technique set, or record the change as a new baseline. Done when the decision record names the benchmark identifier of the run it relies on and the date of the most recent comparison.
Reading benchmark results without overclaiming
Treat any difference between adversarial models in an AdversarialBenchmark run as a hypothesis to test, not a ranking to publish. A single run with one objective set and one scorer tells you how those specific conditions behaved, nothing more. Before you act on a gap between models, check three things: how many objectives produced the result, whether the scorer that judged each response is one you trust for this harm category, and whether the gap survives a second run. Small datasets make percentage differences look large when they are a handful of objectives. Ask yourself whether one or two objectives account for most of the spread.
The scorer is the most common source of false confidence. The benchmark measures whether the target's responses were judged successful, so an attacker model that produces more persuasive or more explicit prompts will only look better if the scorer credits those responses. Confirm which scorer configuration the scenario used, whether it was an LLM judge, a content safety classifier or custom logic, and test that scorer on a few responses you have labeled yourself before you trust its verdicts. Also remember that a stronger attacker is not automatically a better test. A model that refuses to generate adversarial prompts, or that drifts off objective, may score lower while being a poor driver, and a model that is very capable may find attacks the default techniques were never designed to catch. Judge attacker quality by whether it pursued the objective faithfully.
Repeat runs before drawing conclusions, and record enough detail that someone else can reproduce the comparison. For each run, keep the adversarial model name and version, the target and its version, the dataset and its size, the techniques used (default or light), the scorer and its model or configuration, and the PyRIT version. Your memory labels should make the runs retrievable together. Confirm the exact PyRIT release from the PyRIT documentation for the benchmark scenario before you start, because scenario behavior can change between releases. Reporting these details alongside the result is what lets a CISO or auditor see what was actually compared.
Security and operational considerations for benchmark runs
A benchmark run sends your objectives and model responses through several providers and writes everything to local memory. The cards below cover where credentials live, how attack content is kept out of shared logs, where results are stored, where data travels and how rate limits shape run stability.
Provider credentials in the env file
Each adversarial model provider needs its own key, and PyRIT reads credentials from ~/.pyrit/.env on the machine running the benchmark. Give each provider a separate key with the narrowest permissions and spending limit available, so a benchmark comparing several adversarial models does not share one broad credential. Confirm that the file is readable only by the account running the scan and is excluded from source control and shared runner images.
Keeping attack content out of logs
Adversarial prompts, objectives and target replies generated during a benchmark can be harmful by design, so they should not appear in shared console output, CI job logs or ticket attachments. Set console output to summary level for benchmark jobs and review what your pipeline captures before enabling verbose logging. Treat any exported conversation as sensitive content with the same access rules as the dataset it came from.
Memory location and access
PyRIT stores conversations and results in SQLite or Azure SQL, so every benchmark run leaves a record of the adversarial prompts and responses. For SQLite, the database file is the asset to protect: restrict its file permissions, place it on encrypted disk, and decide how long it is kept. For Azure SQL, confirm network access rules, authentication method and retention settings with your database administrator before the first run.
Memory documentationData residency for external adversarial models
When the adversarial model is hosted by an external provider, the objectives, generated attack prompts and target responses are sent to that provider's infrastructure. Check the provider's data handling, retention and region terms against your own policy before running a benchmark on sensitive objectives or on a production target. Where residency rules apply, prefer a model deployed in an approved region or a self-hosted model you control.
Rate limits and run stability
Each adversarial model provider applies its own request and token limits, and a benchmark that hits them mid-run produces uneven results across the models being compared. Set concurrency to a level each provider allows, and confirm retry behavior for throttled responses before the full run. Record the limit settings used for each model so that a retried or slowed run can be explained when results are reviewed.
Questions teams ask before running an adversarial model comparison
How much does an adversarial model comparison cost to run?
The cost is mostly the model calls, not the PyRIT software, which is open source under the MIT license. Every multi-turn attack sends many requests to the adversarial chat model and to the objective target, so spend rises with the number of models compared, the number of objectives in the dataset and the number of techniques run. Your organization pays its own model provider or hosting bill for those calls, and any engineering time to set it up. Before you run it, estimate calls per model from your dataset size and technique set, then price them with your provider's current rates. Ask a partner for a quote based on a written scope that states the models, dataset, techniques and retained evidence.
Does the default technique set cost more than the light set?
Yes, generally. The default techniques for AdversarialBenchmark are role_play_video_game, crescendo_simulated and tap, and each one drives a multi-turn conversation with the adversarial model and the target. Crescendo and TAP in particular can take several turns and branch across candidate prompts, so they multiply request volume. A lighter technique set that drops or narrows the most expensive multi-turn attacks reduces calls per objective, at the cost of less coverage. Run both sets on a small dataset first, record the request counts from your memory records, and compare coverage before choosing the set for the full run.
How long does the comparison take?
Duration depends on how many requests the run makes, how much concurrency your provider rate limits allow, and how many retries occur. Setup work, including model access, target registration and dataset selection, is usually the first thing that takes time. The benchmark itself runs unattended once started, so a small dataset can finish quickly while a large one with several models can run for many hours. Check your provider's rate limits and PyRIT's concurrency and retry settings before you start, and confirm timing with a partner against your own endpoints rather than relying on a general estimate.
What does our team need to provide before the comparison starts?
You need four inputs: access to the objective target you want to test, API access to each candidate adversarial model, a dataset of objectives you approve for testing, and a place to store results. The target must be reachable from the machine running PyRIT, and it should be a version you intend to ship or evaluate. Credentials belong in the PyRIT environment file or your secrets store, not in scripts. You also need a named owner who can approve the dataset content and the models used, because adversarial prompts can contain harmful text that must be handled under your existing policies.
Can our own team run an adversarial model comparison without a partner?
Yes, if your engineers can install PyRIT with pip on a supported Python version, configure model and target credentials, and read the results. The PyPI package supports Python 3.10 up to but not including 3.15, and the PyRIT documentation recommends Python 3.13. The harder parts are deciding what counts as a fair comparison, keeping the target and dataset fixed across runs, and interpreting scores. Teams that want a repeatable result for audit or release decisions often write down the method first, then run it under a defined owner.
What can go wrong when comparing adversarial models?
The most common problem is an unfair comparison: the target, dataset, scorer or retry settings changed between runs, so differences reflect the setup rather than the adversarial model. Other issues include rate limits that cause partial runs, memory records that are not labeled per model, and a model that refuses to act as an adversary, which lowers its apparent attack strength for reasons unrelated to quality. Keep a run manifest listing the model, target version, dataset hash and technique set for each run, and check that failed objectives are recorded rather than dropped.
When should we bring in a partner for an adversarial model comparison?
Bring in a partner when the comparison will inform a release decision, an audit or a vendor choice and you need the method, the environment and the evidence to hold up to review. DeployOpen plans and runs PyRIT-based AI security testing in your own infrastructure as a fixed-scope engagement, with scope, deliverables and timelines agreed in writing before work starts. It does not issue audit reports or certifications, so independent assessors still review the evidence. Ask for a written scope that names the models, target, dataset, techniques, retention of results and the deliverable format before you commit.
How DeployOpen scopes and supports PyRIT benchmarks
DeployOpen plans and runs PyRIT assessments inside infrastructure you control, including the adversarial model comparison that AdversarialBenchmark supports. The work starts with a written scope that fixes the target, dataset, candidate adversarial models and techniques before any run begins.
How we scope
- Written scope names the objective target, the dataset and the candidate adversarial chat models to compare.
- Scope states which default or light technique set runs, and how the cost difference between them is measured.
- Scope confirms which PyRIT version, Python version and model endpoints the benchmark will use, and where they run.
How we build
- We configure credentials and settings in the environment your team controls, keeping API keys out of job logs.
- We run each candidate adversarial model against the same fixed target and dataset so results stay comparable.
- We record run labels, memory settings and request counts so each comparison can be repeated and audited later.
How we hand over
- Deliverables include the benchmark configuration, run records and a written comparison of adversarial models.
- Documentation covers how to rerun the benchmark, change the candidate models and read the scenario output.
- We walk your team through the cost comparison between default and light technique sets before handover.
How we support
- Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
- Ongoing support, PyRIT upgrades and repeat benchmark runs are available as a retainer.
- Ask any partner to confirm how they handle PyRIT version changes, model endpoint changes and retesting after a model update.

