Deep Reinforcement Learning-based Rebalancing Policies for Profit Maximization of Relay Nodes in Payment Channel Networks

Nikolaos Papadis, Leandros Tassiulas
10/13/2022
cs.DCcs.CRcs.LG
rl

Official code: npapadis/payment-channel-rebalancing (11 stars, Python, MIT, last commit 2023-10-08).

Abstract

Payment channel networks (PCNs) are a layer-2 blockchain scalability solution, with its main entity, the payment channel, enabling transactions between pairs of nodes "off-chain," thus reducing the burden on the layer-1 network. Nodes with multiple channels can serve as relays for multihop payments by providing their liquidity and withholding part of the payment amount as a fee.

Show full abstract

Relay nodes might after a while end up with one or more unbalanced channels, and thus need to trigger a rebalancing operation. In this paper, we study how a relay node can maximize its profits from fees by using the rebalancing method of submarine swaps. We introduce a stochastic model to capture the dynamics of a relay node observing random transaction arrivals and performing occasional rebalancing operations, and express the system evolution as a Markov Decision Process. We formulate the problem of the maximization of the node's fortune over time over all rebalancing policies, and approximate the optimal solution by designing a Deep Reinforcement Learning (DRL)-based rebalancing policy. We build a discrete event simulator of the system and use it to demonstrate the DRL policy's superior performance under most conditions by conducting a comparative study of different policies and parameterizations. Our work is the first to introduce DRL for liquidity management in the complex world of PCNs.

View on arXivView PDF

Code Implementations(1)

MIT

A SimPy-based Discrete Event Simulator for a relay node in a payment channel network using different submarine swap rebalancing policies, including one based on Deep Reinforcement Learning.

112PythonJul 23, 20223 years agoMIT
blockchaindeep-reinforcement-learningdiscrete-event-simulationlightning-networkpayment-channel-network+4 more

Similar Papers

Cite this paper

@article{papadis2022deep,
  title  = {Deep Reinforcement Learning-based Rebalancing Policies for Profit Maximization of Relay Nodes in Payment Channel Networks},
  author = {Nikolaos Papadis and Leandros Tassiulas},
  year   = {2022},
  eprint = {2210.07302},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2210.07302}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2210.07302.svg)](https://codeofpaper.com/paper/2210.07302)

Discussion