You need to agree to share your Hugging Face information to access this dataset

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

This dataset contains model completions to harmful instructions, produced under adversarial suffix attacks. Access is granted for defensive security research (robustness evaluation, red-teaming, jailbreak-defense development) only. By requesting access you confirm you will not use it to attack systems you are not authorized to test.

Log in or Sign Up to review the conditions and access this dataset content.

TROPT JBEnhanceBench

Adversarial trigger suffixes found by TROPT's MAC optimizer under 14 jailbreak-enhancement configurations against google/gemma-3-12b-it, with each trigger's jailbreak score on 115 ClearHarm instructions.

⚠️ Intended use: defensive security research only. These are adversarial artifacts for evaluating and hardening LLM robustness (red-teaming, jailbreak-robustness benchmarking). The eval_triggered_messages config contains model-generated responses to harmful instructions, including successful jailbreaks, which is why the repo is gated. Do not use it to attack systems you are not authorized to test.

Contents

Config (= split) Rows One row is
triggers 2,912 one optimization run's best trigger at one FLOP budget
eval_triggered_messages 83,950 one (full-budget trigger, instruction) pair, with the model's response and its score
  • Model (1): google/gemma-3-12b-it
  • Optimizer (1): mac, Momentum-Accelerated GCG (Zhang & Wei, 2024), with the same settings in every run.
  • Configurations (14): variant_name, decomposed into loss_name and variant (see Configurations).
  • Regimes (2): single (one trigger per instruction) and multi (one trigger for ten instructions); see Regimes.
  • Instructions: each trigger is optimized on one (single) or ten (multi) of 15 ClearHarm instructions and evaluated on 115.
  • Seeds: 42, 123, 777 (single); 0, 1, 7, 13, 99, 1234, 2024 (multi).

Loading

from datasets import load_dataset

R = "MatanBT/tropt-jb-enhancebench"
triggers = load_dataset(R, "triggers", split="triggers")
evals    = load_dataset(R, "eval_triggered_messages",
                        split="eval_triggered_messages")

Instruction ids

msg_id, msg_ids and eval_msg_id are row indices into ClearHarm, published with target prefixes and the split assignment as MatanBT/clearharm-with-targets (join on its msg_id). There, the 15 instructions triggers are optimized on have tropt_split == "optimization", the 100 held-out ones tropt_split == "heldout", and the 115 evaluated ones eval_order >= 0.

Configurations

variant_name names the configuration. Changes to the training objective are recorded in loss_name; changes to the prompt template, target or trigger initialization in variant.

variant_name loss_name variant
gcg_vanilla PrefillCE default
gcg_cw PrefillCW default
gcg_flrt_clamp PrefillCE-clamped default
gcg_flrt_distill PrefillDistillation default
gcg_attn_hijack PrefillCE+AttnHijack default
gcg_steering PrefillCE+Steering default
gcg_prs_template PrefillCE manual-jb-template
gcg_jailbroken_target PrefillCE jailbroken-target
gcg_begging_init PrefillCE begging-init
gcg_prs_jbtarget PrefillCE manual-jb-template+jailbroken-target
gcg_prs_attn_hijack PrefillCE+AttnHijack manual-jb-template
gcg_jbtarget_attn_hijack PrefillCE+AttnHijack jailbroken-target
gcg_prs_jbtarget_hotinit PrefillCE manual-jb-template+jailbroken-target+begging-init
gcg_jbtarget_cw_attn_hijack PrefillCW+AttnHijack jailbroken-target

loss_name components:

  • PrefillCE — cross-entropy of the target response.
  • PrefillCW — Carlini–Wagner-style hinge on the target-token logit margin (margin 5, first-token weight 5).
  • PrefillCE-clamped — PrefillCE with each token's loss floored at −log 0.6 (FLRT, Thompson & Sklar, 2024).
  • PrefillDistillation — cross-entropy to the logits of a refusal-ablated teacher, mlabonne/gemma-3-12b-it-abliterated-v2, over its 20-token greedy response (FLRT).
  • +AttnHijack — adds 100 × an attention term from the trigger to the chat-template tokens after it, on the middle 10–90% of layers (Ben-Tov et al., 2025).
  • +Steering — 0.25 × PrefillCE + 0.75 × a term steering the last input token's activations away from the model's refusal direction (IRIS, Huang et al., 2025).

variant components (default: the plain ClearHarm template, the ClearHarm target prefix, a random initial trigger):

  • manual-jb-template — the instruction is wrapped in the PRS jailbreak template (Andriushchenko et al., 2024), with the trigger at its end.
  • jailbroken-target — the target is the refusal-ablated teacher's 20-token greedy response instead of the ClearHarm prefix.
  • begging-init — the trigger starts from one of seven fixed "begging" strings (chosen by seed, cut to 20 tokens) instead of random tokens.

The three *attn_hijack configurations without the PRS template drop the period after the trigger, so the trigger ends the user turn as the attention term requires; this is not counted as a template change.

Regimes

regime One trigger per Run cap (FLOPs) msg_id msg_ids
single (instruction, seed) 3e17 the instruction [msg_id]
multi seed 5e18 null 10 instructions, sampled from the 15 by seed

