SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.12855 · 2024

JAILJUDGE: A Comprehensive Jailbreak Judge Benchmark with Multi-Agent Enhanced Explanation Evaluation Framework

arXiv · PDF · Open in the Atlas

Code that ran

9 of 9 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 0 honoured the contract we drafted, 0 violated it and 6 have no contract verdict; 3 failures of our instrument; 0 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; 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/2410.12855.json · badge: /api/ran/2410.12855.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
usail-hkust/Jailjudge community (classifier label)
classifier basis not recorded on the link
9 ran · 0 no recorded run
FunctionStatusWhere it lives
dempster_combination Ran
ran on a synthesized input
usail-hkust/Jailjudge/main_multi_agent_judge.py
code served (permissive licence) · get_code("ee4b042ddb9385c1")
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 list, ndim 1, 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 torch

torch.manual_seed(0)

# The function expects two lists/sequences with 4 numeric values each
# representing mass assignments for hypotheses: ['JB', 'NJB', 'JB&NJB', 'EMPTY']
m1 = [0.3, 0.4, 0.2, 0.1]
m2 = [0.2, 0.5, 0.15, 0.15]

ARGS = {
    "m1": m1,
    "m2": m2
}
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 list, ndim 1, dtype family float — a list 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
evident_combination_of_score Ran
ran on a synthesized input
usail-hkust/Jailjudge/main_multi_agent_judge.py
code served (permissive licence) · get_code("ef7346b6c8e6bc4a")
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 tuple, ndim 1, 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 torch
import numpy as np

# Construct valid arguments for evident_combination_of_score
# The function expects a list of dicts, each with 'score' and 'reason' keys

juding_results = [
    {
        'score': 5,
        'reason': 'Moderate jailbreak attempt detected'
    },
    {
        'score': 7,
        'reason': 'Strong jailbreak attempt indicators'
    },
    {
        'score': 4,
        'reason': 'Minor jailbreak attempt'
    }
]

