Dynamic Debt Swapping in Financial Networks
Abstract
A debt swap is an elementary edge swap in a directed, weighted graph, where two edges with the same weight swap their targets. Debt swaps are a natural and appealing operation in financial networks, in which nodes are banks and edges represent debt contracts. They can improve the clearing payments and the stability of these networks. However, their algorithmic properties are not well-understood.
We analyze the computational complexity of debt swapping. Our main interest lies in semi-positive swaps, in which no creditor strictly suffers and at least one strictly profits. These swaps lead to a Pareto-improvement in the entire network. We consider network optimization via sequences of -improving debt swaps from which a given bank strictly profits. For ranking-based clearing, we show that every sequence of semi-positive -improving swaps has polynomial length. In contrast, for arbitrary -improving swaps, the problem of reaching a network configuration that allows no further swaps is PLS-complete. We identify cases in which short sequences of semi-positive swaps exist even without the -improving property.
Keywords and phrases:
Debt Swap, Financial Networks, Local SearchFunding:
Martin Hoefer: Supported by DFG Research Unit ADYN under grant DFG 411362735 and ATHENE National Research Center for Applied Cybersecurity.Copyright and License:
![[Uncaptioned image]](x1.png)
2012 ACM Subject Classification:
Theory of computation Theory and algorithms for application domains ; Networks Network algorithmsEditors:
Kitty Meeks and Christian ScheidelerSeries and Publisher:

