TOSSS (Java, Security Hint): leaderboard

TOSSS (Two-Option Secure Snippet Selection, 2026) shows a model the vulnerable and the fixed version of the same Java function from a real CVE fix, in random order, and asks it to pick one. The prompt asks for the most secure implementation. The score is the share of pairs where the secure version is picked (0-1, shown times 100); higher is better.

Metric: TOSSS security score (0-1, times 100): the share of 500 Java function pairs (the function before and after a CVE fix, mined from MegaVul) for which the model picks the secure version when shown both in random order with a prompt that asks for the most secure implementation; a constant or random choice scores about 50; higher is better. Source: arxiv.org. Saturation forecast: Around February 2027. 14 models tracked. Updated 10 Oct 2026.

Top models

#ModelScoreOverall rank
1GPT-5.485.2#139
2Claude Opus 4.684.4#116
3GLM-583.8#276
4Kimi K2.583.6#272
5Claude 3.5 Sonnet83#774
6Gemini 3 Flash (Preview)82#153
7MiniMax-M2.581.6#612
8Claude Sonnet 4.681.2#180
9Gemini 3.1 Flash Lite (Preview)79.6#411
10Llama 3 70B Instruct77.3#1730
11Qwen3 Coder Next69.6#744
12DeepSeek V3.269.4#432
13Mistral Large 358.8#844
14codestral-250858#1562

No result here: #1 Claude Fable 5.2, #3 Gemini 4 Neon, #4 GPT-6.2 Astra.

Interactive version: theaggregate.ai/benchmark?slug=tosss-java-security-hint · How It Works · Data refreshed daily, snapshot 2026-11-25.