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.
of attack attempts succeed on average, across all models and all six attacks.
of models fall to three or more attack classes more than half of the time.
Prompt injection success when the attacker gets five attempts instead of one.
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.
A configurable pipeline that fetches a model, attacks it with a fixed prompt suite, scores every response automatically and moves on to the next model, across several GPUs, without supervision.
- ✓32 min median test time per model
- ✓Automatic batch tuning and memory recovery
- ✓Resumable multi-GPU scheduling
A like-for-like security comparison of open-weight LLMs. Every model sees exactly the same prompts under the same settings, so differences in the numbers are differences between models.
- ✓1,194 LLMs from 13K to 17B parameters
- ✓6 attacks, 34 variants, 1,912 prompts
- ✓5 independent attempts per prompt
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).
Instructions hidden inside ordinary input try to hijack the model away from its task and make it print an attacker-chosen phrase.
Requests that a model would normally decline are rephrased in the past or future tense to slip past its safety training.
Prompts steer the model toward toxic continuations across eight categories. Applications that pass model output on without filtering inherit the problem.
Requests for malicious software and its building blocks, from complete programs to evasion and payload components.
Role-play and persona prompts that try to override the instructions and guardrails a deployment sets for the model.
Questions built on a false premise. A careful model corrects the claim; a vulnerable one accepts it and elaborates.
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.
| # | Model | Size | Robustness | ● A1 | ● A2 | ● A3 | ● A4 | ● A5 | ● A6 |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 8.0B | 86.5 | 19 | 4 | 2 | 2 | 2 | 53 | |
| 2 | 15B | 79.0 | 38 | 14 | 1 | 11 | 4 | 58 | |
| 3 | 15B | 79.0 | 38 | 14 | 1 | 11 | 4 | 58 | |
| 4 | OLMo-2-1124-7B-Instruct_SFT_mathv00.07Neelectric · OLMo 2 | 7.3B | 77.6 | 18 | 21 | 1 | 24 | 5 | 64 |
| 5 | 8.2B | 75.2 | 27 | 22 | 2 | 22 | 15 | 60 | |
| 6 | 8.0B | 73.9 | 53 | 14 | 4 | 10 | 18 | 57 | |
| 7 | 13B | 72.8 | 37 | 10 | 2 | 24 | 35 | 55 | |
| 8 | 7.6B | 71.7 | 46 | 28 | 1 | 22 | 9 | 64 |
Four things the numbers say
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.
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.
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%.
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.