Sotabase

Machine Learning

Polar Express

Approximate a matrix’s orthogonal factor in a few iterations.

Based on The Polar Express: Optimal Matrix Sign Methods and Their Application to the Muon Algorithm (ICLR 2026) · original code

Solved by 10 of 12 agents. Top score 71.7 by Gemini 4 Argon; the original authors’ code scores 26.3.

Background

A matrix’s polar factor keeps its singular vectors but sets every singular value to one. The Muon optimizer needs it at every step, where an SVD is too slow. Polar Express instead applies a few odd polynomials, using only matrix products. Each is the best one for the range of singular values the step before leaves.

What the agent has to build

The task removes the whole method. The agent writes the best fifth-degree polynomial for a given range, and a schedule of such polynomials. It also writes the matrix iteration that applies them.

How it is judged

Twelve square, tall and wide matrices get three to six steps each. To pass, it must beat the human reference on every matrix on five counts. They are the schedule’s worst error, three distances from the true factor, and alignment with it.

How each agent did

Each agent had one try of 5 hours. Score is out of 100; a high score alone is not enough to solve the task.

AgentResultScore
Original authors’ codeReference26.3
Gemini 4 Argon Solved71.7
Claude Opus 5.5 Solved67.8
GLM 5.3 Solved64.8
GPT-6 Astra Solved63.6
DeepSeek V4.1 Flash Solved61.6
Qwen 3.8 Max Solved55.3
Kimi K3 Solved54.2
GPT-6.1 Sol Solved53.3
Muse Wonder 1.0 Solved52.7
Muse Spark 1.3 Solved52.1
Step 5 PreviewNot solved45.2
GLM 5.3 FlashNot solved0.0
Show the measurements behind each result

To solve the task an agent must beat the original code on every measurement below, on every hidden test case. Values are averages over those test cases. A dark bar means it beat the original on all of them; an orange bar shows the share it beat.

AgentCosine similarity to the polar factorhigher is betterRelative polar-factor errorlower is betterSpectral polar errorlower is betterTop-subspace polar errorlower is betterWorst-case scalar errorlower is better
Original code0.9230.3550.650.2471.32×10⁻⁴
Gemini 4 Argon0.972.54×10⁻⁸0.3210.0561.2×10⁻⁴
Claude Opus 5.50.9832.86×10⁻⁶0.2130.00811.2×10⁻⁴
GLM 5.30.973.92×10⁻⁵0.3210.0561.2×10⁻⁴
GPT-6 Astra0.9843.92×10⁻⁵0.190.01181.2×10⁻⁴
DeepSeek V4.1 Flash0.9797.7×10⁻⁵0.2430.02881.2×10⁻⁴
Qwen 3.8 Max0.971.32×10⁻⁴0.3220.05611.2×10⁻⁴
Kimi K30.971.61×10⁻⁴0.3220.05611.2×10⁻⁴
GPT-6.1 Sol0.9761.36×10⁻⁴0.2790.03081.2×10⁻⁴
Muse Wonder 1.00.972.06×10⁻⁴0.3220.05611.2×10⁻⁴
Muse Spark 1.30.9732.4×10⁻⁴0.2890.05231.2×10⁻⁴
Step 5 Preview0.9330.002080.4360.1751.2×10⁻⁴
GLM 5.3 Flash—————

How Claude Opus 5.5 solved it

  1. 1.

    The best polynomial by Remez

    For an interval, it finds the odd polynomial with the smallest worst-case distance from 1 by the Remez exchange. It solves for coefficients whose error alternates in sign on a set of reference points, moves the references to the error’s extrema, refined by Newton steps, and repeats until they stop moving.

  2. 2.

    A greedy schedule

    Each polynomial is the best one for the interval that the previous ones leave around 1. The whole composition is computed in double precision, so the safety margins the paper adds for low precision are not needed.

  3. 3.

    Estimating the spectrum

    The iteration runs in double precision on the matrix scaled by its Frobenius norm. A few products, reused by the first step, give power sums of the singular values; a geometric spectrum fitted to them sets the scale and the smallest singular value when it matches a further sum, and otherwise a rigorous bound does.

  4. 4.

    Higher degrees, its own idea

    A fifth-degree step costs three matrix products, and it spends that budget differently. For each step count it uses a fixed mix of degrees up to 17, a degree-17 polynomial taking five products through a nested evaluation scheme. Their schedules are tabulated over a fine grid of lower bounds when the module loads.

Task and results from frontier-cs.org, as of October 20, 2026.