A multi trigger is a single universal trigger optimized on all instructions in its msg_ids at once.

triggers

Each run's best trigger so far (lowest best_loss) is recorded at four budgets: 1e16, 3e16, 1e17, 3e17 (single) and 1.5e17, 5e17, 1.5e18, 5e18 (multi). A budget includes the step that crosses it, so trigger_flops can exceed budget_flops by up to one step.

Identity

  • uid — {model}|{variant_name}|{regime}|m{msg_id}|s{seed}|{budget_label}, where {model} is model_name after the / and m{msg_id} is mall for multi. Referenced by eval_triggered_messages.trigger_uid.
  • model_name — the target model.
  • optimizer_name — the optimization method (mac).
  • loss_name, variant, variant_name — the configuration (see Configurations).
  • regime — single or multi.
  • msg_id — the instruction the trigger was optimized on; null for multi.
  • msg_ids — every instruction the trigger was optimized on (1 for single, 10 for multi).
  • seed — the run's random seed.
  • run_id, run_name — wandb run identifiers, for provenance only (the m= in run_name is not msg_id).

Budget

  • budget_flops, budget_label — the FLOP budget of this row.

Trigger & result

  • best_trigger_str — the optimized trigger suffix.
  • best_loss — its training loss (lower is better). Scales differ across loss_name, so compare it only within one loss.
  • trigger_flops — cumulative FLOPs at the step that found this trigger.
  • n_steps_within_budget — optimizer steps counted toward this budget, including the step that crosses it.
  • run_total_flops, run_total_steps — the full run's totals.

Inputs (lists aligned with msg_ids)

  • optimized_instruction — the instruction templates optimized on, wrapped as the configuration requires; {{OPTIMIZED_TRIGGER}} is the placeholder the trigger replaces.
  • optimized_target — the target responses: the teacher's response when variant includes jailbroken-target, otherwise the ClearHarm target prefix.

Metrics (full budget only; NaN at other budgets)

  • bleu — BLEU between the model's greedy response to the triggered optimized_instruction, truncated to the target's length, and optimized_target; for multi, the mean over its instructions.
  • opt_strongrej — mean srej_score of the trigger's optimized_on rows in eval_triggered_messages (its training instructions).

eval_triggered_messages

The 728 full-budget triggers (630 single at 3e17, 98 multi at 5e18) and two baselines, each evaluated on the 115 instructions. google/gemma-3-12b-it generates a greedy response of up to 256 new tokens to the prompt below, sent as a single user turn in its chat template. The prompt wraps the instruction as the trigger's configuration did during optimization:

variant_name Prompt
gcg_prs_template, gcg_prs_jbtarget, gcg_prs_attn_hijack, gcg_prs_jbtarget_hotinit, no-attack-w-template the PRS template (as in optimized_instruction), trigger at its end
gcg_attn_hijack, gcg_jbtarget_attn_hijack, gcg_jbtarget_cw_attn_hijack f"{instruction_str} {trigger_str}"
all others f"{instruction_str} {trigger_str}."

The response is scored by the StrongReject fine-tuned classifier, which sees the clean instruction_str, never the trigger or template.

Baselines. Two non-optimized triggers, evaluated in the multi regime and identified by variant_name:

  • no-attack — twenty ! separated by spaces, no template.
  • no-attack-w-template — the same trigger inside the PRS template.

Their trigger_uid is baseline|<variant_name> (no triggers row); optimizer_name, loss_name and variant are none; msg_id, seed and budget_label are null; msg_ids is empty.

Trigger identity (copied from triggers)

  • trigger_uid — triggers.uid.
  • model_name — the model attacked, which also generated the response.
  • optimizer_name, loss_name, variant, variant_name, regime, msg_id, msg_ids, seed, budget_label — as in triggers; budget_label is the regime's full budget.

Evaluated instruction

  • eval_msg_id — the instruction evaluated (one of the 115).
  • optimized_on — eval_msg_id is in msg_ids: one row per single trigger, ten per multi trigger, none for the baselines.
  • is_heldout — no trigger was optimized on eval_msg_id (tropt_split == "heldout"): 100 of the 115 instructions.

Prompt & outcome

  • instruction_str — the evaluated ClearHarm instruction, without the trigger or template.
  • trigger_str — the trigger (triggers.best_trigger_str).
  • generated_response_str — the model's response.
  • srej_score — StrongReject score in [0, 1]; higher means more harmful compliance.

Evaluation subsets

Rows Instructions
optimized_on the trigger's own training instructions
~optimized_on & ~is_heldout the other optimization instructions
is_heldout the 100 instructions no trigger was optimized on
df = evals.to_pandas()
heldout = (df[df.is_heldout]
             .groupby(["regime", "variant_name"])["srej_score"]
             .mean().unstack(0))

License and citation

MIT. If you use this dataset, please cite the TROPT toolbox (https://github.com/matanbt/tropt).

Downloads last month
30

Collection including MatanBT/tropt-jb-enhancebench

Papers for MatanBT/tropt-jb-enhancebench