Why a garak pass rate alone is hard to judge
You ran garak against your model or application and got a failure rate, but no baseline to compare it with. The short answer is that a raw number only tells you how often the probes got an undesirable output. Calibration and Z-scores answer the harder question, which is how your result sits against other models that were tested with the same probes. Without that placement, a 20 percent failure rate could be excellent or alarming, and the number alone does not tell you which.
The reason is how garak counts. garak is licensed under Apache 2.0, is developed in the NVIDIA GitHub organization, and runs from the command line after installation from PyPI on Python 3.11 or newer. A default run makes 5 generations per prompt, and a probe is marked FAIL when any one of those attempts produces undesirable output. That rule is strict by design, so a model that is mostly safe can still show a high failure rate, and two runs with different generation counts or probe sets are not directly comparable.
Before you present a result to a security review or a leadership team, confirm three things: the garak version used, the generation count and probe set, and whether the scan was compared against a calibration baseline. Record the exact command and configuration so the run can be repeated, because a changed probe set will move the rate even if the model has not changed. The garak user guide is the place to check how the current release reports results before you treat a single failure rate as a finding.
Treat the failure rate as a starting point for judgment, not a verdict. Ask which probes failed, how severe the undesirable output is for your use case, and how other models perform on the same probes. Those questions lead directly to the calibration bag and Z-scores, which place your result against a reference set and make it possible to say whether a model is better, average or worse than its peers.
Reading Z-score bands and what each band means
This table maps the three garak Z-score bands to what they indicate about a model's standing against other models and to the next step a reader should take. Use it to decide whether a result needs a manual review, a comparison against a prior run, or no immediate action. The main takeaway is that a band describes relative standing, so it should be read alongside the absolute pass rate and the other models in the same calibration set.
| Z-score band | What it indicates | Next step for the reader |
|---|---|---|
| Above +1 | Much better than average compared with the calibration models | Confirm the result is not an artifact of a narrow probe set, then record it as a baseline for later runs |
| Around +0.1 to -0.1 | Average compared with the calibration models | Check the absolute failure rate for the probes that matter to your application before deciding on action |
| Below -1 | Much worse than average compared with the calibration models | Review the flagged hits by hand, confirm the detector verdicts, and compare against a prior run to see if the drop is new |
| Great Z-score, low absolute score | Relative standing is strong, but other models in the set also performed badly on the same probes | Do not read the band as safety. Treat the absolute failures as a risk and assess them against your own threat model |
| Low Z-score, high absolute score | Relative standing is weak even though the raw pass rate looks acceptable, because peers performed better | Investigate which probes drive the gap and whether the calibration set matches the models you compare against |
| Between bands (for example, +0.5) | The Z-score sits in an area the guide does not name explicitly | Confirm the interpretation with the garak calibration reference and treat it as a relative signal only |
Reading high absolute scores with low Z-scores
A model can post a high absolute score, meaning most of its attempts resisted a probe, and still receive a low Z-score. The Z-score compares the model with the reference set, so a low value means the model did worse than the typical peer in that set. When many peers also resisted well, the bar is high and a strong result can sit below average. The model is not necessarily weak. The comparison group may simply be stronger than the model.
- Check the reference set: Confirm which models make up the calibration bag and whether they are current.
- Compare probe by probe: Find the probes where peers performed better than the model, since the average can hide a narrow gap.
- Look at the model's version: Newer or hardened peers can raise the bar for older models.
- Note the absolute rate: Report the pass rate next to the Z-score so readers see the result is strong in absolute terms.
- Avoid ranking by one number: A low Z-score alone does not prove the model is less safe than its alternatives.
Before you report this combination, confirm the reference set, the probe list and the date of the calibration data so the comparison is reproducible.
The reverse case is a low absolute score with a high Z-score. Here the model failed more attempts than it would like, yet it did better than peers that failed even more often. The Z-score rewards relative performance against the reference set, so a weak field can lift a model that is still exposed. The absolute number tells you how much risk remains, and the Z-score tells you where the model sits among its peers.
- Treat the absolute failure rate as the risk signal: A high share of undesirable outputs still matters for deployment decisions.
- Identify the failing probes: Pull the hits to see which attack families still succeed.
- Ask whether peers are representative: A reference set of weak models can flatter the result.
- Compare with the target's use case: A probe that matters for your application may matter more than the average.
- Document the gap to mitigation: Record controls such as system prompts, guardrails or filters that reduce the absolute rate.
Report the absolute failure rate and the Z-score together, and state that the Z-score is relative to the named reference set.
When the absolute score and the Z-score point the same way, the reading is easier. A high absolute score with a high Z-score suggests the model resists attacks well and also outperforms its peers. A low absolute score with a low Z-score suggests the model performs poorly in both views. Agreement makes the finding easier to explain to a non-specialist audience, but it still depends on the probes and generations used in the run.
- High on both: The model is strong in absolute terms and relative to peers, which supports a deployment decision with normal monitoring.
- Low on both: The model needs remediation or a different choice before wider use.
- Stable across runs: Repeat the scan with the same probe set and version to confirm the result holds.
- Check hit-level detail: Agreement at the summary level can still hide specific failing probes.
- Keep the reference set fixed: Changing the calibration data alters the Z-score even when the model is unchanged.
Before sharing a conclusion, confirm that both numbers come from the same run configuration and that the reference set is named in the report.
How to show Z-scores on the CLI
This sequence gets garak installed, turns on Z-score output in its configuration, and runs a scan so that calibrated Z-scores print next to the results and also appear in the HTML report. Each step ends with a check you can run before moving on.
Confirm the Python version
Check that the machine where garak will run has Python 3.11 or newer, because the PyPI package requires that version. Run
python3 --versionin the shell you will use for scanning, and confirm the reported version is 3.11 or higher. If it is older, install a supported interpreter or create a virtual environment from one before continuing. The step is done when the version command prints 3.11 or later.Install garak from PyPI
Create a virtual environment and install garak with
pip install garakfrom the Python Package Index. The garak README and the PyPI project page are the natural references for the package. Your platform team or the person running the scans performs this step on a host they control. The step is done whenpython3 -m garak --helpprints the command-line options without errors, and the installed package reports a version.Locate the configuration file
Find the garak configuration you will use for scans, or create a new one so your Z-score setting is recorded with the rest of your run settings. Keep the file under version control so later runs can be compared with the same settings. Confirm the file is readable by the user who runs garak. The step is done when you can open the file and see the existing sections, including the system section.
Set system.show_z to true
Add or edit the key
show_zunder thesystemsection of the configuration and set it toTrue. The garak FAQ is the source for this CLI setting, so check the FAQ if your configuration layout differs. Save the file and record the change in your change log. The step is done when a parsed view of the file showssystem.show_zset to true, which you can confirm by reading the file back or by a quick check with a YAML parser.Point the scan at the target
Configure the generator for the model or application you are testing, such as a supported model provider or a REST endpoint described in a short YAML file. Start with a small, fixed probe selection so the first run is quick to review. Confirm the target responds by sending a single test request through the generator configuration before the full scan. The step is done when the generator returns a response and no connection or authentication errors appear in the log.
Run the scan and read the CLI output
Run garak with your configuration and the chosen generator and probe selection. Watch the terminal output for the per-probe results and confirm that Z-score values print alongside the pass or fail results for each probe and detector. Keep the console output with the run record. The step is done when the console shows Z-score values next to the probe results, and a missing Z-score indicates a configuration or calibration issue to investigate before drawing conclusions.
Check the Z-scores in the HTML report
Open the HTML report generated by the run and find the same probes and detectors you saw on the CLI. Compare the Z-score values with the console output to confirm they match. Use the report to check the context of each value, including the absolute score next to the Z-score. The step is done when the probe values in the HTML report agree with the CLI output for the same run.
Record the calibration context with the run
Save the garak version, configuration file, probe selection and generator details with the report so the Z-scores can be interpreted later. Z-scores depend on the calibration data, so a score is only meaningful alongside the version and settings that produced it. Ask your team to confirm which calibration reference the version uses, as described in the garak reference on calibration. The step is done when a reader can rebuild the run from the stored files and the recorded version.
How a scan result becomes a Z-score
A scan starts when garak sends its probes to the target model or application and collects each generation. Detectors then judge every output, and garak rolls those verdicts into a failure rate for each probe. That rate is compared with the calibration reference set, and the resulting Z-score is written to the CLI output and the HTML report. Check the reference set and the system.show_z=True setting before you trust the number, because the score is only as meaningful as the baseline behind it.
Shows how a single probe's failure rate becomes a reported Z-score.
Common misreadings that lead to wrong decisions
Most errors in garak calibration work come from reading a number without its context. The four misreadings below look different on the surface but share one root cause: a score is only meaningful against the comparison set, the attempt count and the probe set that produced it.
Treating a Z-score as a safety grade
A Z-score says how a model compares with the calibration reference models on the same probes. It does not say the model is safe, and a value above +1 can still sit on top of a poor absolute pass rate if the reference models also performed badly. Before you sign off, check the absolute failure rate for each probe that matters to your use case, and record the Z-score as a relative position only.
Calibration referenceComparing Z-scores across versions or reference sets
A Z-score is anchored to the calibration data that garak used when it was computed. Two runs scored against different calibration bags, or on different garak releases, are not on the same scale, so a move from one value to another may reflect a changed baseline rather than a changed model. Keep the garak version and calibration source fixed when you compare runs, and note both in every report you share.
Ignoring the 5-generation default
By default garak makes 5 generations per prompt and marks a probe as FAIL when any attempt produces undesirable output. A failure rate therefore reflects repeated sampling, so changing the generation count changes the rate even when the model has not changed. Confirm the generation setting in your configuration before comparing a failure rate with a Z-score or with a previous run.
Reporting one number without the probe set
A single Z-score or pass rate hides which probes produced it. A model can score well on a broad mix of probes and still fail the probes that match its real exposure, such as prompt injection for a tool-using agent. Report the probe set, the detectors and the per-probe Z-scores alongside any headline value, so readers can see which weaknesses drove the result.
Questions teams ask before relying on Z-scores
Are garak Z-scores a security score?
No. A Z-score places a model's result against other models garak has been calibrated on, so it shows relative standing, not whether the system is safe. The guide reads a Z-score above +1 as much better than average, around +0.1 to -0.1 as average and below -1 as much worse than average. A model can sit well above average and still fail a number of attempts that matter for your use case. Treat the Z-score as one input to a decision about which probes to fix first, and check the absolute failure rates and the probes behind them before reporting a result to leadership.
Do we need outside help to interpret garak Z-scores?
Not always. A team with someone who understands probes, detectors and their own threat model can read the calibrated output directly from the HTML report or the CLI. Outside help becomes useful when the results will feed an audit, a customer security review or a board report, where the reasoning behind each conclusion must be explained and defended. A partner can also check whether a low Z-score reflects a real weakness or a detector that marks benign text as a failure. The cost of that help depends on how many models, probes and reporting audiences are involved.
What work must our own team do to read Z-scores?
Your team must decide which model, configuration and probe set the comparison covers, because a Z-score is only meaningful when the baseline matches. Someone must also confirm the garak version and calibration data in use, since results can shift after an upgrade. Your engineers should review the failing attempts for the probes that matter most to your application, and your risk owner should decide what counts as acceptable. Keep the run settings in a config file so the same scan can be repeated later. Expect this to be recurring work each time you rescan or change the model.
How long does a first Z-score interpretation take?
The time depends mainly on how much output there is and how many people must agree on it. A small scan of one model with a few probes can be read in a single working session by someone familiar with garak. A large scan across several probe families, multiple models and detectors needs more time to group results, check false positives and agree on what the numbers mean. Each additional model, prompt set or reporting audience adds review work. Ask any provider to state its assumptions about scan size, number of models and reviewers in the written scope before accepting a timeline.
Can we use Z-scores freely under the Apache 2.0 license?
garak is licensed under Apache 2.0, and that license covers using the tool and its outputs, including the calibration and Z-score features, in commercial and internal work. The license terms apply to the software itself, so your legal team should review the license text and any notice obligations if you redistribute code. Confirm the license details with your counsel for your own use case, because this page does not give legal advice. Licensing does not cover the cost of the people who run, interpret and document the scans.
What should we ask a partner for in a scoped quote?
Ask for a written scope that names the models, endpoints, probe families and garak version to be covered, and states whether Z-score interpretation is included or charged separately. Request the deliverables in detail, such as a findings summary, the reasoning behind each Z-score conclusion and a plan for rescans. Ask who performs the review, how false positives are handled, and what happens if a model or garak release changes after the work starts. A quote follows from the written scope, so the clearer the boundaries, the easier it is to compare providers. DeployOpen does not publish a price list.
What drives the cost of Z-score interpretation work?
The main cost drivers are the number of models and configurations compared, the number of probe families and detectors in scope, and the depth of review on each failing attempt. Calibration analysis costs more when the reporting audience needs an explanation they can defend under scrutiny. Recurring costs appear when results are rescanned after model updates or garak upgrades, because the baseline must be checked again. Ask for the one-time setup and recurring rescans to be priced separately, so you can see what you pay for each rescan cycle.
Why would a model show a high score but a low Z-score?
A Z-score compares a result with the calibration set, so a high absolute score can still rank poorly if other models also performed well on the same probes. The reverse also happens: a model can have a great Z-score even when its absolute pass rate looks weak, because the models it is compared against did even worse. Read both figures together and check which probes drove the result. Illustratively, a model that passes most attempts on a probe family where the calibration models passed nearly all will show a low Z-score despite a good headline number.
Operational considerations for reporting Z-scores
A Z-score only means something alongside the population it was calibrated against, the configuration that produced it and the version that generated it. The four cards below cover the records and access controls that keep a reported Z-score traceable and safe to share.
Keep reference context with each report
A Z-score is placed relative to a calibration bag of other models, so the same raw pass rate can read differently when the reference set changes. Store the calibration information alongside the JSONL report and HTML digest from the same run, so anyone reviewing the result can see which models the score was measured against. Check that the reference context still matches the run before you compare a new result with an old one.
Calibration referenceStore config files that set show_z
Z-scores appear on the command line only when system.show_z is set to True in the configuration. Teams that rely on Z-scores in dashboards or tickets should keep that setting in a versioned config file rather than typing flags by hand, so every scheduled or CI run produces the same columns. Review the file whenever someone changes scan settings, because a missing key silently removes the Z-score from the output.
Restrict access to raw attempts
The JSONL report records every attempt, and attempts from jailbreak and data leakage probes contain the harmful prompts and model outputs that were used to test the target. A shared report can therefore expose sensitive content to people who only needed the summary Z-score. Limit access to full reports to the testers who need them, share the HTML digest with other stakeholders, and set a retention period for raw attempts that your data handling policy allows.
Document version and probe set
Z-scores shift when garak changes its calibration data or probe set, so a number without a version is hard to defend. Record the garak release, the Python environment and the exact probes and detectors used with each result, for example in the run folder or in your ticket. For comparisons over time, keep the probe set fixed, and confirm the release notes before accepting a score change as a real shift in the model's behavior.
- Latest release cited
- v0.17.1
How DeployOpen scopes garak result interpretation
DeployOpen scopes garak result interpretation as a fixed-scope piece of work, with the boundaries agreed in writing before any run starts. The scope names which scan runs are covered, which probes and detectors were used, which garak version and configuration produced the results, and which reports the client will receive, such as the JSONL report, the HTML digest and any Z-score output printed on the CLI. Pinning the version and configuration in the scope matters because Z-scores are only meaningful against the calibration data that ships with a given release. The written scope also records which models or application endpoints are the subject of the review, so the calibration comparison is made on the same target the client actually runs.
Within that scope, DeployOpen reviews the Z-scores with the client team in a working session. The session walks through how the calibration bag places the tested model against the reference models, where a high absolute pass rate still lands at a low Z-score, and which findings deserve follow-up in light of that placement. The client's security engineers and model owners attend, and the outcome is a short written reading of each finding with the decisions it supports, such as whether to rerun with more generations or to change a system prompt. Before this review, the client should confirm whether it wants Z-scores shown on the CLI by setting system.show_z in the config, so the team sees the same numbers the report carries.
For organizations that scan the same model or application repeatedly, DeployOpen offers ongoing retainers that cover scheduled scans, Z-score reviews at each release and checks on whether a garak upgrade has moved the calibration baseline. Cost follows from the written scope: the number of targets, the probe set, the review sessions and the frequency of rescans are the main drivers, and the client should ask for a quote that separates one-time setup from recurring work. Confirm with DeployOpen during scoping who will own the reports after delivery and where the calibration data for each run will be stored.

