Hallucination testing with garak's snowball and misleading probes

garak's snowball and misleading probes show whether a model gives confident wrong answers to hard reasoning questions or goes along with false claims, which helps you compare models before you pick one.

On this page

Hallucination testing with garak's snowball and misleading probes: what they check

Confident wrong answers and acceptance of false claims are the two failure modes that the snowball and misleading probes in garak test. A team choosing a model for a product where a wrong answer carries risk, such as clinical summaries, financial explanations, or policy guidance for staff, needs to know whether the model will state an error with confidence or accept a premise it should reject. Benchmarks of general capability do not answer this question on their own, because a model can score well on knowledge tasks and still build a plausible chain of reasoning on a false start.

The snowball probes, based on the Snowballed Hallucination paper, pose complex reasoning questions about graph connectivity, prime numbers and US senators. The point is to see whether the target returns a wrong answer where it should give the right one or admit it cannot answer. Graph connectivity and primes have checkable answers, so a wrong response is easy to identify. Senator questions test factual recall about a domain where models often invent plausible names or terms. The probes are useful when a product depends on multi-step reasoning, because the failure appears in the chain of logic and not only in the final sentence.

The misleading probe takes the opposite approach. It states false claims inside the prompt and checks whether the target debunks them or goes along with them. This matters for customer support bots, research assistants and any workflow where users routinely state their own assumptions. A model that agrees with a wrong premise will carry that error into its answer. Confirm with the garak documentation which detectors score each probe in the version you run, since scoring determines whether a hit is recorded as a failure.

What the snowball and misleading probes send and score

garak's snowball probes ask multi-step reasoning questions, and its misleading probe states false claims. Both check how the target behaves under pressure to answer confidently, which is the core of hallucination testing. The cards below cover what each probe sends and how the answers are judged.

Snowball graph connectivity questions

The snowball probes include graph connectivity questions, where the model must decide whether two nodes are linked through a chain of edges. These questions are hard to answer by inspection once the graph grows, so a fluent but unsupported answer is a useful signal. Check whether the target shows its reasoning steps and whether its final yes or no matches the graph in the prompt.

Snowball probe source

Snowball prime number questions

The prime number variant asks the target whether large or compound numbers are prime, a question with a checkable answer. Models often produce confident factorizations that are wrong, which is the failure these probes are designed to surface. Verify any factors the model gives before counting an answer as correct.

Snowball senator questions

The senator variant asks factual questions about a chain of officeholders, where each answer depends on earlier ones. A wrong early step can carry forward into a confident but incorrect final answer. Check whether the target flags uncertainty about the chain or builds on a guess.

Three possible snowball outcomes

Each snowball answer falls into one of three groups: the right answer, a wrong answer, or no answer. A refusal or an admission that the model cannot determine the result is not the same as a confident error, so the scoring separates them. Read the counts for all three before judging a model, because a model that rarely answers may look safer than it is.

Misleading false claim prompts

The misleading probe states a false claim as if it were settled and asks the model to respond. The detector checks whether the target corrects the claim or accepts it and builds on it. This tests whether the model holds to facts when a user asserts something wrong, which matters for support, research and advisory assistants.

Misleading probe source

Debunk versus go along

For each misleading prompt, a debunk means the target identifies the error, and going along means it accepts the false premise. Some answers hedge without correcting the claim, and those need a human reviewer to classify. Record the judgment rule you apply so that results can be compared across model versions.

How to run the snowball and misleading probes with garak

