SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2604.23067 · 2026

Training a General Purpose Automated Red Teaming Model

Aishwarya Padmakumar, Traian Rebedea, Christopher Parisien, Leon Derczynski

arXiv · PDF

Code that ran

2 of 2 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (1 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 1 failure of our instrument; 0 no recorded run), measured 2026-11-23; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2604.23067.json · badge: /api/ran/2604.23067.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
NVIDIA/garak community
Papers with Code archive
2 ran · 0 no recorded run
FunctionStatusWhere it lives
GarakException Ran
ran on a synthesized input · constructed an object; no result was computed
NVIDIA/garak/garak/resources/red_team/conversation.py
code served (permissive licence) · get_code("9d3d698bb4ce5dd8")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned an instance of its own class, GarakException: the run constructed the object and did not call it, so no result was computed. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

# GarakException is a simple exception class with no parameters
# The __init__ method only takes *args and **kwargs like a standard Exception

ARGS = {}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type GarakException — the run constructed an instance of its own class and did not call it; no shape is stated — the instrument coerces any output to an array; for a GarakException output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
prune Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
NVIDIA/garak/garak/resources/red_team/conversation.py
code served (permissive licence) · get_code("bc4fa40e4777638d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned tuple, ndim 2, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import numpy as np

class GarakException(Exception):
    """Base class for all garak exceptions"""

# Set random seed for reproducibility
np.random.seed(42)

# Create test data with consistent sizes
width = 5
num_items = 8

# Create sorting scores (mix of positive and zero values)
sorting_score = [0.9, 0.0, 0.7, 0.5, 0.0, 0.8, 0.3, 0.6]

# Create on_topic_scores (required, must have at least 2 elements)
on_topic_scores = [0.85, 0.75, 0.65, 0.55, 0.45, 0.35, 0.25, 0.15]

# Create judge_scores (optional)
judge_scores = [0.9, 0.8, 0.7, 0.6, 0.5, 0.4, 0.3, 0.2]

# Create adv_prompt_list (required, must have at least 2 elements)
adv_prompt_list = [
    "prompt_1", "prompt_2", "prompt_3", "prompt_4",
    "prompt_5", "prompt_6", "prompt_7", "prompt_8"
]

# Create improv_list (required, must have at least 2 elements)
improv_list = [
    "improv_1", "improv_2", "improv_3", "improv_4",
    "improv_5", "improv_6", "improv_7", "improv_8"
]

# Create convs_list (required, must have at least 2 elements)
convs_list = [
    {"conv": 1}, {"conv": 2}, {"conv": 3}, {"conv": 4},
    {"conv": 5}, {"conv": 6}, {"conv": 7}, {"conv": 8}
]

# Create target_response_list (optional)
target_response_list = [
    "response_1", "response_2", "response_3", "response_4",
    "response_5", "response_6", "response_7", "response_8"
]

# Create extracted_attack_list (required, must have at least 2 elements)
extracted_attack_list = [
    "attack_1", "attack_2", "attack_3", "attack_4",
    "attack_5", "attack_6", "attack_7", "attack_8"
]

# Create attack_params with width setting
attack_params = {
    'width': width
}

ARGS = {
    'on_topic_scores': on_topic_scores,
    'judge_scores': judge_scores,
    'adv_prompt_list': adv_prompt_list,
    'improv_list': improv_list,
    'convs_list': convs_list,
    'target_response_list': target_response_list,
    'extracted_attack_list': extracted_attack_list,
    'sorting_score': sorting_score,
    'attack_params': attack_params
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
numpy — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 2, dtype family float — a tuple output has no array shape of its own; none is stated
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block

Also present in other papers' code

Of 2 samples lifted from this paper's linked repositories, 2 carry a function identity and 0 do not. Of the 2 distinct functions with an identity, 0 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 later) and 2 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

Automated methods for red teaming LLMs are an important tool to identify LLM vulnerabilities that may not be covered in static benchmarks, allowing for more thorough probing. They can also adapt to each specific LLM to discover weaknesses unique to it. Most current automated red teaming methods are intended for tackling safety and content moderation. Thus, they make use of content safety models as evaluators and optimize for circumventing them, and as such, have not been tested with other adversarial intents not typically captured by these. We propose a pipeline for training a red teaming model that can generalize to arbitrary adversarial goals, including objectives it has not been directly trained on, and that does not depend on the existence of a pre-existing evaluator available at training time. We demonstrate that finetuning small models, such as Qwen3-8B, using this pipeline results in a substantial improvement in their ability to generate attacks for both in and out of domain adversarial goals.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2604.23067")
get_code_for_paper("2604.23067")
have("2604.23067")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2604.23067.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2604.23067.svg)](https://syntology.ai/paper/2604.23067)

Connect an agent — have() is free.