Better Way to Measure Proof-of-Work via Entropy

19 replies 198 views
Posts: 7 · Reputation: 40
#1Aug 25, 2018, 08:43 AM
Just saw that a new paper called POEM: Proof-of-Entropy-Minima got published on arxiv. Looks like it’s a solid method for assessing the heaviest chain tip while cutting down the time needed to handle orphan blocks. It can sort out 67% of orphans instantly instead of waiting for the next block to come along. Plus, it appears to offer improved finalization time guarantees based on specific hashes. There's also a formula in there linking to finalization, which could help establish an objective way to prefer one hash function over another.
4 Reply Quote Share
walletio433Full Member
Posts: 127 · Reputation: 257
#2Aug 25, 2018, 02:42 PM
can you give a simple example because it seems kind of abstract.
3 Reply Quote Share
traderz8Full Member
Posts: 11 · Reputation: 796
#3Aug 27, 2018, 11:54 PM
No, it's not. The author has made a very common mistake. This mistake is a consequence of a superficial understanding of probability theory. Satoshi has made a good job and his calculation of the chain weight is correct. If you disagree with me we can dive into details.
2 Reply Quote Share
traderz8Full Member
Posts: 11 · Reputation: 796
#4Aug 28, 2018, 12:04 AM
Quote them here, please.
6 Reply Quote Share
Posts: 7 · Reputation: 40
#5Aug 29, 2018, 03:03 PM
Please tell me what you think the mistake in probability theory is. Thanks in advanced.
0 Reply Quote Share
traderz8Full Member
Posts: 11 · Reputation: 796
#6Aug 29, 2018, 11:18 PM
There is no "mistake in probability theory". Don't distort my message, please. What is your personal opinion about this paper? Do you think it is correct?
2 Reply Quote Share
Posts: 7 · Reputation: 40
#7Aug 30, 2018, 03:15 AM
I think the paper is correct.
2 Reply Quote Share
traderz8Full Member
Posts: 11 · Reputation: 796
#8Aug 30, 2018, 06:34 AM
In your opinion, what definition of "entropy" does the author use through out the paper?
5 Reply Quote Share
Posts: 93 · Reputation: 30
#9Aug 30, 2018, 08:28 AM
And it is good that they don't. Because this change will lower requirements for chain reorganization. If I understand it correctly, this proposal is about using chainwork based on the current block, instead of difficulty. Those kind of changes were also discussed in other topics.
0 Reply Quote Share
Posts: 7 · Reputation: 40
#10Aug 30, 2018, 10:03 AM
If you look at the paper it is not just proposing you change chain work but that you simultaneously change the calculation of tip weight from very roughly being Td_new = Td_old + Td_threshold to Td_new = Td_old * Td_chainwork.  That would make both chain work and chain weight geometric which would actually improve finalization time by minimizing conflicts and maximizing recorded work.
4 Reply Quote Share
Posts: 7 · Reputation: 40
#11Aug 30, 2018, 02:21 PM
delta_S = 1/2^n where n is the number of leading zeros.  This makes sense from a Shannon entropy concept where entropy is a reduction in divergence and it also makes sense from a system entropy standpoint as well were miners exert work to lower the entropy and increase the system order.
2 Reply Quote Share
traderz8Full Member
Posts: 11 · Reputation: 796
#12Aug 30, 2018, 03:59 PM
Hold on. The first lesson in Probability Theory class is the following. Whenever you approach a problem, the first thing you should do is to define a probability space. If the probability space is not defined, then all these concepts don't make sense. There is no "probability", there is no "expectation" and "divergence". Also there is no "entropy" and "Shanon entropy". The probability space has not been defined in the paper. If the choice of the probability space is obvious, then you can easily fill this gap and define probability space instead of the author.
5 Reply Quote Share
Posts: 7 · Reputation: 40
#13Aug 30, 2018, 07:39 PM
They do define the probability space 2^l which in the case of bitcoin is 2^256.
3 Reply Quote Share
traderz8Full Member
Posts: 11 · Reputation: 796
#14Aug 31, 2018, 08:52 AM
I is finite, so it's a discrete probability space. The elementary event in this probability space is "hash h, h in 2^I, has been generated". The probability of every elementary event is 2^-I regardless of what hash h corresponds to this elementary event. Now let's consider the event "block with target T has been mined". It means a miner has calculated a hash h<=T. Every two hashes h1 and h2, which satisfy this inequality, have the same probability, regardless of what they look like and how many zeros are there in their binary representation. They carry the same "information". The probability P of mining a block in this setting is (T+1)/2^I. The average number of attempts before the success is 1/P. That is 2^I/(T+1). This number is called the "block difficulty" and "block weight". It's unbiased estimation of the work executed by miners. That's what we need and the story often ends here. In the paper an extra step is made. There is an assumption that every hash has an "information" or "weight". There is an attempt "to reduce an entropy" or, in other words, as I understood, there is an attempt to reduce the standard deviation of estimation from the estimated value. The fact is that when every hash has the same weight, the deviation is minimal. I think, at some point in the paper, when the entropy was introduced, an unintentional switch to another probability space has occurred. When you start treating hashes by quantity of leading zeros, the fraction of "information" within the hash get lost. You get a new probability space, a new problem and a new optimal unbiased estimation. However, this new solution might not be a solution to the original problem in the original probability space.
4 Reply Quote Share
Posts: 84 · Reputation: 43
#15Aug 31, 2018, 02:40 PM
The point about 'PoW is massively inefficient' is immediately wrong, in the sense that as a general concept, if you make it more easy / efficient to calculate valid block hashes, the difficulty would adjust upwards to keep the ASICs running for 10 minutes on average to find a new block. Therefore, the energy consumption will not be reduced. This holds true for any system or proposal that aims to make mining more efficient. Even reusing heat is just an efficiency improvement that leads to more money / value extracted from the same amount of electricity, driving up the difficulty to account for it.
4 Reply Quote Share
walletio433Full Member
Posts: 127 · Reputation: 257
#16Aug 31, 2018, 02:58 PM
yeah i mean satoshi did things using the KISS principle but amazingly he got things right. people keep trying to come up with "improvements" to certain things but they are invariably way over complicated and have issues so they don't turn out to be an improvement in any real sense. just Keep it simple. if you can't explain something with a simple example then its probably not something worth trying to figure out.
3 Reply Quote Share
beario210Member
Posts: 170 · Reputation: 48
#17Aug 31, 2018, 07:05 PM
I think that is the key point. The amount of work needed to produce a block depended on the target value and not on the value of its hash. Therefore, using the hash value to determine the longest chain could be considered as incorrect since the criteria is the most amount of work. However, I don't see a problem with the distortion in practice, and it does provide the benefits of a reduction in orphaned blocks and a deterrence of selfish mining. BTW, using the hash values rather than the target values to determine the longest chain is not a new idea, though this is the first time I have seen the idea explored in detail. My main criticism is the misapplication of "entropy".
3 Reply Quote Share
Posts: 7 · Reputation: 40
#18Aug 31, 2018, 09:37 PM
There is now formal security proof showing the safety and liveness of Proof-of-Entropy-Minima (PoEM).  https://eprint.iacr.org/2024/200 This relatively simple adjustment to the measurement of block weight has been empirically shown to: prevent selfish mining, create faster finalization time, increase throughput, and decrease block times while maintaining safety and liveness of the chain.  Modifications to the current heaviest chain rule are very straight forward. The TL;DR is: Presently the heaviest chain rule does not treat blocks as being dependent events even though they are dependent because of the hash link to the parent. PoEM uses combinatorics to weigh the dependent block events appropriately. This generates a guaranteed unique weight for each block which is the average number of hashes, in expectation, that would be required to produce a chain of equal weight. The guaranteed unique weight prevents the network from mining on competing forks because the likelyhood of having blocks of equal weight is (1/2^256) ~= 0 Additionally, the process naturally introduces randomization on each sample (ie block) which prevents profitable withholding attacks. Finally, it shows that the threshold for a Sybil attack can be improved from 33% to 40%.
3 Reply Quote Share
Posts: 152 · Reputation: 70
#19Sep 1, 2018, 01:54 AM
Use of the apparent difficult has been proposed many times before-- it and other schemes that result in a unique value for each block which is calcuable by the block finder immediately lead to a withholding attack:  If you know your block is unusually good, such that it is likely to win even if announced late, you are better off not announcing it.  The withholding profits are proporitional to your share of hash power (as thats how often your advantage gets you a second block) so it's also a centralization pressure. Bitcoin's criteria has always been that each node adopt the first block it sees which meets the target, which creates an incentive to announce (one which breaks down if your share of the hashpower is over a large threshold, but if any party controls that much hashpower the system has other worse problems).
2 Reply Quote Share
bytehq323Newbie
Posts: 40 · Reputation: 38
#20Sep 1, 2018, 04:02 AM
The withholding attack also reduces bitcoin's stochastic finality: a tx 6 blocks deep still has about a 1% chance of being reorged. One has to wait much longer before a tx can be considered finalized. The scheme has other downsides as well: Anytime two blocks are found in short succession, with the later one having a lower hash, it causes the earlier to be reorged, when that earlier one has already been relayed across most of the network, wasting bandwidth and causing unnecessarily many small reorgs.
0 Reply Quote Share
?Reply
Sign in to reply to this topic

Related topics