This sequence takes a team from a clean garak install to a finished scan of the snowball and misleading probes, with a check at each stage so that a bad endpoint or probe name is caught before the full run. The output is a JSONL report of every attempt and its evaluation, plus a garak.log file for debugging.

  1. Confirm the Python version and install garak

    The engineer running the scan checks that the host has Python 3.11 or newer, then installs garak from PyPI with pip in a dedicated virtual environment so its dependencies stay separate from other tooling. garak is a command-line tool developed on Linux and macOS, so confirm the host platform before you start. The step is complete when the garak command runs and prints its version or help output without errors.

  2. Choose a generator for the target model

    Decide how garak will reach the model under test. garak has generators for Hugging Face Hub models, Replicate text models, the OpenAI API, AWS Bedrock foundation models and models reached through LiteLLM, and it can run gguf models through llama.cpp. For an application or a private endpoint, use the REST generator, which is configured with a short YAML file that describes the endpoint, its request format and how to read plaintext or JSON responses. Record which generator and credentials you chose, and keep API keys in environment variables rather than in the config file.

  3. Confirm the generator responds before scanning

    Send a single benign prompt through the generator before any probe runs. A short test confirms that authentication works, the model name is correct, the endpoint returns text, and the REST response parser reads the answer. If the call fails, fix the configuration now, because a broken generator produces empty or error responses that can look like a clean result in the report. The step is complete when the test prompt returns the expected reply in your terminal and in garak.log.

  4. Select the snowball and misleading probes

    Name the probe families to run, using the snowball probes for complex reasoning questions about graph connectivity, primes and senators, and the misleading probe for false claims the target either debunks or accepts. Start with the probe list shown by garak's listing option so that the names match your installed version exactly. Note that the default probewise harness runs each probe with its recommended detectors, which is the setting most teams should use first. The step is complete when the list command shows both probe families under the names you will pass to the scan.

  5. Run the scan with the chosen probes

    Start the scan with the generator and probe selection from the earlier steps. garak makes 5 generations per prompt by default and marks a probe as FAIL with a failure rate when any attempt produces undesirable output, so a single bad answer can fail a probe. Expect the run to take longer on endpoints with rate limits or high latency, and keep the terminal session or a logged background process alive until the run ends. The step is complete when garak reports a finished run for each selected probe and prints a summary of pass and fail results.

  6. Locate the JSONL report and garak.log

    Open the JSONL report that the run wrote, which holds every attempt, the model's response and the detector evaluation for that attempt. Then open garak.log, the debugging file that continues across runs, to check for generator errors, retries or detector warnings. Keep both files together with the model version and garak version used, because later comparisons depend on them. The step is complete when you can find one snowball attempt and one misleading attempt in the JSONL file and match each to its evaluation.

  7. Review failures before comparing models

    Read a sample of failed attempts in the JSONL report and confirm that the detector judged them correctly, since a failure means the response was scored as undesirable, not that the model is proven wrong. Separate wrong confident answers from answers that simply hedge or decline, because the two behave differently for a deployment. Save the run so that the same probes can be repeated against another model under the same settings. The step is complete when you have a short note of the failure patterns and the run ID you will use for model comparison.

Scan options for hallucination probes and when each fits

This table compares the garak configuration choices that change how snowball and misleading results look: generation count, harness, probe grouping and model comparison. Read each row as a question about what your scan is for, then check the failure rate change against your own runs. The main takeaway is that a fair comparison depends on holding the probe set and settings constant across every candidate model.

OptionWhat it changesTrade-offWhen it fits
Default 5 generations per promptAny one undesirable answer among five marks the probe as FAIL, so the failure rate reflects how often the model is unstable on a questionGives a sensitive signal on wrong answers but takes longer per probeBaseline scans and first-time model comparisons where you want to catch intermittent confident errors
Fewer generations per promptFewer chances for a wrong answer to appear, so failure rates tend to read lower for the same modelFaster and cheaper, but a low rate can hide occasional errorsQuick smoke tests or very large model sweeps, with the reduced setting recorded in every report
More generations per promptMore chances to surface an error, so failure rates tend to rise and stability is measured more closelyHigher run time and cost per model, and rates are not directly comparable to a 5-generation runDeciding between close candidates or checking consistency on senator, prime and graph questions where a single lucky answer matters
Default probewise harness with recommended detectorsEach snowball and misleading probe runs with the detectors garak recommends for itLeast configuration effort and the most comparable results with other garak usersStandard hallucination assessments and reports that others will need to reproduce
Custom detector or harness settingsChanges which outputs count as wrong or as debunked, so scores shift from the defaultHarder to compare against published or prior runs, and detector accuracy must be checkedOnly when the team has reviewed detector output on sample answers and documented why it changed
Snowball and misleading run togetherOne report covers complex reasoning errors and acceptance of false claims in one passSingle summary is convenient, but the two failure modes need separate readingEarly assessments where you want a broad view of factual reliability
Snowball and misleading run separatelyEach family gets its own report and failure rate, so a weakness in one is not averaged awayTwo runs to manage and compareWhen the application depends on reasoning over facts, or on resisting user-supplied falsehoods, and you need to know which one drives the decision
Same probe set across candidate modelsEvery model is measured against identical prompts, generations and detectorsRequires fixing the configuration in a shared config file and rerunning when settings changeAny model selection where results will be compared, documented or shown to a risk owner

How to read a FAIL on a hallucination probe

A FAIL from garak's snowball or misleading probe does not mean the model failed most of the time. garak marks a probe as FAIL with a failure rate as soon as any attempt produces undesirable output, and by default each prompt gets 5 generations. One bad answer out of five is enough to fail the probe, so the failure rate tells you how often the model went wrong, while the FAIL flag tells you that it can be pushed into going wrong. Read both together before deciding whether a model is acceptable for a use case that depends on factual answers.

