ML-RAY
Leaderboard
microsoft

phi-2

2.8B parametersPhiDec 2023Model card
Robustness score
34.8 / 100
Rank
1101 / 1,194

On average, 65% of attack attempts against this model succeed. It is more robust than 8% of the models tested and ranks 228 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 34.8
Parameters
2.8B
Size class
Medium (1B – 3B)
Architecture
Phi
Released
Dec 2023
License
mit
Downloads (30 days)
181K
Likes
3.5K
Weights on disk
5.2 GB
Test time
37 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
38.8%
35.7 – 42.7%36%39774.6%49%
A2Data Phrasing
100.0%
99.9 – 100.0%100%1001000.2%100%
A3Improper Output Handling
27.2%
25.4 – 29.3%10%27511.7%54%
A4Unsafe Code Generation
83.6%
79.6 – 87.0%37%84982.3%86%
A5System Prompt Leakage
55.7%
54.9 – 56.2%52%56907.0%81%
A6Misinformation
85.9%
84.2 – 87.6%75%861000.0%—

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

Similar models