Skip to main content

A New Proof-of-Work for the Age of AI

Published 7 min readMarkdown
A New Proof-of-Work for the Age of AI

Consensus through Waste

Bitcoin did something remarkable: it showed at scale that strangers could coordinate without trusting each other, without needing a bank or government or any central authority. For the first time, you could send value to someone on the other side of the world without asking permission from anyone. The network couldn't be shut down. Your money couldn't be censored. And it worked.

Bitcoin suggested proof-of-work as a way to achieve consensus among untrusted participants. The basic idea is straightforward: miners compete to solve a puzzle by finding a number (a nonce) that, when combined with a block's data and run through the SHA-256 hash function, produces a result with a specific property, typically a hash value that starts with a certain number of leading zeros. If you want a hash with, say, 70 leading binary zeros, you need on average 270 attempts. There's no shortcut or clever algorithm that avoids trying different nonces. You just have to compute until you get lucky.

This mechanism was revolutionary. It made the blockchain expensive to attack, as you'd need to redo all this computational work to rewrite history. It aligned incentives: miners earn rewards proportional to their computational work, not their pre-existing wealth, although in practice, access to capital, hardware, and energy matters. For the first time, a truly decentralized system worked at scale.

The tradeoff, though, is that the work itself is not intrinsically valuable. The electricity goes into finding hashes with leading zeros and that's it. Bitcoin essentially trades computational waste for network security. For over a decade, this tradeoff has been good enough to keep Bitcoin a strong asset.

A New Era of Decentralization

We're in the middle of a rapid transformation in artificial intelligence. LLMs are becoming infrastructure, essential services that people and organizations depend on. Most LLM inference happens on centralized servers controlled by a handful of companies. This creates familiar problems:

  • Single point of control: one company decides which models are available and who gets access.

  • Censorship risk: governments or corporations can pressure centralized providers to censor or discriminate.

  • Vendor lock-in: users and developers have no choice but to trust the current gatekeepers.

These are essentially the same problems Bitcoin was designed to address. The question is: can we build a decentralized LLM network that solves these problems without creating the same waste problem Bitcoin has?

The Existing Solutions and Their Limitations

Proof-of-stake (PoS) removes the computational waste by replacing work with capital. Validators lock up tokens as collateral and are chosen to validate blocks proportional to their stake. It uses minimal energy.

The problem is that capital accumulation isn't equally distributed. In networks like Bittensor, wealthy validators attract delegation from smaller token holders. This creates a feedback loop: more capital attracts more delegators, which generates more rewards, which attracts more delegation. Over time, voting power concentrates among those who started with the most wealth. A subnet with excellent GPUs and high-quality inference might have little influence if its validators don't hold much capital.

The result is that voting power decouples from actual computational contribution. You've solved the waste problem but created a wealth concentration problem instead.

An Alternative Approach

The question then becomes: can you keep proof-of-work's fairness properties but direct the computational effort toward something useful?

There was another line of research that tried to solve the waste problem differently. Beginning around 2017, researchers explored Proof of Useful Work, still based on proof-of-work but redirecting miners' computational effort toward tasks with potential economic or scientific value instead of arbitrary hash puzzles. Some grounded PoW hardness in fine-grained problems, others experimented with federated learning, matrix multiplication tasks, or generating zero-knowledge proofs. The appeal was clear: miners would do real work, preserving PoW's fairness while reducing waste. Until very recently, none of these attempts tackled LLM inference specifically. They focused on discrete computational problems or batch learning, not the live transformer inference that powers today's AI services.

LLM inference is actually quite a natural candidate. It's computationally expensive, economically valuable, and increasingly important. If you could use computational work on inference to secure the network, you'd align the network's security with real computational needs.

Instead of computing hashes, miners would compute transformer inference.

This is the basic idea behind transformer-based proof-of-work. There are some non-trivial design challenges.

Note that this mechanism isn't locked into transformers, it can adapt to whatever model architecture becomes more useful or prevalent in the future.

Designing the Task

Challenge 1: Estimating Computational Resources

In Bitcoin, mining is the miner's full-time job. But if you want a network that actually serves users, nodes need to spend most of their time on inference requests, not PoW. You have two options.

The first is theoretically feasible but research-intensive: use actual inference computations on existing trained models to estimate the computational resources of participants. You'd run inference, measure the computational cost, and calibrate the weights accordingly. This would be efficient, but it requires significant work to account for differences in input and to account for the potential exploitability of trained models' structure.

The second approach is more pragmatic: make the PoW task time-constrained. Design each puzzle to take a short, fixed, predictable amount of time, say a few minutes. The network then commits to keeping the same computational resources available for the rest of the epoch. This gives you more flexibility in designing a uniform puzzle.

Challenge 2: Task Alignment with LLM computations

If you commit to time-constrained PoW, a new problem emerges: if the PoW task is arbitrary, hardware optimization could drift away from useful work.

Bitcoin shows what happens when you don't align incentives. Over time, the industry built specialized hardware designed only for finding hashes.

With transformer-based PoW, the incentive structure flips. If the PoW task is transformer inference, then optimizing hardware for PoW also optimizes hardware for serving real users. The hardware optimization naturally points toward something useful.

The key is to ensure two things: the task must actually be real transformer inference, and it must be fresh each epoch so participants can't pre-compute solutions outside the allocated time window.

Each PoW round derives a new, randomly initialized transformer. Participants see the challenge and have only a fixed time window to solve it, so there's no opportunity to analyze or pre-compute ahead of time. Every challenge is genuinely novel. This keeps the work aligned with real inference. You can't shortcut it, and you can't specialize hardware for a specific task because the task changes every round. Hardware improvements benefit general transformer inference, not mining-specific optimization.

Challenge 3: Security

Finally, there's the question of hardness: is the PoW problem actually secure?

In Bitcoin, the security argument is straightforward. Finding a hash with leading zeros requires brute force. SHA-256 has no known mathematical shortcuts. The problem is hard in a simple, well-understood way.

The Bitcoin setup is pretty simple: vary a nonce (a number) and check if the resulting hash starts with leading zeros. The nonce is just a scalar you increment.

Let's try to understand what a direct translation of a Bitcoin task would be to a transformer-based setup. The nonce becomes an input sequence, a vector or token sequence that you vary, which can still be generated by positive integers, just like Bitcoin nonces. The "leading zeros" become a condition on the output. The transformer's output vector must satisfy some property. This could be that the output is close to zero, or falls within a certain distance of a target vector, or has a specific magnitude, or satisfies some other well-defined criterion. The exact definition matters because some conditions might have a mathematical structure that allows shortcuts.

The key difference from Bitcoin is that running the transformer to check a candidate is expensive. Bitcoin can hash millions of nonces per second on commodity hardware. Checking a transformer input requires actual forward pass computation. Participants can't brute-force billions of candidates, they're limited by inference speed. This is the computational work we're measuring.

Making this system competitively secure with Bitcoin is a more involved technical story – one for a different post. The basic idea is that randomly initialized transformers, combined with careful problem design, create a search space that requires running full transformer inference. The full security analysis deserves its own treatment.

---

Proof-of-work has worked well for 15 years. But Bitcoin's design also means we spend enormous computational resources finding hashes with no utility, while alternatives like PoS concentrate wealth among existing capital holders.

Transformer-based PoW is another option. It keeps PoW's security and fairness properties but directs computational effort toward something the world actually needs, a consensus mechanism for the AI era: secure like PoW, aligned with real computational needs, and genuinely useful. That's a different foundation to build on.

No comments yet. Be the first to comment.