Separate two kinds of miss before drawing conclusions. A confident wrong answer, such as a made-up senator count or an incorrect claim that graph nodes are connected, is the failure these probes are built to surface. A no-answer, where the model says it cannot determine the result or asks for more information, is a different outcome. For a support assistant or research tool, a refusal to guess is often safer than a fluent wrong answer that a user will act on. Decide in advance which outcome your application should prefer, because that decision determines whether a high failure rate blocks the model or only flags it for a guardrail.

Check the detector's verdict on individual attempts before you accept or dismiss a FAIL. garak writes a JSONL report with every attempt and its evaluation, so open the entries for the failing probe and read the prompt, the model output and the score the detector assigned. Look for detector misfires, such as a hedged answer scored as wrong or a correct answer that the detector did not recognize. Confirm the detector and its settings against the garak user guide for your garak version, and keep the reviewed examples with the run so the same judgment applies when you rescan after a model or configuration change.

How a snowball or misleading attempt moves from probe to report

A run starts with the probe, which sends its prompt to the generator, and the generator calls the target model under test. The model's reply goes to the detector for scoring, and each attempt and its evaluation is written to the JSONL report. Garak then marks the probe FAIL with a failure rate when any attempt produces undesirable output. The target model is the trust boundary: everything it returns is untrusted input until the detector has scored it, so check the detector's behavior on the snowball and misleading answers before trusting a verdict.

Snowball and misleading attempts pass through the target model before detector scoring and the report.

Using hallucination results to choose a model

garak results do not measure how accurate a model is in your domain, and a single probe family is not a ranking. Use the snowball and misleading probes to compare how candidate models fail under pressure, then pair that picture with your own task evaluations before you choose. Run the same probe set, with the same generator settings, system prompt and detectors, against every candidate. Identical inputs are what make the comparison meaningful. If you change the probe list or the generation count between models, the failure rates stop being comparable, so record the exact configuration in each run's report and keep it fixed across the shortlist.

Read each model's result on two axes, not one. The first is the failure rate for each probe, which shows how often a model accepted a false premise or gave a wrong answer to a multi-step question. The second is the mix of failures: a wrong answer is a different risk from a refusal or an admission of uncertainty. A model that declines to answer more often may be safer for a legal or clinical assistant than one that answers confidently and incorrectly, even if their headline failure rates look similar. Open the JSONL report for each probe and check which attempts were marked as wrong answers and which as non-answers before drawing conclusions. Confirm with the garak user guide at docs.garak.ai how the detectors for each probe classify these outcomes in the version you run.

Finally, test the shortlist on questions drawn from your own data, such as policy lookups, contract clauses or product specifications with known answers. Score those with your own criteria and a reviewer who knows the domain. Use the garak results to decide which models need closer review, for example a model that accepts false claims about your product line, and use your task evaluation to decide which model meets your accuracy requirement. Keep the garak run as a repeatable check that you rerun after model updates, since a new model version can change its behavior on the same prompts.

Security and operational considerations for hallucination scans

A hallucination scan produces three things that need handling: credentials for the target, a record of every attempt, and a conclusion about where a model is weak. Each card covers one of these, and the checks that keep the scan repeatable and the results contained.

API keys for hosted targets

Hosted targets such as the OpenAI API, AWS Bedrock or Replicate need credentials in the environment that runs garak, not in the scan configuration file. Use a dedicated key with a spending limit and a scope limited to the model under test, so a misconfigured run cannot consume an unrelated budget. Confirm with the provider how it logs and retains the prompts sent through that key, because snowball and misleading prompts are sent in full. Rotate the key after the evaluation ends.

Where the JSONL report lives

Each run writes a JSONL report of every attempt and its evaluation. Store it in an access-controlled location with the same classification as the model's evaluation data, since the file holds the exact prompts and responses the model gave. Decide retention before the first run, and record which garak version produced each file so the report can be read later without guessing its format.

Handling the garak.log file

The garak.log file collects debugging output and is continued across runs, so it can accumulate endpoint URLs, request metadata and error messages from earlier targets. Review it before sharing it in a support ticket or issue, and check whether it captures request bodies for your endpoint. Give it a per-run or per-environment path so logs from a test model do not mix with logs from a production candidate.

Who can read weakness results

A hallucination report shows which questions a model answered confidently and wrongly, which is useful to an attacker choosing a target and sensitive to the vendor relationship. Limit read access to the evaluation team and the approvers of the model decision, and agree in advance who may share results with the vendor. Record the access list alongside the report.

Versioning the scan configuration

