ishan's notebook
← all writing

Poking at LLM benchmarks, 2 - FrontierCS


TLDR: Neat recipe to construct tasks, with a very renewable source (CS research papers). Useful to look at how frontier models work through the same scoped but open-ended problems.

This is the second post in the series poking at LLM benchmarks (the first one was on AutomationBench). For AutomationBench, we sampled some of the tasks using a cheap open models, since frontier runs blow through the budget and closed models don't expose their thinking anyway. FrontierCS 2 sidesteps both - the authors made every agent trajectory public in their repo, 13 models across 48 tasks. Great public service!

Given that, I wanted to see how different agents qualitatively approach the same difficult tasks. Scores don't say much on their own (you can always finetune on a domain and push them up). At this point, most frontier/near-frontier models are good enough at implementation and verifying their work. But they differ in their problem-solving habits - I wanted to pin down why some of them are fun to work with but others aren't.

The problems need a lot of specific CS background - hardware priority queues, EVM internals, e-graphs, and the likes. Most of them weren't readily comprehensible to me. I do like the setup though: as long as there are interesting knowledge artifacts with a software implementation - blogs, papers, well-written READMEs - you can turn them into evaluation tasks.

How FrontierCS tasks are constructed

Each task starts from a paper at a major systems, database, networking or PL venue where the authors released their code. The main contribution is cut out of the repo, and the agent has to write it back. The original implementation is used by the judge as the reference. There are 48 public tasks, spanning crypto, databases, HPC, hardware, ML systems and more.

def build_task(paper, original_repo):
    contribution_files = locate_contribution(paper, original_repo)
    starter_repo = stub_out_contribution(original_repo, contribution_files)
    reference_patch = diff(before=starter_repo, after=original_repo)
    allowed_paths = define_edit_scope(contribution_files)

    dev_workloads = paper_workloads(paper)
    final_workloads = dev_workloads + held_out_workloads(paper)  # new seeds, queries, graphs
    metric_rules = rules_from_reference(paper)  # e.g. latency <= 0.96x reference

The stubs keep function interfaces since the rest of the repo calls them. The agent gets starter_repo and can edit files under allowed_paths. A workload is one input the code can be tested with - a graph, a seed, a video clip. The dev workloads are the inputs reported in the original paper, while the final workloads has some held-out ones which aren't visible to the agent.

def judge(task, patch, workloads):
    candidate = task.starter_repo + patch
    reference = task.starter_repo + task.reference_patch

    checks, measurements = [], {}
    for workload in workloads:
        cand = measure(candidate, workload)
        ref = measure(reference, workload)
        checks += [rule(cand[m], ref[m]) for m, rule in task.metric_rules.items()]
        measurements[workload] = cand

    return task.score(measurements), all(checks)

# during the run, the agents can make any number of evaluation calls to the judge
score, _ = judge(task, patch, task.dev_workloads)

# run once, on the patch the agent names as final
score, passed = judge(task, final_patch, task.final_workloads)

The agent gets 5 hours, a written spec for the task, the gutted repo, and a build environment. Each (metric, workload) pair is one check, and a run passes only if all checks on the final workloads pass, i.e. the patch scores within margin of the reference value. Whereas, the score is computed across all metrics for a workload using a formula specific to the task and then averaged into one 0-100 number. So, a run can score high and still fail (which happens a lot).

  • Leaving the interfaces in doesn't leak design: Tasks leave the function names and positions in, which I suspected might make the agent's job easier. Going through the repo, that is mostly not true. The stubs keep only what the judge needs to build and probe a submission - the public methods. For ex, the persistent treap task starter looks like this, and its README says "Declarations, helper types and bodies inside them may change":
