Transfers and exchange-stability in two-sided matching problems

In this paper we consider one-to-many matching problems where the preferences of the agents involved are represented by monetary reward functions. We characterize Pareto optimal matchings by means of contractual exchange stability and matchings of maximum total reward by means of compensational exchange stability. To conclude, we show that in going from an initial matching to a matching of maximum total reward, one can always provide a compensation schedule that will be ex-post stable in the sense that there will be no subset of agents who can all by deviation obtain a higher reward. The proof of this result uses the fact that the core of an associated compensation matching game with constraints is nonempty.


Introduction
Restructuring is an ongoing process in today's dynamic business world where companies are constantly looking for ways to enhance efficiency, to gain competitive edge, and to keep up with industry trends. A tension exists, however, between a job allocation that is best from an individual worker's or department's point of view and that of the organization as a whole. Thus, centralized restructuring that involves moving staff across different departments in an institution, potentially, leaves some staff worse-off. When a restructuring schedule is devised one should consider, therefore, the opportunity for an ex-post reorganization by some departments or workers that may undermine the process as a whole.
The focus of study is the class of Pareto optimal matchings of workers to departments within an organization, and, within this set, we pay particular attention to those matchings that maximize an organization's overall reward. We characterize the set of Pareto optimal matchings and the set of matchings that maximize the institution's total reward by means of two stability notions: contractual exchange stability and compensational exchange stability, respectively.
Contractual exchange stability requires that any deviation, i.e. workers changing their assigned department or departments exchanging subsets of workers, is approved by all affected parties. Underlying this stability notion is the assumption that an agent grants approval to a deviation only if his reward does not decrease as a result of the change. Our notion of contractual exchange stability is in the spirit of the notion of contractual individual stability introduced by Bogomolnaia and Jackson (2002) and analyzed in the context of hedonic coalition formation games. Like contractual exchange stability, the notion of individual contractual stability presumes that an agent can leave her current coalition only if her group mates in that coalition agree to the move. These agents on their part agree only if they are at least as well off without the leaving member of the coalition as when she is in. Two aspects distinguish our study of contractual stability from that by Bogomolnaia and Jackson (2002): the cardinal representation of preferences and the deviation possibilities. The former difference is inconsequential as only the ordinal properties of agents' preferences are utilized in the analysis of contractual exchange stability. The latter difference is driven by the fact that we focus on a two-sided many-to-one matching environment which is intrinsically more restrictive than that of coalition formation: for example, same-sided agents cannot be matched to each other without also being matched to an agent from the opposite side in a matching problem whereas any subset of agents can form a coalition in a coalition formation problem.
The cardinal representation of agents' preferences is instead essential in the definition of compensation exchange stability. Compensation exchange stability allows the deviating parties to compensate the agents that are made worse-off by the change. Thus, a deviation is viable only if the net increase in rewards of the deviating agents exceeds the total losses of those agents whose rewards decrease due to the deviation. Clearly, some deviations which are not allowed under the notion of contractual exchange stability (because they leave some agents worse-off) are possible under the notion of compensational exchange stability (because those agents can be compensated).
Our notion of compensation exchange stability, just like the notion of contractual exchange stability, has its counterpart in the coalition formation literature. For example, Lazarova et al. (2011) use a similar notion in the context of coalitional games. These authors, however, focus on unilateral deviations in that context, whereas here deviations may involve multiple agents. Like in hedonic coalition formation games discussed above, in coalitional games there are no restrictions on the set of coalitions that may form, whereas in a matching problem such restrictions exist.
An important class of two-sided matching problems with a cardinal representation of agents' preferences is the assignment problem. Seminal works that discuss algorithms for finding assignments with maximum total rewards are Knuth (1955) and Koopmans and Beckmann (1957) while Shapley and Shubik (1971) seminally define and study the notion of an assignment game. 1 In an assignment problem every tuple of matched agents is characterized by a cardinal value that is taken to represent the productivity or overall surplus that these agents can generate when matched together. In contrast, in the matching environment studied here every agent in a matched tuple is assigned a cardinal reward that represents the (share of the) value she is guaranteed in the matching. Our choice of assumptions is motivated, on the one hand, by our research question-the characterization of the set of Pareto optimal matchings and the set of matchings that maximize the agents' total reward, respectively by means of stability notions-as it allows us to abstract away from the problem of how the joint surplus is shared among the matched agents and focus on the specificities of the deviation possibilities instead. On the other hand, it is motivated by the particular application that we have in mind-institutional organization and restructuring-where workers are guaranteed a salary and departments face well-defined budgets.
This setting also directs our search for appropriate stability notions to be used in the analysis. Our notions of stability are related to the notion of exchange stability developed by Alcalde (1995) in the context of one-to-one matching problems. Gale and Shapley (1962) establish the concept of pairwise stability, which is adopted by Shapley and Shubik (1971) in the analysis of assignment games and the posterior literature. An important difference between the notions of exchange stability and those used in the matching literature is that in the former agents are only allowed to "swap" partners (i.e. the deviation involves agents from the same side) and are not allowed to opt out (i.e., unmatched agents are not considered) whereas in the latter agents are only allowed to "divorce", i.e. opt out of a matching to be unmatched or deviate to a matching with a new partner from the opposite side. Importantly, Alcalde (1995) shows the independence of the set of exchange stable outcomes and the set of pairwise stable outcomes in the context of a standard one-to-one matching problem where no transfers between agents are allowed. Like Alcalde (1995), we take the view that an analysis based on exchange stability should be taken as complementary to that based on pairwise stability and that the choice of a stability notion should be driven by the research focus. In this study, our choice of stability notions is driven by our task to characterize two desirable sets of outcomes from an institution's point of view. 2 Last, we point out that our framework for exchange stability is different from that of Alcalde (1995) in the sense that we consider many-to-one matching problems with peer effects (i.e. the reward of a worker in a matching depends on the group of coworkers assigned to the same department) and, moreover, allow for monetary rewards. In the former aspect our work is related to the literature on many-to-one matching problems with peer effects (cf. Dutta and Massó (1997) and more recently Pycia (2012)). We differ from these works in the adopted stability notions (in our case this is exchange stability, whereas they usually consider extensions of pairwise stability) and again in our focus on the sets of matching that maximize the total agents' reward (as the many-to-one matching literature assumes ordinal preferences). Among the generalized assignment games works, e.g. Sotomayor (1999), on the other hand, we are not aware of any study where peer effects are modelled.
The adopted framework of cardinal representation of preferences allows us to also address the question if, given an initial matching of workers to departments, there exists a compensation schedule such that a centralized restructuring towards a matching of maximum total reward of the organization will be ex-post stable, in the sense that there will be no subset of workers or departments who can all by deviation obtain a higher reward. We analyze this question by introducing a transferable utility cooperative game, called a compensation matching game, and by showing that each compensation matching game has a nonempty core, which ensures that a compensation schedule as described above exists.
The paper is structured as follows. Section 2 provides notions on matchings for matching problems with monetary rewards and peer effects used throughout the paper. In Sect. 3, we characterize Pareto optimality of matchings by means of contractual exchange stability on the class of strict matching problems. In Sect. 4, we characterize matchings with maximum total reward by means of compensational exchange stability. Section 5 analyzes the existence of stable compensation schedules when an organization restructures the initial situation towards a matching of maximum total reward.