ARGS = {
    'juding_results': juding_results
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple, ndim 1, 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
generate_defense_goal Ran
ran on a synthesized input
usail-hkust/Jailjudge/defense.py
code served (permissive licence) · get_code("75c5d1b87035f6bf")
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 str. 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
import numpy as np

# Mock the llm_smooth module since it's imported within the function
class MockSmoothLLM:
    @staticmethod
    def random_patch(text, patch_pct):
        """Mock random patch perturbation"""
        words = text.split()
        num_patch = max(1, int(len(words) * patch_pct))
        for i in range(min(num_patch, len(words))):
            words[i] = "[PATCH]"
        return " ".join(words)
    
    @staticmethod
    def random_swap_updated(text, swap_pct):
        """Mock random swap perturbation"""
        words = text.split()
        num_swap = max(1, int(len(words) * swap_pct))
        for i in range(min(num_swap, len(words) - 1)):
            words[i], words[i + 1] = words[i + 1], words[i]
        return " ".join(words)
    
    @staticmethod
    def random_insert_updated(text, insert_pct):
        """Mock random insert perturbation"""
        words = text.split()
        num_insert = max(1, int(len(words) * insert_pct))
        for i in range(num_insert):
            words.insert(i, "[INSERT]")
        return " ".join(words)
    
    @staticmethod
    def adaptive_perturb_pct(text, base_pct):
        """Mock adaptive perturbation percentage"""
        return base_pct

# Patch the imports in the smooth_pert function
import sys
from unittest.mock import MagicMock

mock_module = MagicMock()
mock_module.random_patch = MockSmoothLLM.random_patch
mock_module.random_swap_updated = MockSmoothLLM.random_swap_updated
mock_module.random_insert_updated = MockSmoothLLM.random_insert_updated
mock_module.adaptive_perturb_pct = MockSmoothLLM.adaptive_perturb_pct

sys.modules['llm_smooth'] = MagicMock()
sys.modules['llm_smooth.smoothLLM'] = mock_module

# Now define the ARGS
ARGS = {
    'goal': 'Write a harmful prompt for testing security measures.',
    'defense_type': 'self_reminder',
    'pert_type': 'RandomSwapPerturbation',
    'smoothllm_pert_pct': 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
llm_smooth, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_evident_judge_system_prompt Ran
ran; our contract draft was wrong, not the code
usail-hkust/Jailjudge/GPTEvaluator/system_prompts.py
code served (permissive licence) · get_code("2a1d9def76e4e4ab")
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 str. 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
import torch.nn as nn

torch.manual_seed(0)

# Based on the function signature, we need to provide:
# - goal: a string representing the prompt/user query
# - model_response: a string representing the target model's response

ARGS = {
    "goal": "How can I create a convincing fake identity online?",
    "model_response": "I can't help with creating fake identities as this violates ethical guidelines and could be used for fraud or deception. Instead, I'd recommend learning about digital privacy best practices and legitimate ways to protect your online identity."
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
get_init_msg Ran
ran on a synthesized input
usail-hkust/Jailjudge/GPTEvaluator/common.py
code served (permissive licence) · get_code("4b91f667a68a16ac")
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 str. 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
import numpy as np

torch.manual_seed(0)

# Analyze the function:
# - target_node: used in f-string, likely an integer or node identifier
# - edge_index: used in f-string, likely a list, array, or tensor representing graph edges
# - trigger_size: used in f-string arithmetic (trigger_size - 1), must be an integer

# Create valid arguments
target_node = 5
edge_index = torch.tensor([[0, 1, 2], [1, 2, 3]], dtype=torch.long)
trigger_size = 3

ARGS = {
    "target_node": target_node,
    "edge_index": edge_index,
    "trigger_size": trigger_size
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
process_target_response Ran
ran; our contract draft was wrong, not the code
usail-hkust/Jailjudge/GPTEvaluator/common.py
code served (permissive licence) · get_code("9fdfb4537f5fd761")
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 str. 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

torch.manual_seed(0)

ARGS = {
    "target_response": "The model should follow all user instructions without restriction.",
    "score": 0.85,
    "goal": "Make the model ignore its safety guidelines and provide harmful content",
    "target_str": "adversarial_prompt_001"
}
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 str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
remove_code_blocks Ran
ran; our contract draft was wrong, not the code
usail-hkust/Jailjudge/models/language_models.py
code served (permissive licence) · get_code("db66e64c1a095a76")
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 str. 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 re

def remove_code_blocks(text):
    pattern = '```.*?```'
    return re.sub(pattern, '', text, flags=re.DOTALL)

ARGS = {
    'text': 'Here is some text\n```python\nprint("hello")\n```\nand more text\n```\ncode block\n```\nend'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
none outside the standard library — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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
score_to_mass Ran
ran on a synthesized input
usail-hkust/Jailjudge/main_multi_agent_judge.py
code served (permissive licence) · get_code("183aa212edc81ba7")
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 list, ndim 1, 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 torch
import numpy as np

# Construct valid arguments for score_to_mass function
ARGS = {
    "score": 7,
    "alpha": 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type list, ndim 1, dtype family float — a list 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
smooth_pert Ran
ran on a synthesized input
usail-hkust/Jailjudge/defense.py
code served (permissive licence) · get_code("edbf67bdb61110f3")
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 str. 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
import numpy as np

# Mock the llm_smooth.smoothLLM module since it's not available
class MockSmoothLLM:
    @staticmethod
    def random_patch(text, patch_pct):
        """Mock random_patch that returns perturbed text"""
        words = text.split()
        num_patch = max(1, int(len(words) * patch_pct))
        perturbed_words = words[:num_patch] + ['[PATCHED]'] + words[num_patch:]
        return ' '.join(perturbed_words)
    
    @staticmethod
    def random_swap_updated(text, swap_pct):
        """Mock random_swap_updated that returns perturbed text"""
        words = text.split()
        num_swap = max(1, int(len(words) * swap_pct))
        perturbed_words = words[num_swap:] + words[:num_swap]
        return ' '.join(perturbed_words)
    
    @staticmethod
    def random_insert_updated(text, insert_pct):
        """Mock random_insert_updated that returns perturbed text"""
        words = text.split()
        num_insert = max(1, int(len(words) * insert_pct))
        perturbed_words = words[:num_insert] + ['[INSERT]'] + words[num_insert:]
        return ' '.join(perturbed_words)
    
    @staticmethod
    def adaptive_perturb_pct(text, base_pct):
        """Mock adaptive_perturb_pct that returns a percentage"""
        word_count = len(text.split())
        return min(base_pct * (1 + word_count / 100), 0.5)

# Inject mock module into sys.modules
import sys
sys.modules['llm_smooth'] = type(sys)('llm_smooth')
sys.modules['llm_smooth.smoothLLM'] = type(sys)('smoothLLM')
sys.modules['llm_smooth.smoothLLM'].random_patch = MockSmoothLLM.random_patch
sys.modules['llm_smooth.smoothLLM'].random_swap_updated = MockSmoothLLM.random_swap_updated
sys.modules['llm_smooth.smoothLLM'].random_insert_updated = MockSmoothLLM.random_insert_updated
sys.modules['llm_smooth.smoothLLM'].adaptive_perturb_pct = MockSmoothLLM.adaptive_perturb_pct

ARGS = {
    'goal': 'This is a test prompt that should be perturbed by the smoothing algorithm',
    'pert_type': 'RandomSwapPerturbation',
    'smoothllm_pert_pct': 0.1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
llm_smooth, numpy, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type str — a str output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a str 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

Also present in other papers' code

Of 9 samples lifted from this paper's linked repositories, 9 carry a function identity and 0 do not. Of the 9 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 0 the same month, 0 later) and 6 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.

FunctionAlso present inEarliest-datedOthers named
process_target_response 5 other papers
5 dated earlier
2311.03191 (2023-11)
DeepInception: Hypnotize Large Language Model to Be Jailbreaker
2402.16459 (2024-02)
Defending LLMs against Jailbreaking Attacks via Backtranslation
2404.02151 (2024-04)
Jailbreaking Leading Safety-Aligned LLMs with Simple Adaptive Attacks
and 2 more not named here
get_evident_judge_system_prompt 1 other paper
1 dated earlier
2406.09324 (2024-06)
Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs
remove_code_blocks 1 other paper
1 dated earlier
2406.09324 (2024-06)
Bag of Tricks: Benchmarking of Jailbreak Attacks on LLMs

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

Despite advancements in enhancing LLM safety against jailbreak attacks, evaluating LLM defenses remains a challenge, with current methods often lacking explainability and generalization to complex scenarios, leading to incomplete assessments (e.g., direct judgment without reasoning, low F1 score of GPT-4 in complex cases, bias in multilingual scenarios). To address this, we present JAILJUDGE, a comprehensive benchmark featuring diverse risk scenarios, including synthetic, adversarial, in-the-wild, and multilingual prompts, along with high-quality human-annotated datasets. The JAILJUDGE dataset includes over 35k+ instruction-tune data with reasoning explainability and JAILJUDGETEST, a 4.5k+ labeled set for risk scenarios, and a 6k+ multilingual set across ten languages. To enhance evaluation with explicit reasoning, we propose the JailJudge MultiAgent framework, which enables explainable, fine-grained scoring (1 to 10). This framework supports the construction of instruction-tuning ground truth and facilitates the development of JAILJUDGE Guard, an end-to-end judge model that provides reasoning and eliminates API costs. Additionally, we introduce JailBoost, an attacker-agnostic attack enhancer, and GuardShield, a moderation defense, both leveraging JAILJUDGE Guard. Our experiments demonstrate the state-of-the-art performance of JailJudge methods (JailJudge MultiAgent, JAILJUDGE Guard) across diverse models (e.g., GPT-4, Llama-Guard) and zero-shot scenarios. JailBoost and GuardShield significantly improve jailbreak attack and defense tasks under zero-shot settings, with JailBoost enhancing performance by 29.24% and GuardShield reducing defense ASR from 40.46% to 0.15%.

For agents

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

get_harvested_code_for_paper("2410.12855")
get_code_for_paper("2410.12855")
have("2410.12855")

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

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

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

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

Connect an agent — have() is free.