混合遗传算法用于最优用户订单路由:CoW 协议批量拍卖中的多目标求解器优化
Hybrid Genetic Algorithm for Optimal User Order Routing: Multi-Objective Solver Optimization in CoW Protocol Batch Auctions
AI总结:
针对 CoW 协议批量拍卖中的路由优化,提出混合遗传算法,结合 NSGA-II 与确定性基线,在截止时间内实现多目标权衡,显著提升中小订单用户盈余。
摘要:
CoW 协议批量拍卖聚合用户意图,并依赖求解器在严格的拍卖截止时间内,跨异构自动化做市商(AMMs)寻找最大化用户盈余的最优执行路径。仅优化预期产出的确定性单目标启发式方法,常常无法利用跨多条并行路径的分流机会,也无法在统一搜索中内化 gas、滑点和执行风险约束。我们将进化多目标优化应用于这一区块链路由问题,提出了一种用于实时求解器优化的混合遗传算法(GA)架构,该架构将生产级的多目标 NSGA-II 引擎与自适应实例剖析和确定性基线相结合。我们的核心引擎对具有连续分流比的可变长度路径集进行编码,并在帕累托目标向量 F =(用户盈余,-gas,-滑点,-风险)下演化候选路径与数量分配,从而在拍卖截止时间内实现有原则的权衡和随时运行。自适应控制器在 GA 和基于 Bellman-Ford 负环检测的确定性对偶分解优化器之间进行选择,并保证性能永不逊于基线。该开源系统集成了六层保护,并通过了 8/8 项测试,验证了安全性和正确性。在 14 层基准测试(每个 30 个种子)中,混合方法在中小型订单上实现了约 0.40-9.82 ETH 的绝对用户盈余增益,而大型高碎片化订单在各种 gas 机制下均无利可图。收敛时间中位数约为 0.5 秒(软上限为 1.0 秒),在 2 秒限制内。我们尚未知悉有公开文档记录的多目标 GA 具备端到端安全性用于实时 DEX 路由。
英文摘要:
CoW Protocol batch auctions aggregate user intents and rely on solvers to find optimal execution paths that maximize user surplus across heterogeneous automated market makers (AMMs) under stringent auction deadlines. Deterministic single-objective heuristics that optimize only expected output frequently fail to exploit split-flow opportunities across multiple parallel paths and to internalize gas, slippage, and execution risk constraints in a unified search. We apply evolutionary multi-objective optimization to this blockchain routing problem, proposing a hybrid genetic algorithm (GA) architecture for real-time solver optimization that combines a production-grade, multi-objective NSGA-II engine with adaptive instance profiling and deterministic baselines. Our core engine encodes variable-length path sets with continuous split ratios and evolves candidate route-and-volume allocations under a Pareto objective vector F = (user surplus, -gas, -slippage, -risk), enabling principled trade-offs and anytime operation within the auction deadline. An adaptive controller selects between GA and a deterministic dual-decomposition optimizer with Bellman-Ford based negative-cycle detection, with a guarantee to never underperform the baseline. The open-source system integrates six protection layers and passes 8/8 tests, validating safety and correctness. In a 14-stratum benchmark (30 seeds each), the hybrid approach yields absolute user-surplus gains of approximately 0.40-9.82 ETH on small-to-medium orders, while large high-fragmentation orders are unprofitable across gas regimes. Convergence occurs in about 0.5 s median (soft capped at 1.0 s) within a 2-second limit. We are not aware of an openly documented multi-objective GA with end-to-end safety for real-time DEX routing.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。