Lune

S&P2023Top-tier venue

WeRLman: To Tackle Whale (Transactions), Go Deep (RL)

Roi Bar Zur, Ameer Abu-Hanna, Ittay Eyal, Aviv Tamar

Abstract

The security of proof-of-work blockchain protocols critically relies on incentives. Their operators, called miners, receive rewards for creating blocks containing user-generated transactions. Each block rewards its creator with newly minted tokens and with transaction fees paid by the users. The protocol stability is violated if any of the miners surpasses a threshold ratio of the computational power; she is then motivated to deviate with selfish mining and increase her rewards.Previous analyses of selfish mining strategies assumed constant rewards. But with statistics from operational systems, we show that there are occasional whales – blocks with exceptional rewards. Modeling this behavior implies a state-space that grows exponentially with the parameters, becoming prohibitively large for existing analysis tools.We present the WeRLman 1 framework to analyze such models. WeRLman uses deep Reinforcement Learning (RL), inspired by the state-of-the-art AlphaGo Zero algorithm. Directly extending AlphaGo Zero to a stochastic model leads to high sampling noise, which is detrimental to the learning process. Therefore, WeRLman employs novel variance reduction techniques by exploiting the recurrent nature of the system and prior knowledge of transition probabilities. Evaluating WeRLman against models we can accurately solve demonstrates it achieves unprecedented accuracy in deep RL for blockchain.We use WeRLman to analyze the incentives of a rational miner in various settings and upper-bound the security threshold of Bitcoin-like blockchains. We show, for the first time, a negative relationship between fee variability and the security threshold. The previously known bound, with constant rewards, stands at 0.25 [2]. We show that considering whale transactions reduces this threshold considerably. In particular, with Bitcoin historical fees and its future minting policy, its threshold for deviation will drop to 0.2 in 10 years, 0.17 in 20 years, and to 0.12 in 30 years. With recent fees from the Ethereum smart-contract platform, the threshold drops to 0.17. These are below the common sizes of large miners [3].

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

5 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Uncle Maker: (Time)Stamping Out The Competition in Ethereum cites On the Security and Performance of Proof of Work Blockchains
  • Uncle Maker: (Time)Stamping Out The Competition in Ethereum cites SquirRL: Automating Attack Analysis on Blockchain Incentive Mechanisms with Deep Reinforcement Learning
  • Be Selfish and Avoid Dilemmas: Fork After Withholding (FAW) Attacks on Bitcoin cites On the Security and Performance of Proof of Work Blockchains
  • Be Selfish and Avoid Dilemmas: Fork After Withholding (FAW) Attacks on Bitcoin cites On the Instability of Bitcoin Without the Block Reward
  • SquirRL: Automating Attack Analysis on Blockchain Incentive Mechanisms with Deep Reinforcement Learning cites Be Selfish and Avoid Dilemmas: Fork After Withholding (FAW) Attacks on Bitcoin
  • SquirRL: Automating Attack Analysis on Blockchain Incentive Mechanisms with Deep Reinforcement Learning cites On the Instability of Bitcoin Without the Block Reward
  • BDoS: Blockchain Denial-of-Service cites Be Selfish and Avoid Dilemmas: Fork After Withholding (FAW) Attacks on Bitcoin
  • BDoS: Blockchain Denial-of-Service cites On the Security and Performance of Proof of Work Blockchains
  • BDoS: Blockchain Denial-of-Service cites On the Instability of Bitcoin Without the Block Reward
  • Mad-Dag: Protecting Blockchain Consensus From MEV cites Uncle Maker: (Time)Stamping Out The Competition in Ethereum
  • Mad-Dag: Protecting Blockchain Consensus From MEV cites On the Security and Performance of Proof of Work Blockchains
  • Mad-Dag: Protecting Blockchain Consensus From MEV cites SquirRL: Automating Attack Analysis on Blockchain Incentive Mechanisms with Deep Reinforcement Learning
  • Mad-Dag: Protecting Blockchain Consensus From MEV cites Bitcoin Under Volatile Block Rewards: How Mempool Statistics Can Influence Bitcoin Mining
  • Mad-Dag: Protecting Blockchain Consensus From MEV cites On the Instability of Bitcoin Without the Block Reward
  • Bitcoin Under Volatile Block Rewards: How Mempool Statistics Can Influence Bitcoin Mining cites On the Instability of Bitcoin Without the Block Reward
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers5

  1. Uncle Maker: (Time)Stamping Out The Competition in EthereumAviv Yaish, Gilad Stern, Aviv ZoharCCS 2023 · 19 citations
  2. RICE: Breaking Through the Training Bottlenecks of Reinforcement Learning with ExplanationZelei Cheng, Xian Wu, Jiahao Yu, Sabrina Yang et al.ICML 2024 · 11 citations
  3. Mad-Dag: Protecting Blockchain Consensus From MEVRoi Bar Zur, Ittay Eyal, Aviv TamarS&P 2026 · 3 citations
  4. Bitcoin Under Volatile Block Rewards: How Mempool Statistics Can Influence Bitcoin MiningRoozbeh Sarenche, Alireza Aghabagherloo, Svetla Nikova, Bart PreneelCCS 2025 · 1 citation
  5. How to Beat Nakamoto in the RaceShu-Jie Cao, Dongning GuoCCS 2025

Builds on5

  1. On the Security and Performance of Proof of Work BlockchainsArthur Gervais, Ghassan O. Karame, Karl Wüst, Vasileios Glykantzis et al.CCS 2016 · 1,668 citations
  2. On the Instability of Bitcoin Without the Block RewardMiles Carlsten, Harry A. Kalodner, S. Matthew Weinberg, Arvind NarayananCCS 2016 · 387 citations
  3. Be Selfish and Avoid Dilemmas: Fork After Withholding (FAW) Attacks on BitcoinYujin Kwon, Dohyun Kim, Yunmok Son, Eugene Y. Vasserman et al.CCS 2017 · 248 citations
  4. BDoS: Blockchain Denial-of-ServiceMichael Mirkin, Yan Ji, Jonathan Pang, Ariah Klages-Mundt et al.CCS 2020 · 1 citation
  5. SquirRL: Automating Attack Analysis on Blockchain Incentive Mechanisms with Deep Reinforcement LearningCharlie Hou, Mingxun Zhou, Yan Ji, Phil Daian et al.NDSS 2021

Related papers

  1. The Gap GameItay Tsabary, Ittay EyalCCS 2018 · 119 citations
  2. AIRS: Explanation for Deep Reinforcement Learning based Security ApplicationsJiahao Yu, Wenbo Guo, Qi Qin, Gang Wang et al.USENIX Security 2023
  3. Tight Consistency Bounds for BitcoinPeter Gazi, Aggelos Kiayias, Alexander RussellCCS 2020
  4. Power Adjusting and Bribery Racing: Novel Mining Attacks in the Bitcoin SystemShang Gao, Zecheng Li, Zhe Peng, Bin XiaoCCS 2019 · 81 citations
  5. Fairness Matters: A Tit-For-Tat Strategy Against Selfish MiningWeijie Sun, Zihuan Xu, Lei ChenVLDB 2022 · 8 citations
Dusk over the sea between two cliffs drawn in fine vertical lines