Sotabase

Machine Learning

Representation Fréchet Loss

Keep population statistics differentiable for a Fréchet-distance loss.

Based on Representation Fréchet Loss for Visual Generation (arXiv 2026) · original code

Unsolved. None of the 12 agents beat the original code.

Background

Fréchet distance compares two image sets by the mean and covariance of their features. This paper turns it into a training loss for image generators. Its statistics must cover many generated images, yet pass gradients to the current batch.

What the agent has to build

This task removes the feature queue that holds these statistics, and the agent writes it. It keeps past features or running estimates of their mean and covariance. It mixes in each new batch so gradients reach it, without keeping old computation graphs.

How it is judged

Each workload post-trains the authors’ released generator on a short schedule. Fresh images are then scored in six feature spaces, including Inception, DINOv2 and CLIP. To pass, the normalized Fréchet distance must be lower than with the human reference in all six spaces, on every workload.

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’ codeReference3.7
Claude Opus 5.5Not solved7.2
Qwen 3.8 MaxNot solved5.7
Muse Wonder 1.0Not solved5.0
DeepSeek V4.1 FlashNot solved4.2
Gemini 4 ArgonNot solved4.2
GLM 5.3Not solved4.0
Step 5 PreviewNot solved3.9
GLM 5.3 FlashNot solved3.8
GPT-6 AstraNot solved3.6
Kimi K3Not solved3.6
GPT-6.1 SolNot solved3.1
Muse Spark 1.3Not solved2.9
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.

AgentFréchet distance, CLIPlower is betterFréchet distance, ConvNeXtlower is betterFréchet distance, DINOv2lower is betterFréchet distance, Inceptionlower is betterFréchet distance, MAElower is betterFréchet distance, SigLIPlower is better
Original code26.65.0514.77.7159.140.4
Claude Opus 5.520.23.7912.46.459.8825.1
Qwen 3.8 Max23.8413.86.2620.331.6
Muse Wonder 1.023.94.2513.96.6931.433.4
DeepSeek V4.1 Flash254.86147.3850.936.1
Gemini 4 Argon25.34.7314.47.1647.637.7
GLM 5.326.34.9914.77.465339.2
Step 5 Preview26.8514.47.553.240.1
GLM 5.3 Flash26.15.1814.47.735741.2
GPT-6 Astra27.35.2814.88.1461.341.6
Kimi K326.25.3314.87.8964.943.9
GPT-6.1 Sol29.65.915.88.5879.549.4
Muse Spark 1.330.46.3616.19.1588.252.5

How Claude Opus 5.5 approached it

  1. 1.

    Three ways to keep the population

    The queue supports the three estimators the training setups use: a ring buffer of the latest generated features, the same ring with running sums of the features and their outer products, and moving averages of the first and second moments, started from a warm start of generated images.

  2. 2.

    Gradients through the batch only

    To form the statistics, it combines the stored state, read without gradients, with the current batch, which keeps its graph. With running sums, it subtracts the rows about to be evicted and adds the batch’s sums; the mean and covariance follow from these moments.

  3. 3.

    Updating without old graphs

    After each step, it writes the detached batch over the oldest rows and adjusts the running sums by the difference, or moves the averages toward the batch. No computation graph outlives the step, and the state sits in buffers that save and load with the model.

  4. 4.

    Double precision

    All statistics are formed in 64-bit floats. Its own comments give the reason: in single precision, the covariance of a 50,000-row population loses its small eigenvalues, and rounding noise swamps the gradient that reaches the batch.

  5. 5.

    A tracking window, its own idea

    It argues that a long window, or a slowly decaying average, lags the generator, which then overshoots. So a long window gives way to an exponential window started from the warm start, holding about 1.5 times as many features as the feature dimension; for a ring buffer, repeated rows stand in for these weights.

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