Basic notions
We consider two distinct types of economic agents: workers and departments. For ease of notation, we use lower case letters to denote a generic member i within the set of workers N , and upper case letters to denote a generic department H within the set of departments D. A vector of natural numbers q = (q H ) H ∈D represents the capacity of each department with q H being the capacity of department H with q H ≥ 1. We assume that |N | = H ∈D q H , i.e. the total number of workers equals the total capacity available at the departments. An allocation of workers to departments forms a partition of the set of workers in N , P = {P H } H ∈D , such that the size of the partition elements is consistent with the departmental capacity, i.e. |P H | = q H for all H ∈ D. The set of all such partitions is denoted by P(N , D, q). If no confusion arises, we write P instead of P (N , D, q).
An allocation of workers to departments is given by a matching μ where μ : N → D such that P(μ) = {μ −1 (H )} H ∈D ∈ P. The class of matchings is denoted by M(N , D, q). If no confusion arises, we write M instead of M (N , D, q). Notice that in our definition of a matching, we do not allow for workers to remain unmatched and for departments to have unfilled capacity. The choice of our assumption is driven by the particular environment that we have in mind, where existing workers are allocated to existing departments and firing or a closure of a department are not a possibility. Alcalde (1995) study a model with similar characteristics. This assumption is also common in the assignment problem literature, where the goal is to find an assignment with the highest total value (see Pentico 2007 for a review). As our focus is on the set of Pareto optimal matchings and the set of matchings of maximum total reward (formally defined below), the assumption is inconsequential as long as any outcome in which a department has unfilled capacity or a worker is unmatched yields strictly lower reward than any other outcome where all departments have full capacity and all workers are matched to a department. 3 We assume that for each worker a matching leads to a monetary reward which depends on the department to which he is assigned and the identity of his peers in that department. Thus, for each i ∈ N there is a monetary reward function r i where for each Similarly, we assume that for each department H ∈ D, there is a monetary reward function π H : {S ⊂ N | |S| = q H } → R.
Given a matching μ ∈ M, we will use the shorthand notation r i (μ) to denote the monetary reward obtained by worker i ∈ N when the department to which i belongs and the set of i's coworkers are given by matching μ, i.e. r i (μ) = r i (μ −1 (μ(i)) \ {i}, μ(i)). Similarly, π H (μ) denotes the reward obtained by department H ∈ D from the set of workers assigned by μ to H , i.e. π H (μ) = π H (μ −1 (H )).
The tuple (N , D, q, r, π) with r = (r i ) i∈N and π = (π H ) H ∈D as above defines a many-to-one matching problem with peer effects and monetary evaluations or simply matching problem.
Strict preference profiles are a common assumption in many matching models (cf. Gale and Shapley 1962). Recently, some authors have investigated the link between indifference and inefficiencies, e.g. Erdil and Ergin (2008). In our setting, a matching problem is called strict if

