[Paper Review] Adaptive Curves for Optimally Efficient Market Making
This paper proposes adaptive bonding curves for automated market makers (AMMs) in DeFi that dynamically adjust to trader behavior using a Kalman filtering-based inference of the external market price, eliminating reliance on oracles. By deriving an optimal differential equation for curve adaptation under the Glosten-Milgrom model, the method minimizes arbitrage losses while maintaining competitiveness, achieving near-zero profit for the market maker and robust performance under volatile conditions.
Automated Market Makers (AMMs) are essential in Decentralized Finance (DeFi) as they match liquidity supply with demand. They function through liquidity providers (LPs) who deposit assets into liquidity pools. However, the asset trading prices in these pools often trail behind those in more dynamic, centralized exchanges, leading to potential arbitrage losses for LPs. This issue is tackled by adapting market maker bonding curves to trader behavior, based on the classical market microstructure model of Glosten and Milgrom. Our approach ensures a zero-profit condition for the market maker's prices. We derive the differential equation that an optimal adaptive curve should follow to minimize arbitrage losses while remaining competitive. Solutions to this optimality equation are obtained for standard Gaussian and Lognormal price models using Kalman filtering. A key feature of our method is its ability to estimate the external market price without relying on price or loss oracles. We also provide an equivalent differential equation for the implied dynamics of canonical static bonding curves and establish conditions for their optimality. Our algorithms demonstrate robustness to changing market conditions and adversarial perturbations, and we offer an on-chain implementation using Uniswap v4 alongside off-chain AI co-processors.
Motivation & Objective
- To address the persistent issue of liquidity provider (LP) losses due to price slippage and arbitrage in decentralized exchanges (DeXs).
- To eliminate reliance on external price oracles, which introduce front-running and centralization risks in AMM design.
- To derive an optimal adaptive curve that minimizes arbitrage losses by modeling trader information asymmetry via the Glosten-Milgrom framework.
- To enable on-chain deployment of adaptive market making using Uniswap v4's hook contract and zero-knowledge off-chain co-processing.
- To establish theoretical conditions under which static curves (e.g., Uniswap) are optimal, providing a benchmark for adaptive systems.
Proposed method
- Derives a differential equation for the optimal adaptive bonding curve based on the Glosten-Milgrom model of informed and uninformed traders.
- Uses Kalman filtering to estimate the hidden external market price from trade history, without requiring price or loss oracles.
- Applies an adaptive Kalman filter (AKF) with a truncated history window to estimate time-varying parameters η (informational noise) and σ (volatility) of the price process.
- Introduces a two-part system: on-chain Hook contracts in Uniswap v4 to update curve parameters, and off-chain AI co-processors (via Axiom) to run the AKF and generate zero-knowledge proofs.
- Employs an EM algorithm within the AKF to iteratively refine estimates of θ (curve parameter), σ, and η, ensuring real-time adaptivity.
- Validates the method using synthetic data under Gaussian and lognormal price models, demonstrating robustness to adversarial perturbations and changing market conditions.
Experimental results
Research questions
- RQ1What differential equation governs the optimal adaptive bonding curve that minimizes arbitrage losses while remaining competitive in a dynamic market?
- RQ2How can the external market price be estimated from trade history alone, without relying on oracles, to enable adaptive market making?
- RQ3Under what conditions is a static bonding curve (e.g., Uniswap’s constant product) optimal, and how does it compare to adaptive alternatives?
- RQ4How does the performance of the adaptive Kalman filter degrade under rapidly changing market conditions, and what timescale enables its advantage?
- RQ5Can an on-chain AMM system be implemented with provable correctness using zero-knowledge proofs and off-chain AI co-processing?
Key findings
- The optimal adaptive curve follows a differential equation derived from the Glosten-Milgrom model, ensuring zero-profit conditions and minimal arbitrage losses.
- The adaptive Kalman filter (AKF) achieves near-optimal performance compared to the full Kalman filter when market changes are slow, with performance degrading only when volatility changes on a timescale comparable to the filter’s history window.
- For a volatility of volatility ση,σ = 0.04, the AKF maintains strong performance, demonstrating robustness to changing market dynamics.
- The method successfully estimates external market prices using only trade history, eliminating the need for centralized or manipulatable oracles.
- An on-chain implementation using Uniswap v4’s hook contract and Axiom’s ZK co-processor enables secure, verifiable, and efficient curve adaptation with zero-knowledge proofs.
- Theoretical analysis shows that static curves like Uniswap’s are optimal only under specific conditions of constant information asymmetry and stable volatility.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.