PRIME: Efficient Algorithm for Token Graph Routing Problem
Haotian Xu, Yuqing Zhu, Yuming Huang, Jing Tang
Abstract
Optimizing asset exchanges on blockchain-driven platforms poses a novel and challenging graph query optimization problem. In this model, assets represent vertices and exchanges form edges, recasting the graph query task as a routing problem over a large-scale, dynamic graph. However, the existing solutions fail to solve the problem efficiently due to the non-linear nature of the edge weights defined by a concave swap function. To address the challenge, we propose PRIME, a two-stage iterative graph algorithm designed for the Token Graph Routing Problem (TGRP). The first stage employs a pruned graph search to efficiently identify a set of high-potential routing paths. The second stage formulates the allocation task as a strongly convex optimization problem, which we solve using our novel Adaptive Sign Gradient Method (ASGM) with a linear convergence rate. Extensive experiments on real-world Ethereum data confirm PRIME's advantages over industry baselines. PRIME consistently outperforms the widely-used Uniswap routing algorithm, achieving up to 8.42 basis points (bps) better execution prices on large trades while reducing computation up to 96.7%. The practicality of PRIME is further validated by its deployment in hedge fund production environments, demonstrating its viability as a scalable graph query processing solution for high-frequency decentralized markets.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Your agent calls
Luneget_paper_fulltext
Free to start. No credit card required.
Terminal
Install the CLIlune papers fulltext 2a768552-9a10-4676-adf7-3dac31ba14a6Builds on4
- An Experimental Evaluation and Guideline for Path Finding in Weighted Dynamic NetworkMengxuan Zhang, Lei Li, Xiaofang ZhouVLDB 2021 · 36 citations
- Efficient Label-Constrained Shortest Path Queries on Road Networks: A Tree Decomposition ApproachJunhua Zhang, Long Yuan, Wentao Li, Lu Qin et al.VLDB 2022 · 29 citations
- Approximate Skyline Index for Constrained Shortest Pathfinding with Theoretical GuaranteeZiyi Liu, Lei Li, Mengxuan Zhang, Wen Hua et al.ICDE 2024 · 8 citations
- PCSP: Efficiently Answering Label-Constrained Shortest Path Queries in Road NetworksLibin Wang, Raymond Chi-Wing WongVLDB 2024 · 7 citations
Related papers
- ORDER: Optimal Routing with Path Indexing in Exchange Graph [Data-Intensive & Data Science Application]Bingqiao Luo, Yuhang Chen, Yuheng Cong, Ziyu He et al.SIGMOD 2026
- Prime Match: A Privacy-Preserving Inventory Matching SystemAntigoni Polychroniadou, Gilad Asharov, Benjamin E. Diamond, Tucker Balch et al.USENIX Security 2023
- VGQ: Enabling Verifiable Graph Queries on Blockchain SystemsZhongming Yao, Tianyi Li, Junchang Xin, Yushuai Li et al.ICDE 2025 · 4 citations
- GQP: A Framework for Scalable and Effective Graph Query-based PricingChen Chen, Ye Yuan, Zhenyu Wen, Guoren Wang et al.ICDE 2022 · 11 citations
- PathEnum: Towards Real-Time Hop-Constrained s-t Path EnumerationShixuan Sun, Yuhang Chen, Bingsheng He, Bryan HooiSIGMOD 2021 · 28 citations
