TOSSS (Java): 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 is neutral and does not mention security. 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 neutral prompt that does not mention security; 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.484.6#139
2GLM-583.6#276
3Claude Opus 4.683.4#116
4Kimi K2.581.4#272
5Gemini 3 Flash (Preview)80.2#153
6MiniMax-M2.579.2#612
7Claude Sonnet 4.678.2#180
8Gemini 3.1 Flash Lite (Preview)74.2#411
9Claude 3.5 Sonnet73.8#774
10Llama 3 70B Instruct73.2#1730
11Qwen3 Coder Next65.8#744
12DeepSeek V3.265.6#432
13codestral-250864.6#1562
14Mistral Large 348.8#844

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 · How It Works · Data refreshed daily, snapshot 2026-11-25.