Does Your Blockchain Need Multidimensional Transaction Fees?

Nir Lavee, Noam Nisan, Mallesh M. Pai, Max ResnickarXiv 2025 · DOI

Abstract

Blockchains traditionally manage resource constraints using a single-dimensional "gas" fee. However, modern systems face multiple distinct bottlenecks like CPU, memory, and I/O. This paper introduces a theoretical framework to quantify the throughput lost when approximating multi-dimensional constraints with a single metric. By mapping this problem to a zero-sum game, the authors provide a method to calculate optimal gas measures and demonstrate that finding the best $k$-dimensional middle ground is NP-complete.

Introduction

The scalability of a blockchain is fundamentally limited by the physical resources of its nodes. To prevent network congestion and DoS attacks, protocols enforce limits on the "size" of a block. Historically, this has been achieved through a single scalar value—Ethereum's "gas" or Solana's "Compute Units." While simple, this approach assumes all operations consume resources in a fixed ratio. In reality, one transaction might be CPU-intensive, while another is I/O-heavy. A single-dimensional limit must be conservative enough to handle the worst-case scenario for any resource, often leaving significant capacity unused for transactions that are not resource-heavy across all dimensions.

The Operations-Resource Matrix

To formalize this, the authors model the system using an Operations-Resource Matrix ($W$). In this matrix, each row represents a primitive operation (e.g., an opcode), and each column represents a specific resource (e.g., CPU, bandwidth, storage).

The Operations-Resource Matrix ($W$) models how operations consume various system resources.

The goal is to find a single-dimensional cost vector $g$ that best approximates the true multi-dimensional constraints $B$.

Measuring Efficiency via $\alpha$-Approximation

The paper introduces the concept of an $\alpha$-approximation to quantify the "throughput gap." A gas measure $\alpha$-approximates the true constraints if any block feasible under the true multi-dimensional limits would also be feasible under the gas measure, provided the resource capacities were scaled by a factor of $\alpha$. For example, an $\alpha=2$ implies that a single-dimensional fee might discard up to 50% of potential throughput in the worst case.

The authors prove that the optimal $\alpha$ is the reciprocal of the value of a specific zero-sum game. In this game, a "row player" (minimizer) chooses a mixture of operations, while a "column player" (maximizer) chooses a resource to highlight as the bottleneck. This connection allows for the application of standard game-theoretic tools to blockchain resource management.

Visualizing the Throughput Gap

The inefficiency of a single-dimensional approximation is most visible when comparing the "feasible region" of a block. In a 2D system (e.g., gas and blobs), the true constraints form a rectangular region. A single linear gas constraint creates a triangular feasible region, necessarily excluding a significant portion of the potential state space.

A comparison of 2D resource constraints (gas vs. blobs) showing the capacity lost (the area between the rectangle and the diagonal line) by a single linear approximation.

Complexity and the "Middle Ground"

If 1D is inefficient and $n$-D is too complex for users and block builders (turning block assembly into a multi-dimensional knapsack problem), a natural question is whether a $k$-dimensional "middle ground" (where $1 < k < n$) is optimal. The authors prove that the problem of partitioning $n$ resources into $k$ groups to minimize the approximation error is NP-complete. This suggests that simple grouping of resources may not be the most effective path forward. Instead, they propose using techniques like Non-negative Matrix Factorization (NMF) to derive synthetic resource dimensions that more accurately reflect the underlying hardware bottlenecks.

Practical Implications

While theoretical worst-case losses can be high, the authors note that distributional information significantly mitigates this in practice. If the most "inefficient" operations are rarely used, the practical throughput loss is much lower. By analyzing historical transaction data, developers can tune their gas measures to minimize real-world waste. In one example, a theoretical loss factor of 2 was reduced to only ~1.17 when accounting for the historical mix of operations.

Conclusion

This research provides a rigorous "ruler" for blockchain architects. It allows them to weigh the protocol complexity of multi-dimensional fees against the tangible throughput gains they provide. As blockchains strive for higher performance, understanding these trade-offs becomes essential for designing efficient and sustainable resource markets.

Summary updated

BibTeX
@misc{lavee2025does,
  author = {Nir Lavee and Noam Nisan and Mallesh M. Pai and Max Resnick},
  title = {{Does Your Blockchain Need Multidimensional Transaction Fees?}},
  year = {2025},
  eprint = {2504.15438},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2504.15438},
}
Figure