OpenAI GPT-4o vs Anthropic Claude 3.7 Sonnet

Detailed comparison for LLMs

OpenAIAnthropic

On Guardion's LLM vulnerability Benchmark, Anthropic Claude 3.7 Sonnet is the more secure of the two: GPT-4o scores 22.8% and Claude 3.7 Sonnet scores 20.3% on attack success rate (ASR) (lower is better).

Head-to-Head Overview

Claude 3.7 Sonnet is the overall winner in this comparison!

Attack Success Rate (lower is safer)

ASR for OpenAI GPT-4o vs Anthropic Claude 3.7 Sonnet. Green marks the safer model on each metric.

Overall (ASR)

GPT-4o
22.8%
Claude 3.7 Sonnet
20.3%

TAP Attack Method (ASR)

GPT-4o
39.6%
Claude 3.7 Sonnet
31.4%

Crescendo Attack Method (ASR)

GPT-4o
25.6%
Claude 3.7 Sonnet
25.3%

Zero-Shot (ASR)

GPT-4o
3.4%
Claude 3.7 Sonnet

Key Highlights

  • Anthropic Claude 3.7 Sonnet has a lower Overall (ASR).
  • Anthropic Claude 3.7 Sonnet has a lower TAP Attack Method (ASR).
  • Anthropic Claude 3.7 Sonnet has a lower Crescendo Attack Method (ASR).

Security Profile

Outward is better on every axis.

OverallTAPCrescendoZero-Shot
GPT-4o
Claude 3.7 Sonnet
Full security profile
OpenAI GPT-4o
Full security profile
Anthropic Claude 3.7 Sonnet

Frequently asked questions

Is OpenAI GPT-4o or Anthropic Claude 3.7 Sonnet more secure?

On Guardion's LLM vulnerability Benchmark, Anthropic Claude 3.7 Sonnet is the more secure of the two: GPT-4o scores 22.8% and Claude 3.7 Sonnet scores 20.3% on attack success rate (ASR) (lower is better).

What is the attack success rate (ASR) of GPT-4o vs Claude 3.7 Sonnet?

GPT-4o has a 22.8% ASR and Claude 3.7 Sonnet has a 20.3% ASR — the share of adversarial prompts that succeed across zero-shot, TAP, and Crescendo attacks. Lower is safer.

How were GPT-4o and Claude 3.7 Sonnet 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