Cointime

Download App
iOS & Android

L2 sequencer proving on weak hardware; parallelization and decentralization

From ethresear.ch by rezahsnz

Linea’s sequencer proves a 30m gassed block of transactions in 5 minutes. Here’s its setup:

  • On a 96 cores machine with 384 GB of RAM (hpc6a.48xlarge on AWS)
  • In 5 minutes (only including the inner-proof)

So is it possible to reduce the proving time and, at the same time, obtain decentralization guarantees? We have an idea.

Overview

Almost all of the L2 sequencers are closed-source, intellectual property, and thus protected behind centralized setups. To cram that much power into an entity requires a great deal of justification today. To decentralize the flow, on the other hand, one has to accept certain amounts of delay and noise usually found in decentralized compute networks.

zkVMs, recursion, and Risc0’s approach

Any zkVM toolset puts a certain upper bound on the maximum number of cycles(roughly speaking 1 cycle equals 1 operation) it can prove in one go. This is usually done for efficiency reasons. For Risc0, a RISC-V general zkVM, it is 2^24 ~ 16.78m cycles. With recursion, proving infinitely sized programs are made possible. So the solution is to divide a large program into individual sub-programs(called segment in Risc0 jargon) and have them proved one by one and aggregate the proofs into a final proof as if the whole program was proved in one go. For example, consider proving a 1b cycles program. With 16.78M maximum segment size limit, one ends up proving 60 segments. The upper bound for segment size limit is not the end of story however and one can customize it into a well-known range of [2^13 - 2^24]. Each segment limit size needs specific memory requirements shown on Table 1:

Screenshot from 2024-07-18 14-37-341366×768 32.9 KBExtrapolating Table 1’s values, we get 50m cycles for a program that needs 384gb of memory, in order to be proved in Risc0. Recall that Linea’s prover uses 384gb of memory to generate proofs. This is a naive 1-1 translation, but we can treat it as baseline for further testing. So, with this assumption, should one write Linea’s sequencer logic in Risc0, she would end up with a program that is 50m cycles long. Doubling cycles to ~90m, to account for aggregation won’t hurt here.

Segmentation, parallel proving, and decentralization

Recursion is a powerful idea in zkVM proving. With recursion once can get to prove seemingly large programs very quickly assuming she has a prove-ready network of machines. Table 2 shows a segmented prove session for a 90m cycles program on a pretty weak machine(8+ years old, Intel core i7 5500U(2C 4T), 16gb memory):

Screenshot from 2024-07-18 14-47-061288×439 64.4 KB

As you can see, different segment size limits result in varied proving regimes. In Table 2, two columns are colored in green, 2^18 and 2^19. Consulting Table 1, we would get 2gb and 4gb of required memory to prove them respectively. These columns are sweet spots for any zkVM proving network whose nodes are presumably weak. Focusing on the 2^19 segment size limit, to prove a 90m cycles program, one would need at least 168 nodes in order to prove the program in 4 minutes and 9 seconds. But 168 nodes is a faulty assumption. In reality, if a p2p network is to undertake the proving job, it needs to have redundancy values of 1:4 and above. The redundancy accounts for noise that is a feature of any p2p network. With 1:4 redundant nodes, 1 in every 5 nodes is assumed to be honest and the rest are time wasters. So, a 1:4 redundant p2p network needs at least of 840 nodes to get the job done.Assuming that the proving network is p2p, one can expect to obtain decentralized guarantees en route.

Conclusion

Here we introduced an imaginary setup to decentralize and improve L2 sequencer proving times. If the claim turns out to be legit, we would expect to improve the overall proving time for any zkVM application area. In addition, the setup provides decentralization guarantees as a side effect. While everything looks nice, we, at Wholesum network 2 would like to put this setup to test and see if it works in action. If successful, a p2p verifiable compute network of 10,000 weak nodes can handle up to 10 Linea like L2s.

A somewhat more expanded version of this post is also available here.

We appreciate your feedback.

Comments

All Comments

