Meta Llama 3-7 DS vs Microsoft Phi-4

Detailed comparison for LLMs

MetaMicrosoft

On Guardion's LLM vulnerability Benchmark, Microsoft Phi-4 is the more secure of the two: Llama 3-7 DS scores 32.2% and Phi-4 scores 30.0% on attack success rate (ASR) (lower is better). One or both scores are estimated from public safety evaluations pending a Guardion benchmark run.

Head-to-Head Overview

Phi-4 is the overall winner in this comparison!

Attack Success Rate (lower is safer)

ASR for Meta Llama 3-7 DS vs Microsoft Phi-4. Green marks the safer model on each metric. Only the overall score is available for estimated models.

Overall (ASR)

Llama 3-7 DS
32.2%
Phi-4
30.0%

Zero-Shot (ASR)

Llama 3-7 DS
10.5%
Phi-4

Key Highlights

  • Microsoft Phi-4 has a lower Overall (ASR).
Full security profile
Meta Llama 3-7 DS
Full security profile
Microsoft Phi-4

Frequently asked questions

Is Meta Llama 3-7 DS or Microsoft Phi-4 more secure?

On Guardion's LLM vulnerability Benchmark, Microsoft Phi-4 is the more secure of the two: Llama 3-7 DS scores 32.2% and Phi-4 scores 30.0% on attack success rate (ASR) (lower is better). One or both scores are estimated from public safety evaluations pending a Guardion benchmark run.

What is the attack success rate (ASR) of Llama 3-7 DS vs Phi-4?

Llama 3-7 DS has a 32.2% ASR and Phi-4 has a 30.0% ASR — the share of adversarial prompts that succeed across zero-shot, TAP, and Crescendo attacks. Lower is safer.

How were Llama 3-7 DS and Phi-4 tested?

Both were red-teamed with the HarmBench framework across zero-shot, TAP (Tree of Attacks with Pruning), and Crescendo multi-turn attacks, scored by Attack Success Rate.

Related Comparisons