[Paper Review] Optimally Reliable & Cheap Payment Flows on the Lightning Network.
This paper proposes a round-based, min-cost flow algorithm that optimizes Lightning Network payments by modeling channel balance uncertainty probabilistically and using generalized integer min-cost flows to find the most reliable and cheapest multi-part payment (MPP) paths. It achieves near-total delivery success for large payments—up to several orders of magnitude larger than current methods—by iteratively refining success probability estimates using feedback from failed and successful attempts.
Today, payment paths in Bitcoin's Lightning Network are found by searching for shortest paths on the fee graph. We enhance this approach in two dimensions. Firstly, we take into account the probability of a payment actually being possible due to the unknown balance distributions in the channels. Secondly, we use minimum cost flows as a proper generalization of shortest paths to multi-part payments (MPP). In particular we show that under plausible assumptions about the balance distributions we can find the most likely MPP for any given set of senders, recipients and amounts by solving for a (generalized) integer minimum cost flow with a separable and convex cost function. Polynomial time exact algorithms as well as approximations are known for this optimization problem. We present a round-based algorithm of min-cost flow computations for delivering large payment amounts over the Lightning Network. This algorithm works by updating the probability distributions with the information gained from both successful and unsuccessful paths on prior rounds. In all our experiments a single digit number of rounds sufficed to deliver payments of sizes that were close to the total local balance of the sender. Early experiments indicate that our approach increases the size of payments that can be reliably delivered by several orders of magnitude compared to the current state of the art. We observe that finding the cheapest multi-part payments is an NP-hard problem considering the current fee structure and propose dropping the base fee to make it a linear min-cost flow problem. Finally, we discuss possibilities for maximizing the probability while at the same time minimizing the fees of a flow. While this turns out to be a hard problem in general as well - even in the single path case - it appears to be surprisingly tractable in practice.
Motivation & Objective
- Address the high failure rate of large payments on the Lightning Network due to unknown channel balance distributions.
- Improve upon current shortest-path-based routing that ignores reliability and fails to optimize multi-part payment splits.
- Develop a systematic, scalable method to maximize payment success probability while minimizing routing fees.
- Enable reliable delivery of payments close to or exceeding a sender’s total local balance.
- Provide a practical, iterative algorithm that learns from trial-and-error feedback to refine routing decisions over rounds.
Proposed method
- Model channel success probabilities using separable convex cost functions derived from negative logarithms of estimated success probabilities.
- Formulate the optimal MPP as an integer minimum cost flow problem with a separable convex cost function, solvable in polynomial time.
- Use a round-based algorithm that recomputes min-cost flows after each round using updated success probability estimates from prior outcomes.
- Incorporate feedback from both successful and failed payment attempts to dynamically refine channel reliability priors.
- Propose dropping the base fee to linearize the cost function, transforming the problem into a standard linear min-cost flow for efficiency.
- Integrate provenance scores (e.g., node uptime) into the success probability model to enhance reliability estimation.
Experimental results
Research questions
- RQ1Can multi-part payments on the Lightning Network be optimized for both cost and success probability using a principled mathematical framework?
- RQ2How can uncertainty in channel balance distributions be modeled and integrated into routing decisions to improve reliability?
- RQ3What is the impact of iterative feedback from failed and successful payment attempts on the convergence and success rate of large payments?
- RQ4To what extent can the problem of finding the cheapest and most reliable MPP be solved efficiently, and when does it become NP-hard?
- RQ5How can dynamic changes in channel liquidity and node behavior be accounted for in long-term routing planning?
Key findings
- The proposed round-based algorithm achieves reliable delivery of payments close to the sender’s total local balance using only a single digit number of rounds in all experiments.
- The method increases the size of reliably deliverable payments by several orders of magnitude compared to current state-of-the-art approaches.
- The problem of finding the cheapest MPP is NP-hard under the current fee structure, but becomes tractable when the base fee is removed, reducing it to a linear min-cost flow.
- The generalized min-cost flow formulation with separable convex costs allows for polynomial-time exact solutions, with a runtime complexity of O(log(U)·(m²+mn)·log(n)).
- The algorithm remains practical on commodity hardware, with estimated sub-second runtimes on the current public Lightning Network.
- The integration of provenance scores and dynamic learning from payment feedback significantly improves long-term routing reliability and adaptability.
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.