ciamac moallemi Profile Banner
ciamac moallemi Profile
ciamac moallemi

@ciamac

Followers
2,313
Following
1,377
Media
33
Statuses
312

professor @Columbia_Biz / research advisor @paradigm / interested in stochastic control, quantitative finance, market microstructure, blockchain

new york city
Joined February 2009
Don't wanna be here? Send us removal request.
Explore trending content on Musk Viewer
@ciamac
ciamac moallemi
1 year
1/ New paper “Automated Market Making and Arbitrage Profits in the Presence of Fees” by @jason_of_cs @ciamac @Tim_Roughgarden
Tweet media one
6
107
504
@ciamac
ciamac moallemi
7 days
Just posted video of my talk on "DeFi in the MEV Era" at the recent @Paradigm research workshop. 🧵
7
29
206
@ciamac
ciamac moallemi
3 months
The two most popular mechanisms for onchain trading are AMMs and Dutch auctions. Both leak MEV to arbitrageurs. For AMMs, this is now well understood as loss vs rebalancing (LVR). What about Dutch auctions? New paper with @danrobinson 🧵
Tweet media one
7
41
194
@ciamac
ciamac moallemi
6 months
I'm thrilled to be working with @danrobinson and the rest of the team at @paradigm !
@danrobinson
Dan Robinson
6 months
Thrilled to have @ciamac join @paradigm as a Research Advisor! @ciamac is a Columbia finance professor and quant who is one of the sharpest and most practical researchers I've met He coauthored the LVR papers, which set the gold standard for influential academic DeFi research
6
12
144
11
9
118
@ciamac
ciamac moallemi
6 months
New paper alert! We propose a novel AMM design that seeks to address two interrelated questions (1) how should an AMM set the trading fee? (2) How can an AMM mitigate LVR / liquidity provided losses to arbs.
@danrobinson
Dan Robinson
6 months
Introducing the auction-managed AMM! A new AMM design that: ⚖️ Reduces LVR ⚙️ Optimizes swap fees 📈 Smooths LP returns 🌊 Should attract higher liquidity than any fixed-fee AMM New paper with @ciamac ( @paradigm / @Columbia_Biz ) and @AustinAdams10 @saraareynolds ( @Uniswap )
Tweet media one
24
124
635
3
7
67
@ciamac
ciamac moallemi
1 month
Interesting discussion between @0x94305 and @AndreaCanidio , both of whom are experts and have thought deeply about DEX design, on evaluating the real-world performance of @CoWSwap AMM. Two questions I'd like to discuss: 🧵
@AndreaCanidio
Andrea Canidio
1 month
@0x94305 I think to evaluate a new type of AMM, you need to check whether LPs make more money by LPing in the new AMM than the alternative. The rest is an interesting intellectual exercise.
1
1
12
1
11
49
@ciamac
ciamac moallemi
28 days
I’m excited to be helping Hyperbolic design economics and incentives for decentralized AI!
@hyperbolic_labs
Hyperbolic
28 days
We are thrilled to announce a $7M raise to become the leading Open-Access AI Cloud 🤘🏼🌪️ At Hyperbolic, we’re building an open AI ecosystem and economy where everyone who contributes is rewarded. Our goal is not to merely optimize AI performance to compete with traditional Web2
138
307
774
8
4
46
@ciamac
ciamac moallemi
10 months
Come work with @Tim_Roughgarden and I! Details below 👇🏼
@Tim_Roughgarden
Tim Roughgarden
10 months
. @ciamac and I are looking for a postdoc to work with us @Columbia , details at
0
10
25
0
3
24
@ciamac
ciamac moallemi
8 months
It's a sad time to be a @Columbia faculty member. Abandoning principles of academic free expression, our administration has decided to double down on censorship and McCarthyism under a pretext of "safety". @NadiaAbuElHaj1 explains:
2
8
29
@ciamac
ciamac moallemi
9 months
Some thoughts on DEX-CEX MEV and blocktimes .... 1/N
@ThogardPvP
Thognad | Permissionless Arc
9 months
Longer block times lead to less CEX/DEX MEV per second but more atomic MEV per second. I’m aware that the profit formulae imply otherwise, but looking at just the math misses the sequential nature of the availability of information. 1/5
7
2
41
2
0
29
@ciamac
ciamac moallemi
1 year
New version of our paper on the economics of liquidity provision in automated market marking, clearer conceptual presentation along with some empirical results 👇🏼
@alz_zyd_
alz
1 year
So @jason_of_cs , @ciamac , @Tim_Roughgarden and I posted an update to our paper on automated market makers and loss-versus-rebalancing! Here's the abstract and link!
Tweet media one
13
44
204
0
0
14
@ciamac
ciamac moallemi
1 year
Excited to be chatting with @xin__wan and @AustinAdams10 @Uniswap
@Uniswap
Uniswap Labs 🦄
1 year
Diving deeper into data gives us the bigger picture. Tomorrow, our data researchers, @xin__wan & @austinadams10 will sit down with Columbia Professor @ciamac to discuss is work at Columbia, dark pools, impermanent loss, and more 👀
Tweet media one
21
16
90
0
0
17
@ciamac
ciamac moallemi
2 years
Register/apply now for the Columbia Crypto-Economics Workshop on 12/1! Hosted by @Columbia and @ethereum , and organized by @Tim_Roughgarden , @drakefjustin , @barnabemonnot , @dannyryan and myself.
Tweet media one
1
9
25
@ciamac
ciamac moallemi
11 months
New research drop, joint with @DavideCrapis and @Qiaoqiao2001 👇🏽
@DavideCrapis
Davide Crapis
11 months
🚀 Optimal Dynamic Fees for Blockchain Resources: Introducing a new framework for designing dynamic fee mechanisms for multiple network resources. (Codename: Endgame 1559) Joint work with @ciamac and @Qiaoqiao2001 from the DRO division at Columbia GSB. TL;DR & link in 🧵👇
5
18
89
0
1
17
@ciamac
ciamac moallemi
10 months
Why not show users loss-versus-rebalancing? Fees-LVR accurately estimates (delta-hedged) liquidity provider P&L. It's actually not difficult to account for.
@orca_so
Orca ☀️
10 months
3/ Today, historic price, volume, and token info are scattered across different sources, and it's difficult to account for liquidity depth and divergence loss. That changes today. Inspired by a trading terminal, the Liquidity Terminal places data LPs need at their fingertips.
Tweet media one
2
2
22
2
2
16
@ciamac
ciamac moallemi
4 years
800K doses delivered, 337K used, leaves 463K doses remaining. Of these, 253K are needed for dose 2. That leaves 210K remaining. NYC is doing 25K/day of dose 1.That leaves about 8 days of supply. OTOH If they are proactively holding back dose 2, that leaves about 4 days of supply.
2
5
20
@ciamac
ciamac moallemi
1 year
2/ The goal is to understand the impact of fees on arbitrage trading against AMMs, and use this as quantitative guidance to understand how to set fees and how to design AMMs to minimize the MEV extracted by arbs and tradeoffs therein.
1
0
21
@ciamac
ciamac moallemi
1 year
13/ This is consistent with the observations of many (e.g., @0x94305 @MaxResnick1 ) that faster blocks are an easy way to mitigate DEX MEV, perhaps at the cost of reducing decentralization.
1
1
21
@ciamac
ciamac moallemi
1 year
5/ Under the assumption of Poisson block generation, our first result is to solve for the steady state distribution of the DEX-CEX mispricing, which follows a jump diffusion process. This allows us to quantify the probability of the no-trade region.
Tweet media one
1
1
19
@ciamac
ciamac moallemi
2 years
This is an interesting question! My intuition is that arb profits/LVR in an AMM can be viewed as a (liquidity weighted) continuously sampled realized variance. Some geometric intuition for that below.
Tweet media one
@0x94305
Alex Nezlobin
2 years
Let me try to settle the question of block times and profits of CEX-DEX arbitrageurs. Arbs' profits are LOWER but LESS volatile with shorter block times. LPs' losses to arbs thus are also lower but more certain when blocks are produced faster... [1/n]
5
1
34
1
3
18
@ciamac
ciamac moallemi
11 months
@akbarpour_ It’s because economists have less institutional loyalty and are more willing to entertain outside offers and change universities.
2
0
18
@ciamac
ciamac moallemi
1 year
6/ We show that, if fees are gamma and mean interblock time is Delta t, the probability that a block contains a trade (the probability of being outside the no trade region) takes a simple form:
Tweet media one
1
0
17
@ciamac
ciamac moallemi
1 year
3/ The starting point is LVR, i.e., how much do DEX LPs lose to DEX-CEX arb in an idealized setting, trading in continuous time (no discrete blocks) and with no trading fees
1
0
17
@ciamac
ciamac moallemi
3 months
@jason_of_cs @Tim_Roughgarden and myself are doing a virtual tutorial on "Automated Market Makers and Loss-versus-Rebalancing (LVR): a Deep Dive into Decentralized Finance", as part of Preview Week for @AcmSIGecom EC 24
Tweet media one
1
2
16
@ciamac
ciamac moallemi
4 years
@lpachter @lexfridman And how can he interview Joscha Bach @Plinz with no mention or discussion of his long term funding and support from pedophile Jeffrey Epstein?
0
0
15
@ciamac
ciamac moallemi
1 year
4/ What happens when we incorporate discrete block generation and trading fees? Both are frictions that impact arbitrage trade. Fees create a “no-trade” region, where although the DEX and CEX prices differ, the mispricing does not exceed the fee and hence arbs don’t trade.
1
0
16
@ciamac
ciamac moallemi
4 years
@paulg Yes, you are following noise. PredictIt prices didn't even satisfy basic arbitrage relationships. There are too many fees/restrictions and basically no professionals in this market, pure noise trading.
0
0
14
@ciamac
ciamac moallemi
1 year
@rithvikra0 @theshah39 18/ h/t to @0x94305 , who has worked on similar results
@0x94305
Alex Nezlobin
2 years
1/ I promised a while ago a thread on how the losses of Uniswap LPs to arbs depend on fees, volatility and block times. But then got distracted - first with markouts, then Curve stablecoin, then FBAs, and then a Twitter space on AMMs. Time to return to the topic eternal...
7
22
145
1
0
14
@ciamac
ciamac moallemi
10 months
@MarketUrbanism Tourists are a big problem in NYC, IMO. They impose congestion and other externalities. Maybe fewer tourists would be better, the city should optimize for it's residents.
23
0
13
@ciamac
ciamac moallemi
10 months
Apply now to attend, or submit a proposal for a talk
@Tim_Roughgarden
Tim Roughgarden
10 months
Tweet media one
3
12
81
1
1
9
@ciamac
ciamac moallemi
1 month
Nice to see progress on making Uniswap v3 data more accessible!
@shadowxyz
Shadow
1 month
🦄 Introducing In collaboration with the good folks at @Uniswap , we've built a dashboard powered by Uniswap v3 shadow events Showcasing an example of the types of data-rich apps that are easy to build with Shadow
Tweet media one
13
36
292
0
0
14
@ciamac
ciamac moallemi
1 year
END
3
0
10
@ciamac
ciamac moallemi
1 year
17/ One way to think about the choice of fee is through the framing of @rithvikra0 and @theshah39 : fees create a tradeoff between losing money to arbs and the accuracy of the pool prices.
Tweet media one
1
0
13
@ciamac
ciamac moallemi
2 years
The second talk from the Digital Finance Seminar Series @Columbia_Biz has been posted. Watch @ObadiaAlex and @0xQuintus from Flashbots talk about "Why You Should Care About Maximal Extractable Value (MEV)":
0
2
13
@ciamac
ciamac moallemi
1 year
7/ This probability depends on the fee measured in units of typical return (stdev) over half the interblock time. When fees are high or the interblock time is low, it becomes less likely that arbs can profit on any given block. For example:
Tweet media one
2
0
12
@ciamac
ciamac moallemi
4 years
Apparently too few citations in the work of @timnitGebru is a fireable offense at @GoogleAI . Why was she not allowed to see the review? Why not just admit she was fired? This statement makes no sense because it is PRed+lawyered nonsense.
@JeffDean
Jeff Dean (@🏡)
4 years
I understand the concern over Timnit’s resignation from Google. She’s done a great deal to move the field forward with her research. I wanted to share the email I sent to Google Research and some thoughts on our research process.
656
195
2K
0
2
12
@ciamac
ciamac moallemi
1 year
11/ Note that there is an interesting discontinuity here: when fees are zero, arb profits are basically LVR — they do not vary much with the interblock time.
1
0
11
@ciamac
ciamac moallemi
1 year
12/ On the other hand, once fees are even slightly positive, arb profits scale with sqrt(interblock time) and shrink to zero with faster blocks.
1
0
11
@ciamac
ciamac moallemi
1 year
8/ Our main result is to compute arb profits in closed form for general CFMMs.
1
0
10
@ciamac
ciamac moallemi
1 year
16/ This split is precisely quantified by our model.
1
0
10
@ciamac
ciamac moallemi
1 year
15/ Though LVR was developed assuming no fees and continuous trading, even with fees and discrete blocks, LVR is roughly the profit gross of fees of arbing the pool. Introducing fees simply changes how LVR is split and who earns it (arbs or pool LPs).
1
0
10
@ciamac
ciamac moallemi
1 year
10/ This approximation is very accurate for typical parameter values.
Tweet media one
2
0
10
@ciamac
ciamac moallemi
1 year
9/ The formulas simplify when fees are low and blocks are frequent (the “fast block” regime), in this case arb profits are simply LVR scaled down by the probability of trade.
Tweet media one
1
0
10
@ciamac
ciamac moallemi
3 months
We show how practitioners can trade off speed and quality of execution by parameterizing the auction’s starting price and decay rate based on the block time, the asset’s volatility, and uncertainty about the asset’s fair value, determining an efficient frontier.
Tweet media one
1
0
10
@ciamac
ciamac moallemi
4 years
@arindube The fundamental problem is we get one observation every four years. This is not a “big data” domain and fancy ML is unlikely to help.
0
0
9
@ciamac
ciamac moallemi
8 months
@MaxResnick1 @PossibltyResult @0xkydo @colludingnode @aeyakovenko @crainbf @gakonst @evansforbes Yes, having a fee/spread is very important also. If there is no fee, to a first order, arb profits per unit time don't depend on block times.
0
0
5
@ciamac
ciamac moallemi
3 months
Good explanation of why LP returns improve with faster block times
@TheiaResearch
Felipe Montealegre (IFS)
3 months
1
2
22
1
0
9
@ciamac
ciamac moallemi
7 days
I also discuss the pros and cons of different practical mitigation strategies being developed: 1. faster blocks 2. dynamic AMMs 3. ex post auctions 4. ex ante auctions
2
0
8
@ciamac
ciamac moallemi
3 months
Check out the paper!
0
1
8
@ciamac
ciamac moallemi
3 months
Thus, the seller should expect to sell the asset at a discount, with the profits going to MEV. We call this loss vs fair (LVF). It is analogous to LVR in AMMs. @jason_of_cs @Tim_Roughgarden @alz_zyd_
1
0
8
@ciamac
ciamac moallemi
1 year
14/ We also observe that, in the fast block regime, (arb profits net of fees) + (fees paid by arbs to the pool) ≈ LVR
1
0
8
@ciamac
ciamac moallemi
1 month
SUMMARY: There are some nuances and design choices in doing a markout analysis, but markouts (or some other delta-hedged P&L analysis) are crucial in evaluating any trading mechanism! END
1
0
8
@ciamac
ciamac moallemi
2 years
@guil_lambert @jason_of_cs @Tim_Roughgarden @AnthonyLeeZhang Hi, we work out Uniswap V3 and the general case in the paper. It's just not well sized for a tweet. Appreciate the references though.
2
0
8
@ciamac
ciamac moallemi
7 days
I give an overview of the high level theory behind DeFi MEV, namely loss-versus-rebalancing (LVR) for AMMs and for Dutch Auctions, and how it relates to block times and multi-block MEV.
2
0
8
@ciamac
ciamac moallemi
3 months
We build on earlier work quantifying arb profits / LP losses for AMMs with Poisson block generation and with asset prices following geometric Brownian motion.
1
0
7
@ciamac
ciamac moallemi
1 year
@ciamac
ciamac moallemi
1 year
1/ New paper “Automated Market Making and Arbitrage Profits in the Presence of Fees” by @jason_of_cs @ciamac @Tim_Roughgarden
Tweet media one
6
107
504
0
0
7
@ciamac
ciamac moallemi
3 months
For example, if volatility σ=5% (daily), decay rate δ=1bp/sec, and average block time Δt=12 sec, LVF is about 13bp. This would mean that for every $100 worth of tokens that they sell, the seller should expect to get about $99.87.
2
0
7
@ciamac
ciamac moallemi
3 months
In an onchain Dutch auction, the true market price of the asset at the time a block is created may be higher than the price offered by the auction, due to the decay of the Dutch auction price and the drift and volatility of the asset.
1
0
7
@ciamac
ciamac moallemi
3 months
Excited to be participating in this workshop!
@tarunchitra
Tarun Chitra
3 months
Enjoyed @thelatestindefi ? Want to see what algorithmic game theorists think about DeFi? Submit a paper to the EC24 DeFi workshop! We'll have some fun keynotes from @Tim_Roughgarden and @ciamac
0
2
18
0
1
7
@ciamac
ciamac moallemi
3 months
We show that as long as the auction starts above the current price, LVF, the loss as a fraction of the asset’s fair value, is given by the formula:
Tweet media one
1
0
7
@ciamac
ciamac moallemi
1 month
But bear in mind when you start looking at unhedged measures of LP profitability, you are introducing market risk into your calculations, and this is extremely noisy and less likely to be predictive of future outcomes.
1
0
7
@ciamac
ciamac moallemi
4 years
@benedictevans FB is not under any obligation to sue these specific academics in this instance. They are choosing to do so and the most likely explanation is not that they suddenly care about privacy.
3
0
7
@ciamac
ciamac moallemi
3 months
Our results illustrate how characteristics of the blockchain — particularly the average block time — impact efficiency. To support Dutch auctions that lose less than 2bp for assets with daily volatility of 5%, block times of less than 2.75 seconds are needed.
1
0
7
@ciamac
ciamac moallemi
1 month
As @0x94305 observes, and this is closely related to P&L after delta-hedging: LVR isolates profit and loss from participating in the DEX from profit and loss because token price went up (or down).
1
0
6
@ciamac
ciamac moallemi
1 year
Videos for the Spring 2023 edition of @Columbia Digital Finance Seminars Series co-organized by myself and @AgostinoCapponi have been posted! @Columbia_Biz @CUSEAS 👇 1/N
1
0
6
@ciamac
ciamac moallemi
1 month
The solution is to try multiple offsets and check that the results are robust. We did this in the LVR paper, in a delta-hedged P&L analysis of UniV2 WETH-USDC, and found that the time offset/delta-hedging interval didn't matter so much from 4 hours down to 1 minute.
Tweet media one
3
0
6
@ciamac
ciamac moallemi
12 days
Good riddance!
@Columbia
Columbia University
13 days
Minouche Shafik Steps Down as President of Columbia University
Tweet media one
0
247
789
0
0
6
@ciamac
ciamac moallemi
1 month
Does LVR capture everything? No, especially when LPs are not hedging their market risk. Other approaches may be helpful and complementary also.
1
0
6
@ciamac
ciamac moallemi
3 months
We also consider the expected time-to-fill (for regular Dutch auctions) and the expected sales rate (for continuous Dutch auctions), and derive closed-form expressions for these.
1
0
6
@ciamac
ciamac moallemi
4 years
@matthew_d_green Meeting Owl
1
0
5
@ciamac
ciamac moallemi
1 month
Q1. Are markouts the right tool for evaluating LP profitability in a novel DEX such as CoW AMM? Q2. How to define the reference/fair price (on-chain prices vs. binance prices, whether and what time offset to use, etc.)?
1
0
5
@ciamac
ciamac moallemi
1 month
Q1: Absolutely yes! Markouts are very intuitive and get at the LVR for *any* trading mechanism. If you are LPing in a DEX (AMM, LOB, or whatever), a very natural question is are you trading at "fair" prices?
1
0
5
@ciamac
ciamac moallemi
1 year
@ConorMcMenamin9 @0xEzon @danrobinson I'm not sure this answers the question, but if there are no fees, LVR (per unit time) is (to a first order) independent of the block time. If there are fees, LVR scales with sqrt(block time), and faster chains experience less LVR.
3
0
5
@ciamac
ciamac moallemi
7 months
0
0
5
@ciamac
ciamac moallemi
4 years
0
0
5
@ciamac
ciamac moallemi
9 months
with more realistic price processes, but maybe with a different functional dependence. Link to paper with @jason_of_cs and @Tim_Roughgarden END
0
0
4
@ciamac
ciamac moallemi
1 month
We can quibble about the exact nature of the markout (and I will in a moment), but I think ***some type of direct LVR analysis*** (be it markouts, or delta-hedged P&L) is fundamental and IMHO first line of analysis in looking at a DEX.
1
0
5
@ciamac
ciamac moallemi
10 months
@MarketUrbanism Sure, but many more don't. Policy shouldn't over index on those who work in tourist related industries, they are fewer but louder.
7
0
5
@ciamac
ciamac moallemi
9 months
Check out the whole series, a joint collaboration between @OwlExplains and @CBER_Forum :
@AvaLabs
Ava Labs 🔺
9 months
Crafting the Crypto Economy is hosted by @CBER_Forum members Fahad Saleh, a Professor of Finance at Wake Forest University, and Andreas Park ( @financeutm ), a Professor of Finance at the University of Toronto.
1
6
12
0
1
5
@ciamac
ciamac moallemi
9 months
@bertcmiller Indeed a fun challenge! How about this: draw a graph with bundles as vertices, and an edge between bundles that share a transaction. Each "permutation" is an independent set:
1
0
5
@ciamac
ciamac moallemi
4 years
Great conversation with @bilalhafeez123
@bilalhafeez123
Bilal Hafeez
4 years
I had a great chat with super-smart @ciamac on quant investing, the pros and cons of machine learning and how to think about trading frameworks from time horizons to costs. Oh and we talk bitcoin too :)
0
3
6
2
1
5
@ciamac
ciamac moallemi
1 month
Q2: For the markout price, it's best to use a reference price with the most liquidity and smallest spreads. For WETH/USDC, Binance prices are better than using on-chain UniV3 prices, but I agree with @0x94305 that this difference is not likely to be large.
1
0
5
@ciamac
ciamac moallemi
1 month
As @AndreaCanidio observes, though, adding too much delay can add noise. So, it's a classic statistical bias-variance tradeoff.
1
0
5
@ciamac
ciamac moallemi
2 years
Video to be posted shortly!
@Nikos_Papadis
Nikos Papadis
2 years
On December 1, I had the opportunity to participate in the @Columbia CryptoEconomics Workshop, co-organized by @ethereum . Great presentations and discussions, congratulations to the speakers and the organizers @ciamac @Tim_Roughgarden @drakefjustin @barnabemonnot @dannyryan !
0
1
9
0
0
4
@ciamac
ciamac moallemi
1 month
This is the heart of loss-vs-rebalancing (LVR): the "rebalancing" strategy does the same trades as fair prices, and hence LVR is conceptually a comparison between actual trades done and hypothetical trades at fair prices.
1
0
4
@ciamac
ciamac moallemi
11 months
@akbarpour_ In other words, they are better at gaming the academic job market.
1
0
3
@ciamac
ciamac moallemi
1 month
This is ***especially*** true for a DEX that is marketed as MEV-capturing and LVR-reducing.
1
0
4
@ciamac
ciamac moallemi
9 months
The model in our paper is written as if the arb hedges on the CEX after each DEX trade. That said, I suspect it's optimal not to hedge on the CEX per trade at all. Instead, the CEX price is viewed as a "signal" for when to trade on the DEX and how much.
1
0
4
@ciamac
ciamac moallemi
4 months
Among other policy decisions, the @Columbia administration appears to have illegally evicted students.
@DavidFBrand
David Brand
4 months
Three Columbia students sued the school in housing court saying they were illegally locked out of their dorms after being arrested or issued a citation at pro-Palestine protests Story by @ramseykhalifeh for @Gothamist - @WNYC
18
437
2K
0
0
4
@ciamac
ciamac moallemi
8 months
@PossibltyResult @0xkydo @colludingnode @aeyakovenko @crainbf @gakonst @evansforbes For a small price change, the arb profit or LP loss scales with the square of the price change. This diagram illustrates it. So in your example, if the price moves the same direction in both intervals, the arb is better off trading only at the end of 12s.
Tweet media one
2
0
4