BART-IL: Behavior-Aware Impermanent Loss Optimization for Liquidity Pool-Based Data Trading
Abstract
1. Introduction
- Constructing a blockchain liquidity pool-based data trading mechanism for non-standard assets and analyzing its IL: This work introduces IL analysis into on-chain liquidity pool-based data trading scenarios, establishing a liquidity optimization framework tailored for high-frequency, small-amount trading and high-value-density data assets. When applied to non-standard assets, this framework addresses the adaptation limitations of traditional AMMs.
- Revealing the causal mechanisms between data trading behavioral characteristics and IL: Through mathematical modeling and simulation experiments, this study systematically quantifies the impact of traders’ behavioral characteristics on the rebalancing efficiency of on-chain AMM pools. This approach further deconstructs the formation mechanisms of IL in data trading under blockchain environments.
- Proposing the BART-IL that dynamically regulates trade execution sequences using a multi-factor composite scoring mechanism. By incorporating behavioral signals into execution ordering, BART-IL mitigates IL accumulation for liquidity providers while preserving decentralized trading autonomy.
2. Related Work
2.1. Traditional and Blockchain-Based Data Trading Mechanisms
2.2. AMM Mechanism and Liquidity Provision
2.3. Impermanent Loss Mechanism and Optimization Method
2.4. Research Gaps and Our Contribution
3. Impermanent Loss Mechanism and Mathematical Modeling
3.1. AMM Data Trading Pool Model
3.2. IL Mechanism
3.3. Analysis of Influencing Factors of IL
3.3.1. Impact of Price Sensitivity on IL
3.3.2. Impact of Trading Frequency on IL
3.3.3. Impact of Trade Amount on IL
4. Design and Implementation of IL Optimization Algorithm
- Trading request collection: Newly arrived trading requests first enter the pending trading pool. The system processes requests in batches using a sliding time window to ensure timely sorting.
- Behavioral characteristics extraction: Extract three core characteristics for each trade within the window: price sensitivity factor , trading frequency factor , and trade amount factor .
- Multi-factor composite of IL risk scoring: A positively oriented scoring model is constructed to generate a comprehensive risk score for each trade by integrating its three characteristic factors, as specified in Equation (12).where , and are configurable weights for price sensitivity, trading frequency, and trade amount respectively. Equation (12) evaluates each pending trade according to its expected IL impact. The price-sensitivity term reflects the timeliness of price-deviation correction, the frequency term captures the cumulative churning effect of repeated trades, and the trade-amount term represents the direct price impact of the swap size. After normalization and weighting, higher-score trades are interpreted as lower-risk trades for the liquidity pool and are executed earlier, thereby smoothing the pool price path and reducing cumulative rebalancing losses without changing the original AMM pricing rule. This paper sets the parameters according to the trading size , and the specific parameter configuration is shown in Table 2 to balance the three factors across different window sizes.Table 2. Dynamic weight function parameters.
Parameter Expression Price sensitivity weighting Frequency control weighting Scale suppression weight Although the proposed scoring function is heuristic and therefore cannot yield a closed-form optimal solution or provide rigorous optimality guarantees, it is not an arbitrary empirical rule. Rather, it is designed as an optimization-guided greedy surrogate for mitigating cumulative IL within each sliding window. Ideally, the execution sequence of pending trades should be selected to reduce the cumulative IL generated during the window. However, exhaustively evaluating all possible execution orders is computationally infeasible for real-time on-chain deployment. Therefore, BART-IL approximates this low-IL execution objective by estimating the IL-related risk of each pending trade using observable behavioral factors. The three scoring factors are selected according to the analysis in Section 3.3, where price sensitivity, trading frequency, and trade amount are shown to have significant effects on IL formation. Since IL grows super linearly with price deviation, trades that correct deviation earlier, occur less frequently, or involve smaller amounts generally cause less loss. Accordingly, the proposed scoring function prioritizes trades with higher price sensitivity, lower trading frequency, and smaller trade amount, thereby generating a lower-risk execution sequence without changing the original AMM pricing rule. - Dynamic sorting and execution: All trades in the pending trade pool are sorted in descending order according to their scores, forming an execution queue that prioritizes trades with lower IL risk. After completing the execution of each trade within a time window, the system enters the next time window and recalculates the scores of trades in the pending trade pool based on the latest liquidity status, thereby achieving closed-loop optimization.
| Algorithm 1: BART-IL dynamic trading sorting algorithm | |
| 1: | Input: Tx1, Tx2, …, Txn, n |
| 2: | Output: Ordered_T |
| 3: | function GET_WEIGHTS(n): |
| 4: | |
| 5: | |
| 6: | |
| 7: | ) |
| 8: | Scored_List |
| 9: | for each Tx in T do: |
| 10 | Si←Tx.α |
| 11 | Fi←Tx.f |
| 12 | Ai←Tx.a |
| 13 | |
| 14 | Scored_List←Scored_List∪{(Tx, score)} |
| 15 | end for |
| 16 | Ordered_T←{Tx|(Tx, score)∈Scored_List} |
| 17 | return Ordered_T |
5. Method Evaluation
5.1. Experimental Setting
5.2. Comparative IL Results
5.2.1. Comparison of IL Under Different Trading Scales
5.2.2. Comparison of IL Under Different Market Types
5.3. Evaluation Conclusions
6. Conclusions and the Future Work
Author Contributions
Funding
Institutional Review Board Statement
Informed Consent Statement
Data Availability Statement
Conflicts of Interest
References
- Rong, C.; Seo, J.; Zhao, Z.; Catak, F.O.; Geng, J.; Jaatun, M.G. Federated Large Domain Model System. Blockchain Res. Appl. 2025, 6, 100277. [Google Scholar] [CrossRef] [Scilit]
- Wu, J.; Yuan, Y.; He, C.; Qian, L.; Du, L.; Miao, J. Research on Multilat-eral Platform for Data Element Transactions: Current Status, Approaches, and Framework. J. Inf. Resour. Manag. 2024, 14, 4–20. [Google Scholar] [CrossRef]
- Chen, C.; Kui, R.; Yang, X.; Wu, X. Blockchain and scientific data governance. Chin. Sci. Bull. 2024, 69, 1137–1141. [Google Scholar] [CrossRef] [Scilit]
- Tran, T.; Tran, D.A.; Nguyen, T. Order Book Inspired Automated Market Making. IEEE Access 2024, 12, 36743–36763. [Google Scholar] [CrossRef] [Scilit]
- Bitterli, T.; Schär, F. Decentralized Exchanges: The Profitability Frontier of Constant Product Market Makers. In Proceedings of the 2023 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Dubai, United Arab Emirates, 1–5 May 2023; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- Hafner, M.; Dietl, H. Impermanent loss conditions: An analysis of decentralized exchange platforms. arXiv 2024, arXiv:2401.07689. [Google Scholar] [CrossRef] [Scilit]
- Kim, H.J.; Lee, G.M.; Lee, J.; Kang, S.; Chae, S.W.; Park, J.S. A Comparison of Impermant Loss for Various CFMMs. In Proceedings of the 2024 IEEE International Conference on Blockchain (Blockchain), Copenhagen, Denmark, 19–22 August 2024; pp. 542–548. [Google Scholar] [CrossRef] [Scilit]
- Jiang, S.; Chen, J.; Li, F.; Geng, H.; Chi, H. DCAMM: Dynamic Curve-Based Automated Market Maker. In Proceedings of the GLOBECOM 2023–2023 IEEE Global Communications Conference, Kuala Lumpur, Malaysia, 4–8 December 2023; pp. 4491–4496. [Google Scholar] [CrossRef] [Scilit]
- Martinelli, F.; Mushegian, N. Balancer: A Non-Custodial Portfolio Manager, Liquidity Provider, and Price Sensor. Available online: https://docs.balancer.fi/whitepaper.pdf (accessed on 4 June 2026).
- Guillermo, A.; Tarun, C. Improved Price Oracles: Constant Function Market Makers. arXiv 2020, arXiv:2003.10001. [Google Scholar] [CrossRef] [Scilit]
- Yu, J.; Zhao, P.; Li, S.; Wang, H. Distributed Data Trading Model Based on Blockchain. In Proceedings of the 2020 IEEE 6th International Conference on Computer and Communications (ICCC), Chengdu, China, 11–14 December 2020; pp. 1721–1727. [Google Scholar]
- Shen, X.; Yi, B.; Liu, H.; Zhang, W.; Zhang, Z.; Liu, S.; Xiong, N. Deep Variational Matrix Factorization with Knowledge Embedding for ecommendation System. IEEE Trans. Knowl. Data Eng. 2021, 33, 1906–1918. [Google Scholar]
- Zhang, D.; Zhou, F.F.; Albu, F.; Wei, Y.Z.; Yang, X.; Gu, Y.; Li, Q. Unleashing the power of self-supervised image denoising: A comprehensive review. arXiv 2023, arXiv:2308.00247. [Google Scholar] [CrossRef] [Scilit]
- Zhao, Z. Research on Pricing of Big Data. Trans. Inf. Secur. Commun. Confid. 2017, 5, 61–67. [Google Scholar]
- Chen, H.; Xiong, H.; Xu, L.; Yang, Y.; Zhao, X. Analysis of data trading model and characteristics based on platform perspective. Big Data Res. 2023, 9, 56–66. [Google Scholar]
- API Marketplace. Available online: https://rapidapi.com/ (accessed on 4 June 2026).
- Wang, W.; Zhang, M.; Wang, J. Research and Analysis of Big Data rading Platforms at Home and Abroad. J. Intell. 2019, 38, 181–186. [Google Scholar]
- Jiang, Y.; Zhong, Y.; Ge, X. Smart Contract-Based Data Commodity ransactions for Industrial Internet of Things. IEEE Access 2019, 7, 180856–180866. [Google Scholar] [CrossRef] [Scilit]
- Lin, C.H.; Huang, C.J.; Yuan, Y.H.; Yuan, Z.S. A Fully Decentralized Infrastructure for Subscription-based IoT Data Trading. In Proceedings of the 2020 IEEE International Conference on Blockchain (Blockchain), Rhodes, Greece, 2–6 November 2020; pp. 162–169. [Google Scholar] [CrossRef] [Scilit]
- Liu, J.; Wan, W.; Long, C.; Li, J.; Yang, F.; Fu, Y. ZKFDT: A Fair Exchange Scheme for Data Trading Based on Efficient Zero-Knowledge Proofs. In Proceedings of the 2024 IEEE 23rd International Conference on Trust, Security and Privacy in Computing and Communications (TrustCom), Sanya, China, 17–21 December 2024; pp. 2197–2206. [Google Scholar] [CrossRef] [Scilit]
- AlSkaif, T.; Vazquez, J.L.C.; Sekuloski, M.; Leeuwen, G.; Catalão, J.P.S. Blockchain-Based Fully Peer-to-Peer Energy Trading Strategies for Residential Energy Systems. IEEE Trans. Ind. Inform. 2022, 18, 231–241. [Google Scholar] [CrossRef] [Scilit]
- Yao, L.; Jia, Y.; Zhang, H.; Long, K.; Pan, M.; Yu, S. A decentralized private data transaction pricing and quality control method. In Proceedings of the ICC 2019—2019 IEEE International Conference on Communications (ICC), Shanghai, China, 20–24 May 2019; pp. 1–5. [Google Scholar] [CrossRef] [Scilit]
- Liu, Z.; Hu, C.; Xia, H.; Xiang, T.; Wang, B.; Chen, J. SPDTS: A differential privacy-based blockchain scheme for secure power data trading. IEEE Trans. Netw. Serv. Manag. 2022, 19, 5196–5207. [Google Scholar] [CrossRef] [Scilit]
- Zhang, D.; Zhou, F.F.; Jiang, Y.W.; Fu, Z.M. MM-BSN: Self-supervised image denoising for real-world with multi-mask based on blind-spot network. arXiv 2023, arXiv:2304.01598. [Google Scholar]
- Cartea, Á.; Drissi, F.; Monga, M. Execution and Statistical Arbitrage with Signals in Multiple Automated Market Makers. In Proceedings of the 2023 IEEE 43rd International Conference on Distributed Computing Systems Workshops (ICDCSW), Hong Kong, China, 18–21 July 2023; pp. 37–42. [Google Scholar] [CrossRef] [Scilit]
- Xu, J.H.; Paruch, K.; Cousaert, S.; Feng, Y.B. SoK: Decentralized Exchanges (DEX) with Automated Market Maker (AMM) Protocols. ACM Comput. Surv. 2023, 55, 238. [Google Scholar] [CrossRef] [Scilit]
- Dodmane, R.; Raghunandan, K.R.; Rao, K.N.S.; Kallapu, B.; Shetty, S.; Aslam, M.; Jilani, S.F. Blockchain-Based Automated Market Makers for a Decentralized Stock Exchange. Information 2023, 14, 280. [Google Scholar] [CrossRef] [Scilit]
- Adams, H.; Zinsmeister, N.; Robinson, D. Uniswap v2 Core. Available online: https://github.com/Uniswap/v2-core (accessed on 4 June 2026).
- Hertzog, E.; Benartzi, G. Bancor Protocol: Continuous Liquidity for Cryptographic Tokens Through Their Smart Contracts. Available online: https://cryptopapers.info/assets/pdf/bancor.pdf (accessed on 4 June 2026).
- Egorov, M. Stableswap: Efficient Mechanism for Stablecoin Liquidity. Available online: https://classic.curve.finance/files/stableswap-paper.pdf (accessed on 4 June 2026).
- Finance, B. Balancer. Available online: http://balancer.fi (accessed on 4 June 2026).
- Adams, H.; Zinsmeister, N.; Salem, M.; Keefer, R.; Robinson, D. Uniswap v3 Core. Available online: https://github.com/Uniswap/v3-core (accessed on 4 June 2026).
- Zeller, S.C.; Kandora, P.N.; Kirste, D.; Kannengießer, N.; Rebennack, S.; Sunyaev, A. Automated market makers: A stochastic optimization approach for profitable liquidity concentration. arXiv 2025, arXiv:2504.16542. [Google Scholar] [CrossRef] [Scilit]
- Materwala, H.; Naik, S.M.; Taha, A.; Abed, T.A.; Svetinovic, D. Maximal Extractable Value in Decentralized Finance: Taxonomy, Detection, and Mitigation. arXiv 2025, arXiv:2411.03327v2. [Google Scholar] [CrossRef] [Scilit]
- McLaughlin, R.; Chemaya, N.; Liu, D.Y.; Malkhi, D. CLVR Ordering of Transactions on AMMs. arXiv 2025, arXiv:2408.02634v2. [Google Scholar] [CrossRef] [Scilit]
- Singh, S.F.; Michalopoulos, P.; Veneris, A. DEEPER: Enhancing liquidity in concentrated liquidity AMM DEX via sharing. In Proceedings of the 2023 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Dubai, United Arab Emirates, 1–3 May 2023; pp. 1–7. [Google Scholar] [CrossRef] [Scilit]
- Tangri, R.; Yatsyshin, P.; Duijnstee, E.A.; Mandic, D. Generalizing impermanent loss on decentralized exchanges with constant function market makers. arXiv 2023, arXiv:2301.06831. [Google Scholar] [CrossRef] [Scilit]
- Angeris, G.; Evans, A.; Chitra, T. Replicating market makers. arXiv 2021, arXiv:2103.14769. [Google Scholar] [CrossRef] [Scilit]
- Milionis, J.; Moallemi, C.C.; Roughgarden, T.; Zhang, A.L. Automated market making and loss-versus-rebalancing. arXiv 2024, arXiv:2208.06046v5. [Google Scholar]
- Aigner, A.A.; Dhaliwal, G. UNISWAP: Impermanent loss and risk profile of a liquidity provider. arXiv 2021, arXiv:2106.14404. [Google Scholar] [CrossRef] [Scilit]
- Tanaka, S.; Alcalde, B. Rebalancing threshold strategy with trend following against impermanent loss. In Proceedings of the 2024 IEEE International Conference on Decentralized Applications and Infrastructures (DAPPS), Shanghai, China, 15–18 July 2024; pp. 33–34. [Google Scholar] [CrossRef] [Scilit]
- Deng, J.; Zong, H.; Wang, Y. Static replication of impermanent loss for concentrated liquidity provision in decentralised markets. Oper. Res. Lett. 2023, 51, 206–211. [Google Scholar] [CrossRef] [Scilit]
- Wen, Y.F.; Huang, C.M. Stability analysis of market-making mechanisms for decentralized cryptocurrency exchanges. In Proceedings of the 2024 IEEE International Conference on Blockchain and Cryptocurrency (ICBC), Dublin, Ireland, 27–31 May 2024; pp. 299–301. [Google Scholar] [CrossRef] [Scilit]
- Yan, C.; Keol, S.; Co, X.; Leung, N. Better market maker algorithm to save impermanent loss with high liquidity retention. arXiv 2025, arXiv:2502.20001. [Google Scholar] [CrossRef] [Scilit]
- Im, D.J.; Kondratskiy, A.; Harvey, V.; Fu, H.W. UAMM: Price-oracle based automated market maker. arXiv 2024, arXiv:2308.06375v2. [Google Scholar] [CrossRef] [Scilit]
- Fritsch, R.; Canidio, A. Measuring arbitrage losses and profitability of AMM liquidity. arXiv 2024, arXiv:2404.05803v2. [Google Scholar] [CrossRef] [Scilit]
- Del Monte, I.A.; de Lucio, J.; Sicilia, M.A. The Impact of Volatility Buffering in the Transition to Impermanent Loss Risk. Comput. Econ. 2026. [Google Scholar] [CrossRef] [Scilit]
- Chu, G.; Dowling, M.; Li, X. Impermanent loss in cryptocurrency. J. Int. Money Financ. 2026, 160, 103476. [Google Scholar] [CrossRef] [Scilit]
- Si, H.; Wang, S.; Zhao, Y.; Chen, W.; Xiong, N.; Qi, Y.; Yared, R.; Li, M. HES: An Effective Homomorphic Encryption-Based Scheme for Data Quality Verification in Data Trading. IEEE Internet Things J. 2025, 12, 33579–33591. [Google Scholar] [CrossRef] [Scilit]