Recommended for you

  • Spot Prices of Some Storage Chips Decline

    On August 18, according to 21st Century Business Herald, an unusual signal has emerged since the second quarter of this year—some spot distributors of storage chips are willing to lower prices for certain models of NAND storage chips. Third-party organizations in the flash memory market have pointed out that since July, there has been a continuous low-price sales phenomenon for multi-brand eMMC products, leading to a significant price inversion between spot and contract prices, with the spot price of 64GB eMMC already showing a downward trend. eMMC is the standard storage chip for consumer electronics such as set-top boxes, smart TVs, and entry-level smartphones. Against the backdrop of overall high prosperity in the storage industry, this price inversion in this category is particularly striking. This actually indicates that the current storage chip market is heading towards a polarized situation: some consumer markets are facing a scenario where downstream customers cannot bear the price increase of chips, especially evident in the entry-level spot market, where in recent months, distributors have been willing to exchange price for volume to obtain cash flow; meanwhile, the price increase trend in the cloud-side AI or enterprise-level storage market continues, influenced to some extent by the signing of long-term contracts.

  • U.S. Stock Market: Storage Sector Opens Lower, SK Hynix Drops 7.4%, SanDisk Falls 8%

    On August 18, the U.S. storage sector opened lower and continued to decline, expanding its losses after several days of gains. Micron Technology fell 6.33%, SK Hynix dropped 7.41%, SanDisk decreased by 8.05%, Western Digital declined 7.10%, Seagate Technology fell 7.58%, and Kioxia ADR dropped 10.63%.

  • Spot Silver Drops 2% Today, Currently Priced at $64.46 per Ounce

    Spot silver has decreased by 2% today, currently priced at $64.46 per ounce.

  • BTC Surpasses $65,000

    Market data shows that BTC has surpassed $65,000, currently priced at $65,005.31, with a 24-hour increase of 2.17%. The market is highly volatile, so please ensure proper risk management.

  • Zhejiang Humanoid Robot Innovation Center Releases 'Co-evolution Theory'

    The Zhejiang Humanoid Robot Innovation Center has released the practical path of the 'Co-evolution Theory', proposing a collaborative interaction among intelligent algorithms, hardware entities, and development toolchains to advance humanoid robots from demonstration scenarios to large-scale practical operations. Currently, Zhejiang Humanoid has established a complete collaborative product system: the SPIRE intelligent technology system achieves a 94% success rate for complex long-range tasks, with precision assembly accuracy reaching 0.03mm; the NAVIAI hardware matrix covers three product categories: biped humanoids, dual-arm operations, and wheeled arm circulation, with a domestic component localization rate of 91%; the EvoStack toolchain streamlines the entire process from development to operation and maintenance, supporting large-scale batch replication. Related products have been implemented in various fields including industry, services, education, and data collection, with the clothing sector securing the world's first bulk order of 2,000 units. Zhejiang Humanoid will showcase its full-scenario solutions at the 2026 World Robot Conference (2026 WRC).

  • AMD Shares Drop 5.53%, Intel Shares Fall 7.35%

    On August 18, the stock prices of the CPU duopoly widened their losses, with AMD shares dropping by 5.53% and Intel shares falling by 7.35%.

  • Meta Falls 3.7% Amid Lawsuit from 29 States, Facing Potential $1.4 Trillion Fine

    On August 18, Meta Platforms (META.US) fell 3.7%, closing at $547.72. The decline follows a joint lawsuit from multiple states in the U.S., alleging that Meta designed addictive products targeting teenagers. The case is set to be heard on the 18th in Oakland, California. Currently, 29 states have sued Meta, with most accusing the company of violating the Children's Online Privacy Protection Act by illegally collecting personal information from children without parental consent. According to reports, based on Meta's own calculations, if it loses this trial, it could face penalties of up to $1.4 trillion.

  • Philadelphia Semiconductor Index Falls 5%

    On August 18, the Philadelphia Semiconductor Index fell by 5%, closing at 11,988.77 points. Nvidia's stock price dropped by 2.39%, Broadcom's stock price decreased by 3.41%, Advanced Micro Devices' stock price fell by 4.74%, ASML's stock price declined by 4.44%, and Intel's stock price dropped by 6.55%.

  • Strong Growth Expectations for IT Budgets, Application Software Stocks Rise, Adobe Up Over 4%

    On August 18, application software stocks saw widespread gains, with Duolingo rising over 6%, Capterra and Figma up over 5%, and Adobe and HubSpot increasing by more than 4%. Autodesk and ServiceNow rose over 3%, while Uber and SAP gained more than 2%. According to a mid-year Chief Information Officer (CIO) survey released by Bernstein, expectations for IT budget growth in 2026 remain strong, with increases similar to those in 2025. The report highlighted that cybersecurity, generative AI applications, and platform software are the top three investment priorities for CIOs, with incremental spending primarily focused among major cloud service providers.

  • Nasdaq Opens Down 1.12%, Nvidia Falls Over 2%, SpaceX Drops Over 4%

    On August 18, the three major U.S. stock indices opened lower, with the Nasdaq down 1.12%, the S&P 500 down 0.52%, and the Dow Jones down 0.21%. Nvidia fell over 2% as it plans to invest up to $105 billion in an OpenAI data center in Ohio. SpaceX dropped over 4%, facing a new round of 320 million shares becoming unrestricted this week, increasing pressure on early investors to realize profits.