Proof of User Similarity: the Spatial Measurer of Blockchain

Shengling Wang, Lina Shi, Hongwei Shi, Yifang Zhang, Qin Hu, Xiuzhen ChengarXiv 2022 · OpenReview

TL;DR

This paper introduces Proof of User Similarity (PoUS), a novel blockchain consensus mechanism that repurposes computational power to calculate user similarities, enhancing efficiency and enabling spatial analysis of user behavior. PoUS aims to overcome the energy inefficiency of Proof of Work (PoW) while addressing plagiarism and lying risks in its consensus process through advanced cryptographic techniques.

What Problem Does This Paper Address?

Traditional blockchain consensus mechanisms, particularly Proof of Work (PoW), are notoriously energy-intensive due to their reliance on brute-force computational puzzles. While alternatives like Proof of Stake (PoS) offer energy savings, they can lead to centralization and a "rich get richer" scenario. This paper tackles the challenge of creating an energy-efficient consensus mechanism that not only conserves energy but also reuses computational power for valuable tasks, thereby improving blockchain functionality. Specifically, it addresses the uneconomical nature of PoW and the potential unfairness of other energy-saving methods by proposing a system that leverages user similarity calculations for consensus.

Methods

PoUS introduces a three-stage consensus process:

  • Mining (User Similarity Calculation): Instead of solving arbitrary puzzles, miners calculate the similarity between users based on their transaction data. This is done by first acquiring user data (historical and mempool transactions), constructing user vectors representing their interests, and then measuring the similarity between these vectors to generate a User Similarity Matrix (USM). To manage the computational burden, PoUS employs a "best-effort" schema, allowing miners to submit partial calculation results.
  • Voting (Plagiarism and Lying-Proof): To select a leader from the miners who have computed USMs, PoUS uses a secure voting mechanism. This involves:
  • Secure Two-Party Computation (2PC): Miners vote without revealing their actual USMs to others, preventing plagiarism. This is achieved using garbled circuits and oblivious transfer protocols.
  • Bayesian Truth Serum: An incentive mechanism that encourages honest voting by rewarding truthful reporters more than liars, mitigating the risk of dishonest votes.
  • Packing (Clustering-Based): The selected leader clusters transactions based on the global best user similarity and then packs them into blocks according to a priority rule that considers waiting time, transaction fees, and user similarity. This allows for cohort analysis and spatial representation of users.

Datasets

Not discussed in the paper. The paper focuses on simulating blockchain networks with varying numbers of nodes and transaction parameters.

Key Insights and Ideas

  • Repurposing Computational Power: The core innovation is using computational power not for arbitrary puzzles, but for calculating meaningful user similarities, directly benefiting the blockchain's functionality.
  • Spatial Dimension for Blockchain: PoUS introduces a "spatial measurer" by revealing user distribution and behavior patterns, complementing the traditional temporal aspect of blockchains.
  • Best-Effort Mining: Allowing miners to contribute partial results significantly lowers the barrier to entry and makes large-scale similarity calculations feasible.
  • Privacy-Preserving Voting: The combination of 2PC and Bayesian truth serum effectively tackles both plagiarism and lying in the voting process, crucial for a decentralized system.
  • Searchable Blockchain: The user similarity-based clustering naturally leads to a more organized and searchable blockchain, facilitating efficient querying.

Key Results

  • Performance Improvement over PoW:
    • Average TPS improvement of 15.66% (varying block size) and 24.01% (varying block interval).
  • Average confirmation latency reduction of 24.14% (varying block size) and 43.64% (varying block interval).
  • Interval Insensitivity: PoUS exhibits a linear trend in confirmation latency with respect to block interval, unlike PoW's exponential trend, making it more stable.
  • Negligible Overhead: The cryptographic computation time and communication cost for the voting process are minimal, making PoUS practical.
  • Functionality: PoUS successfully portrays user spatial information and demonstrates fairness in transaction packing, even for transactions with lower similarity but higher urgency or fees.

Limitations and Future Work

  • Initial Consensus for Smart Contracts: PoUS requires a secure smart contract for its voting mechanism. The authors suggest using existing consensus mechanisms like PoW or PoS initially to establish the smart contract before transitioning to PoUS.
  • Computational Cost of Similarity Calculation: While the best-effort schema helps, the overall similarity calculation can still be resource-intensive, though the paper argues it's manageable with distributed effort.
  • Future Work: The paper suggests that the user similarity-based classification achieved by PoUS can lead to more efficient querying and decision-making, particularly in applications like supply chain management and public health monitoring. The ability to build detailed user profiles also opens avenues for deeper cohort analysis and understanding user value retention.

Summary updated

Abstract

Although proof of work (PoW) consensus dominates the current blockchain-based systems mostly, it has always been criticized for the uneconomic brute-force calculation. As alternatives, energy-conservation and energy-recycling mechanisms heaved in sight. In this paper, we propose proof of user similarity (PoUS), a distinct energy-recycling consensus mechanism, harnessing the valuable computing power to calculate the similarities of users, and enact the calculation results into the packing rule. However, the expensive calculation required in PoUS challenges miners in participating, and may induce plagiarism and lying risks. To resolve these issues, PoUS embraces the best-effort schema by allowing miners to compute partially. Besides, a voting mechanism based on the two-parties computation and Bayesian truth serum is proposed to guarantee privacy-preserved voting and truthful reports. Noticeably, PoUS distinguishes itself in recycling the computing power back to blockchain since it turns the resource wastage to facilitate refined cohort analysis of users, serving as the spatial measurer and enabling a searchable blockchain. We build a prototype of PoUS and compare its performance with PoW. The results show that PoUS outperforms PoW in achieving an average TPS improvement of 24.01% and an average confirmation latency reduction of 43.64%. Besides, PoUS functions well in mirroring the spatial information of users, with negligible computation time and communication cost.
BibTeX
@misc{wang2022proof,
  author = {Shengling Wang and Lina Shi and Hongwei Shi and Yifang Zhang and Qin Hu and Xiuzhen Cheng},
  title = {{Proof of User Similarity: the Spatial Measurer of Blockchain}},
  year = {2022},
  eprint = {2211.01143},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2211.01143},
}
Figure