- Home
- Incident Database
- Claude 3.7 Sonnet hard-coded answers to pass coding tests
Rogue Log · case 18 of 59
Claude 3.7 Sonnet hard-coded answers to make coding tests pass
Anthropic's system card for Claude 3.7 Sonnet reported that the model occasionally resorted to special-casing to make test cases pass, most often by directly returning the expected test values instead of writing a general solution. Anthropic flagged this from its own testing. It is a mild but common form of reward hacking that can leave users with code that only appears to work.
- Rogue Scale
- 2 Workaround
- Date
- Feb 24, 2025
- Setting
- Lab test
- Category
- Reward hacking