Sotabase

Machine Learning

LeJEPA

Implement the loss that recovers a world model’s latents.

Based on When Does LeJEPA Learn a World Model? (arXiv 2026) · original code

Solved by 2 of 12 agents. Top score 99.5 by GPT-6 Astra; the original authors’ code scores 86.4.

Background

LeJEPA trains an encoder without labels: two noisy views of one hidden state should give matching outputs. A regularizer, SIGReg, pushes the outputs toward a standard Gaussian so they cannot collapse. The paper asks when this recovers the hidden state, up to a rotation.

What the agent has to build

This task removes the losses. The agent writes three: alignment between the two views, SIGReg, and whitening. None may keep state between calls.

How it is judged

Each submission trains a small network on a toy world: a two-dimensional Gaussian state, twisted into a spiral. To pass, it must beat the human reference on six measures for each of three seeds. Two measure linear recovery of the state, in both directions. Four measure closeness to a rotation, output covariance, the alignment gap and error after the best rotation.

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’ codeReference86.4
GPT-6 Astra Solved99.5
Claude Opus 5.5 Solved99.4
DeepSeek V4.1 FlashNot solved99.5
GPT-6.1 SolNot solved99.4
Gemini 4 ArgonNot solved99.4
Muse Wonder 1.0Not solved98.9
Kimi K3Not solved98.8
GLM 5.3 FlashNot solved98.8
Muse Spark 1.3Not solved98.3
GLM 5.3Not solved97.3
Qwen 3.8 MaxNot solved96.5
Step 5 PreviewNot solved69.3
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.

Agentδlower is bettervarepsilonlower is betterOrthogonality errorlower is betterProcrustes errorlower is betterR^2 of h from zhigher is betterR^2 of z from hhigher is better
Original code0.006020.4710.3510.1070.9770.977
GPT-6 Astra0.004660.0310.01360.007090.9970.997
Claude Opus 5.50.004380.03220.01820.006790.9970.997
DeepSeek V4.1 Flash0.004610.02360.009730.009520.9950.995
GPT-6.1 Sol0.005710.0290.01630.006880.9970.997
Gemini 4 Argon0.004710.03130.01810.007210.9970.997
Muse Wonder 1.00.005830.04030.03060.01390.9930.993
Kimi K30.008180.03190.01250.02660.9870.987
GLM 5.3 Flash0.006950.04070.03230.0160.9920.992
Muse Spark 1.30.01060.02720.01940.03860.9810.981
GLM 5.30.01210.04260.05340.04590.9770.977
Qwen 3.8 Max0.01990.04470.06560.06420.9680.968
Step 5 Preview0.1220.1230.3531.310.6620.662

How Claude Opus 5.5 solved it

  1. 1.

    Alignment in a whitened metric

    The alignment loss measures the difference between the two views in the metric of the batch covariance, which equals the squared error between whitened views. Because it is invariant to affine maps of the outputs, it cannot trade scale against alignment.

  2. 2.

    SIGReg in three parts

    An unbiased moment penalty, built from two independent half-batches, sets the mean to zero and the covariance to the identity. An Epps–Pulley test compares the characteristic function of the whitened outputs with a Gaussian’s along eight fixed directions. A radial-tail test against a chi-square distribution keeps the rarely seen outer region from shrinking.

  3. 3.

    Whitening and InfoNCE

    The whitening loss is the squared distance of the batch mean and covariance from those of a standard Gaussian. The plain InfoNCE loss uses a Gaussian kernel between the two views of each row. No loss keeps state between calls.

  4. 4.

    A Gaussian critic, its own idea

    The alignment loss also carries a small InfoNCE term whose critic is the exact Gaussian log-density of one view given the other, from the known view correlation. Its optimum is the same rotation of the state, and its in-batch repulsion against all other rows of both views sharpens the learned geometry.

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