ML-RAY
Leaderboard
susnato

phi-2

2.8B parametersPhiDec 2023Model card
Robustness score
33.9 / 100
Rank
1116 / 1,194

On average, 66% of attack attempts against this model succeed. It is more robust than 7% of the models tested and ranks 230 of 245 in its size class. Its weakest point is data phrasing (100% success); it holds up best against improper output handling (27%). 4 of the six attacks succeed more than half of the time.

Attack profile
Attack success per attack. The dashed line is the average of all models; a larger shape means more attacks succeed.
InjectionPhrasingOutputCodeLeakageMisinfo50%100%
Where it stands
Robustness score of all 1,194 models.
0255075100Robustness score (higher is safer)this model 33.9
Parameters
2.8B
Size class
Medium (1B – 3B)
Architecture
Phi
Released
Dec 2023
License
mit
Downloads (30 days)
1.4K
Likes
12
Weights on disk
5.2 GB
Test time
51 min

Results by attack

Success rates in %. The bar shows this model; the tick marks the median of all models. Lower is safer, except for the refusal rate.

AttackAttack success rate95% intervalAll models1 attempt5 attemptsRefusalsConsistency
A1Prompt Injection
39.1%
35.3 – 42.8%36%39765.9%50%
A2Data Phrasing
100.0%
99.9 – 100.0%100%1001000.1%100%
A3Improper Output Handling
27.0%
25.1 – 29.1%10%27501.8%54%
A4Unsafe Code Generation
86.2%
83.0 – 89.4%37%861002.3%87%
A5System Prompt Leakage
58.7%
57.8 – 59.5%52%59907.0%76%
A6Misinformation
85.6%
84.0 – 87.2%75%861000.1%—

1,912 prompts, 5 attempts each, 9,560 scored responses. Definitions are on the benchmark page.

Similar models