Skip to content

Improving a primal-dual hybrid gradient solver

Improve a PyTorch primal-dual hybrid gradient solver.

By Muhammad Maaz
On this page
  1. Task and metric
  2. Results
  3. Statistics
  4. Validation and hidden test

Task and metric

Reward. Mean clipped negative-log optimality-error score over LPs, gated on PDHG compliance; failed cases contribute zero.

Normalized score. The baseline below corresponds to 0 points and the theoretical best to 100. The theoretical best is not always achievable in practice. A valid submission that performs below baseline receives a negative score, bounded at −100. An invalid submission receives 0. Score formula

SetupValue
Research areaInfra & Systems
DirectionHigher is better
Baseline, hidden-test mean0.133
Baseline, hidden-test std0.02478
Theoretical best1
Time budget2 h
Compute1 × H100
GPU-hours2

Results

The two highest mean scores were 71.4 (GPT-6 Astra) and 71.2 (Claude Opus 5.5). Across all 13 models, the mean was 40.1 points. Of those, 13 averaged above baseline.

Mean hidden-test score by model

  • Claude Code
  • Codex
  • Antigravity SDK
  • Muse Code
  • Grok Build
  • Terminus 2
Mean hidden-test score by modelBar chart with 13 bars; every value is in the data table.020406080Normalized scoreGPT-6 Astra71.4Claude Opus 5.571.2Claude Fable 5.266.1GPT-6.1 Sol59.2Claude Sonnet 5.555.0GPT-6.2 Astra50.9Muse Wonder31.1Gemini 4 Carbon30.8Qwen3.8-Max27.1Kimi K325.0Grok 4.713.1GLM-5.311.3DeepSeek V4.1 Flash9.2
Each bar averages the model’s scored attempts on this task. Zero marks the starting baseline. Scoring rules.
View data
Mean hidden-test score by model: data
LabelSeriesMean score
GPT-6 AstraCodex71.4
Claude Opus 5.5Claude Code71.2
Claude Fable 5.2Claude Code66.1
GPT-6.1 SolCodex59.2
Claude Sonnet 5.5Claude Code55.0
GPT-6.2 AstraCodex50.9
Muse WonderMuse Code31.1
Gemini 4 CarbonAntigravity SDK30.8
Qwen3.8-MaxTerminus 227.1
Kimi K3Terminus 225.0
Grok 4.7Grok Build13.1
GLM-5.3Terminus 211.3
DeepSeek V4.1 FlashTerminus 29.2

Download CSV · 13 rows

Scores are in normalized points.
#ModelMean of 3Best of 3AttemptsOutcomes
1GPT-6 Astra71.474.033 valid
2Claude Opus 5.571.271.833 valid
3Claude Fable 5.266.173.933 valid
4GPT-6.1 Sol59.271.033 valid
5Claude Sonnet 5.555.060.233 valid
6GPT-6.2 Astra50.980.432 valid, 1 invalid
7Muse Wonder31.137.533 valid
8Gemini 4 Carbon30.846.633 out of time
9Qwen3.8-Max27.157.333 valid
10Kimi K325.039.233 valid
11Grok 4.713.115.833 valid
12GLM-5.311.317.033 valid
13DeepSeek V4.1 Flash9.215.033 valid

Statistics

StatisticValue
IRT difficulty−1.64
IRT discrimination0.98
IRT pass bar (normalized score)5.7
Attempts above the pass bar89.7%
Median share of time budget used80%
Median output tokens per attempt184k
Median validation runs per attempt8.5

IRT: two-parameter model of pass or fail against the pass bar (statistics).

Time and tokens over all tasks: results. Medians are over this task's 39 scored attempts.

The trajectory of 3 of 39 attempts (Gemini 4 Carbon, out of time) was not recorded: the output-token and validation-run medians cover 36 attempts.

Validation and hidden test

Validation measureValue
Attempts with a recorded validation score33
Attempts scoring at least 99 on validation6
Mean hidden-test score for those attempts58.1

Validation and hidden-test results across tasks