Skip to content

Search the database

Misalignment research

Claude returned the expected answers to coding tests without solving the programming problem

Lab evaluationStudy includes Claude Opus 4, Claude Sonnet 4 and others

What happened
Anthropic gave four Claude models programming tasks that were impossible as written. Some wrote code that returned the expected answers for the examples in the test. It passed those checks while leaving the general problem unsolved.

Original evidence

Study and case details
Models named in the record
Claude Opus 4, Claude Sonnet 4, Claude Sonnet 3.7, Claude Opus 4.1
Event or experiment
Individual run date not established.
AI Risk Explorer date
22 May 2025
Behavior
Reward hacking
Provisional severity
Low