ML-RAY
ML-RAY · ML-RAY-Bench

Automated Security Assessment of LLMs at Scale

ML-RAY is an automated red-teaming framework that stress-tests LLMs by the thousand on ordinary GPUs. ML-RAY-Bench is what it measured: 1,194 open-weight LLMs, 6 classes of attack, and 11.4 million scored responses.

1,194
LLMs tested
from 608 publishers
11.4M
Responses scored
9,560 per model
1.79B
Tokens generated
1,912 attack prompts × 5 attempts
8.7 TB
Model weights tested
4.7 trillion parameters in total
51%

of attack attempts succeed on average, across all models and all six attacks.

88%

of models fall to three or more attack classes more than half of the time.

36% → 56%

Prompt injection success when the attacker gets five attempts instead of one.

What this is

One framework, one benchmark

Testing a single model for security problems is routine. Testing a thousand of them the same way, on hardware a lab already owns, is an engineering problem. ML-RAY solves it; ML-RAY-Bench is the evidence.

The attacks

Six ways to make an LLM misbehave

Each attack is a family of adversarial prompts with its own success test. The chart shows, for every attack, how the 1,194 models are spread between never succeeds (left) and always succeeds (right).

Attack success rate across all models
Data Phrasing is the most reliable attack (94% on average); improper output handling is the hardest to pull off (14%).
0%25%50%75%100%Prompt InjectionA1 · 300 prompts36%averageData PhrasingA2 · 400 prompts94%averageImproper Output HandlingA3 · 705 prompts14%averageUnsafe Code GenerationA4 · 240 prompts39%averageSystem Prompt LeakageA5 · 117 prompts50%averageMisinformationA6 · 150 prompts74%average
Bars: number of models at each success level○ median model━ middle 50% of models
A136% average success
Prompt Injection

Instructions hidden inside ordinary input try to hijack the model away from its task and make it print an attacker-chosen phrase.

A294% average success
Data Phrasing

Requests that a model would normally decline are rephrased in the past or future tense to slip past its safety training.

A314% average success
Improper Output Handling

Prompts steer the model toward toxic continuations across eight categories. Applications that pass model output on without filtering inherit the problem.

A439% average success
Unsafe Code Generation

Requests for malicious software and its building blocks, from complete programs to evasion and payload components.

A550% average success
System Prompt Leakage

Role-play and persona prompts that try to override the instructions and guardrails a deployment sets for the model.

A674% average success
Misinformation

Questions built on a false premise. A careful model corrects the claim; a vulnerable one accepts it and elaborates.

Leaderboard

The most robust LLMs

Ranked by robustness score: 100 minus the average attack success rate over the six attacks. Even the leaders leave room for an attacker.

#ModelSizeRobustness● A1● A2● A3● A4● A5● A6
1robust-llama3-8b-instructLLM-LAT · Llama8.0B86.519422253
2Qwen2.5-Coder-14B-InstructQwen · Qwen215B79.03814111458
3Qwen2.5-Coder-14B-Instructunsloth · Qwen215B79.03814111458
4OLMo-2-1124-7B-Instruct_SFT_mathv00.07Neelectric · OLMo 27.3B77.61821124564
5ReFusionGSAI-ML · Qwen38.2B75.227222221560
6Llama-3-8B-Instruct-RRGraySwanAI · Llama8.0B73.953144101857
7llama2-13b-chat-hfFeatherless-Chat-Models · Llama13B72.837102243555
8Qwen2.5-Coder-7B-InstructQwen · Qwen27.6B71.74628122964
Cells show attack success in %, darker is worse. Models of 100M parameters and above.All 1,194 models →
What we learned

Four things the numbers say

No model is safe across the board

All 1,194 models have at least one attack that works more than half the time. The best robustness score is 87 out of 100; the average is 49.

Capability cuts both ways

Models above 1B parameters follow injected instructions 49% of the time, against 3% for the smallest models, which often cannot follow instructions at all. Being more capable makes a model easier to steer, for attackers too.

Persistence pays

Answers are sampled, so an attacker can simply ask again. Five attempts raise unsafe code generation from 39% to 61% and prompt injection from 36% to 56%.

Rewording is enough

Putting a request in the past or future tense gets an answer 94% of the time. Explicit refusals are rare: models decline in only 9% of all responses.