How PyRIT Likert harm scales rate responses for red team results
A red team rarely needs a simple yes or no on whether a model response is harmful. A refusal is clearly safe and a detailed synthesis of a dangerous substance is clearly not, but most responses sit in between: a partial answer, a hedged explanation, or content that is mildly misleading. A graded verdict lets you separate these cases and set a threshold that matches your own risk tolerance. In PyRIT, SelfAskLikertScorer provides this by asking a judge model to rate a response against a predefined 1 to 5 Likert scale, with the scale chosen to match the harm you are testing.
PyRIT ships bundled scales for harm, misinformation, behaviour change and other categories, so you do not need to write rubrics from scratch for common cases. Each scale defines what each level means, and the judge returns a score that PyRIT stores with the conversation in memory. A float score is the right tool when you need to compare runs over time, rank attack strategies by how severe their outputs are, or apply a threshold you can tune later. A true or false judgment is the better choice when the question is binary, such as whether a specific objective was met. Confirm the exact scale names and level definitions in the PyRIT documentation for your installed version before you build reports on them, because the bundled scales can change between releases.
Before you set a pass or fail line, decide who owns that number. The threshold should come from your policy, not from the default output of the judge model, and the team should record which scale, judge model and threshold produced each result. Run the scorer on a sample of responses that humans have already labeled, and check whether the judge agrees with those labels at the levels you care about. Treat the judge as one input to the review process rather than the final authority, and plan for how borderline scores will be escalated to a person.
Which bundled scale fits which harm question
Use the harm scale when the question is whether a response contains content that could cause direct damage if a user received it, such as instructions for dangerous activity, abusive material or targeted harassment. It fits single-turn and multi-turn attacks against a chatbot, an agent or a generation feature where the failure you fear is the model producing something it should refuse. The scale rates severity of the content itself, so a polite refusal with no harmful detail should rate low, and a detailed answer should rate high.
- What it measures: the degree of harmful content in the response, on the 1 to 5 range the scorer applies.
- When it fits: red teaming against safety policy, where you want a graded signal rather than a yes or no.
- What it does not cover: factual accuracy of harmless text, or whether the model changed its persona over a conversation.
- Overlap with other scorers: if you also run a content safety classifier, compare results before treating either as the final word.
- Watch for: fiction or role play framing that hides real instructions, which the rating should capture but may under-weight.
Check the harm scale definition in the PyRIT documentation to confirm which categories it describes before adopting it.
Use the misinformation scale when the question is whether the model asserts false or misleading claims, especially on topics where users may act on the answer, such as health, finance, legal or election information. It fits assistants that answer factual questions and workflows where confident errors create risk. The scale is about the truthfulness and reliability of claims, so it answers a different question from whether the content is dangerous.
- What it measures: how far the response presents false or misleading information, rated on the same 1 to 5 range.
- When it fits: knowledge-heavy assistants, retrieval-augmented answers and prompts seeded with known false premises.
- What it does not cover: whether the misleading answer is also harmful content, which needs the harm scale.
- Judge limits: the rating depends on the judge model knowing the facts, so a stale or weak judge may miss errors.
- Ground truth: for claims you can verify, a reference answer in the objective usually gives more reliable results than judgement alone.
Confirm the misinformation scale wording in the PyRIT documentation, since its definition sets what counts as a misleading claim.
Use the behaviour change scale when the question is whether the model has moved away from its intended persona, rules or stated limits, or has begun to encourage or adopt a behaviour it should avoid. This matters most in multi-turn attacks, where a model may refuse early and then gradually comply, and in companion, coaching or support products where tone and boundaries are part of the product promise. The scale tracks change in behaviour across the response, not just a single unsafe sentence.
- What it measures: the degree to which the response shows a shift in behaviour or stance, on the 1 to 5 range.
- When it fits: gradual persona breaks, manipulation over several turns and assistants with defined personality limits.
- What it does not cover: isolated harmful content or false facts, which need the harm or misinformation scales.
- Pair with conversation scoring: a per-response rating can miss drift that only appears across turns, so score the full conversation where the outline allows.
- Baseline: rate a benign conversation first so you know what normal variation looks like for your product.
Read the behaviour change definition in the PyRIT documentation before relying on it, and confirm with your product owners what behaviour they consider a failure.
Many teams need more than one question answered, and running every scale on every response is rarely the right answer. A practical approach is to decide the primary harm question for each test set, then add a secondary scale only where a failure in that category would change the decision. Mixing scales on one dataset without a clear rule makes results hard to compare across releases.
- Start from the risk: list the failures that would stop a launch, then map each to one scale.
- Keep scales stable: record which scale and which judge model produced each rating so trends remain comparable.
- Avoid double counting: two scales that rate the same sentence can inflate a failure count if both are used in one threshold.
- Plan for disagreement: where scales point in different directions, define in advance which one governs the decision.
- Scope the evidence: if results feed an assessment, state which question each scale answered.
Before adopting any scale, read its exact definition in the PyRIT documentation and confirm the scale suits your policy.
Scorer and scale options and when each fits
This table compares the choices a team makes when using the Likert scorer: a bundled scale or one written for its own policy, the judge model, and whether the rating is used directly or converted to a pass or fail threshold. Read each row against your own policy and evidence needs, and use the last column to decide what to confirm before the first run.
| Option | When it fits | What to confirm |
|---|---|---|
| Bundled harm scale | You want a standard starting point to compare runs over time and across targets | Which bundled scale version you are using and whether its wording matches your harm categories |
| Custom scale for your policy | Your acceptable-use policy names harms that a bundled scale does not describe clearly | Written level definitions for 1 to 5 that a second reviewer would score the same way |
| Bundled misinformation or behaviour change scale | Your use case centres on false claims or persuasion and manipulation rather than classic content harms | Whether the scale's examples fit your domain, such as health, finance or legal advice |
| Strong judge model | Scores feed release decisions or evidence that auditors will read | Which judge model the team has approved, and how its outputs were checked against human ratings |
| Lightweight judge model | You are screening large volumes of responses and will review borderline cases by hand | Whether false negatives on your sample are acceptable, and who reviews the borderline band |
| Direct use of the 1 to 5 rating | You report distributions, trends or averages to a risk owner | How the team reads a single score and whether averages hide severe outliers |
| Threshold converted to pass or fail | A release gate needs a clear decision for each response or run | The cut-off level, who approved it, and whether the threshold was tested on known harmful and benign examples |
Setting up the Likert scorer in a PyRIT project
This sequence takes a team from a clean Python environment to a Likert scorer that its reviewers have checked against known responses. The output is a scorer, a chosen scale and a recorded agreement check that together show the ratings are fit to gate attacks.
Confirm a supported Python version
The platform engineer or the red team lead checks the Python interpreter on the test workstation or runner before installing anything. The PyPI package supports Python 3.10 up to but not including 3.15, and the PyRIT documentation recommends Python 3.13, so teams should pin one of those versions in their virtual environment. Check is complete when the interpreter reports a version inside that range and the environment activates cleanly.
Install PyRIT into an isolated environment
The engineer creates a dedicated virtual environment and installs PyRIT with pip from the PyPI package, then records the exact version in the project lock or requirements file. Pinning the version matters because scale wording and scorer behaviour can change between releases, and the team will need to repeat results later. Check is complete when importing the package in a Python session succeeds and the installed version matches the pinned value.
Configure judge model credentials in the environment file
The engineer adds the judge model endpoint and key to the PyRIT credentials file in the user's home directory, and sets any non-secret settings in the configuration file alongside it. Use a judge model that the security team has approved for handling the test content, and avoid placing keys in the repository. Check is complete when a minimal request to the judge model returns a response through PyRIT, with no credentials printed in logs.
Select or write the Likert scale
The red team lead chooses a bundled scale for harm, misinformation or behaviour change, or writes a custom 1 to 5 scale that matches the organization's own policy wording. Each rating level should describe an observable property of the response so that two reviewers would reach the same level. Check is complete when the scale is saved under version control with a short note that names the policy it implements and the owner who approved it.
Build the scorer and run it on known responses
The engineer constructs the self-ask Likert scorer with the chosen judge model and scale, then runs it against a small set of responses that the team has already labelled with the intended level, including clear refusals, mild answers and clearly harmful answers. Keep the set small enough to review by hand. Check is complete when the scorer returns a rating and a rationale for every item, with no unparsed or empty outputs.
Compare ratings with a human reviewer
A reviewer who did not write the scale scores the same responses without seeing the scorer's output, and the team compares the two sets item by item. Disagreements are examined for scale wording problems, judge model weaknesses or unclear examples, and the scale is revised before the next pass. Check is complete when the team has written down where the scorer and reviewer agree, the disagreements and the decisions taken on each.
Set the pass or fail threshold and record approval
The red team lead and the policy owner agree which rating level counts as a failure for each attack objective, and record that threshold next to the scale. The team also records the judge model version, the scale version and the agreement results, so that later runs can be compared fairly. Check is complete when the threshold, the approval and the agreement record are stored together and referenced in the project configuration.
Wire the scorer into attacks
Only after the earlier checks pass, the engineer attaches the scorer to the attack workflow so that each response is rated and compared with the agreed threshold. The team should confirm with a short trial run that scored results appear in PyRIT memory with the expected labels. Check is complete when a trial attack produces stored ratings that match the threshold rules and can be traced back to the scale version.
Turning 1 to 5 ratings into pass or fail thresholds
A Likert rating from PyRIT is not a verdict. A score of 4 on a 1 to 5 scale only becomes a pass or fail once your team sets a cut-off, and that cut-off is a policy decision that belongs to the risk owners who will accept or reject the findings, not a default that PyRIT supplies. Before the first run, agree in writing which harm categories are in scope, what a rating means for each one, and who signs off on the threshold. Record that decision alongside the scale version and the judge model used, so a later reviewer can see why a result counted as a failure.
Pick the threshold from calibration rather than intuition. Take a sample of responses, have reviewers rate them by hand against the same scale definitions, and compare those human labels with the ratings from the SelfAskLikertScorer on the same items. Look for the cut-off where the scorer's failures line up with the failures your reviewers would call unacceptable, and check how often it flags responses that reviewers would pass. Store the threshold as a named configuration value in version control, and treat any change to it as a reviewed change, since a different cut-off can move the same run from passing to failing without any change to the target.
A single number hides the cases that matter most. A response rated 3 may be a near miss that needs a human read, or a harmless answer that happened to touch a sensitive topic, and a pass or fail flag discards that difference. Keep the raw Likert ratings and the scorer's rationale in PyRIT memory, and route ratings within one point of the cut-off to a review queue so a person decides them. Retaining the full rating distribution also lets you re-apply a revised threshold to past runs without re-attacking the target, which is useful when risk owners change their minds after the evidence is in.
Security and operational risks of Likert scoring
A Likert judge turns model output into numbers that drive pass or fail decisions, so its risks sit in the judge itself, the data it stores and the way its scores are read. The cards below pair each risk with the control to set before the scores are relied on.
Judge model drift after changes
The judge model, its version or its hosting can change without the scale changing, so a score from last quarter may not be comparable with one from today. Pin the judge model and endpoint version in configuration, and record which judge produced each score in memory. Before any PyRIT upgrade, rerun a fixed set of known responses through the scorer and compare the ratings with the previous baseline.
Float-scale scorer docsJudge output off the scale
A judge may return text that is not a rating on the 1 to 5 scale, or a rating wrapped in explanation that the parser does not expect. Malformed output can be dropped, defaulted or misread, which quietly shifts pass rates. Check that the scorer raises or flags unparseable output rather than substituting a value, and alert on the rate of failed parses in each run.
Harmful responses kept in memory
PyRIT stores conversations and scores in SQLite or Azure SQL, and a Likert run stores the harmful response being rated along with its score. That store becomes a repository of sensitive harmful content. Restrict read access to the memory database, set a retention and deletion routine, and decide who may export conversations for review before the first run.
Judge endpoint credentials
The Likert scorer calls a judge model, which needs its own API key or Entra ID identity, separate from the target under test. Keys placed in plain configuration or shared across teams are easy to leak and hard to attribute. Store the judge credentials in the secrets store your organization already uses, scope them to the judge deployment only, and rotate them on a schedule. PyRIT reads credentials from ~/.pyrit/.env, so confirm that file is not committed to source control.
Scores used as audit evidence
A harm score from a Likert judge is a model's opinion about another model's output. Presenting raw scores as proof of safety, without checking them against human labels, overstates what the run shows. Calibrate the scorer on a sample rated by reviewers, record agreement and error figures, and describe the scores as judge outputs with stated limits in any report.
How a response flows from target to Likert verdict
The flow starts with an attack prompt sent to the target, whose response is passed to the SelfAskLikertScorer. The scorer asks a judge model to rate that response on a predefined scale, and the rating is saved to PyRIT memory. A threshold then turns the rating into a pass or fail, and borderline scores go to a human reviewer. The judge model sits inside a trust boundary, so check what data it receives and where it runs.
Data path from attack prompt to recorded pass or fail verdict, with the judge model as a trust boundary.
Limits to confirm in your environment
A Likert scorer produces a number, not a verdict on your policy. The cards below list what to confirm for your own release and your own harm categories before a 1 to 5 rating becomes a pass or fail gate.
Bundled scale fit with policy
PyRIT ships Likert scales for harm, misinformation and behaviour change, but each scale carries its own wording and examples. Compare the scale text with your acceptable use policy and the harms your product can produce. Where a category is missing or worded differently, plan a custom scale and confirm how the scorer loads it in your release.
Float-scale docsJudge model behaviour per category
The judge model applies the scale, so its ratings reflect its own tendencies. A model may score one harm category consistently and drift on another, or refuse to rate some content at all. Run a labelled sample across each harm category you care about, record the judge model name and version, and check the distribution of scores before trusting it.
Whether 1 to 5 is enough
A five-point scale separates clear refusals from clear harm but may blur borderline responses into the middle. Decide in advance which score counts as a failure and whether a gap of one point matters to your risk owners. If your evidence needs finer distinctions, confirm whether PyRIT's float-scale output and your own thresholds can express them.
Score consistency across runs
The same response can receive different ratings when the judge is re-run, especially at non-zero sampling settings. Repeat scoring on a fixed set of responses, compare the spread, and decide whether a single run is enough for a gate. Confirm the sampling settings your release uses for the judge and record them with each result.
Language coverage
Scales and judge prompts are usually written in English, and judge models vary in how well they assess harm in other languages. If your users write in other languages, test the scorer on responses in each of those languages, including code-switched text and idioms. Do not assume an English pass rate carries over to a different language.
PyRIT version in use
Scorer classes, scale definitions and configuration keys change between releases, and the project has moved repositories. Pin the PyRIT version in your environment, read the documentation for that exact release, and re-check scale names and thresholds after every upgrade. Results from different versions should not be compared without that check.
Questions teams ask before running Likert scoring
How much effort does a Likert scorer setup take?
Effort depends mostly on how many harm categories you need, how many judge models you will compare, and how much your policy differs from the bundled scales. A basic setup with one judge model and one bundled scale is a small configuration task inside PyRIT. The larger effort is writing the rubric that tells the judge what a 1 and a 5 mean for your product, then checking that the ratings agree with what your risk owners would decide. Ask any partner to split its quote into scale selection, judge configuration, rubric work, calibration and reporting so you can see where the time goes.
Can our own team set up Likert scoring without a partner?
Yes, if your engineers are comfortable with Python, PyRIT's configuration files and the model provider your judge runs on. PyRIT reads credentials from ~/.pyrit/.env and settings from ~/.pyrit/.pyrit_conf, and the scorer itself is a small piece of code. Teams often struggle less with installation than with deciding what a score means for their policy and proving that the judge is consistent. If you lack someone to own that judgment, a partner can run the rubric and calibration work while your team keeps the setup.
What does the work need from our team?
Three things matter most. You need access to a judge model that your security and privacy teams approve for the content being scored. You need a labelled sample of responses that people on your side have already rated, so the scorer can be compared against human judgment. You also need a named risk owner who signs off the scale, the rubric and the threshold that turns a rating into pass or fail. Without that sign-off, the scores have no decision behind them, and the calibration work will be repeated later.
How long does calibration take?
Calibration length depends on scope: how many harm categories are in play, how many judge models are compared, the size of the labelled sample and how many rounds of review your risk owner needs. A single scale on one product is a much smaller exercise than several scales across multiple applications. Ask for the calibration plan in writing, including the sample size, the agreement measure you will report and the number of review rounds included, rather than a single overall duration.
Do we need a custom Likert scale?
Not always. PyRIT ships Likert scales for harm, misinformation and behaviour change, and these cover many first assessments. A custom scale becomes worth the effort when your policy names harms the bundled wording does not describe, or when your regulator or customers use a severity model with different levels. Any custom scale still needs anchor descriptions for each point, and those descriptions are what the judge reads, so they should be reviewed by someone who owns the policy.
How do Likert scores fit into compliance evidence?
Likert scores are evidence of a test method and its results, not a compliance finding on their own. Auditors and assessors will ask how the scale was chosen, who approved the thresholds, how the judge was checked against human labels and where each rating is stored. PyRIT keeps conversations and results in SQLite or Azure SQL memory, which helps you trace a rating back to its prompt and response. Independent auditors and certification bodies decide whether the evidence meets a given framework, so confirm the expected format with them early.
What should we check before trusting the scores?
Check that the judge agrees with your labelled sample on the cases that matter most, especially borderline responses rated 2 or 3. Confirm that malformed or empty judge output is recorded as an error rather than a pass. Re-run the same sample after any change to the judge model, the scale wording or the threshold, because those changes shift scores. Keep the labelled sample and its decisions as part of the record so the next team can repeat the check.
How DeployOpen scopes Likert scoring for your red team program
DeployOpen scopes Likert scoring in writing before any work starts. The scope names the harms that matter to your business, the scales that will rate them, the number of attack categories in play, and the decisions the scores will feed. Those decisions usually include whether a response counts as a finding, which findings reach your risk owners, and whether a retest is needed after a fix. Fixing these points first keeps the judge configuration, the calibration work and the threshold discussion tied to a defined set of harms rather than to whatever the scorer happens to rate.
The scope also settles the judge model and where it runs. The SelfAskLikertScorer calls a chat model, so the scope must say which model judges the responses, who hosts it, and whether it sits inside your network or a provider region you have approved. DeployOpen then calibrates the scorer against a labelled sample that your reviewers agree on, checks that scores track those labels across the 1 to 5 range, and records where the scorer disagrees with humans. Your risk owners sign off on the pass and fail thresholds using that evidence, and the handover package documents the scale files, prompt templates, memory location, threshold rationale and the calibration results so your team can rerun or challenge them later.
Engagements are fixed-scope, so deliverables and timelines are agreed in writing before work starts, and a quote follows from that written scope. Ongoing support, scorer recalibration after model or scale changes, and continuous testing are available as a retainer. Confirm with DeployOpen which of these items are one-time and which recur, and ask for the handover documents to be named in the statement of work.

