# Towards Event-Aware Forecasting in DeFi: Insights from On-chain Automated Market Maker Protocols

arXiv: https://arxiv.org/abs/2604.20374 · HTML: https://mlsanity.com/paper/2604.20374/

## Key facts

- No citing papers in the map yet (data through 14 Oct 2026).
- Builds on 17 of its 46 references that are in the map.
- First posted on arXiv 22 Apr 2026.

## Builds on (most cited first, 17 of 17)

- [Multi-Task Learning Using Uncertainty to Weigh Losses for Scene Geometry and Semantics](https://mlsanity.com/paper/1705.07115/) (2017)
- [Fundamentals of Recurrent Neural Network (RNN) and Long Short-Term Memory (LSTM) Network](https://mlsanity.com/paper/1808.03314/) (2018)
- [Intensity-Free Learning of Temporal Point Processes](https://mlsanity.com/paper/1909.12127/) (2019)
- [Fully Neural Network based Model for General Temporal Point Processes](https://mlsanity.com/paper/1905.09690/) (2019)
- [Neural Spatio-Temporal Point Processes](https://mlsanity.com/paper/2011.04583/) (2020)
- [Transformer Embeddings of Irregularly Spaced Events and Their Participants](https://mlsanity.com/paper/2201.00044/) (2021)
- [EasyTPP: Towards Open Benchmarking Temporal Point Processes](https://mlsanity.com/paper/2307.08097/) (2023)
- [Imputing Missing Events in Continuous-Time Event Streams](https://mlsanity.com/paper/1905.05570/) (2019)
- [Token Spammers, Rug Pulls, and SniperBots: An Analysis of the Ecosystem of Tokens in Ethereum and in the Binance Smart Chain (BNB)](https://mlsanity.com/paper/2206.08202/) (2022)
- [Strategic Liquidity Provision in Uniswap v3](https://mlsanity.com/paper/2106.12033/) (2021)
- [Live Graph Lab: Towards Open, Dynamic and Real Transaction Graphs with NFT](https://mlsanity.com/paper/2310.11709/) (2023)
- [Differential Liquidity Provision in Uniswap v3 and Implications for Contract Design](https://mlsanity.com/paper/2204.00464/) (2022)
- [Show me your NFT and I tell you how it will perform: Multimodal representation learning for NFT selling price prediction](https://mlsanity.com/paper/2302.01676/) (2023)
- [CoinCLIP: A Multimodal Framework for Assessing Viability in Web3 Memecoins](https://mlsanity.com/paper/2412.07591/) (2024)
- [PulseReddit: A Novel Reddit Dataset for Benchmarking MAS in High-Frequency Cryptocurrency Trading](https://mlsanity.com/paper/2506.03861/) (2025)
- [FinML-Chain: A Blockchain-Integrated Dataset for Enhanced Financial Machine Learning](https://mlsanity.com/paper/2411.16277/) (2024)
- [Multi-source Multi-level Multi-token Ethereum Dataset and Benchmark Platform](https://mlsanity.com/paper/2501.11906/) (2025)

## Abstract (arXiv)

Automated Market Makers (AMMs), as a core infrastructure of decentralized finance (DeFi), uniquely drive on-chain asset pricing through a deterministic reserve ratio mechanism. Unlike traditional markets, AMM price dynamics is triggered largely by on-chain events (e.g., swap) that change the reserve ratio, rather than by continuous responses to off-chain information. This makes event-level analysis crucial for understanding price formation mechanisms in AMMs. However, existing research generally neglects the micro-structural dynamics at the AMMs level, lacking both a comprehensive dataset covering multiple protocols with fine-grained event classification and an effective framework for event-aware modeling. To fill this gap, we construct a dataset containing 8.9 million on-chain event records from four representative AMMs protocols: Pendle, Uniswap v3, Aave and Morpho, with precise annotations of transaction type and block height timestamps. Furthermore, we propose an Uncertainty Weighted Mean Squared Error (UWM) loss function, which incorporates the block interval regression term into the traditional Time-Point Process (TPP) objective function by weighting the uncertainty with homoscedasticity. Extensive experiments on eight advanced TPP architectures demonstrate that this loss function reduces the time prediction error by an average of 56.41% while maintaining the accuracy of event type prediction, establishing a robust benchmark for event-aware prediction in the AMMs ecosystem. This work provides the necessary data foundation and methodological framework for modeling the discreteness and event-driven characteristics of on-chain price discovery. All datasets and source code are publicly available. https://github.com/yosen-king/Deep-AMM-Events