struct scheduler {
  scheduler(size_t num_threads, size_t num_tasks, size_t block_size, node_ptr t0);
  void insert_elem(uint64_t elem);
  void process() { }   // empty in the starter
};
  • Public references mean a short shelf life.: There is an unreleased private set of 100+ tasks, to protect against future model iterations memorizing the benchmark. But since they are sourced from CS research papers too, generally available on arxiv, it is likely that frontier models have been pre-trained on them.

  • The capability index. They derive a full capability/difficulty score for models and tasks. It is based off of Epoch AI's ECI, using item response theory - the odds of a model beating a metric is a sigmoid over (model strength - metric difficulty), and a task's difficulty is the strength at which a model passes half the time. It puts models and tasks on one scale, and allows comparison of models run on different task subsets. Not sure what it buys over a pass rate across 48 tasks though.

  • Sensitivity to choice of metrics and slack allowed for each: The exact formula to compute the score per task, and the margin allowed per metric are both hand-tuned. Since an average lets a big win in one cell cover a small miss in another, there are a lot of runs which pass but score less than say 40, and also runs scoring as high as 70, but marked as failures. Swapping out or removing one/two metrics from each task can change the order of the leaderboard significantly. Gonna trust the benchmark developers on this since I don't have much context on each task.

Looking at agent traces

We picked 10/48 tasks and 9 models, one run each making it 90 traces in total. The 9 models are Claude Opus 5.5, GPT-6.1 Sol, GPT-6 Astra, Gemini 4, DeepSeek V4.1 Flash, GLM 5.3, Kimi K3, Muse Wonder 1.0 and Qwen 3.8 Max (exact versions and harnesses in the footnotes). We used cheap LLM calls (GPT Terra/Claude Sonnet) to summarize each trace, then compare the summaries per task across models, and then extract recurring behaviors per model across tasks.

Roughly:

for task in tasks:
    reference = sample_some_traces(task.runs)  # sketch a typical solution
    for run in task.runs:
        summary, rubric = cheap_model(run.trace, reference)
    comparison = compare(task.summaries)

anchors = ["opus", "sol"]
for model in models:
    profile = cheap_model(model.runs, anchor_runs, references)
summary = combine(profiles)

To make the output usable, we break it into parts. The exact prompts used for the above steps are at benchkit.

  1. Generate a reference solution sketch per task, written from 2-3 contrasting traces. Add it to the prompt when summarizing each individual trace for that task. LLMs hedge their responses too much when asked to review; anchoring them against a common, This helps line up the summaries, since there is a shared skeleton/glossary to compare each of them against.

  2. Evaluate each agent trace against a fixed behavioral rubric (orientation, experiment_design, feedback_update, noise_handling, attribution, level_of_change, margin, recovery, stopping). We aren't looking for numerical scores, but instead a qualitative assessment of the behavior demonstrated in that trace. For example:

  • Orientation: what did the model do before its first edit? (read spec only, read spec and code, built own test or oracle)
  • Feedback update: when a result contradicted the plan, what changed? (changed plan, changed explanation only, ignored, no contradiction seen)

Findings

We looked at agent runs for these 10 tasks.

TaskDomainWhat the model has to buildNum of models that passed
MIPS global probingDatabaseMulti-probing query core for approximate vector search (FARGO)7 / 9
MIPS query stoppingDatabaseEarly-termination rule for the same vector search engine4 / 9
Packet schedulingNetworkHardware priority queue (SystemVerilog) hitting a tight clock period3 / 9
Clusterwise SpGEMMArchitectureSparse matrix multiplication kernel using cluster-wise reordering7 / 9
Diffusion policyRoboticsFast CPU action sampling for a diffusion policy0 / 9
EVM checkpointsDatabaseCopy-on-write state checkpointing for a blockchain VM1 / 9
GlensidePL / CompilersE-graph access-pattern rewriting for tensor programs8 / 9
Graph method selectionDatabaseSelector choosing between two graph-mining engines across 112 cases5 / 9
Persistent treapDatabaseVersioned tree supporting fast, low-memory concurrent updates7 / 9
Residual advancementDatabaseSQL/DuckDB residual state updates for in-database tree boosting5 / 9

On some tasks, like the sparse matrix multiplication one, most models passed and wrote nearly the same kernel, so there is little to compare.

1. Reaction to "My tests pass, the judge says no"