| Serial Number | Trade Amount Intervals |
|---|---|
| 1 | 0.01–0.05% |
| 2 | 0.05–0.1% |
| 3 | 0.1–0.5% |
| 4 | 0.5–1% |
| Trading Scale | Mean Baseline AMM CILR | Mean BART-IL CILR | Relative Reduction |
|---|---|---|---|
| = 20 | 8.37% | 6.81% | 18.6% |
| = 60 | 14.04% | 12.02% | 14.3% |
| = 100 | 35.32% | 28.22% | 20.1% |
| Market Type | Before Optimization | After Optimization | Level of Improvement |
|---|---|---|---|
| Price-Sensitive | 0.39 | 0.33 | ↑15.4% |
| Price-Insensitive | 0.67 | 0.40 | ↑40.3% |
| High-Frequency | 0.46 | 0.26 | ↑43.5% |
| Low-Frequency | 0.29 | 0.19 | ↑34.5% |
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content. |
© 2026 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license.
Share and Cite
Si, H.; Li, M.; Qi, Y.; Chen, W.; Gao, Z. BART-IL: Behavior-Aware Impermanent Loss Optimization for Liquidity Pool-Based Data Trading. Data 2026, 11, 137. https://doi.org/10.3390/data11060137
Si H, Li M, Qi Y, Chen W, Gao Z. BART-IL: Behavior-Aware Impermanent Loss Optimization for Liquidity Pool-Based Data Trading. Data. 2026; 11(6):137. https://doi.org/10.3390/data11060137
Chicago/Turabian StyleSi, Huayou, Mengyang Li, Yuanyuan Qi, Wei Chen, and Zhigang Gao. 2026. "BART-IL: Behavior-Aware Impermanent Loss Optimization for Liquidity Pool-Based Data Trading" Data 11, no. 6: 137. https://doi.org/10.3390/data11060137
APA StyleSi, H., Li, M., Qi, Y., Chen, W., & Gao, Z. (2026). BART-IL: Behavior-Aware Impermanent Loss Optimization for Liquidity Pool-Based Data Trading. Data, 11(6), 137. https://doi.org/10.3390/data11060137

