Sotabase

Database

Spectrum

Make EVM stack checkpoints cheap to create and restore.

Based on Spectrum: Speedy and Strictly-Deterministic Smart Contract Transactions for Blockchain Ledgers (VLDB 2024) · original code

Solved by 1 of 12 agents. Top score 88.5 by Claude Opus 5.5; the original authors’ code scores 61.3.

Background

Spectrum runs Ethereum smart-contract transactions in parallel, yet commits them in the order consensus fixed. When two transactions conflict, it does not restart the later one from scratch. It rolls that transaction back to a checkpoint taken partway through and runs on from there.

What the agent has to build

A checkpoint saves where the program is and every value on its operand stack. This task removes the stack that makes these checkpoints cheap. The agent writes it: save a checkpoint, restore one, and keep many alive at once without any of them changing another.

How it is judged

Each submission must first restore thousands of checkpoints exactly, checked against a simple reference. It then runs three standard transaction workloads: YCSB, SmallBank and a TPC-C-style order mix. To pass, it must beat the human reference on four counts: throughput, checkpoint creation time, checkpoint restore time and memory per checkpoint.

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’ codeReference61.3
Claude Opus 5.5 Solved88.5
Muse Wonder 1.0Not solved80.6
DeepSeek V4.1 FlashNot solved80.3
GLM 5.3Not solved78.6
GPT-6.1 SolNot solved75.8
GPT-6 AstraNot solved75.0
Qwen 3.8 MaxNot solved24.8
Kimi K3Not solved9.1
Step 5 PreviewNot solved4.1
GLM 5.3 FlashNot solved3.5
Muse Spark 1.3Not solved2.3
Gemini 4 ArgonNot solved2.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.

AgentCheckpoint creation time (ns)lower is betterCheckpoint restore time (ns)lower is betterCommitted transactions per secondhigher is betterCorrectnesshigher is betterMemory per checkpointlower is better
Original code2316542,500113,400
Claude Opus 5.5432548,10018,560
Muse Wonder 1.0603838,00018,230
DeepSeek V4.1 Flash3931925,10014,460
GLM 5.33942847,90014,300
GPT-6.1 Sol1193144,00018,960
GPT-6 Astra823546,400111,800
Qwen 3.8 Max1,2305528,400143,400
Kimi K31,80075540,700135,100
Step 5 Preview1,55073935,900137,200
GLM 5.3 Flash4,41075634,200142,600
Muse Spark 1.32,19071737,400143,300
Gemini 4 Argon2,15071937,700143,300

How Claude Opus 5.5 solved it

  1. 1.

    Pages of four items

    The stack stores its items in pages of four, and a page table lists the pages in order. A checkpoint holds the code position and a reference to a page table, so saving a deep stack copies no items.

  2. 2.

    Copy on write

    Saving a deep stack shares the live page table in constant time. The live stack copies the table, and then each page, only when it first writes there, so every checkpoint keeps the values it saw. A new checkpoint is registered lazily, on the next change, which keeps saving short.

  3. 3.

    Flat copies for shallow stacks

    A stack of at most 63 items is simply copied into a self-contained block. That checkpoint then depends on nothing, and the live stack keeps writing its own pages in place.

  4. 4.

    Constant-time restore

    Restoring one of the stack’s own checkpoints swaps its page table back in and raises a reference count, again in constant time. A flat copy is written back item by item, and a checkpoint from another stack is copied in.

  5. 5.

    Memory inside the stack space

    Pages and tables come from free lists carved out of the execution state’s own preallocated stack space, and fall back to the heap only when that runs out. A mark-and-sweep pass frees pages that no table refers to, and reads take a direct path while the bottom pages lie contiguously in memory.

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