Pareto optimal matchings
In a Pareto optimal matching it is not possible to make any agent better-off by changing their department, in the case of a worker, or their workers, in the case of a department, without making another agent worse-off. The formal definition of a Pareto optimal matching is given below.
We will characterize Pareto optimality of matchings by means of a stability notion called contractual exchange stability. Recall that in our set up, departments have fixed capacities and the number of available workers is consistent with the available capacities. Thus, it seems natural to assume that an agents' only possibility for deviation is to perform some switch with other agents on the same side (i.e. workers can exchange departments with other workers and departments can exchange workers with other departments) provided that the exchange meets certain contractual criteria. In particular, if worker i prefers the department and coworkers of worker j in matching μ, and vice versa, then i and j can exchange their places provided that their respective departments and peers are not made worse-off by the swap. Similarly, if two departments, G and H , can generate higher rewards by exchanging a (sub-)set of their workers under μ, then, they can perform the swap provided that none of the involved workers is made worse-off. The description above is limited to two-way exchanges, but we assume that three-way or even more complicated exchanges can be performed as long as the affected parties (peers or departments) do not earn a lower reward as a result of the exchange. Definition 2 Let (N , D, q, r, π) be a matching problem. A matching μ ∈ M is contractually exchange blocked via another matching μ if either there exists a blocking coalition S ⊆ N with |S| ≥ 2 such that or there exists a blocking coalition H ⊆ D with |H| ≥ 2 such that In the above definition, it is required that the blocking coalition contains at least two agents of the same type who agree to a switch and these agents can earn a strictly higher reward as a result of the switch [requirements (ii) and (ii )]. Requirements (iii) and (iii ) of the definition, on the other hand, are important only for those agents who are affected by the switches proposed by the blocking coalition. For all other agents, this requirement is automatically satisfied.
Below we introduce the notion of a contractually exchange stable matching.
Definition 3 A matching μ is contractually exchange stable, if it cannot be contractually exchange blocked.
Theorem 1 Let (N , D, q, r, π) be a strict matching problem. A matching μ ∈ M is Pareto optimal if and only if it is contractually exchange stable.
Proof First, let μ be a contractually exchange stable matching. We show that μ is Pareto optimal by contradiction. Suppose that μ is not Pareto optimal. Therefore, there exists a matching μ such that Since (N , D, q, r, π) is a strict matching problem and taking (2) above into account, we have that (ii') for each H ∈ H, π H (μ ) > π H (μ). Moreover, by points (1) and (2) above, we know that Therefore, μ can be blocked via μ by coalition H. This establishes a contradiction to our premise that μ is contractually exchange stable. Next, let μ be a Pareto optimal matching. We show that μ is contractually exchange stable by contradiction. Suppose that μ is not contractually exchange stable. Then, there exists a matching μ that contractually exchange blocks μ. We consider two cases: (a) S is a blocking coalition of workers and (b) H is a blocking coalition of departments.
(a) Let S ⊆ N with |S| ≥ 2 be a blocking coalition of workers. From (ii) and (iii) in Definition 2, one readily derives that -for all i ∈ N , r i (μ ) ≥ r i (μ) and -for all H ∈ D, π H (μ ) ≥ π H (μ). Moreover, from (ii) in Definition 2 and S = ∅, we find that r i (μ ) > r i (μ) for some i ∈ N .
This establishes a contradiction to our premise that μ is Pareto optimal. (a) Let H ⊆ D with |H| ≥ 2 be a blocking coalition of departments. From (ii ) and (iii ) in Definition 2, one readily derives that -for all i ∈ N , r i (μ ) ≥ r i (μ) and -for all H ∈ D, π H (μ ) ≥ π H (μ). Moreover, from (ii ) in Definition 2 and H = ∅, we find that π H (μ ) > π H (μ) for some H ∈ D. This establishes a contradiction to our premise that μ is Pareto optimal.
The following example illustrates the need for restricting to the class of strict matching problems in Theorem 1. (N , D, q, r, π) be a matching problem with N = {1, 2, 3} and D = {A, B}, capacities q A = 1 and q B = 2; and reward functions

Example 1 Let
Clearly, (N , D, q, r, π) is not a strict matching problem since worker 1 has the same reward when he is assigned to department A and when he is assigned to department B with co-worker 3. Also, department A has the same reward when assigned to workers 1 and 2. We show that in this situation it is possible for a matching to be contractually exchange stable, but not Pareto optimal.
Consider the matching μ 1 such that μ 1 (1) = A, μ 1 (2) = μ 1 (3) = B. This matching is contractually exchange stable. Any coalition of workers that attempts to block the matching must be either {1, 2}, or {1, 3}. First, consider workers 1 and 2: 1 does not want to exchange assignments with 2 because his rewards are the same under μ 1 and under a new matching in which he is matched to B together with 3. Furthermore, matching μ 1 cannot be blocked by workers 1 and 3 because for worker 3 we have that Similarly, we can show that μ 1 cannot be contractually exchange blocked by H = {A, B}. Departments A and B cannot block μ 1 by exchanging workers 1 and 3 because worker 3 earns lower reward when matched to department A than when matched with 2 to department B. Departments A and B cannot contractually exchange block μ 1 by exchanging workers 1 and 2 because department A earns the same rewards when assigned to workers 1 or 2.
Note that the requirement of a strict matching problem in Theorem 1 is only used to show that every contractually exchange stable matching is Pareto optimal. Therefore, we have the following result. (N , D, q, r, π) be a matching problem. If a matching μ ∈ M is Pareto optimal, then it is contractually exchange stable.

Total reward maximizing matchings
In the preceding section, the set of Pareto optimal matchings was characterized by means of a stability notion-contractual exchange stability-that presumes that agents can exercise veto power on deviations involving members of their coalition. As discussed in the introduction, the set of Pareto optimal matchings are desirable from a central manager's point of view due to their efficiency. Within the set of Pareto optimal matchings some outcomes may be more desirable than others. In particular, all Pareto optimal matchings can be ranked on the basis of corresponding total joint rewards of all workers and departments. A central manager may thus be interested not only in achieving a Pareto optimal matching, but also in achieving a Pareto optimal matching that corresponds to maximum total reward. Note that we will refer to such matchings as matchings of maximum total reward and give a formal definition of this notion below. The question that this section addresses is what kind of stability notion characterize this subset of the set of Pareto optimal matchings, namely, the set of matchings of maximum total reward. (N , D, q, r, π) be a matching problem. A matching μ ∈ M is of maximum total reward if i∈N

Definition 4 Let
Note that every matching μ of maximum total reward is automatically Pareto optimal.
Next, we present a new stability notion, compensational stability, to (later) characterize the set of matchings of maximum total reward. In contrast to the notion of contractual stability, compensation stability exploits the cardinal property of the agents' reward function. Underlying the notion of compensation stability is the additional assumption that deviating agents can use the increase in their reward due to their deviation to compensate agents adversely affected by the deviation.

123
Definition 5 Let (N , D, q, r, π) be a matching problem and let μ ∈ M be a matching. The matching μ is compensationally stable if there is no other matching μ such that S is the set of workers that are assigned to a different department, T is the set of workers that do not change department but change peers, and F is the group of departments that get a different set of workers. (N , D, q, r, π) be a matching problem and let μ ∈ M be a matching. Then, μ is of maximum total reward if and only if it is compensationally stable.

Theorem 2 Let
Proof First, let μ be a compensationally stable matching. We show that μ is of maximum total reward by contradiction. Suppose that μ is not of maximum total reward. Then, there is a matching μ such that (1) Then, where the second equality follows by Eqs. (2) and (3), and the inequality follows by Eq.
(1). This establishes a contradiction to our premise that μ is compensationally stable. Next, let μ be a matching of maximum total reward. We show that μ is compensationally stable by contradiction. Suppose that μ is not compensationally stable. Then, there is a matching μ such that i∈T ∪S Then, where the second equality follows by Eqs. (5) and (6), and the inequality follows by Eq. (4). This establishes a contradiction to our premise that μ is of maximum total reward.
departments that are worse off in the new situation. This question will be analyzed using a cooperative matching game with transferable utility. A cooperative (transferable utility) game in characteristic function form is a pair (N , v) where N is a finite set of players and v : 2 N → R satisfying v(∅) = 0. In general, v(C) represents the maximal joint reward that coalition C ∈ 2 N can obtain when its members cooperate in an optimal way, without help of the players in N \ C.

Example 3 Let
Given a matching problem (N , D, q, r, π) and an arbitrary initial matching μ 0 , we are interested in studying adequate compensations among the workers and departments when they come together to improve their joint situation by adopting a matching of maximum total reward. To do this, we define a corresponding cooperative game whose core elements provide stable allocations of the extra rewards obtained by means of cooperation.
Let (N , D, q, r, π) be a matching problem with constraints and let μ 0 be an initial matching. We denote by M max the set of matchings of maximal total reward, i.e. M max = {μ ∈ M |μ is of maximal total reward}.
For i ∈ N andμ ∈ M max , we denote by d i (μ) the difference of reward for agent i ∈ N when going from μ 0 toμ, i.e.
Definition 6 Let (N , D, q, r, π) be a matching problem and let μ 0 be an initial matching. The corresponding compensation matching game, Note that given a matching with maximum total rewardμ, we conservatively assume that a coalition C is required to compensate all agents that suffer from changing the initial situation. Being conservative, it is also assumed that a most disadvantageous (from the perspective of C) matching of maximum total reward will be adopted. Note that v(N ∪D) equals the increase in total rewards achievable by adopting any matching with maximum total reward. The following example illustrates the computation of matching games with constraints.
123 Table 1 Individual extra rewards and losses for the agents in Example 4μ The maximum total reward for this problem is 70, therefore there is an extra reward of 12 when going from the initial matching to one of maximum total reward.
The corresponding extra rewards for the departments when going from the initial matching to a matching with maximum total reward is always 0 since they have constant reward functions. The individual extra rewards and losses for the workers when going from the initial matching to a matching of maximum total reward are provided in Table 1.
Since the departments are indifferent between all matching functions, we can omit them from the study of compensations and the player set N ∪ D can be restricted to N only. The value of coalition {1, 2, 3} in the compensation matching game is explained below. All coalitional values are given in Table 2.
Theorem 3 tells us that we can find a compensation schedule such that a centralized restructuring resulting in a matching of maximum total reward of the organization will be ex-post stable, in the sense that there will be no subset of workers or departments who can by deviation obtain a higher reward. Still, the core of matching games may contain many possible allocations, thus, the question remains what allocation will be selected. The following example illustrates how such a selection could be conducted.
and that there is an extra reward of 12 when going from the initial matching to one of maximum total reward. Since v(C) = min vμ 1 (C), vμ 2 (C), vμ 3 (C), vμ 4 (C) with vμ 1 (N ∪D) = vμ 2 (N ∪D) = vμ 3 (N ∪D) = vμ 4 (N ∪D), we have that Core(vμ l ) ⊂ Core(v). Moreover, since (N ∪ D, vμ l ) is a bankruptcy game for every l ∈ {1, 2, 3, 4} by Lemma 1, the allocation given by any bankruptcy rule applied to the bankruptcy problem associated toμ l , l ∈ {1, 2, 3, 4}, is in the core of the compensation matching game, as well as any convex combination of those allocations. As an illustration, Table 4 gives the allocations obtained by applying the proportional rule (Prop), the adjusted proportional rule (AProp), the constrained equal awards rule (CEA), and the Talmud rule (Tal) to the bankruptcy problems as defined in the proof of Lemma 1. For a description of these rules see Thomson (2003).
If the implemented matching of maximal total reward is known a priori, one can use a specific bankruptcy rule, for example, the proportional rule, in the corresponding bankruptcy problem associated to that selected matching. Otherwise, if a probability