1 Introduction
The international financial system represents a complex and highly interconnected network. A prominent threat is that tight structural connections between banks, funds, and other financial institutions can yield devastating cascading effects. These systemic risks have been a major issue in the financial crisis of 2008 and several other crises since then. Mitigating these risks is an important problem, which has recently also received attention in computer science. The goal here is to understand the computational complexity of network-based interbank models for financial systems and potential interventions.
A fundamental aspect of modeling financial systems is clearing, a process of debt resolution by which solvency of banks in the system gets determined. In a financial network (where banks are nodes, and weighted, directed edges correspond to debt contracts) the clearing problem asks for a network flow that represents a consistent assignment of payments of debtor banks to their creditors. Based on the clearing, a bank might not receive the full amount of credit it gave to others. As a consequence, it might not have sufficient funds to clear all her own debt. Naturally, the solution to the clearing problem is of central importance to banks since it directly affects their assets.
Banks have an obvious incentive to improve their clearing conditions. Moreover, governmental regulators, central banks, and other financial services share an interest in maintaining and improving the financial system. While allocation rules for clearing are often fixed, other interventions for improvement have the potential to significantly improve the clearing conditions. A particularly interesting variant of network improvement is debt swapping [15]: There are two debt contracts among two pairs of banks and . The contracts have the same value. In a debt swap, the creditor banks and change their role as recipients of these contracts. This leaves every bank with the same amounts of debt as before – only the network is affected by the exchange of the edges. A debt swap is a local edge-swap operation and represents a small change in the network structure. Since it involves only a small number of banks, it can be executed in a distributed fashion by the participating banks. Banks are more likely to agree to this operation if it does not deteriorate their network position, i.e., it does not decrease their assets in the clearing of the resulting network.
Debt swaps are a very natural and interesting swap operation with many conceptual advantages. For example, they are usually less demanding than the more prominent approach of portfolio compression [19, 22] (for a discussion of the relation between these two operations, see [15]). Moreover, seemingly different operations proposed by regulators (such as, e.g., claims trades) can be interpreted as debt swaps [6]. From a computational perspective, debt swaps are related to a substantial body of literature on edge swap operations in graphs. Numerous variants of such swaps have attracted a large interest in computer science over the decades (see related work discussed below). The computational aspects of debt swapping, however, are not well understood.
In this paper, we strive to understand debt swap dynamics and their effects on the network. Since a debt swap is a local improvement step in the network, we first focus on local optimization (e.g., from an initial network, can we reach a configuration that allows no more profitable debt swaps?). We discuss all our results consistently for networks in which banks use natural ranking-based clearing payments [2, 1, 9]. Indeed, many of our results can be extended to arbitrary monotone clearing. Throughout the paper we mention the extension explicitly whenever it applies.
Contribution and Techniques.
After discussing preliminaries in Section 2, we classify debt swaps into positive (both creditors profit strictly in the clearing after the swap), semi-positive (one creditor profits strictly, the other one remains the same), or arbitrary ones. Our characterization results in Section 3 show that in every financial network, there can be no positive swap. Semi-positive swaps can exist, and, in fact, they always represent a Pareto-improvement: After the swap no bank in the entire network suffers, every bank obtains at least as many assets as before. As such, the recovery rate of every bank weakly increases, as well as the payments towards every debt contract. This makes semi-positive swaps very attractive. Similar results were shown by Papp and Wattenhofer [15] for proportional payments. Our paper generalizes these results substantially to all monotone payments.
We then concentrate on improvement dynamics with semi-positive debt swaps. Since they Pareto-improve the assets of all banks (and strictly for a creditor bank), every sequence of semi-positive swaps is inherently acyclic and terminates in a local optimum. A natural and challenging question that we study in Section 4 is whether there are short sequences that allow to reach a local optimum in polynomial time. We further refine the characterization of semi-positive swaps for ranking-based payments into saturating, and extension swaps, and further into active, semi- and non-active extension swaps. We show that there can be at most a polynomial number of saturating, semi- and non-active extension swaps, so the core of the problem lies in the existence of short sequences of active extension swaps. When a single bank strictly profits from every semi-positive swap, then we prove that every sequence of active extension swaps has indeed a length polynomial in the size of the network (and, thus, so has every sequence of semi-positive swaps). Instead, when we consider arbitrary swaps in which a given bank strictly improves, then there are initial networks from which every sequence of such swaps has exponential length. More fundamentally, we prove that it is PLS-complete to construct any local optimum, i.e., any network where liabilities of each node are consistent with the initial network and that allows no (arbitrary) debt swap in which the assets of a given bank strictly increase.
The problem without the property of strict improvement for a single bank turns out to be extremely challenging. We also make some progress here – under a condition on the liabilities and the in-degree of partly paid edges of every bank, we can show existence of a short sequence of semi-positive swaps to a local optimum. The general problem remains as an interesting avenue for future work.
All missing proofs are deferred to the full version of this paper. Moreover, in the full version we also consider aspects of global optimization (i.e., maximize the assets of a single bank via a sequence of debt swaps) and reachability problems (i.e., decide if a target network structure can be reached using a sequence of debt swaps).
Related Work.
There has been a recent surge of interest in the algorithmic and game-theoretic aspects of financial networks. Most works adopt and extend the clearing model by Eisenberg and Noe [4] (discussed in more detail below), where banks are nodes, edges are debt contracts, and clearing is governed by proportional payments. Most closely related to our work is recent work by Papp and Wattenhofer [15], who introduce and study the concept of debt swaps for proportional payments. They show that positive swaps do not exist, semi-positive swaps lead to Pareto-improvement, discuss shock models and hardness of a number of optimization problems. Another network-altering operation was recently introduced by Kanellopoulos et al. [11]. A debt transfer describes the process of a bank transferring a debt claim to another creditor. Formally, this operation exchanges a path of length two by one single edge. The authors consider optimization problems and a game-theoretic model where the banks strategically decide whether or not to perform a debt transfer.
More generally, algorithmic aspects of (extensions of) the Eisenberg-Noe model have been subject to substantial recent interest, including, e.g., the computation of clearing states in networks with credit-default swaps (CDS) [20, 9, 8]. Some clearing models (e.g., using CDS’es) suffer from default ambiguity [21], and several strategies for resolving this problem have been proposed [16]. Changes of the instance in terms of adding or deleting single liabilities, donations to other banks, lending, manipulation of external assets, allocation of stimulus checks, or bailouts were analyzed in [14, 10, 3, 13]. While most works assume the clearing state to manifest as a fixed point, the impact of sequential updates is studied in [17]. Further temporal aspects are investigated in [5], where liabilities are associated with individual maturity intervals. The works investigate the complexity of allocating integral and fractional payments in order to minimize defaults.
There is a growing interest in clearing problems beyond the restriction to proportional payments, using more general classes of monotone functions to model the clearing process [2]. This extension poses many interesting algorithmic and, in particular, game-theoretic problems that are very recently starting to get explored [1, 12, 7].
2 Model and Preliminaries
Financial Networks, Clearing, and Ranking.
A financial network is given by a weighted, directed multi-graph with nodes and edges. Each node resembles a financial institution or bank. Each edge represents a debt contract, where a debtor bank owes an amount of to a creditor bank . Formally, is a directed edge with weight . We assume that there are no loops, i.e., . The set of incoming and outgoing edges of are denoted by and . The total liabilities of a bank are defined as . Further, every bank holds external assets , i.e., assets of that are independent of the network. The payments that a bank receives from its debtors within network are called internal assets and, together with external assets, form the available assets of a bank.
An allocation rule is a collection , where for bank determines a distribution of the available assets towards her liabilities. is the payment function for edge . For every bank , the payment functions satisfy the following properties: (1) is continuous111Monotonicity, edge capacity, and limited flow conservation together imply continuity. We postulate it explicitly for convenience. and non-decreasing in (monotonicity), (2) each bank pays at most the respective liability, i.e., (edge capacity), and (3) every bank spends all assets until all liabilities are paid off, i.e., (limited flow conservation). The available assets of are the sum of external and internal assets .
These constraints give rise to a fixed-point problem. A vector of assets that fulfills all constraints is called feasible. For every allocation rule , the set of feasible vectors forms a complete lattice w.r.t. coordinate-wise comparison [1, 2]. Consequently, for every allocation rule there exists a supremum of feasible assets and resulting payments with that pointwise maximize the assets of each bank and the payments on each edge. The clearing settles on these maximal payments, which we term the clearing state. In the clearing state, bank receives total incoming assets of and holds total assets of .
In this paper, we will discuss all our results consistently in the context of a natural class of edge-ranking rules [1, 2, 9]: For each bank , her outgoing edges are ordered by a permutation . First, directs all her payments towards edge until the edge is completely paid off or has no remaining assets. Then, she pays off edge until the edge is completely paid off or has no remaining assets. This process continues until either all debt is settled or runs out of funds.
Apart from being natural and well-motivated in applications, edge-ranking rules also have appealing computational properties. Given a financial network with edge-ranking rules, a maximal clearing state can be computed in strongly polynomial time [1]. Moreover, these favorable properties extend to general monotone integral [2, 1] allocation rules in explicit representation by using edge-rankings over a suitable set of auxiliary edges [1]. In this way, all our statements generalize to unit-ranking rules with edge-ranking representation.
Other classes of payments have also been of interest in the literature (e.g., proportional payments, where every bank allocates her total assets in proportion to her total liabilities, or combinations of ranking and proportional). Indeed, many of our results extend even to arbitrary monotone allocation rules.
Debt Swaps.
For a given financial network , a debt swap is a structural change to the network. For two edges among four distinct banks with the same liability (i.e., ) we exchange their creditors. The result can be described by an adjustment in the creditor function by swapping the entries of and . Note that the allocation rule of the banks remains unaffected by the swap, since the debtor function remains unchanged. However, due to the structural change, a debt swap may change the payments in the clearing state. We denote the resulting financial network, creditor function, clearing state, and total assets of a bank after the swap by , , and , respectively.
Definition 1 (Debt Swap).
Consider a financial network with edges . Throughout we use the short notation , , and . Suppose that the liabilities and are pairwise distinct nodes. A debt swap of and creates a new network where , , and for all .
Observe that a debt swap may introduce multi-edges even in initially simple graphs. We proceed with a small example that shows some of the interesting effects of debt swaps.
Example 2.
Consider the initial financial network in Fig. 1 (left) with edge-ranking allocation rules. Bank first pays off all debt to before directing payments to , i.e, . All other banks pay towards their unique outgoing edge. Consider the clearing state. For bank the external assets of 1 equal her total liabilities . Thus, can settle all her debt towards . For the other edges, suppose there are positive payments on edge . Then, by definition, has to have these assets available, so must pay this amount to . By the same argument, must have positive total assets and pay them to . However, obviously has no assets, and there are no payments on these edges. Due to the allocation rule of , there are no payments in the cycle of and , unless fully pays off first (for which she needs assets from ). The clearing state yields a payment of 1 on . The total assets are 1 for and , and 0 for all others.
Now consider the financial network in Fig. 1 (right) after the swap of edges and to and . Obviously, can still pay off her single outgoing edge. After the swap, there is a cycle including and over prioritized edges. When the payments on both edges are raised to 1, the fixed-point properties remain satisfied. Since pays off all debt on the edge with highest priority, she will direct any additional assets towards the edge of her second priority to . Here a new cycle with over prioritized edges arises, and the fixed-point conditions allow to further raise payments along that cycle to 1.
The additional payments after the swap result from the emergence of the cycle between and . The total assets of and are increased to and after the swap. For the total assets of the other banks the swap is inconsequential.
A debt swap of two edges and maintains the local network properties of the debtors and . It has no effect on the set of liability values. Moreover, it does not impact their incoming edges. As such, we are interested in the gains and losses in total assets of the creditors and , since (arguably) they are the key actors to implement a debt swap. The following classification of debt swaps slightly extends the one in [15]. Observe that the debt swap explained in Example 2 is semi-positive and Pareto-improving.
Definition 3 (Swap Types).
A debt swap of edges and is called (1) positive if and , (2) semi-positive if and and exactly one inequality is strict, (3) Pareto-improving if for all and at least one inequality is strict.
3 Characterization
To reason about debt swaps, we first provide a structural analysis of the clearing payments before and after debt swaps. We obtain a characterization of semi-positive and positive swaps. The analysis substantially generalizes techniques from [15] and yields two major insights. First, there are no positive swaps. Second, every semi-positive debt swap yields a Pareto-improvement in the entire network, i.e., no bank in the financial network is harmed while at least one bank strictly profits. Thus, semi-positive swaps can only improve the recovery rate of each bank (i.e., the ratio of available assets over liabilities). Consequently, the payment assigned to each debt contract does not decrease. Interestingly, the converse also holds: Every Pareto-improving debt swap is semi-positive.
Similar to [15], we use an auxiliary network with the same payments as the resulting network after the debt swap. In this auxiliary network, we replace the swap edges with auxiliary sources and sinks with appropriate assets representing the payments on the swap edges. For a contradiction, we assume that the debt swap is positive. By tracing the payments in the auxiliary network, we show that payments in the original network before the swap did not correspond to the maximum clearing state. This contradiction shows that positive swaps cannot exist. As a rather direct consequence from this characterization, we obtain that semi-positive swaps lead to a Pareto-improvement in the entire network.
The main distinction from the proofs in [15] for proportional payments is that these payments have limited structure in the auxiliary network and, as such, are easier to handle. Instead, our proofs rely only on monotonicity of the allocation rule. By arguing about a broad range of possibilities and dependencies of potential payments, we can show that these results indeed apply to all financial networks with any monotone allocation rule.
3.1 Structural Properties
Monotonicity of the allocation rule implies that when the total assets of bank increase, then payments on each do not decrease. Intuitively, therefore, every clearing state of a financial network can be decomposed into two clearing states of appropriate networks. We proceed in two steps: First, each bank is assigned reduced external assets . This results in a new financial network, for which we get the first clearing state. In this state, (partially) pays her liabilities. For the second step, we reduce each liability by the payment in the first step, and receives external assets of . This again results in a new financial network, for which we get the second clearing state. The sum of the two clearing states is the clearing state of the original network.
This separability condition can be used to show that increasing the external assets of one bank Pareto-improves the total assets of every bank.
Lemma 4 (Monotonicity).
Suppose two financial networks and differ only in the external assets of a single bank such that . For every bank , the total assets in the clearing state satisfy .
The payments in a financial network emerge due to a combination of external assets and cyclic money flow. Clearly, a sink node (with ) is not included in any cycle. Thus, all incoming payments of a sink node originated from external assets of other banks.
Indeed, we can show that the increase of in external assets of a source node (with ) raises the total assets of all sinks in sum by at most .
Lemma 5 (Non-Expansivity).
For a given financial network, let be the set of all sink nodes. If the external assets of a source are increased to , then the total assets of all sinks increase by at most , i.e., .
A similar property can be shown if is not a source bank. The argument uses an auxiliary construction that externalizes the incoming payments of bank by splitting into two separate nodes and . The sink holds the same incoming edges as in the original graph. Similarly, source has the same outgoing edges as . Setting the external assets of to the total assets of in the clearing state ensures that the payments of and are equal. We can then verify that the modified network has the same clearing state as the original network, and, in particular, has the same incoming payments as . Clearly, the nodes representing are not contained in any cycle.
Definition 6.
For a given financial network with bank , we define an adjusted network as follows. We replace by a source node and a sink node . Sink has external assets 0 and the same set of incoming edges as , i.e., for every and . Source has external assets and the same outgoing edges as , i.e., for every , and . Source in uses the allocation rule of in .
An example construction can be seen in Fig. 2, where banks and are replaced by sources and sinks. The next lemma shows that the clearing state in the auxiliary network is equivalent to the one in the original network.
Lemma 7 (Source-Sink-Equivalency).
For a given financial network and an adjusted network it holds that
-
(1)
the networks have equivalent clearing states, i.e., for all .
-
(2)
the sink has total assets .
A very similar construction can be used to externalize the payments on an edge. The right image in Fig. 2 depicts an example construction.
Corollary 8 (Source-Sink-Equivalency for Edges).
For a given financial network with edge , let and . Add the sink and set the target of to . Increase the external assets of by . Then, the resulting financial network has the same clearing state as , i.e., , for all .
3.2 Existence of Debt Swaps
Example 2 shows that semi-positive and Pareto-improving debt swaps can exist, for both proportional and edge-ranking rules.
Observation 9.
For proportional payments and edge-ranking rules, financial networks with semi-positive and Pareto-improving debt swaps exist.
Our main result in this section shows that every financial network with a monotone allocation rule has no positive debt swap.
Theorem 10.
A financial network with monotone allocation rules allows no positive debt swap.
To prove this result, we assume for a contradiction there exists a network with a positive swap of edges and . To analyze the payments in , source-sink-equivalency is applied to the swap edges. Let denote the resulting network, see Fig. 3 for an illustration. To accommodate for the reduced incoming payments of , the external assets are set to . The external assets of are set analogously.
The network is obtained by additionally applying source-sink equivalency to and in . Then, and receive incoming payments of and , respectively. This construction has no impact on the payments in the clearing state. Analogously, the networks and are constructed for the network after the debt swap. The networks and have the same cycles but differ in external assets, resp.
The next technical lemma characterizes the effects of increasing external assets of and in .
Let be the resulting network when increasing the external assets of and in by and , respectively. We use to denote the increase in total assets of bank , i.e., . We use to denote the network when reversing the source-sink equivalency both for and as well as for and .
Lemma 11.
For and the following are true:
-
(1)
.
-
(2)
If or , then and .
Suppose there exists a positive debt swap for a financial network , in which the total assets of both creditor banks and strictly increase by and . In the debt swap is simulated by increasing the total assets of source nodes and by and , respectively. We will show that there exists a suitable set of values for and such that receives additional incoming payments. Intuitively, then, the pairs , and are each contained in the same cycle. Hence, payments could be raised along the cycles, which contradicts maximality of the clearing state. This idea can be used to complete the proof of Theorem 10.
The theorem shows that both creditors participating in a debt swap cannot simultaneously strictly increase their total assets. In the next part, we consider the payments on the edges and before and after a generic swap . The first proposition shows they cannot both be strictly increased.
Proposition 12.
For every financial network, there is no debt swap such that and .
Proposition 13.
For every semi-positive debt swap , we have either and , or and .
Towards semi-positive swaps, the total assets of and Pareto-improve. Perhaps surprisingly, the second main result of this section shows that a swap is semi-positive if and only if it Pareto-improves the assets of every bank in the network. In particular, no bank in the financial network is harmed while at least one bank strictly profits. The proof of the theorem uses our previous results on source-sink-equivalency and an auxiliary network .
Theorem 14.
For every financial network with monotone allocation rules, a debt swap is semi-positive if and only if it is Pareto-improving.
4 Debt Swap Dynamics
When two creditors perform a debt swap, the structure of the underlying graph changes. This might enable further swaps which potentially further increase the assets of the involved banks. In this way, the swap operation naturally gives rise to dynamics where, in each step, a pair of creditors agree to perform a swap in the current network. Conceptually, semi-positive swaps are very attractive – they are equivalent to Pareto-improving swaps and improve the situation not only for the creditors but for the entire network.
In this section, we consider natural distributed dynamics of debt swaps. Given an initial financial network with monotone allocation rules, our goal is to find a small number of semi-positive debt swaps to reach a local optimum, i.e., a network structure without semi-positive swaps. We denote this as the SemiSwap problem. While all banks (weakly) profit from a semi-positive swap, we are interested in semi-positive swaps that are -improving, i.e., strictly increase the assets of a given bank . This is natural, e.g., when is a creditor that profits strictly in every such swap, or is a bank that is “too big to fail” and should strictly profit from network changes. We denote the problem with semi-positive -improving swaps by . Given a financial network, can we reach a local optimum by a sequence of polynomially many semi-positive -improving swaps?
We consider this question for the broad class of edge-ranking rules. In a given network with edges, there are at most edge swaps. Recall that we can compute the clearing state for edge-ranking rules in strongly polynomial time [1]. Hence, for a given network, we can also enumerate all semi-positive debt swaps in strongly polynomial time.
4.1 Sequences of Semi-Positive Swaps
Characterization.
Consider a bank with edge-ranking rule. pays her outgoing edges in the order of a permutation until she runs out of funds. Assume cannot settle all debt. Let denote the unique highest-ranked outgoing edge of that is not fully paid. We call the active edge of . Clearly, all edges with higher priority than are fully paid for, i.e., they are saturated. Additionally, all edges with lower priority than receive no payments. Note that the set of all active edges is acyclic – we can strictly increase the feasible payments along any cycle, which is impossible when the clearing state has maximal feasible payments.
Since the active outgoing edge of every bank is unique, the subgraph of active edges is simple and never contains multi-edges. When analyzing this subgraph, we use the notation for simple graphs, i.e., if and , for . More generally, we will use the standard notation whenever it unambiguously describes one edge.
A semi-positive swap Pareto-improves the total assets of all banks. It can only increase the number of saturated edges. If a semi-positive swap saturates at least one additional edge, we call it a saturating swap. As a second class, extension swaps are non-saturating swaps with an interesting structural property.
Definition 15 (Extension Swap).
Consider a semi-positive debt swap of edges and with . The swap is called extension swap if (1) no additional edge gets saturated and (2) in there is an active path , i.e., a path of active edges from to , (3) for every , (4) in the clearing state and .
In an extension swap, creditors and swap two edges and with different payments, where w.l.o.g. we assume . The swap does not create a cycle of active edges, this would yield a new saturated edge along this cycle. Therefore, receives in additional incoming assets of . Since there exists a path from to of active edges, each with residual liability of more than , all additional assets get routed to . The total assets of after the swap remain the same (see Fig. 4 for an example).
The next proposition proves an interesting and very useful characterization.
Proposition 16.
For a given financial network with edge-ranking rules, every semi-positive debt swap is either a saturating or an extension swap.
We further classify extension swaps based on the activation status of the involved edges.
Definition 17 (Classes of Extension Swaps).
Consider extension swap of edges and with . In a non-active swap both edges are nonactive. In a semi-active swap, either or is active. In an active swap, both and are active.
Observe that in a non-active swap, the edges and are each either fully saturated or receive no payments. Since , we have both and . In a semi-active swap, or . Finally, in an active swap, .
Periods, Phases, Active Extension Swaps.
We now discuss constructing short sequences of swaps and start with saturating swaps.
Observation 18.
Given an initial financial network with edge-ranking rules and edges, every sequence of semi-positive debt swaps can contain at most saturating ones.
We define a period as a sequence of consecutive extension swaps. Every sequence of semi-positive swaps has at most periods. We turn attention to non-active and semi-active extension swaps. Every swap has exactly one non-profiting creditor. We classify non-active and semi-active swaps in a period based on this bank.
Lemma 19.
For every , every single period can contain at most many non-active or semi-active extension swaps such that is the non-profiting creditor.
Proof.
For each semi-active swap of this kind, one of two possible events occurs: Either (1) an incoming non-active saturated edge of is changed to an active (non-saturated) one, or (2) an incoming active edge of with positive payment is changed to a non-active one with 0 payment. In a non-active swap, a sequential composition of both events occurs: An incoming non-active saturated edge of is changed directly to a non-active one with 0 payments.
In a semi-positive swap, the payment on every edge can only weakly increase. No edge gets saturated (this would end the period). Hence, no active edge can become non-active (neither saturated, nor with 0 payments). Events (1) and (2) cannot re-occur for an incoming edge of . There are at most events for node in the period, and at most many non-active or semi-active extension swaps with as the non-profiting creditor.
Hence, from an initial network with edges, there are at most saturating, non-active, or semi-active extension swaps. The challenge lies in bounding the number of active extension swaps. We define a phase as a sequence of consecutive active extension swaps. For bounding the length of swap sequences to a polynomial, Observation 18 and Lemma 19 allow to restrict attention to the number of swaps in a single phase.
Recall that the set of active edges is cycle-free. Every node has at most one outgoing active edge. Consequently, the set of active edges forms a forest of in-trees, where all edges are directed towards the parent node. We denote the set of these in-trees by . In an active extension swap, the active path runs from to . As such, we can only have active extension swaps where all four banks involved in the swap are in the same tree , and the non-profiting creditor is an ancestor of all .
We first focus on sequences of active extension swaps that strictly improve a given bank . Afterwards, we consider the more general case of arbitrary active extension swaps, where we do not condition on a particular bank benefiting.
Improvement for a Given Bank.
We analyze sequences of semi-positive swaps that are -improving for a given bank , i.e., in every swap strictly profits. Note that may not be involved in the swap as a creditor bank herself. Our main result is the following.
Theorem 20.
For every bank in a financial network with edge-ranking rules, every sequence of -improving semi-positive swaps has polynomial length. can be solved in polynomial time.
Proof.
It suffices to prove the result for active extension swaps in a single phase. Consider the tree containing . Suppose there is an active extension swap, then the set of banks that strictly profit lie on the active path , with the exception of creditor . Hence, if such a swap is also -improving, is a node on the active path, the creditor is or a descendant of , and the creditor is an ancestor of . As such, all active edges on the path from to the root of cannot be swapped. In terms of payments, the edges whose payments are strictly increased by the swap are located in the subtree rooted at or on the path . The swap keeps all other payments the same.
Note that for the swap, , i.e., the edge with higher payment is incoming to the ancestor of and gets swapped to or a descendant of . For , the only incoming edge that increases in payment is the one on . All other incoming edges of only keep their payments (when not being swapped) or are replaced by ones with strictly decreased payments (when being swapped). In contrast, for each edge, payments are non-decreasing over time. This implies that if edge is swapped away from for some edge , edge cannot re-appear at via a swap with or any edges swapped with . For a schematic illustration, see Fig. 5.
Hence, a single phase contains at most many -improving active extension swaps.
This result is potentially surprising, since for other allocation rules there are indeed extremely long sequences of such swaps. Indeed, with proportional rules there are exponentially long sequences of -improving semi-positive swaps.
Proposition 21.
There is a financial network with banks, edges, and proportional allocation rule, from which there is a sequence of many -improving semi-positive swaps.
Beyond Improvement for a Given Bank.
In the remainder of the section, we concentrate on arbitrary active extension swaps (without the property that they are -improving). Bounding the length of such sequences represents a very challenging problem. We make some initial progress on this problem: For a non-trivial class of instances, we construct a single short sequence of such swaps in each phase.
For the remainder of the section, we focus on instances with two network conditions. First, suppose that throughout every node has at most incoming active edges, for some constant . For example, means that every network created in the sequence has at most one incoming active edge for each . This is fulfilled, in particular, when every node has an indegree of at most .
Proposition 22.
Consider an initial financial network with edge-ranking rules. Every sequence of semi-positive swaps, during which every node has at most active incoming edges, has polynomial length.
Proof.
In an active extension swap, the non-profiting creditor has two incoming active edges. Thus, if , there can be no active extension swap. All swaps are saturating, semi-active or non-active swaps. Their number is bounded by . When , we consider a second condition – the network should have sufficient residuals.
Definition 23 (Sufficient Residuals).
In a financial network , a potential active swap is a pair of active edges and such that , , and there is a path of active edges from to . The network has sufficient residuals if for every potential active swap, for all , i.e., the potential active swap is an active extension swap.
Intuitively, in a potential active swap all conditions for an extension swap are fulfilled, with the exception of the residual liabilities on the path of active edges. If a network has sufficient residuals, then a potential active swap is indeed an active extension swap, since there is sufficient residual liability on to forward the marginal increase of total assets for towards . For example, if the liabilities of active edges are sufficiently high compared to clearing payments, then the increases in payments will not “exhaust” the liabilities, and we are guaranteed to maintain the property of sufficient residuals throughout the swap sequence.
For networks with sufficient residuals and a constant number of active incoming edges, we can construct one sequence of swaps of polynomial length. The general case is a very interesting and challenging open problem.
Theorem 24.
The SemiSwap problem for financial networks with edge-ranking rules can be solved in polynomial time if, for all financial networks encountered during the sequence, the network has sufficient residuals and every node has at most a constant number of active incoming edges.
Open Problem.
Can the SemiSwap problem for financial networks with edge-ranking rules be solved in polynomial time?
4.2 Sequences of Arbitrary Swaps
In this section, we consider sequences of arbitrary swaps. In contrast to semi-positive ones, these swaps have no natural criterion of progress. We again focus on swaps in which a single bank has to improve strictly. Unfortunately, sequences of such arbitrary -improving swaps can be very long, for every monotone allocation rule (including edge-ranking and proportional rules). Our results show that there are initial networks from which every sequence of -improving swaps to a local optimum (in which no such swaps exist) is exponentially long.
Indeed, we obtain a more general statement. Consider a maximization problem for the total assets of a given bank defined as follows. In an instance of the problem, we are given a set of banks . For each bank we are given a non-negative value for the external assets as well as a number of incoming and outgoing half-edges or stubs. For each such stub of , we have a positive weight . Clearly, these stubs shall be consistent with at least one set of edges among , i.e., there must be a feasible underlying multi-graph in the sense that the stubs can be matched to form . In particular, each incoming stub of weight of each node can be matched to some outgoing stub of weight of some node to form an edge with and . Consistency of stubs with at least one set can be tested in polynomial time by solving a straightforward bipartite matching problem. For the remainder, we assume that it holds.
An instance of has an edge-ranking rule that specifies the order in which banks pay their outgoing stubs. The rule is given implicitly by a clearing oracle . A clearing oracle for rule receives as input the remaining financial network and outputs the clearing state. Note that a clearing oracle can be computed in polynomial time for edge-ranking rules [1].
Observe that any set of edges that is consistent with the stubs gives rise to a financial network and a clearing state (where the latter can be computed using ). The goal is to find such a consistent set to maximize the total assets of a given bank in the resulting clearing state. The objective function in the instance are the total assets for a given bank .
Finally, for edge swaps we define a neighborhood over the set of financial networks whose edges are consistent with the stubs in the input. For a given financial network , the swap neighborhood contains all networks that can be obtained by performing an arbitrary debt swap in . A debt swap exchanges the matching of two pairs of stubs with pairwise disjoint incident nodes and with the same weights and thereby maintains consistency.
Proposition 25.
with swap neighborhood is in the complexity class PLS whenever the clearing oracle can be computed in polynomial time.
Clearly, as noted above, we can obtain an initial network by computing a bipartite matching (indeed, every network consistent with the stubs represents a bipartite matching of the stubs and vice versa). The swap neighborhood of a network contains other networks. For each of these networks, the corresponding clearing state can be determined using oracle . Hence, the swap neighborhood for a given network can be searched efficiently.
When locally maximizing we do not necessarily restrict attention to a sequence of -improving swaps from a given initial network to a local optimum. Instead, when given an initial network, we obtain an instance of by breaking all edges into stubs. The goal is to find any local optimum network consistent with the stubs derived from the initial network. We show that this problem is PLS-complete.
Theorem 26.
There is a tight PLS-reduction from Max-2-SAT with flip neighborhood to with swap neighborhood.
This shows that with swap neighborhood is PLS-complete. Moreover, the reduction implies that there exist initial states from which every execution of the standard local search algorithm requires exponentially many steps to reach a local optimum [18]. The standard local search algorithm for yields a sequence of debt swaps.
Corollary 27.
It is PLS-complete to compute a local optimum for with swap neighborhood. There is an instance of and an initial network such that every sequence of arbitrary -improving swaps from to a local optimum has exponential length.
In the reduction of Theorem 26, each possible network has the property that a bank has either 0 assets or enough assets to fully pay all outgoing stubs. The clearing oracle in these networks is trivial, and all payments are completely independent of the allocation rule.
Corollary 28.
The results of Corollary 27 generalize to with the swap neighborhood for any monotone allocation rule with efficient clearing oracle.
References
- [1] Nils Bertschinger, Martin Hoefer, and Daniel Schmand. Flow allocation games. Math. Oper. Res., 50(1):68–89, 2025. doi:10.1287/MOOR.2022.0355.
- [2] Péter Csóka and P Jean-Jacques Herings. Decentralized clearing in financial networks. Manag. Sci., 64(10):4681–4699, 2018. doi:10.1287/MNSC.2017.2847.
- [3] Béni Egressy, Andreas Plesner, and Roger Wattenhofer. What is the price for lending in financial networks? In Proc. 25th Int. Conf. Princ. Pract. Multi-Agent Syst. (PRIMA), pages 120–135, 2024. doi:10.1007/978-3-031-77367-9_11.
- [4] Larry Eisenberg and Thomas Noe. Systemic risk in financial systems. Manag. Sci., 47(2):236–249, 2001. doi:10.1287/MNSC.47.2.236.9835.
- [5] Tom Friedetzky, David Kutner, George Mertzios, Iain Stewart, and Amitabh Trehan. Payment scheduling in the interval debt model. Theor. Comput. Sci., 1028:115028, 2025. doi:10.1016/J.TCS.2024.115028.
- [6] Martin Hoefer, Carmine Ventre, and Lisa Wilhelmi. Algorithms for claims trades. In Proc. 41st Symp. Theoret. Aspects Comput. Sci. (STACS), pages 42:1–42:17, 2024.
- [7] Martin Hoefer and Lisa Wilhelmi. Seniorities and minimal clearing in financial network games. In Proc. 15th Symp. Algorithmic Game Theory (SAGT), pages 187–204, 2022. doi:10.1007/978-3-031-15714-1_11.
- [8] Stavros Ioannidis, Bart De Keijzer, and Carmine Ventre. Strong approximations and irrationality in financial networks with derivatives. In Proc. 49th Int. Colloq. Autom. Lang. Programming (ICALP), pages 76:1–76:18, 2022. doi:10.4230/LIPICS.ICALP.2022.76.
- [9] Stavros Ioannidis, Bart De Keijzer, and Carmine Ventre. Financial networks with singleton liability priorities. Theor. Comput. Sci., 963:113965, 2023. doi:10.1016/J.TCS.2023.113965.
- [10] Panagiotis Kanellopoulos, Maria Kyropoulou, and Hao Zhou. Forgiving debt in financial network games. In Proc. 21st Conf. Auton. Agents and Multi-Agent Syst. (AAMAS), pages 1651–1653, 2022. doi:10.5555/3535850.3536065.
- [11] Panagiotis Kanellopoulos, Maria Kyropoulou, and Hao Zhou. Debt transfers in financial networks: Complexity and equilibria. In Proc. 22th Conf. Auton. Agents and Multi-Agent Syst. (AAMAS), pages 260–268, 2023. doi:10.5555/3545946.3598645.
- [12] Panagiotis Kanellopoulos, Maria Kyropoulou, and Hao Zhou. On priority-proportional payments in financial networks. Theor. Comput. Sci., 1014:114767, 2024. doi:10.1016/J.TCS.2024.114767.
- [13] Marios Papachristou and Jon Kleinberg. Allocating stimulus checks in times of crisis. In Proc. 31th World Wide Web Conf. (WWW), pages 16–26, 2022. doi:10.1145/3485447.3512047.
- [14] Pál András Papp and Roger Wattenhofer. Network-aware strategies in financial systems. In Proc. 47th Int. Colloq. Autom. Lang. Programming (ICALP), page 91, 2020.
- [15] Pál András Papp and Roger Wattenhofer. Debt swapping for risk mitigation in financial networks. In Proc. 22nd Conf. Econ. Comput. (EC), pages 765–784, 2021. doi:10.1145/3465456.3467638.
- [16] Pál András Papp and Roger Wattenhofer. Default ambiguity: Finding the best solution to the clearing problem. In Proc. 17th Conf. Web and Internet Econ. (WINE), pages 391–409, 2021. doi:10.1007/978-3-030-94676-0_22.
- [17] Pál András Papp and Roger Wattenhofer. Sequential defaulting in financial networks. In Proc. 12th Symp. Innov. Theoret. Comput. Sci. (ITCS), pages 52:1–52:20, 2021. doi:10.4230/LIPICS.ITCS.2021.52.
- [18] Alejandro Schäffer. Simple local search problems that are hard to solve. SIAM J. Comput., 20(1):56–87, 1991. doi:10.1137/0220004.
- [19] Steffen Schuldenzucker and Sven Seuken. Portfolio compression in financial networks: Incentives and systemic risk. In Proc. 21st Conf. Econ. Comput. (EC), page 79, 2020. doi:10.1145/3391403.3399538.
- [20] Steffen Schuldenzucker, Sven Seuken, and Stefano Battiston. Finding clearing payments in financial networks with credit default swaps is PPAD-complete. In Proc. 8th Symp. Innov. Theoret. Comput. Sci. (ITCS), pages 32:1–32:20, 2017. doi:10.4230/LIPICS.ITCS.2017.32.
- [21] Steffen Schuldenzucker, Sven Seuken, and Stefano Battiston. Default ambiguity: Credit default swaps create new systemic risks in financial networks. Manag. Sci., 66(5):1981–1998, 2020. doi:10.1287/MNSC.2019.3304.
- [22] Luitgard Veraart. When does portfolio compression reduce systemic risk? Mathematical Finance, 32(3):727–778, 2019.