Keep the run configuration, probe selection, generation count and detector choice in version control, so the same snowball and misleading run can be repeated against a later model version. Tag the commit used for each evaluation. Changes to the garak version or detectors shift scores, so pin the version and note it in every report.

garak README

Retesting after model changes

A vendor can change a hosted model without changing its name, so a clean result from last quarter may no longer describe the model in production. Confirm how the provider versions the model and schedule a rescan whenever the version changes. Compare reports only when the configuration and garak version match, and treat a changed result as a finding to explain rather than a number to average.

Questions teams ask before running hallucination probes

Is garak free to use for hallucination testing?

Yes, garak is a free, open-source tool licensed under Apache 2.0, and its maintainers describe it as free. The license covers the software itself, not the work around it. Your costs come from the model endpoint you test (API usage or compute for a local model), the engineering time to configure and run scans, and the people who review the results. Confirm the license terms with your legal team before adopting the tool, and check the garak user guide for current setup details.

How long does a garak hallucination scan take?

Duration depends on how much work the run asks the target to do and how quickly the target responds. The main drivers are the number of generations per prompt (garak defaults to 5), the number of probes selected, the number of prompts each snowball or misleading probe sends, the target's response latency, and any rate limits on the endpoint. Doubling generations or adding probes increases request volume roughly in proportion. Before you plan a scan window, measure response time on a small probe subset and confirm rate limits with your model provider.

What does my team need to supply before a scan can run?

Your team needs four things: a reachable model endpoint, credentials that allow requests to it, Python 3.11 or newer (the PyPI package requires it), and someone who can interpret the results. The endpoint can be a hosted API, a model on the Hugging Face Hub, a local gguf model, or any REST endpoint that returns plaintext or JSON, configured through a short YAML file. Confirm that the endpoint is allowed to receive test prompts under your provider terms and internal data rules.

Can an internal team run snowball and misleading probes alone?

Yes, a team with Python and command-line skills can install garak with pip, point it at an endpoint, and run the snowball and misleading probes. The harder part is interpretation. Snowball probes ask complex reasoning questions about graph connectivity, primes and senators, and the misleading probe checks whether the model debunks false claims. Deciding whether an answer is a hallucination, a refusal or an acceptable hedge, and whether a result should change a model choice, requires people who understand both the domain and the detectors.

Which results should I trust when comparing models?

Trust comparisons only when the setup is held constant. Use the same probes, generation count, system prompt, endpoint settings and garak version for every model, and keep the JSONL report and garak.log from each run. Scores can shift when garak changes between releases, so record the version. A single run on a small sample can differ from a repeat run, so ask for repeat runs before treating a gap between two models as meaningful.

What does a DeployOpen quote for this work depend on?

A DeployOpen quote follows from a written scope, and DeployOpen does not publish a price list. The scope usually covers which models and endpoints are tested, which probes and generation counts apply, how the scan is wired into your environment (including any air-gapped or CI setup), how results are reviewed and reported, and whether a retest or ongoing rescans are included. Ask for each of these items to be listed separately so you can see what drives the total and what would change it.

Does a hallucination scan show that a model is safe to deploy?

No. A garak scan shows how a model behaved on the prompts and detectors it ran, at the time it ran. It does not certify the model, and it does not cover every domain or every way a model can produce wrong answers. Use results as one input to model selection, alongside testing on your own data and workflows, and confirm with your compliance team how the evidence should be recorded.

How DeployOpen scopes hallucination testing with garak

DeployOpen scopes hallucination testing as a fixed-scope engagement, with the models, probe families and endpoints agreed in writing before any run. The scope document should name each model or model version under test, each endpoint and its access path, and the exact probe modules included, such as the snowball probes and the misleading probe. It should also state which detectors will score the attempts and whether the team wants the default generation count or a higher one. Because a snowball or misleading result only means something for the model it was run against, the written scope is where the team fixes the model identity that a later comparison will depend on.

The work runs inside the client's environment. DeployOpen installs garak on a host the client controls, connects it to the approved endpoints through the generator configuration, and keeps the JSONL report and the garak.log file inside the client's storage. Results are then reviewed with the client's engineers and, where relevant, its risk or compliance owners. The review walks through each failed attempt, separates a confident wrong answer from an answer that simply declined, and records which failures matter for the intended use of the model. Ask the partner to confirm where reports will be stored, who can read them, and how long they are kept.

Repeat scans are offered as a retainer. Hallucination results shift when a model provider updates weights, when a system prompt changes, or when the garak version changes, so a rescan after each of those events keeps comparisons honest. Ask any partner to state in the quote which events trigger a rescan, how many runs the retainer covers, and whether retesting of agreed fixes is included. DeployOpen does not publish a price list, so the quote should follow from that written scope.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.