The cost of artificial latency in PBS context
ETHCC 7 · 11 Jul 2024 · 21:07
Michael Moser presents research on timing games in Ethereum proposer-builder separation, where validators delay selecting a block bid to capture more MEV. He reports a median bid selection of 240 milliseconds into the slot, and models delays up to 950 milliseconds, the MEV-Boost default timeout, with typical gains in the low single digits and rare tails up to about 30 percent. He argues larger node operators gain with less variance, a centralization pressure, and that delaying is a strategic necessity. He also covers effects on blobs and base fees, pre-confirmations with top-of-block inclusion, and based rollups.
Speakers
Topics
From ETHCC 7, hosted by Ethereum France.
Transcript
One is when validators currently or without timing games select bids. And we looked at that from a network level because we want to you know make sure that we give a global perspective in our study. Secondly, what would happen if validated selected bits later? And then thirdly, what the payoff profile looks like, right? So you want you want the expected reward, and then you want the distribution of the expected reward. This the final result of that should be a distribution graph of expected rewards, and that's coming up. Um yeah, so network-wide distribution of bid selection time.
I won't spend too much time in this slide, it's mainly data. Feel free to to look at the uh the study to get a feeling with more depth. But here we basically have like median is 240 milliseconds, you know, in slot time. Somebody would would tend to select a bid, and then of course the details are significant, right? This is a decentralized network after all. And then on the right, you see the cumulative probability, and there you know, like if you look at try to pinpoint 50%, that might be something around like slightly below 500 milliseconds slot time is is when uh half of the validator set would be expected to have selected the bids already. Um then what's the theoretical increase if we were to wait longer?
Uh let's say we delay up to 950 milliseconds, and the reason we would delay up to 950 milliseconds is that that is the default timeout parameter in methBoost. So if a relay um uh is slow to come back with a bid and you cross 950 milliseconds slot time, meth boost would shut down the you know that that process, right? And you would fall back to the bits of other relays or proposing a vanilla block. So with that, okay, this seems to there seems to be social consensus around this particular threshold. Let's see what happens if everybody delays up to that threshold, right?
And here I think the the graph is probably more descriptive than you know what I can what I can do in words here. But um, yeah, I mean the one thing to note is the tail is quite fat, right? So it can go up to let's say 30% MEV increase per blocks in very rare instances, but really you would expect it to land somewhere in the lower single digits, right? And the cumulative uh probability distribution on the right just illustrates that in another form. Uh now, thirdly, the per block MEV distribution, as I mentioned before that we want to we want to generate a payoff profile from timing games. This is the same graph.
On the left it's zoomed out, and then on the right it's zoomed in. And I think the upshot here again is you know the proposal MEV reward per block. Uh in expectation, yeah, let's let's say 90% of the time comes out at 0.6 Eve or or below, which is by the way, one of the reasons why there's a big discussion about uh how much uh collateral a proposal would need to put up for pre-confirmations, and one of the Justin Drake proposals was that one Eve would be sufficient because it covers the vast majority of blocks, and then people could take out insurance, but this is a tangent, let's continue with uh with uh timing games. Um, and then finally, the upshot from this analysis is uh we get a different payoff distribution depending on how big a node operator is.
That's just a lot of large numbers, right? The more often you run a trial, the more it tends to coalesce uh around the true value. So let's assume uh a node operator with a voting power of 13%. That is on the left here. Here we have an expected increase of MEV increase of let's give it around 6%, the exact number in the paper. And then if you have a node operator with just 1% of the voting power, the expected increase is not so different, but the tails are way fatter. And the main upshot of that is that the second node operator runs a lot more variance.
And that can have some negative consequences. There are returns to scale here. And I'll come back to that a little bit later. But let's let's first talk about our uh timing game setup. Uh again, it's called a Dagro. Um we started testing this in early 2023. Uh so we we kind of kicked off the the prisoners that lamber for node operators to to some extent. If somebody here is another node operator that was then forced to play timing games, apologies. Um what a DAGO does is it's basically an optimization across several vectors, right?
The simplest possible way of playing a timing game is you fork math boost, and you have a one-liner in there which says, you know, sleep for however many milliseconds you feel comfortable with, and then solicit the header from the relay. But this is a very naive way of going about it. Uh, my argument here is that the math boost fork is actually downstream, and the true value add of timing games is generated around optimizing network hardware and to some extent kernel processes, right? Where that makes sense.
So let's say I want to give a few specific examples. Uh, you have peers in your consensus client. Yeah, what what what kind of peers are those, right? I mean, you you would have to opinionate it about something like that. Or uh what hardware does your node run on? What does that mean about the pro inherent processing speed? Um, these are all things to where value is generated, and then the math boost fork is just a way of capitalizing on that value, right? So you won't get out of it without an information edge.
Um, another point I want to make here is that keeping idiosyncratic risk low is important. So, for example, you could do something like where you say, well, I'm not gonna ask the relay for a block at the end of the slot, I'll just ask it continuously and then I'll take the best block. And the reason why you might want to do this is because there's something called cancellations, right? It could be the block value doesn't always go strictly up, sometimes people cancel bits, which means that it could could go down slightly. But with something like that, relays generally don't like it very much when you query them multiple times. There are some exceptions.
And and so here, you know, if you look at the curve, how often does the block value really go down? Well, not so much. So, why run this type of idiosyncratic risk, right? So here it's maybe a little bit adjacent to what somebody would do in trading where you want to have a risk return lens. And then the last point here, we actually managed to beat our theoretical revenue estimate uh significantly. And the reason for that is because we outperformed the parameters we assumed for the network uh on the network and latency optimization side of things, right? So, of course, uh the general case we looked at before doesn't apply if you are more informed about uh latency optimization.
Um feel free to track these results live. We just came up with a dashboard, it's at adagor.chorus.1. Uh here's a graph that you would see there, which is basically the improvement from our uh setup versus a vanilla MEV boost setup. Uh what it does, it it compares you know the bit that we end up going with versus the bit that we would have had uh had we not played or engaged in timing games. And the methodology is quite robust in that we we reconstruct the full auction, right? So we query every single relay for the bit it would have had at another point in time, and then we make a comparison.
And this website also has a few other stats, for example, on Vinning relays, and we'll we'll extend it some more as as well. Um yeah, so I think maybe a good way of continuing this type of empirical discussion is by describing the initial iteration of Hadjo, which is open because we we want to be transparent about the the way our setup works. And here again, detailed uh explanation in the paper. In short, we have several setups for different relays, uh the way the diverges on the latency parameter, and then we we we tested out what happens in terms of bit value from each of these relays, right? Um, so the standard setup, what you would typically see is the series of box plots on the left here, and then on the right is what the first iteration of Hadarjo uh produced in terms of when we receive blocks from uh these different relays.
I think the main point to make here is just look at the center of the boxes on the left. It's kind of you know it's it's somewhat far apart, and then if you look at the center of the boxes for the adagro setup, it's pretty close together. And the reason is you want each relay to come back with the bid at the same time, so you have the most competitive possible auction, right? So this is one thing to optimize for. You want relays to come back at approximately same the same time, so you need to understand the inherent latency and you need to have a custom parameter uh for each. Um yeah, and then what happened is already the pilot beat the expectation on risk and return.
Um the reason return is the uh box for the pilot is above the box for the wider network, and the the risk lenses distribution is is way tighter, right? Uh, which is uh something that's uh desirable as well. Um yeah, this is just showing that in other words. You might remember the the graphs before on the MEV increase per block. Uh Adagro is the green line. Uh they seem to be quite close together when you look at it from a distance, but the green line is consistently uh above the theoretical expectation, the blue line, which uh brings me to the risk point again. Okay.
Uh yeah, so I think there's five minutes left. So let's let's talk a little bit about the externalities. One thing that happens, I mentioned that as the PBS auction goes on, you have more transactions that are available to be put into your block. Well, the upshot of that is uh you earn more because the transactions are in your block, but they're not in the next guy's block. Um, and what that means is that it's substantial fundamentally a zero-sum game, right? Whoever plays timing games kind of takes a little bit of a share out of the next proposal, and there's an upshot around blobs as well, which I discussed at the Titan panel. That's specifically the fact that if you're very late in the slot, you might not want to take a block with blobs, because then it's too big and you can't get it past the attestation committee in time.
Second externality is related to that. Well, if a block is really full, the base fee is going to increase, which means that the rate of burned if increases. So actually, the next node operator also has a higher base fee. So less uh rewards accrue to the next node operator because proportionally more if if is burned. So again, to the point zero sum game. And then if you were to plot this out, the increase in burned Eve, well, I mean it's not highly significant, but it definitely is there. And it would settle somewhere around you know, between like zero and one percent percent increase due to due to timing games.
And there's a one percent probability that the increase exceeds five percent, which brings me to the next point. If you're a big node operator, you know, like this one percent probability that there's a big increase. Uh, you see it sometimes, but it really gets moved out by the law of large numbers. But if you're uh if you're a small node operator and you run into something like that once, it skews your skews your payoff profile, right? So generally, as a big node operator, you tend to be on a side of the risk, uh risk return spectrum that's more attractive. Um, so there's a centralization vector here.
I think that's discussed plenty. Uh smaller node operators are exposed to more exposed to more variants, and then the second thing is if you're a big node operator, you just have a lot more data, which means you can be a lot uh a lot more targeted about finding a latency parameter, okay. Upshot is if you're a node operator, you have to play timing games because it's a that's a matter of uh strategic necessity, which is also a point that we we make uh in the paper. Um yeah, and then let's conclude by talking a little bit about pre-confirmations. Uh we have uh some new research out, and that is about uh pre-confirmations that guarantee top of block inclusion.
If somebody is not familiar with that, uh pre-confirmation is basically saying uh I, as the validator uh commit to including a given transaction when I propose my next my next block. And if that inclusion were to happen at the top of the block, what would mean is that if I'm a statistical arbitrarure, you know, maybe it's interesting, right? Because I want to be at the top of the block. Otherwise, the arbitrage opportunity is gone if there is someone else before me. So let's say we have two auctions now. We have a PBS auction and we have an earlier priority top of block auction. What can a validator do with this information?
Well, one thing you can do is uh you run the pre-confirmation auction, but then in some percentage of cases, you do not actually issue the preconfirmation. And what happens is that uh statistical arbitrators start bidding, and as they bid, they reveal more about the true value of their bid, right? The bid goes up over time, and then if they are not issued the preconfirmation in the end, uh they have to go into the standard auction into the BBS auction, but they've already revealed a little bit about their true value, which means that they start at a lower at a higher floor bit in the actual PBS auction, and that increases your expected your expected return, right? There's a very, you know, this is a very volatile space still.
A lot depends on implementation. So these are just some early faults, maybe a way of thinking about this stuff in information terms. But we'll have more out soon, so stay tuned. And I think the time is up. Not sure if we have time for questions. The time is up, yes, but actually, this is the last uh talk after the break, so you can make question guys. There is no not much issue. We cannot extend a lot, but yeah. Go ahead. Um yeah, thank you for the presentation. Very interesting.
Um, I'm wondering what is your opinion on if block times they decrease to two seconds or versus increase to one minute both for pre-comps and without pre-comps for MEV structure extraction. Yeah, definitely. So let me approach this question from a timing games angle. Uh one thing I mentioned in an earlier slide is that it really is an optimization over network latency, hardware latency, and so on, right? So let's say in absolute terms, and this is just a random number. Let's say we can't be 100 milliseconds faster than somebody, right? Um, then if you have a 12-second block time, okay, so we have 100 milliseconds over 12.
That is the relative size of our advantage, right? And then if we have the block time, say what happens is that the relative size of our absolute the size of our absolute advantage relative to the block time essentially doubles. And the upshot of that is while with shorter block times, MEV tends to get smaller, and the reason for that is that the divergence between, let's say, a centralized exchange price and an on-chain price tends to increase more over time. MEV tends to go down if if block times go down. But specifically in the timing game context, the advantage you get out of a latency optimization gets larger.
So I would say one upshot here is MEV generally down, relative edge through table playing timing games goes up. Okay, so just to clarify, so if you were saying like two to five percent uh increase if you are specialized with the current block time, if you reduce the block time by five, then you have five X extra increase expected. Yeah, I think that's I think that's a little bit hard to say because again this these things are not totally linear. So not super opinionated about it. But in general trends, I would say overall MEV extraction, you look at it from an aggregate level goes down.
Uh relative advantage to somebody that's good with timing game goes up. Magnitude, I've I would have to give a very wide confidence interval on this. So yeah, maybe we'll follow up in the future and publish something around this. Any other question, guys? No one? One, thank you so much. Oh, okay. Can you explain what base rollups are and what the connection is with pre-conformations? Yes, certainly.
So for a context for the audience, this is our CEO. And uh and uh so a base rollup is basically a roll up that uses the validator set of the L1 as a sequencer, right? And it's very early in that process. Uh there's some experiments around, you know, Tyco probably is pushing the envelope quite a bit. There's other projects as well, Spire is another one that's raising at the moment. And so the general idea is just that. The rollup does not have its own sequencer. Instead, it goes to the validator on the L1 and it says, please sequence my blocks.
There's a couple of consequences from that. One consequence is that every time there is an a block on the L1, the base rollup needs to submit a block, a blob into that block on the L1, right? To stay up to date because the sequencing happens on the L1. And then one consequence from that is if your base rollup doesn't have a lot of transactions, you still always need to s submit the L1 blob, which means that you you end up running at a loss and still you actually have a lot of demand for your block space. Okay.
Now how do pre-confirmations come into this? Let's say you're on another L2, something like Arbitrum at the moment. There's a single sequencer. And so the sequencer has a lot of authority, right? It can come in and it can say, well, there's your transaction. I'm gonna put it in. So I'm happy to tell you this, even though I didn't yet commit to the L1 and is not finalized and so on. But I'm pretty certain that this is where your transaction is gonna come in. And then the base rollup in the base case can't really do that because they have, you know, they have to rely on the L1 to sequence it. But if you have pre-confirmations, you can make another jump and you can go to the to the L1 proposal, slash sequencer, and you can say, hey, can you do something that's a little bit to what the arbitram sequencer does?
Just tell the user that you intend to put their transaction in during the next block. And then the upshot of that is that on the based rollup, you get uh you get a transaction inclusion time that's approximately comparable to what you could get on another rollup through pre-confirmation. So this is the connection here. But that seems like it would only work if, like. I mean, I I get that that sort of makes sense if like the particular proposer participates in this thing, but would you need to have like all the validators participate in this whole thing? Or like could this be something like oh only some of them do it?
Yes. So if you're the based rollup, you want all of them participating. Uh let's say you have three cases, right? One case is nobody participates, then the other case is well, some participate, and then let's say the third case is everybody participates, right? What happens when nobody participates is you're gonna have to wait 12 seconds for your transaction to be confirmed on the based rollup every single time. If some participate, sometimes you might get it a bit earlier, right? And then if everybody participates, you have a lot more of a snappy experience, right? So it's not something that would break the based rollup, per se, if not everybody participates in it, but it's gonna break it more on a moral level, right?
Because then the user experience is a lot worse than it would be on a non based rollup. And by the way, one other thing around based rollups is of course we would expect transaction costs to be a bit more expensive because it needs to publish blocks much more often. Thank you so much. Thank you.
Related talks
- Shapella mainnet date, Arbitrum token and more - The Daily Gwei Refuel #551 - Ethereum Updates
- The Blockchain Trilemma - ETH Vs SOL Vs ATOM with Mike Ippolito
- L2 Specific MEV Mitigation Strategies
- Social Slashing by Eric Wall | Devcon Bogotá
- Proof of Stake: ¿Cómo funciona?
- A preview of MEV and mev-boost for validators with Remy, Yorick and Ladislaus
- What's new in Eth2 Edition 99 - 12 August 2022 with Ben Edgington and superphiz
- What's new in Eth2 - 11 March 2022, Edition 89, with Ben Edgington and Superphiz
- Meetup #17 - Ethereum Consensus Layer - Ricardo Santos