This was the most prominent discriminator in model behavior. The tasks don't ship with tests in code, so every model must write its own. At some point, all those local tests pass and the model submits the patch, but is rejected by the judge. The judge feedback is often thin, so the model needs to decide what needs fixing - the code, the tests, or did it read the spec correctly.

  • Opus tries to make the failure visible. On the EVM checkpoints task, Opus's first submission failed due to a memory leak in the submission, with the message "checkpoint lifetime or rollback validation failed". It added a local test case where the checkpoint outlives the stack which created it. This reproduced the memory leak locally, which the model then debugged and fixed in the next patch. Opus was the only model to pass this task.

  • Sol/Astra iterated on the design instead. On the exact same task, Sol's local tests passed while the judge kept rejecting shared-state designs. Sol made 78 train submissions cycling through many different ideas - each passing locally but failed by the judge. Astra behaved the same way.

    The difference shows up before the first edit too. Opus built its own test harness or oracle first on 8 of 10 tasks. Whereas, Sol did so only on 2 of 10, and Astra on none - both read the spec and code, wrote the implementation, and added tests right after.

    This commit-and-iterate style works better when feedback is descriptive. On the Glenside task, Sol implemented the analysis, saw issues with the e-graph explosion, and switched techniques to solve it. Opus spent much longer profiling the task first. It reached around the same accuracy, but spent 4x the tokens compared to Sol.

  • Some models tuned around a wrong core idea. The query stopping task asks the model to write the rule for when a vector search stops looking. The spec hints pretty strongly that the answer is the original paper's rule - it says the authors' rule was removed, and ships their lookup table. Most open-weight models skipped that and designed their own rule instead, and when those didn't pass, they kept adding knobs to it - Kimi K3 tried caps, Muse Wonder tried cooldowns and patience rules. However, no amount of tuning fixes a rule based off a different idea - Muse Wonder made 68 submissions without passing.

  • Some models doubted the submission pipeline. On EVM checkpoints task, the fast design shares memory between the live stack and its saved snapshots instead of copying it each time. Almost every model wrote one, passed its own tests, and got 0 from the judge. Kimi K3, Qwen, Muse Wonder and DeepSeek, all tried to check if the submission pipeline was broken by submitted an unchanged patch. DeepSeek and Muse Wonder kept narrowing from there and found what the judge was checking. Kimi K3 and Qwen came up with code that passed correctness checks but gave up the speedup, which is what the task was about.

2. Which signal the model treats as ground truth

The judge is hidden behind an API and calls to it are limited, so agents need a signal to tune against. There are two options - build a local stand-in for the judge (synthetic data, a copy of its harness, a replica of the reference), or tune directly against the judge's train feedback. Both can mislead, in opposite directions.

  • A stand-in is built from the model's own reading of the spec. If that reading is wrong, the stand-in shares the mistake and agrees with it.
  • Judge feedback is real, but it only covers the dev workloads. Tune too hard against it, and the patch fits those rather than the held-out ones.

Models weigh them differently.

  • Opus matched its stand-in to external feedback. On the query stopping task, the real dataset isn't available locally, so each model makes synthetic data to test its stopping rule. Opus submitted the untouched starter code, got the judge's numbers back (time, candidates checked, recall), and adjusted its synthetic data until the starter code produced the same numbers locally. It was one of four models to pass.

    Opus shows this habit across tasks. On the residual updates task, it ran the slow starter through its local harness to match the time specified in README, before trusting any timing. On packet scheduling, it built a deliberately broken stub just to measure the timing floor set by the parts it couldn't change, and designed to hit it. In contrast, DeepSeek measured that floor only after its design was stuck.

  • GLM's stand-in agreed with itself. GLM was just as thorough on the query stopping task. Passing means matching a hidden reference rule on every metric, so GLM wrote its own version of that reference to check its solution against. But its reference and implementation are both from the same reading of the task, and that reading was wrong about which score the rule should track. Its solution matched the homemade reference on all 48 checks, then failed on the judge, and GLM decided the real reference must be unreachable. Opus fell into this once too - on SpGEMM, its reference and its checker agreed exactly, but both came from the same reading of the README.

  • Chasing the train score overfits. The opposite trap is trusting the judge's feedback too much. On the graph method selection task, the model picks the faster of two engines for each case. It gets up to 100 train submissions on one set of graphs, and is graded on a different set. Kimi K3, Muse Wonder and DeepSeek tweaked constants until the train score went up, never timed the engines themselves, and all failed on the graded set. GLM built a proper timing model, but then spent ~24 submissions pushing the train score to a perfect 100, and failed too.

    The five passing runs timed the real engines and used judge's feedback only to check their synthetic graphs were realistic. For example, Opus noticed one engine won far less often on its graphs than on the judge's, and fixed its generator until they matched. It also picked a selector with a slightly lower train score, because it did better on extra graphs it hadn't tuned on, and got the top graded score.

