Evaluation Configuration

The evaluation node defines how ARES assesses the performance of the target model/app under adversarial attack. Evaluators analyze the model’s responses and determine whether they meet safety, robustness, or refusal criteria.

ARES supports evaluation for both single-turn and multi-turn attack strategies.

Basic Configuration

Single-Turn Evaluation Example:

evaluation:
  type: ares.evals.keyword_eval.KeywordEval
  keyword_list_or_path: 'assets/advbench_refusal_keywords.json'
  input_path: 'assets/ares_attacks.json'
  output_path: 'assets/evaluation.json'

Multi-Turn Evaluation Example:

evaluation:
  type: ares.evals.multi_turn_eval.MultiTurnEval
  name: multi_turn_eval
  input_path: 'results/multi_turn_attacks.json'
  output_path: 'results/multi_turn_evaluation.json'
  mode: conversation  # Options: 'prompt', 'conversation', 'goal'

Supported evaluator types can be found in the evals package. These include keyword matchers, regex filters, scoring-based evaluators, and multi-turn evaluators.

Multi-Turn Evaluation Modes

The MultiTurnEval evaluator supports three evaluation modes:

  • prompt: Evaluates each individual prompt-response pair in the conversation

  • conversation: Evaluates the entire conversation as a whole

  • goal: Evaluates whether the attack goal was achieved across the conversation

Note

Multi-turn strategies using the MultiTurn base class automatically provide an attack_successful field with “Yes”/”No” values based on the strategy’s success criteria.

LLM-Based Evaluation

ARES supports evaluation using external language models (LLMs) to judge responses. These evaluators use a connector to query a model and ask whether the response is harmful, evasive, or aligned with expected behavior. This is particularly useful for subjective or nuanced evaluations.

For implementation details, see:

  • ares.evals.llm_eval.LLMEval — uses a language model to judge responses based on predefined criteria

  • ares.evals.multi_turn_eval.MultiTurnEval — evaluates multi-turn conversations with flexible scoring

This approach allows ARES to simulate human-like judgment and scale evaluations across diverse attack strategies.

Example use cases:

  • Using a model to classify responses as harmful or safe

  • Asking an LLM to rate the quality or safety of a response

  • Comparing outputs against expected refusal behavior

  • Evaluating multi-turn conversation success

Evaluator Weight Map

When you combine multiple attack strategies with multiple evaluators, some evaluators are more meaningful for certain attacks than others. weight_map lets you control how much each evaluator’s verdict contributes to the overall robustness score per strategy.

The core idea: weight_map is written inside an evaluator’s config block. Each key is a strategy name; the value is how much this evaluator’s verdict should count for that strategy in the final weighted average.

Motivating example: garak_decoding_match is designed to detect encoding-based attacks. It produces a meaningful signal for inject_base64 and inject_ascii85, but its verdict on direct_requests is largely noise. Without weight_map, both verdicts contribute equally and the overall robustness score is distorted.

my-intent:
  strategy:
    - direct_requests    # plain-text attack
    - human_jailbreak    # plain-text attack
    - inject_base64      # encoding-based attack
    - inject_ascii85     # encoding-based attack

  evaluation:
    keyword:             # general-purpose — equally relevant for all strategies
    garak_decoding_match:
      weight_map:
        direct_requests: 0   # weight=0: skip evaluation entirely (no I/O, excluded from score)
        human_jailbreak: 0
        # encoding strategies omitted → fall back to weight=1.0 (fully counted)

weight=0 is a special case — it skips the evaluation run for that strategy entirely: no file I/O, no model calls, and the (evaluator, strategy) pair is excluded from the weighted average. This is the right choice when an evaluator simply does not apply to a strategy (as opposed to just being less important).

How the score is computed:

weighted_robustness = sum(w_i × robustness_i) / sum(w_i)

This is a weighted average across all non-zero (evaluator, strategy) pairs. Values are relative — they do not need to sum to 1. Any strategy omitted from weight_map falls back to the evaluator-level weight field (default 1.0).

Agentic Evaluation

ARES also supports agentic evaluators that use multi-step reasoning or decision-making agents to assess responses. These agents may simulate user behavior or apply complex logic to determine whether the model failed under attack.

To use LLM or agentic evaluators, configure the evaluation node to invoke a connector and specify the evaluation logic.

Note

LLM-based and agentic evaluations are useful when keyword matching is insufficient or when nuanced judgment is required. These evaluators can be plugged in via ARES plugins or custom connectors.

For a complete reference of all available evaluators, see Evaluators Reference.

Blocked Responses and the Token Budget

During an attack, a target model (or the provider serving it) may refuse to return content. ARES tracks this as a blocked response and treats it as a successful defence — the attack failed.

There are three situations where ARES marks a response as blocked:

  1. Provider content/security filter — the provider returns HTTP 400 or a content-policy error (e.g. Azure cybersecurity block, OpenAI content filter). No usable content is returned.

  2. Guardrail refusal — an input or output guardrail intercepts the prompt or response and blocks it before it reaches the target.

  3. Token budget exhausted — the model consumed its entire max_tokens budget on reasoning without producing any final response text. From a red-teaming perspective, the attacker operates within a fixed token budget; a model that over-reasons and produces nothing within that budget has still successfully resisted the attack.

How blocked responses affect the report:

The ARES results table includes a Blocked column showing how many goals (or conversations) had at least one blocked turn. Blocked responses are counted as Robust — they increase the robustness score. The Blocked count is therefore always a subset of the Robust count.

Robust = defended normally + blocked by provider/guardrail/token budget
Blocked ⊆ Robust

A high Blocked count relative to Robust suggests the target’s safety comes primarily from provider-level filters rather than the model’s own alignment — useful signal when interpreting robustness results.

Note

Token-budget exhaustion is only detected for the ares-litellm connector, where max_tokens is set in parameters. If max_tokens is not configured, exhaustion cannot be detected and the empty response will appear as an error instead.