3. Losing track of time and submission artifacts

Some operational failures popped up across agent traces, which suggests models can sometimes get incoherent across long context.

  • Misjudged time remaining in tasks with slower builds. Four models misread the clock in the packet-scheduling task, which has the slowest synthesis/simulation tools. Kimi K3 and Deepseek models stopped early even though significant time was left. Qwen/GLM models submitted builds that were incomplete or failing public tests too, thinking there was no time.
  • Artifact drift. Qwen often lost the link between tested code and the delivered patch. On the query stopping task it rebuilt the patch by hand, dropped definitions, and a piped command hid the build failure. On Glenside it edited code after its last test of it.
  • Optimizing the local loop instead of the real workload. On the SpGEMM task, both Kimi K3 and Muse Wonder added result caching for repeated calls. This was despite the README specifying that each timed run is a fresh process with no warm-up. Even if caching makes the local version quicker, it would never help on the judge.

Frontier models from OpenAI/Anthropic don't show such errors. Which would indicate that coherence is related to better training data/heuristics?

Takeaways

Almost all (near) frontier models can now implement significant functionality starting from a spec. Each of them builds tests, oracles, benchmarks, without being asked. They are differentiated by what those tests are anchored to, and how they respond to external feedback.

Claude Opus vs GPT Sol have a clear split in working style: diagnose first versus commit and iterate. They win under different feedback. When the evaluator tells you what is broken, Sol gets to basically the same answer for 4x fewer output tokens. When the evaluator is silent or noisy, Opus's habit of reproducing the failure and measuring margins available for each metric, takes it further. Feels like that's one of the reasons why Claude models are better collaborators, they have a more perceptible "model" of the problem.

GPT Sol and Astra have almost the same working style; not unexpected but hints that model behavior is basically downstream of training data.

The non-frontier and open weight models are also fairly agentic and can implement code for long stretches, with significant rewrites. But they aren't as great at identifying the right premise to challenge and look into. They run plenty of careful experiments, but often tune around some central assumption which doesn't need to hold.

  • Gemini 4 builds a working model of the problem, like a simulator, before touching code. It iterates well if the failure is descriptive, but stalls otherwise.
  • DeepSeek V4.1 Flash builds local tools for testing and recovers well from broken states. But when its local results and the judge disagree, it starts parameter sweeping instead of pinning down the mismatch.
  • GLM 5.3 has good software habits. Its weak spot is trusting its own reconstruction of the task - when that disagrees with the judge, it decides the task is at fault.
  • Kimi K3 tests that its code is correct thoroughly, but is weaker at testing its explanations for why the judge disagrees.

Some caveats in the analysis:

  • Model and harness are tangled. Sol ran in Codex, Opus in Claude Code, Gemini in pi, GLM in ZCode, Qwen in Qwen Code CLI, and so on. We can't cleanly separate model habits from harness prompts. (Sol's visible system prompt actually tells it to fix root causes and validate, not to rush - so its commit-early habit isn't down to it.)
  • One run per model per task. We analyzed a pretty small num of traces.
  • Zeros can be crashes. Several 0.00 scores (like Gemini on treap or Qwen/K3/Gemini on residual updates, all with 0 train calls) are crashed or unfinished runs and say nothing about problem-solving style.