Next Article in Journal
SLA-YOLO—Enhancing YOLO for Tiny Defect Detection in Industrial Defect Scenes
Previous Article in Journal
From Kernel Matrices to Kernel Functions: An Eigenfunction-Based Approach
Previous Article in Special Issue
Mathematical Programming for Optimal Evacuation in Industrial Facilities
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Gromov–Wasserstein Meets Combinatorial Optimization: A Scalable Solver for the Capacitated Quadratic Assignment Problem

1
Department of Computer Science Systems and Communication, University of Milano-Bicocca, 20126 Milan, Italy
2
Department of Economics Management and Statistics, University of Milano-Bicocca, 20126 Milan, Italy
*
Authors to whom correspondence should be addressed.
Mathematics 2026, 14(11), 1972; https://doi.org/10.3390/math14111972
Submission received: 21 April 2026 / Revised: 20 May 2026 / Accepted: 29 May 2026 / Published: 3 June 2026
(This article belongs to the Special Issue Combinatorial Optimization and Its Real-World Applications)

Abstract

The Capacitated Quadratic Assignment Problem (CQAP) arises in logistics and network design, requiring the allocation of tasks to agents under quadratic interaction costs and capacity constraints. Classical exact solvers become computationally infeasible for large-scale instances, while heuristic methods such as Genetic Algorithms suffer from scalability limitations and sensitivity to local optima, leaving a gap for principled scalable approximations. In this paper, we address CQAP using the Gromov–Wasserstein (GW) framework, derived from Optimal Transport (OT) theory. In particular, we propose a multi-initialization GW strategy (GW_MultiInit) that mitigates the local optima problem inherent to non-convex GW optimization and scales efficiently to large problem sizes. Computational experiments on synthetic CQAP instances show that GW_MultiInit consistently achieves solutions close to the exact optimum for small- and medium-scale problems, and outperforms heuristic baselines such as the genetic algorithm at large scale in both runtime and solution quality across the benchmarks tested. To validate generalizability, we further evaluate GW_MultiInit On 17 QAPLIB benchmark instances adapted to the CQAP setting, GW_MultiInit achieves the best approximate result on 15 out of 17 instances with an average optimality gap of 0.34%, demonstrating strong generalizability beyond synthetic data. Additional comparisons with Entropic GW and Fused GW highlight practical trade-offs between accuracy, speed, and parameter sensitivity, offering guidelines for real-world deployment. Our results suggest that GW-based methods, and GW_MultiInit in particular, offer a promising and scalable approach for CQAP and related large-scale assignment problems within the problem scales examined.

1. Introduction

The assignment problem is a cornerstone of operations research, with applications in workforce allocation (e.g., assigning nurses to hospital shifts), supply chain management (e.g., matching vehicles to delivery routes), and computer vision (e.g., aligning keypoints between images). For further examples and detailed surveys, see [1,2,3]. At its core, it seeks the best one-to-one matching between two sets, typically agents and tasks, such that the total cost is minimized. Classical solution approaches to assignment problems include combinatorial optimization and exact solvers. Traditionally, this has been addressed through combinatorial optimization techniques, with exact algorithms such as the Hungarian method providing efficient solutions for structured cases [4]. However, as real-world scenarios grow in complexity, these classical approaches reveal significant limitations. Many real-world applications involve more complex interactions than simple one-to-one assignments. For example, pairwise dependencies between tasks or facilities can arise and give rise to the Quadratic Assignment Problem, a well-known generalization of the assignment problem [5,6]. Building further on this, the Capacitated Quadratic Assignment Problem introduces capacity constraints on facilities and demand requirements on tasks. This richer formulation allows each facility to serve multiple tasks subject to its capacity, while each task must satisfy its demand. Like QAP, CQAP is NP-hard [7], with the consequence that exact algorithms quickly become computationally infeasible as problem sizes increase [8]. For this reason, many heuristics and metaheuristics, such as Genetic Algorithms (GA) [9] have been developed. This motivates the development of alternative formulations and approximation methods that balance scalability with solution quality.
Optimal Transport (OT) provides a modern mathematical framework to generalize assignment problems. The Wasserstein distance has become a powerful tool for comparing probability distributions with broad applications across machine learning and computer vision [10]. However, standard OT assumes that source and target distributions lie in the same metric space, restricting its application when relational structure differs across domains. The Gromov–Wasserstein (GW) distance [11] overcomes this limitation by comparing distributions across different metric spaces through their internal relational structures, making it particularly well-suited for QAP and CQAP: the quadratic cost term in QAP can be rewritten as a GW discrepancy, and capacity constraints map naturally onto the transport marginals. This is especially well-suited for the structural matching problems as posed by QAP and CQAP. In particular, the quadratic cost term in QAP can be rewritten as a GW discrepancy, so that CQAP is directly related to the GW framework. Alternative relaxation approaches for QAP-class problems lose the quadratic relational structure of the objective upon linearization, require a common ambient metric space that may not exist for general facility-location data, or scale poorly due to the large number of lifted variables required. The GW framework, by contrast, preserves the quadratic relational cost structure natively through its pairwise distance comparison mechanism, encodes capacity and demand constraints directly via the marginals of the transport polytope, and admits efficient entropic approximations that scale polynomially with problem size [12]. This combination of structural fidelity, constraint compatibility, and computational tractability makes GW a particularly principled choice for CQAP. Despite this natural connection, GW optimization is inherently non-convex and NP-hard, often converging to poor local minima [12] which is a limitation that existing GW variants do not fully address.
In this paper, we propose a multi-initialization GW strategy, called GW_MultiInit, for mitigating the non-convexity of GW optimization in solving CQAP by exploring multiple initial couplings and selecting the best solution. Unlike relying on a single initialization, GW_MultiInit explores multiple random initial couplings and selects the best solution, hence mitigating the risk of poor local optima. We benchmark GW_MultiInit against exact solvers, GA, and other GW variants (EGW and FGW) across CQAP instances. Our results reveal that GW_MultiInit consistently achieves near-optimal solutions, significantly outperforms GA in scalability, and remains computationally efficient compared to exact methods.
The remainder of this paper is structured as follows. Section 2 introduces Related Work and Background on Assignment Problems and solution methods in detail. Section 3 establishes their connection to OT. Section 4 presents the Gromov Wasserstein distance, focusing on GW optimization and its variants, entropic, fused GW and GW_MultiInit. Section 5 provides computational experiments across synthetic CQAP instances of varying scales (Section 5.1) and standard QAPLIB benchmark instances adapted to the CQAP setting (Section 5.2). Section 6 concludes with limitations and future research directions.

2. Related Work and Background

2.1. Assignment Problems: From AP to CQAP

The classical assignment problem (AP) is a combinatorial optimization problem that seeks to assign a set of agents (or facilities) to a set of tasks (or locations) in a way that minimizes the total assignment cost [6]. To define the AP formally, we introduce the following notation:
n: number of facilities and locations.
x i as the i-th facility, y j as the j-th location.
c i j = c x i , y j as the cost of assigning facility i to location j.
x i j = 1   i f   f a c i l i t y   i   i s   a s s i g n e d   t o   l o c a t i o n   j 0                                                                                   o t h e r w i s e
The AP can then be formulated mathematically as:
min x ij   i = 1 n j = 1 n c i j x i j
subject to:
j = 1 n x i j = 1                           i           ( each   facility   is   assigned   to   one   location )
i = 1 n x i j = 1                           j           ( each   location   hosts   one   facility )
x i j 0,1                                   i , j
This linear integer programming formulation ensures a one-to-one assignment of agents to tasks while minimizing the total cost. The AP is widely used in logistics, scheduling, and resource allocation problems and serves as the foundation for more complex assignment models, such as the Quadratic Assignment Problem (QAP). The QAP is a classic combinatorial optimization problem. It generalizes the linear assignment problem by adding pairwise interaction costs between assignments [5,6]. Koopmans and Beckmann first formulated it for facility layout [5]. The QAP models situations where the cost of assigning an agent to a task depends not only on that assignment but also on the assignments of other agents. This quadratic dependency makes QAP a natural framework for facility location, electronic circuit design, graph matching, and structural pattern recognition [13]. We consider two matrices:
F R n × n : flow matrix, where F i k denotes the interaction (flow) between facility i and facility k.
D R n × n : distance (or dissimilarity) matrix, where D j l represents the distance between location j and location l.
The objective of QAP is to find the bijective assignment σ : { 1 , , n } { 1 , , n } that minimizes the total interaction cost:
min σ S n i = 1 n k = 1 n F i k D σ ( i ) σ ( k ) + i = 1 n C i σ ( i )
where:
The first term captures quadratic costs due to interactions between pairs of facilities and the corresponding distances between their assigned locations.
The optional second term C i σ ( i ) represents linear assignment costs that may be present in hybrid formulations.
The binary integer programming form of QAP uses decision variables x i j { 0,1 } indicating whether facility i is assigned to location j:
min x i = 1 n k = 1 n j = 1 n l = 1 n F i k D j l x i j x k l + i = 1 n j = 1 n C i j x i j
Subject to (2)–(4).
This quadratic objective makes the problem NP-hard [7], rendering it intractable for n 30 in most cases.
The CQAP extends the classical QAP by introducing capacity constraints on facilities (agents) and demand requirements on locations (tasks). Unlike the standard QAP, where each facility is assigned to exactly one location, the CQAP allows facilities to serve multiple locations, subject to capacity limits, while locations must satisfy their demand requirements. This formulation is especially relevant in several real-world applications that involve pairwise interaction costs and heterogeneous resource constraints, such as vehicle assignment to service regions, supply chain network design, and communication resource allocation [13,14]. To formalize the CQAP, we introduce the following parameters:
ui: capacity of facility i.
dj: demand at location j.
m: number of locations (not necessarily equal to n).
The CQAP objective is:
min x i = 1 n k = 1 n j = 1 m l = 1 m F i k D j l x i j x k l + i = 1 n j = 1 m C i j x i j
subject to capacity and demand constraints:
j = 1 m d j x i j u i , i = 1 , , n                       ( Each   facility   cannot   exceed   its   capacity )
i = 1 n d j x i j = d j , j = 1 , , m                       ( Each   location s   demand   must   be   met )
x i j 0,1 , i , j
This capacity constraint extension makes the problem even more computationally challenging than standard QAP, belonging to the class of NP-hard problems. Nevertheless, it provides a realistic modeling tool for problems involving both interaction costs and heterogeneous resource constraints.

2.2. Solution Methods for QAP and CQAP

Exact methods. Classical exact solution approaches to QAP include the Hungarian algorithm [6,15], branch-and-bound [16], and mixed-integer quadratic programming (MIQP) [17]. While these methods guarantee global optimality, their exponential worst-case complexity makes them infeasible as problem sizes increase [8]. For CQAP, exact MIQP formulations can solve small instances by globally optimizing the nonconvex quadratic objective via branch-and-bound methods. However, the combinatorial explosion inherent to NP-hard quadratic programs causes runtimes to grow super-exponentially with problem size, rendering exact methods computationally infeasible beyond small scales [18]. The additional capacity constraints of CQAP further tighten the feasible region and increase the number of branching nodes required, compounding this scalability challenge and limiting the reach of exact approaches even more severely than in the uncapacitated QAP [13,19].
Heuristic and metaheuristic methods. Given the NP-hardness of QAP and CQAP, a rich body of heuristic and metaheuristic methods has been developed. Genetic algorithms (GA) [20,21], are among the most widely applied, exploiting evolutionary operators to search the permutation space. Simulated annealing [22], tabu search [23], and ant colony optimization [24] have also been applied to QAP with competitive results on medium-scale instances. We note that quantum and hybrid quantum-classical heuristics have also been recently explored for combinatorial optimization problems [25,26]. However, these methods degrade in solution quality and runtime as problem size increases, and are sensitive to hyperparameter tuning. For CQAP specifically, the additional capacity constraints complicate the feasibility-preserving mutation and crossover operations that standard metaheuristics rely on, limiting their direct applicability [27].
Relaxation-based methods. Semidefinite programming (SDP) relaxations of QAP provide tighter lower bounds than linear relaxations [28], but require solving a large-scale SDP whose size grows as O ( n 4 ) , making them impractical for large cases. Lagrangian decomposition approaches [29] decompose the QAP into tractable subproblems but rely on dual bound tightness that degrades for dense flow matrices. Linear programming relaxations of the assignment polytope lose the quadratic relational structure of the objective upon relaxation, yielding weak bounds [18]. These limitations collectively motivate the development of structure-preserving approximation methods that maintain the quadratic relational cost structure while scaling to large instances.
Optimal transport-based methods. OT provides a modern mathematical framework to generalize assignment problems. Originating from Monge’s classical problem [30], OT was reformulated by Kantorovich [31] into a convex optimization problem, enabling both probabilistic couplings and capacity constraints [32]. The resulting optimal transport cost naturally induces the Wasserstein distance when the ground cost is chosen as a metric, which has since become a powerful tool for comparing probability distributions, with broad applications in statistics, machine learning, and computer vision [33,34,35,36,37]. However, standard OT assumes that source and target distributions lie in the same metric space, restricting its application to structured data like graphs or facilities with relational constraints. To overcome this limitation, the GW distance [11,38] extends Wasserstein, comparing distributions across different metric spaces by aligning them through their internal relational structures. A key observation is that the GW problem is itself a relaxation of QAP. The GW objective minimizes a quadratic cost over soft assignments, making it structurally equivalent to a continuous relaxation of QAP [39,40]. This connection is not merely formal; ref. [12] proves that computing the exact GW distance is NP-hard, confirming that GW inherits the computational intractability of QAP. Consequently, all practical applications of GW rely on local heuristics or approximate solvers rather than exact computation [41]. The most widely used approach solves a sequence of nested entropy-regularized OT problems (Entropic GW, EGW [42]), which improves tractability through Sinkhorn iterations at the cost of solution accuracy. Fused GW (FGW) [38] further extends GW by incorporating node-feature information alongside structural costs, enabling richer comparisons when auxiliary data is available, but introducing an additional hyperparameter that requires tuning. Low-rank GW approximations [41] reduce the cubic complexity of EGW to near-linear, at the cost of restricting the coupling to a low-rank factorization. Despite these advances, GW’s inherent non-convexity means that all these methods are sensitive to initialization and prone to poor local minima [12,13].

2.3. Research Gap

The preceding review reveals three specific gaps that motivate this work. First, exact methods for CQAP are computationally infeasible beyond small scale, and existing heuristics do not scale well or handle capacity constraints naturally. Second, while GW optimal transport provides a principled connection to QAP through the quadratic relational cost structure, this connection has not been formally extended to CQAP with explicit treatment of capacity constraints as transport marginals. Third, GW optimization is inherently non-convex and sensitive to initialization, yet no systematic multi-initialization strategy has been proposed or evaluated for CQAP. GW_MultiInit directly addresses all three gaps.
This paper addresses the following research questions: (RQ1) Can the Gromov–Wasserstein optimal transport framework provide a scalable and accurate approximation for the CQAP? (RQ2) Does a multi-initialization strategy for GW optimization meaningfully reduce the risk of poor local optima compared to single-start alternatives? (RQ3) How do GW-based methods compare to established heuristics (GA) and GW variants (EGW, FGW) across different problem scales in terms of solution quality and runtime?

3. From Assignment to Optimal Transport

While QAP and CQAP arise naturally in discrete optimization, their structure aligns closely with Optimal Transport (OT). OT originates from Monge’s classical problem [30] and was later reformulated by Kantorovich [31], enabling mass splitting and convex optimization methods [32]. In the discrete case, which is the one most relevant here, the assignment problem appears as a special case of OT when transport plans are restricted to permutation matrices. Moreover, many studies have employed OT for optimization in various contexts [43].

3.1. From Monge’s Problem to the Assignment Problem

The origins of optimal transport can be traced back to the problem of moving piles of earth to fill holes while minimizing the total transport cost [44]. Formally, consider two discrete distributions of “mass” [30]:
μ = i = 1 n μ i δ x i ,   ν = j = 1 n ν j δ y j
where:
  • x i R d represents the i-th location point in the source distribution;
  • y j R d represents the j-th location point in the target distribution;
  • μ i > 0 and ν j >   0 are the amounts of mass at each source and target point;
  • δ x i and δ y j are Dirac delta measures at x i and y j , respectively.
The Monge problem seeks a transport map T : x 1 , , x n y 1 , , y m that minimizes the total transport cost:
min T i = 1 n c x i , T x i         s u b j e c t   t o           T # μ = ν  
where:
c ( x i , y j ) is the cost of moving a unit of mass from x i to y j ;
T # μ = ν means that pushing forward the distribution μ through T exactly reproduces ν, i.e., the total mass assigned to each target location equals its prescribed mass.
In the discrete uniform case, where ( a i = b j = 1 n , n = m), the transport map T reduces to a bijection. In this setting, Monge’s problem is equivalent to the classical AP, where each source is assigned to exactly one target while minimizing the total assignment cost, Equations (1)–(4).

3.2. Beyond Monge: Kantorovich Relaxation

While elegant, Monge’s formulation is restrictive. It forbids splitting mass and may not admit a solution. These limitations motivated Kantorovich’s 1942 relaxation [31], which replaces transport maps with transport plans. Instead of assigning each source to exactly one target, Kantorovich allows fractions of mass to be distributed across multiple targets. This both guarantees the existence of solutions and recasts the problem as a convex linear program.
For discrete distributions with source masses μ   =   ( μ 1 ,   ,   μ m ) and target masses ν   =   ( ν 1 ,   ,   v n ) , μ i ,   v j 0   ,   i   μ i   =   j v j = 1 let the transport plan become a matrix where T i , j represents the mass transported from source i to target j.
min T   R + { m × n } i = 1 m j = 1 n C i , j   ·   T i , j    
Subject to:
j = 1 n T i , j =   μ i           for   all   i   =   1 ,   . . . ,   m   ( source   constraints )
i = 1 m T i , j = v j             for   all   j = 1 ,   ,   n   ( target   constraints )
T i , j     0           for all   i ,   j                 ( non-negativity )
The assignment problem arises as a special case when all masses are unitary ( μ i = v j   =   1 ) and the feasible set is restricted to permutation matrices. In this sense, AP corresponds to the extreme points of the Kantorovich polytope.

3.3. Optimal Transport and CQAP

While the Kantorovich formulation overcomes Monge’s limitations by allowing mass splitting, ensuring solution existence, and admitting a convex optimization structure, it remains linear; it only models costs between individual source–target pairs ( x i , y j ) and does not model interactions between multiple pairs simultaneously. In contrast, the QAP and its continuous analogue (CQAP) depend on pairwise relational costs, where the objective reflects interactions between assignments of pairs. Such relational dependence cannot be captured by Kantorovich’s framework, which lacks a way to compare internal geometries of the two domains. The Gromov–Wasserstein (GW) distance addresses this gap by replacing pointwise costs with comparisons of intra-domain relations [11,38]. Specifically, the quadratic term in Equation (6) is equivalent in form to the GW cost function when F and D are interpreted as intra-domain distances (or similarities) in the source and target spaces.
The capacity constraints of CQAP are incorporated into the GW framework through the choice of marginal distributions. Specifically, we set μ i =   u i / U and v j =   d j / D , where U   =   Σ u i and D   =   Σ d j are the total facility capacity and total task demand, respectively (assumed equal by feasibility). Under this construction, the marginal constraint Σ j   T i , j = μ i in the transport polytope Π ( μ , ν ) directly encodes the capacity restriction of facility i, and Σ i   T i , j =   v j encodes the demand of task j. The quadratic objective of CQAP maps to the GW discrepancy by identifying the flow matrix F as the intra-facility structural matrix C X and the distance matrix D as the intra-location structural matrix C Y .

4. Gromov–Wasserstein (GW) Distance

4.1. Wasserstein Distances as Transport Costs

The Wasserstein distance is a key link between optimal transport theory and modern statistics. It provides a solid way to compare probability distributions and has impacted machine learning, statistics, and computational optimization [45,46,47]. Unlike traditional measures like Kullback–Leibler divergence or total variation distance, Wasserstein distances follow metric rules and give meaningful geometric measures of similarity that respect the structure of the space. The p-Wasserstein distance between probability measures μ and ν supported on the same ambient metric space ( Ω , d ) is defined through the Kantorovich formulation [45]. Let { x i } i = 1 n X and { y j } j = 1 m Y be the supports of two discrete probability measures μ = i = 1 n μ i δ x i , ν = j = 1 n ν j δ y j with weights μ i 0 ,   ν j 0 and i μ i = j ν j = 1 (or equal total mass if not normalized).
Define the cost c x i , y j = d x i , y j p for some metric d and exponent p 1 . Then the p-Wasserstein distance satisfies:
W p p ( μ , ν ) = m i n T Π ( μ , ν ) i = 1 n j = 1 m c x i , y j T i j     = m i n T Π ( μ , ν ) i = 1 n j = 1 m d x i , y j p T i j    
where the set of couplings (transport plans) is Π ( μ , ν ) = { T R 0 n × m : T 1 m = μ , T 1 n = ν } . Where Π ( μ , ν ) is the set of all couplings T with marginals μ and ν. This formulation directly connects Wasserstein distances to optimal transport by interpreting the distance as the minimum total cost of transporting mass from sources x i to targets y j under the cost function c ( x i ,   y j )   =   d ( x i , y j ) p .
The 2-Wasserstein distance (p = 2) admits an equivalent Monge formulation, which interprets the distance as the minimum “effort” to transport one distribution to another deterministically. This geometric perspective underlies many applications, including interpolation between distributions and computation of Wasserstein Barycenters [48]. For Gaussian distributions, the 2-Wasserstein distance has a closed-form solution via the Bures metric, which reduces to simpler expressions in diagonal or commutative cases. For general distributions, exact computation is costly, motivating approximate solutions such as entropic regularization and Sinkhorn-based algorithms.

4.2. Gromov Wasserstein

The classical Wasserstein distance is powerful for comparing probability measures when both are defined on the same metric space. Its cost relies on computing distances c ( x i , y j ) =   d ( x i , y j ) p between points across the two measures. However, this becomes limiting when the distributions live in different or unrelated spaces, where no natural cross-domain distance is available. In such cases, the Wasserstein distance cannot be directly applied. The GW distance is a strong generalization of the classic Wasserstein distance. It solves a key problem: comparing distributions that are not in the same space. GW compares distributions using their internal structural relationships. It extends optimal transport to cases where distributions cannot be compared point by point [49]. Instead of comparing points x i X and y j Y directly, GW compares the internal structures of the two metric spaces by aligning their pairwise distance matrices, where the intrinsic geometry of the objects is more important than any embedding into a common space. This perspective makes GW well suited for comparing metric–measure (mm) spaces, where the geometry of the objects is more important than any embedding into a common ambient domain. An mm space is defined as a triple X = ( X , d x , μ ) where X is a set d x is a metric on X , and μ M + ( X ) is a finite nonnegative measure over X (typically a probability measure). Many data structures naturally fit this framework. For instance, a point cloud X = x 1 , , x n R d equipped with the Euclidean metric d X x i , x j = x i x j 2 and the uniform measure μ = 1 N i δ x i constitutes an mm space; similarly, a graph becomes an mm space by letting X be the set of nodes, d x the shortest-path metric, and μ the uniform distribution on nodes [50]. GW aims to define a meaningful distance between two mm spaces X = ( X , d x , μ ) and Y = ( Y , d y , ν ) , each represented as a probability measure over their elements and attributes. To formalize this idea, we define the structural distance matrices:
C X R n × n ,   C Y R m × m denote the pairwise structural dissimilarities within each graph, C X ( i , j ) = d X ( x i , x j ) and C Y ( k , l ) = d Y ( y k , y l ) . Where X =   x 1 , , x n   with measure μ R n , and Y =   y 1 , , y m   with measure ν R m .
G W p p μ , ν = m i n T Π μ , ν i , j = 1 n k , l = 1 m L ( C X i , j , C Y k , l ) T i k T j l    
where Π μ , ν = { T R + n × m   :   T 1 m = μ ,   T 1 n = ν } is the transportation polytope. A common choice is the squared difference loss:
L ( C X i , j , C Y k , l ) = C X i , j C Y k , l p ,
Intuitively, the GW objective penalizes discrepancies between the pairwise distances C X i , j within the source domain and C Y k , l within the target domain, weighted by the transport plan T (Figure 1). A perfect structural match—an isometry between the two spaces—would yield a GW cost of zero. In practice, since no exact isometry typically exists between F and D in CQAP instances, the optimizer seeks a soft coupling T that minimizes the total structural distortion. The quadratic dependence on T (through the T i k . T j l product) is what makes this a non-convex problem and directly links it to QAP, where x i j · x k l encodes the same pairwise assignment interaction.
The assignment between two graphs (graph isomorphism) is known to be NP-hard [7]. To properly address such cases, one must consider mm-spaces, which take into account both the measure and the metric jointly. The Gromov–Wasserstein problem is a non-convex quadratic program over the transport plan T Π ( μ , ν ) , with a quadratic dependence T T that compares the pairwise structural distances C X i , j and C Y k , l , as in Equation (18). This quadratic term is what characterizes GW as a Quadratic Assignment Problem (QAP) and makes it NP-hard [12,13]. Since GW is non-convex, standard algorithms only guarantee a stationary point of the objective. One common approach is to linearize the quadratic program, generating a sequence of updates where T is optimized iteratively [11]. Variants of GW exploit additional information, such as computationally efficient lower bounds derived from global histograms of distances [51], which can be computed via classical OT and used as initialization for the GW optimization. The non-convexity of GW optimization and the resulting sensitivity to initialization motivate the development of more robust solution strategies. A broader review of computational GW solvers from the literature is provided in Appendix A.

4.3. Gromov Wasserstein Extensions

While the standard GW distance is effective for comparing structured data, many real-world problems require additional flexibility. To address this, several extensions of GW have been proposed. These include the Fused Gromov–Wasserstein distance, which incorporates both structural and feature information and Entropic Gromov Wasserstein. This section introduces each of these extensions and highlights their motivations and use cases.

4.3.1. Entropic Gromov Wasserstein

As we mentioned in the previous section, the GW distance involves solving a non-convex quadratic assignment problem, known to be NP-hard [52]. Traditional exact optimization techniques and convex relaxations (e.g., semidefinite programming or eigenvalue relaxations) often suffer from scalability issues, as they may require up to O ( n 4 ) variables (e.g., n 2 × n 2 for convex formulations) [11,42]. To address these computational limitations, Entropic Gromov–Wasserstein (EGW) was introduced as a scalable, differentiable approximation to the original GW problem by adding an entropy regularization term to the optimization objective [42]. Unlike classical methods that rely on rigid constraints and non-convex optimization schemes, EGW maintains the coupling constraints while providing global convergence guarantees and improved numerical stability. One of the key strengths of the entropic formulation is its flexibility: it naturally extends to structured transport problems, enabling efficient solutions for Fused Gromov Wasserstein (FGW) and Unbalanced Gromov Wasserstein (UGW). The algorithm operates in an iterative framework, where each iteration consists of two main steps [38,52]:
  • Gradient computation of the GW objective via tensor contractions, which has a computational cost of O ( n 3 ) ;
  • Sinkhorn updates to solve the resulting entropic OT subproblem have a per-iteration cost of O ( n 2 ) .
But since these updates are performed repeatedly within the GW optimization loop, the overall computational complexity of the full GW algorithm remains O ( n 3 ) . This separation of the GW structure-matching step and the entropy-regularized transport update makes EGW particularly effective for medium-scale graphs. However, the cubic complexity in the number of nodes remains a bottleneck in large-scale settings. Entropic regularization addresses the GW objective with a negative entropy term, yielding the EGW formulation. Specifically, let L(T) denote the unregularized GW loss function defined in (18), and let ε > 0 be the entropic regularization parameter. The entropy of the coupling T is H T = i , k T i , k   l o g T i , k : entropy of the coupling.
The general entropic OT problem augments the OT objective with a Kullback–Leibler (KL) divergence penalty:
E G W ε ( μ , ν ) = min T Π μ , ν L ( T ) + ε K L ( T μ ν )
where Π(μ,ν) is the transportation polytope defined in (18) and K L ( T μ ν ) is the standard KL divergence between T and the independent measure μ ν .
Specializing this formulation to the GW setting in Equation (18) yields the entropic GW objective:
Specializing this to the Gromov–Wasserstein setting, where the quadratic loss compares the structural distance matrices C X i , j and C Y k , l , yields the entropic GW objective:
E G W p C X , C Y ; μ , ν = m i n T Π μ , ν i , j = 1 n k , l = 1 m L ( C X i , j , C Y k , l ) T i k T j l     ε H ( π )
where L ( C X i , j , C Y k , l ) is defined in (19). In practice, replacing the KL divergence with the negative entropy term enables efficient Sinkhorn-type algorithms, which iteratively scale the transport matrix T while preserving the marginal constraints μ and ν. These algorithms achieve linear convergence rates, are amenable to GPU acceleration, and reduce memory requirements compared to unregularized GW solvers. Entropic GW is particularly valuable in large-scale settings, soft-matching scenarios, and unbalanced OT problems, where approximate transport solutions and relaxed mass constraints can be naturally incorporated through the entropic penalty [42,53].

4.3.2. Fused Gromov Wasserstein

While GW captures structural similarity, many practical graphs also come with node features (e.g., text, categories, vectors). The FGW distance extends GW by combining both feature-level and structure-level comparisons in a unified framework [54].
Figure 2 illustrates the key idea behind the FGW distance. It visually represents how FGW aligns nodes between two graphs by considering both feature similarity (e.g., node attributes or embeddings) and structural similarity (relationships between nodes captured by the adjacency or structure matrices).
Let M i j = d ( a i , b j ) be a feature dissimilarity cost (e.g., Euclidean or cosine distance),
Equation (19) can be used in terms of the loss function to formulate the FGW distance as a trade-off between node feature similarity and graph structure similarity [38]:
F G W p α ( μ , ν ) = min T Π μ , ν   i , 𝑖 ´ = 1 n j , 𝑗 ´ = 1 m   ε p α ( T ; M , C X , C Y )  
where:
ε p α π ; M , C X , C Y = 1 α d a i , b j p + α   L ( C X i , j , C Y k , l ) T i k T j l
where α [ 0,1 ] is a trade-off parameter:
  • α = 0 : pure feature-based comparison (Wasserstein);
  • α = 1 : pure structure-based comparison (Gromov–Wasserstein);
  • α ( 0,1 ) : fused distance accounting for both aspects.

4.3.3. Multiple Initialization Strategy for Gromov–Wasserstein Optimization

The Gromov–Wasserstein problem presents significant computational challenges because its objective function is non-convex. This creates many local optima that can trap optimization algorithms. Standard GW solvers usually start with a single initialization, often using the product of marginal distributions. But this often leads to suboptimal solutions, especially with complex cost matrix structures. To improve the exploration of the optimization space and mitigate the risk of getting stuck in local minima, we adapted an approach borrowed from non-convex optimization, called multi-initialization (GW_MultiInit), which runs the standard GW algorithm from multiple randomly generated starting points and selects the solution with the lowest objective value [55]. The specifics of the algorithm developed are provided in the following pseudo-code Figure 3:
In each call to G W ( C X , C Y ,   μ ,   ν ,   G t ) , the underlying solver (the conditional gradient method implemented in the Python Optimal Transport library [56]) iterates until the Frank–Wolfe gap falls below a tolerance of t o l   =   10 9 or a maximum of 1000 iterations is reached, whichever occurs first. No additional stagnation criterion is applied at the multi-initialization level. The outer loop runs a fixed number of T trials regardless of intermediate objective values. The GW_MultiInit algorithm was run with T = 10 random restarts in all main experiments. This value was selected based on a sensitivity analysis over T ∈ {1, 3, 5, 7, 10, 15, 20} using 20 independent runs per configuration across all benchmark instances (see Appendix B). Solution stability plateaus at T = 10 with no meaningful variance reduction for larger T, while runtime scales linearly, making T = 10 the best trade-off between robustness and computational cost.
The algorithm begins by solving the standard GW problem with a default initialization, then performs T additional trials, each starting from a randomly generated valid coupling matrix. For each random initialization, we first generate a uniform random matrix and project it onto the coupling polytope Π ( μ , ν ) using Sinkhorn iterations to ensure marginal constraints are satisfied. The GW algorithm is then executed from this random starting point. Upon completion of all T + 1 trials (the default initialization plus T random restarts), the coupling achieves the lowest GW objective value L G W ( T ) = i , j , k , l ( C X i j C Y k l ) 2 T i k T j l across all trials is returned the final solution T * . This multi-initialization strategy leverages the fact that different starting points can lead the iterative GW solver to different local optima, thereby increasing the likelihood of finding a globally optimal or near-optimal solution to the challenging non-convex Gromov–Wasserstein matching problem. A systematic review of related multi-initialization and multi-start strategies proposed in the GW literature is provided in Appendix A.

5. Computational Results

In our computational experiments, we address the CQAP through the lens of GW optimization, a framework originally developed for comparing structured distributions in different metric spaces. Our evaluation is organized into two complementary parts. First, in Section 5.1, we assess all methods on a set of synthetic CQAP instances divided by problem size. Second, in Section 5.2, we evaluate all approximate methods on 17 real-world instances drawn from the QAPLIB benchmark library [57], adapted to the CQAP setting by augmenting the standard flow and distance matrices with randomly generated capacity and demand constraints, providing an external validity check on the conclusions drawn from synthetic data.
Across both benchmarks, we conduct a systematic evaluation using several methods: exact quadratic solvers (where feasible), standard GW, GW_MultiInit, Entropic GW (EGW), Fused GW (FGW), and the Genetic Algorithm (GA). The GA is included as a widely used heuristic for solving QAP-type problems [9,58,59], allowing us to benchmark the performance of our optimal transport-based methods against established, general-purpose optimization approaches. Each approach provides a different balance between computational efficiency and objective quality. The exact MIQP solver (Gurobi with NonConvex = 2) serves as the optimality reference for small and medium instances but is excluded for large instances, where it becomes computationally infeasible. EGW and FGW are included as GW variants offering complementary tradeoffs. EGW trades accuracy for speed through entropic regularization, while FGW incorporates node-feature information not present in standard CQAP instances and thus serves as a structural comparison rather than a direct competitor. Our goal is to assess how well these methods approximate the CQAP solution under scalability constraints, and to identify which variants are most suitable for practical deployment depending on the problem size and resource availability.
Solution quality is measured as the percentage gap from the best-known solution, where the reference is the exact optimum for small and medium instances and the best result across all approximate methods for large instances. All results are averaged over 30 independent runs. Methods were not constrained to a common time budget. Each ran to its natural convergence under its own stopping criterion, so runtime figures reflect typical deployment conditions rather than a controlled budget comparison. Additionally, runtime comparisons should be interpreted with the awareness that different methods operate under different internal computational settings for instance, GW-based methods leverage the POT library’s optimized C backend, while the GA relies on Python-level evolutionary operators, so observed runtime differences reflect both algorithmic efficiency and implementation characteristics.
All experiments were run on a laptop with a 13th Gen Intel Core i7-1355U processor (1.70 GHz) and 16 GB RAM, using a 64-bit Windows operating system. For Gromov–Wasserstein distance estimation, we employed the Python Optimal Transport (POT) library (version 0.9.5) [56], together with supporting libraries such as NumPy (version 1.24.4), SciPy (version 1.10.1) for numerical routines, and Matplotlib (version 3.7.5) for visualization. The full implementation of all algorithms and the experimental setup is available on GitHub at https://github.com/iman-ie/GW_CQAP for reproducibility and further research.

5.1. Synthetic CQAP Instances

We evaluate all methods on a set of synthetic CQAP instances spanning three problem scales, Small (n ≤ 6), Medium (10 ≤ n ≤ 20), and Large (30 ≤ n ≤ 100), as described in Table 1. Each instance specifies the number of agents (facilities) and tasks (locations); capacities and demands are assigned as random integers. For instance, with n ≤ 20, a Gurobi MIQP solver with the NonConvex = 2 flag provides exact solutions against which all approximate methods are evaluated. For large instances (n ≥ 30), exact computation becomes infeasible, and we report relative comparisons among approximate methods only.
Solution quality on small and medium instances. Table 2 reports the percentage gap from the exact optimal solution for each method. GW_MultiInit achieves the lowest average gap of 1.78%, consistently matching or closely approximating the exact solution across all problem sizes. EGW with ε = 0.8 attains an average gap of 7.08% and provides the best accuracy among the EGW variants based on the sensitivity analysis in Appendix B, which identifies this value as the most effective across these scales. FGW with α = 0.7 achieves an average gap of 13.59%, confirming that structural information (high α) is the dominant factor for CQAP quality. GA performs comparably to GW_MultiInit on the smallest instances (n ≤ 6), where differences between methods are often modest (0.05–0.2%); however, GA’s gap increases noticeably at medium scale, where GW_MultiInit maintains a more consistent advantage. We note that on individual small instances, the numerical differences between methods should be interpreted cautiously, as the margins are narrow; the advantage of GW_MultiInit is more clearly established at medium scale and above. Extended per-method objective values are reported in Appendix B (Table A2), and full computation times in Appendix B (Table A3).
The 30-run variability analysis in Appendix B (Figure A5) reveals that GW_MultiInit exhibits consistently lower median objective values and tighter interquartile ranges than GW Default and GA across all tested instance sizes, confirming that the multi-initialization strategy improves not only average performance but also run-to-run stability. GA shows the highest variability, particularly at medium scale (n = 12–20), where its stochastic search becomes increasingly sensitive to initialization. Among GW variants, GW Default shows moderate variability that GW_MultiInit reliably reduces. The runtime growth analysis in Figure A6 further confirms that all GW-based methods scale polynomially while the exact solver grows superexponentially, becoming impractical beyond n = 14. The gap is computed as a relative error:
G a p   ( % ) = A p p r o x .   O b j e c t i v e E x a c t   O b j e c t i v e E x a c t   O b j e c t i v e × 100
In large instances (Table 3), GW_MultiInit consistently achieves the best objective values across all sizes from 15 × 12 to 100 × 100. The GA is excluded for the two largest instances (60 × 60, 100 × 100) due to prohibitive runtimes exceeding available computation time. FGW’s relative performance degrades at larger scales, likely because feature–structure blending becomes less effective when no explicit node features are present. Table 4 documents that all GW-based methods complete within under 5 min, even at n = 100, while the GA requires hours.
Figure 4 shows the scalability of different methods across problem sizes. GW_MultiInit and GW Default maintain solution quality close to the exact baseline up to n = 20, while EGW and FGW diverge more noticeably at medium scale. The curves begin to separate visibly at approximately n = 12–15, where entropic regularization in EGW and the feature–structure blending in FGW start introducing approximation error that single-start and multi-start GW avoid. The gap between GW_MultiInit and the next-best approximate method widens from approximately 5% at n = 10 to over 10% at n = 20, indicating that the advantage of multi-initialization becomes more pronounced as problem size grows. Figure 5 jointly visualizes solution quality and runtime trade-offs at a large scale. GW_MultiInit achieves the best objective values across all large instances but requires substantially more computation time than single-start alternatives: at n = 100, GW_MultiInit takes 846 s compared to 58 s for GW Default and under 51 s for EGW and FGW variants. EGW and FGW offer practical compromises, achieving objective values within 30–50% above GW_MultiInit at a fraction of the runtime. The observed runtime growth is broadly consistent with the theoretical O(n3) complexity of the GW solver: from n = 30 to n = 100, GW_MultiInit’s runtime increases by approximately 15×, close to the expected 8× for pure cubic scaling with the additional constant factor attributable to the 10 random restarts. This confirms that the empirical scaling behavior aligns with the theoretical prediction, and extrapolating from Figure 5 suggests that GW_MultiInit will exceed practical time thresholds at approximately n = 250–300 on comparable hardware. The accuracy–speed trade-off across all methods and problem sizes is summarized in Figure 6, where GW_MultiInit occupies the most favorable position in terms of solution quality, with an average gap of 1.78% on small and medium instances compared to 7.08% for EGW and 13.59% for FGW, while GA, despite comparable quality on small instances, becomes computationally prohibitive at large scale, requiring hours where GW_MultiInit completes within minutes. Table 5 provides a consolidated best-method summary across all instances.
Extended results covering the full EGW ε and FGW α parameter sensitivity analyses, detailed runtime growth charts, and per-instance boxplots over 30 runs are provided in Appendix B.

5.2. Evaluation on QAPLIB Instances (Varied CQAP Mode)

To assess generalizability beyond synthetic data, we evaluate all approximate methods on 17 instances drawn from the QAPLIB benchmark library [57], transformed into CQAP instances by augmenting the standard flow and distance matrices with randomly generated integer capacities and demands. Facility capacities u i were drawn uniformly from [2,5] and raw task demands from [1,3], then scaled so that total demand equals total capacity ( Σ d j   =   Σ u i ) , producing a balanced instance. A fixed random seed (seed = 42) was used throughout for reproducibility. The full generation procedure is available in the public repository at https://github.com/iman-ie/GW_CQAP. The flow matrix F and distance matrix D are sourced directly from QAPLIB, spanning instances from n = 12 (nug12, chr12a, tai12a) to n = 50 (tai50a) and covering three structural families: nugent (regular structure), chr (asymmetric), and tai (random dense). Since the capacity constraints produce fractional transport plans, we use the GW objective directly rather than rounding to permutations, and measure performance gaps relative to the best result found by any approximate method. The exact Gurobi solver is run with a two-hour per-instance limit; the first instance exceeding this limit and all larger instances receive NA and are excluded from the exact baseline. Complete per-instance results are provided in Appendix C.
Table 6 summarizes average performance across all 17 instances. GW MultiInit achieves the lowest average gap of 0.34% and attains the best approximate result on 15 out of 17 instances, at an average runtime of 0.085 s per instance. GW Default yields a gap of 3.26% with near-instantaneous runtime (0.003 s), and FGW with α = 0.7 reaches 6.97% while remaining fast (0.008 s). The GA matches GW Default in average gap (3.26%) but is three orders of magnitude slower, requiring up to 142 s per instance at n = 40. EGW variants show substantially larger gaps (≈80%), reflecting sensitivity to fixed ε values relative to the scale of QAPLIB cost matrices; this issue and its mitigation are discussed in Appendix C.
The accuracy–runtime trade-off of GW_MultiInit warrants explicit discussion. Relative to GW Default, GW_MultiInit requires approximately 28× more computation time (0.085 s vs. 0.003 s per instance) in exchange for a gap reduction from 3.26% to 0.34%, which is a roughly 9.6× improvement in solution quality. Whether this trade-off is justified depends on the application. For time-critical deployment, GW Default offers near-instantaneous results at acceptable quality, while GW_MultiInit is preferable when solution quality is the primary criterion and runtimes below one second are sufficient. Compared to GA, GW_MultiInit delivers the same quality improvement while being three orders of magnitude faster (0.085 s vs. 49.9 s), making it the dominant choice in both dimensions against the evolutionary baseline.
Figure 7 shows the per-instance gap distribution. GW_MultiInit’s gap is zero on all but two instances where GW_MultiInit does not achieve the best result are tai15a and tai30a. Both tai15a and tai30a belong to the tai (random dense) family, characterized by large, uniformly random flow and distance matrices with no exploitable regularity. In tai15a, FGW with α = 0.5 finds a lower objective (gap = 5.01% for GW_MultiInit), likely because the feature–structure blending in FGW aligns fortuitously with the dense random cost structure. In tai30a, FGW with α = 0.3 marginally dominates with a difference of only 0.74%. The shared structural characteristic, dense, unstructured matrices, suggests that the GW relational matching is slightly less effective when no geometric regularity exists to exploit, which is consistent with GW’s design as a structure-preserving method. Crucially, in both cases, GW_MultiInit remains the second-best method and the gaps are small in absolute magnitude, confirming that these exceptions do not undermine the overall reliability of the approach across structural families. Full per-instance results are provided in Appendix C (Table A5 and Figure A7). Figure 8 places all methods in the accuracy–runtime plane: GW_MultiInit occupies the Pareto-optimal region, combining the smallest gap with runtimes well below those of GA.
These findings corroborate the synthetic benchmark results of Section 5.1. GW_MultiInit generalizes robustly to established combinatorial benchmark instances with diverse structural properties, and its advantage over both GA and single-initialization GW is consistent across all tested problem families.

6. Conclusions, Limitations, and Perspectives

GW optimal transport provides a powerful framework for comparing metric-measure spaces while preserving geometric structure, directly linking to the non-convex CQAP, which is NP-hard. In this paper, we established a formal connection between CQAP and the GW framework by showing how capacity and demand constraints are encoded in the transport marginals, allowing the CQAP objective to be expressed directly as a GW discrepancy. Building on this, we introduced GW_MultiInit, a multi-initialization strategy that mitigates the non-convexity of GW optimization by exploring multiple random starting couplings and selecting the solution with the lowest objective value. This strategy is simple to implement, adds no hyperparameters beyond the number of restarts, and integrates naturally with existing GW solvers.
We investigated several GW variants and solvers, including entropy-regularized GW, FGW, and GA approaches, and compared them systematically against GW_MultiInit across both synthetic and benchmark instances. Our results show that GW_MultiInit consistently achieves higher alignment accuracy and is more robust across synthetic benchmarks and real-world datasets. It outperforms EGW, FGW, and GA while remaining computationally manageable through Sinkhorn-based regularization. Across benchmarks, approximate and regularized solvers can substantially reduce computational cost while maintaining high-quality solutions, particularly for large CQAP instances. Evaluation on 17 QAPLIB instances in the adapted CQAP setting confirms that GW_MultiInit generalizes to established combinatorial benchmarks with diverse structural properties, achieving an average gap of 0.34% from the best-known solution and the best approximate result on 15 out of 17 instances. These results strengthen the case for GW-based methods as a practical, general-purpose solver for large-scale assignment problems beyond the synthetic setting. We note that at small scale (n ≤ 6), GA achieves a lower average gap than GW_MultiInit, as the compact feasible space allows evolutionary search to converge reliably near the optimum; this advantage reverses at medium and large scales where GW’s continuous relaxation enables scalability that evolutionary methods cannot match within comparable runtime.
Limitations. Several limitations should be acknowledged. First, the cubic runtime complexity O(n3) of the GW solver becomes prohibitive for very large instances; based on the runtime trends observed in Section 5.1, computational cost is expected to exceed practical thresholds at approximately n = 200–250 on comparable hardware. Second, GW_MultiInit does not provide optimality guarantees: the returned solution is a stationary point of the non-convex GW objective, and global optimality is not assured even with multiple restarts. Furthermore, solution quality relative to the global optimum may degrade for very large or structurally complex instances where the non-convex GW landscape contains many competing local optima that multi-initialization can mitigate but not eliminate. In such cases, the gap from the global optimum may be substantially larger than the 0.34% observed on the QAPLIB benchmark, and users should treat reported gaps as lower bounds on the true optimality gap when the exact solution is unavailable. Third, capacity constraints are encoded via normalized marginals, which is exact only when total capacity equals total demand; instances with imbalanced mass require the Unbalanced GW framework, which was not explored here. Fourth, comparisons across methods were conducted without a shared time budget, so runtime figures reflect natural convergence behavior rather than a controlled efficiency comparison.
Future directions. Looking ahead, several directions could make GW methods more scalable and flexible. Some promising options are multi-marginal GW for aligning multiple metric-measure spaces simultaneously, unbalanced GW for measures with unequal mass, partial GW for missing or noisy correspondences, sliced GW for computation using fewer dimensions, and scalable GW for billion-scale graph and point cloud matching. Algorithm improvements such as convex relaxations, spectral correspondence techniques, scalable graph-based GW learning, sampled GW, importance sparsification, and low-rank GW can also lower complexity without sacrificing accuracy. Bayesian optimization in permutation spaces—with Gaussian process surrogates and kernels such as Mallows or Merge—offers a principled way to address non-convexity in GW-related QAPs, providing globally convergent strategies that complement existing gradient methods. These developments could extend GW-based methods to larger and more complex domains, from structured data analysis and machine learning to network science and computational biology. More immediately, warm-starting GW_MultiInit with GA or greedy solutions could combine the complementary strengths of evolutionary and transport-based methods, and applying the framework to real-world logistics and telecommunication instances would provide a direct test of its operational value.

Author Contributions

Conceptualization, E.M. and F.A.; Methodology, I.S., A.C. and F.A.; Software, I.S.; Validation, I.S. and A.C.; Writing—original draft, I.S. and F.A.; Writing—review & editing, I.S., A.C., E.M. and F.A.; Visualization, I.S.; Supervision, F.A. All authors have read and agreed to the published version of the manuscript.

Funding

The work has been supported by “ULTRA OPTYMAL—Urban Logistics and sustainable TRAnsportation: OPtimization under uncertainTY and MAchine Learning”, a PRIN2020 project funded by the Italian University and Research Ministry (grant number 20207C8T9M).

Data Availability Statement

The original data presented in the study are openly available in GitHub at https://github.com/iman-ie/GW_CQAP (accessed on 21 April 2026).

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Review of the Computational Gromov–Wasserstein and Multi-Initialization Strategies Literature

This section provides an overview of existing GW solvers, both unregularized and entropic approach algorithms, and is designed for GW extensions such as Fused [38] and Unbalanced [55]. Since GW is closely related to the quadratic assignment problem (QAP), which is known to be NP-hard [1], finding a global minimum is computationally expensive and theoretically intractable given the non-convexity of the objective function. Recent works have proposed relaxations to make this global search tractable: ref. [60] formulate GW as a generalized moment problem that can be truncated at the desired degree of precision, while ref. [61] propose a semi-definite relaxation solvable in polynomial time. Alternatively, ref. [39] exploit the structure of squared Euclidean costs to design a cutting plane algorithm that efficiently explores the set of admissible solutions. Despite these advances, global methods remain slow and are limited to inputs containing at most a few hundred points.
Many practical applications only require a quantification of similarity between α and β rather than an exact matching. In such cases, cheaper alternatives to the full GW problem may suffice. This category includes SLICED GW [62], QUANTIZED-GW [63], MINIBATCH-GW [64] and LINEAR-GW [65], as well as GW-inspired distances for Gaussian mixture models [66]. While these heuristics can be computed in quadratic or even linear time, they rely on heavy approximations and are less suitable for tasks requiring precise point-wise correspondences, such as shape matching.
Exact Entropic Solvers. Entropic regularization, introduced by [42,67], allows GW to be solved using the efficient Sinkhorn algorithm. The standard solver, ENTROPIC-GW, is a Projected Gradient Descent (PGD) in the KL-divergence geometry. When costs are squared norms, [41] further reduces this computation to O ( N M D ) . Similarly, the dual solver DUAL-GW of [53] achieves quadratic complexity and is guaranteed to converge.
Accelerated Approximations. Apart from the squared norm case, solving EGW remains expensive. The algorithm complexity can still be improved thanks to several approximation strategies introduced in the last few years. SAMPLED-GW [68], SPARSE-GW [69] applying a sparsity mask to fasten both cost matrix computations and Sinkhorn iterations. LOWRANK-GW [41] approximates the input cost matrices via low-rank factorization. These three algorithms reach a quadratic running time, improving significantly the scalability of the original EGW solvers. With LINEARLOWRANK-GW [41] combine the low-rank cost reduction with a low-rank constraint on the transport plan, further reducing computation time to O ( N + M ) . Finally, ULOT (Unsupervised Learning of Optimal Transport) [70] trains neural networks to predict optimal couplings, removing the optimization burden at inference time—although its training phase keeps a cubic complexity.

Multi-Solution Discovery and Initialization Strategies

Given the non-convexity of GW and related optimization landscapes, multi-start or multi-initialization strategies have been suggested. In this context, [71] introduced Rank-Ordered Bayesian Optimization with Trust Regions (ROBOT), which seeks multiple high-performing, diverse solutions within a single optimization run. ROBOT efficiently balances exploration and diversity, discovering diverse local optima with minimal additional function evaluations. Further contributions by [72] emphasized the importance of informed initialization in BO, particularly under limited data scenarios. Their HIPE (Hyperparameter Informative Predictive Exploration) strategy improves sample efficiency by prioritizing uncertainty reduction in both prediction and hyperparameter learning.

Appendix B

Appendix B.1. Sensitivity Analysis: Number of Random Restarts (T)

To justify the choice of T = 10 restarts for GW_MultiInit, we conducted a sensitivity analysis over T ∈ {1, 3, 5, 7, 10, 15, 20}. For each value of T and each benchmark instance (n = 4, 6, 10, 15, 20), we performed 20 independent runs and recorded the mean objective value, its standard deviation, and wall-clock runtime.
Figure A1 shows that runtime scales approximately linearly with T across all instance sizes, increasing from an average of 0.071 s at T = 1 to 0.658 s at T = 20. Figure A2 shows that solution stability, measured by the standard deviation of the objective value across runs, improves consistently up to T = 10 and plateaus thereafter, with no meaningful reduction in variance observed for T > 10.
Figure A1. Sensitivity of Runtime to Number of Restarts.
Figure A1. Sensitivity of Runtime to Number of Restarts.
Mathematics 14 01972 g0a1
Figure A2. Run-to-Run Stability vs. Number of Restarts.
Figure A2. Run-to-Run Stability vs. Number of Restarts.
Mathematics 14 01972 g0a2
These results indicate that T = 10 achieves stable solution quality without incurring unnecessary computational overhead, and is therefore used in all main experiments.

Appendix B.2. Extended Synthetic CQAP Instances Results

This section of the appendix presents the full numerical results for the synthetic benchmark described in Section 5.1.
Full objective values and runtimes (small/medium instances). Table A1 reports the raw GW objective values for all methods on instances with n ≤ 20, where exact Gurobi solutions are available. Table A2 gives the corresponding per-instance runtimes in seconds. All GW-based methods complete in under 2 s on every instance; the Exact solver requires up to 4368 s (interrupted) for the 12 × 14 instance, and the GA requires up to 134 s at the same scale.
Table A1. Summary of Methods Performance (Problems with Exact Solutions).
Table A1. Summary of Methods Performance (Problems with Exact Solutions).
Problem SizeMassGW DefaultGW MultiInitEGW 0.3EGW 0.5EGW 0.7FGW 0.3FGW 0.5FGW 0.7GAExact
3 × 39995.89981.63995.89981.6324981.63251489.06981.63981.63981.63981.63
4 × 410821.43821.43821.43821.441821.4451180.881180.88900.83821.43821.43
5 × 6171430.521430.521430.531430.861432.812694.071622.191622.191432.811420.18
6 × 5212324.622317.292324.622324.652325.103102.403102.403102.402324.622317.29
10 × 10317729.064975.225653.205670.365752.015879.825364.285247.657729.064525.76
12 × 14367319.045405.298339.817755.816347.128287.727149.915826.337319.045951.45 *
Note: Boldface indicates the best-performing value in each problem. * The best result until 4367.95 s after the run was interrupted.
Table A2. Computation Times (seconds) for Exact-Solvable Problems.
Table A2. Computation Times (seconds) for Exact-Solvable Problems.
Problem SizeGW DefaultGW MultiInitEGW 0.3EGW 0.5EGW 0.7FGW 0.3FGW 0.5FGW 0.7GAExact
3 × 30.0010.0100.0830.0580.0410.0000.0010.0002.2650.034
4 × 40.0010.0120.1510.1480.1490.0000.0010.0003.3500.065
5 × 60.0010.0220.1460.2240.2800.0010.0010.00111.2390.801
6 × 50.0010.0210.0650.0560.0530.0000.0010.00040.4451.254
10 × 100.0050.0840.3040.3111.1790.0040.0040.00477.509732.42
12 × 140.0180.2292.0282.0360.5100.0370.0390.015134.6914367.95
Note: Boldface indicates the best-performing value in each problem.
EGW ε parameter sensitivity. Table A3 reports the gap from exact and average runtime as a function of the entropic regularization parameter ε ∈ {0.0, 0.3, 0.5, 0.7, 0.8, 0.9, 1.0}. Larger ε values reduce the average gap but increase runtime marginally; ε = 0.8 achieves the best accuracy–speed balance (avg. gap 7.08%, avg. runtime 0.69 s) and is recommended as a default. Figure A3 visualizes this trade-off curve.
Table A3. EGW Epsilon Parameter Analysis.
Table A3. EGW Epsilon Parameter Analysis.
Problem Sizeε = 1.0ε = 0.9ε = 0.8ε = 0.7ε = 0.6ε = 0.5ε = 0.3
Gap from Exact (%)
3 × 3---0.000.000.001.45
4 × 40.000.000.000.000.000.000.00
5 × 60.220.141.060.890.800.750.73
6 × 50.490.420.370.340.320.320.32
10 × 1016.8116.4516.0827.0926.4525.2924.91
12 × 1419.6018.7317.9717.4244.2843.4954.29
Average Gap7.437.127.087.6211.9711.6413.62
Computation Time (s)
Average0.630.640.690.520.790.800.85
Figure A3. EGW Epsilon Parameter Optimization: Balancing Accuracy and Efficiency.
Figure A3. EGW Epsilon Parameter Optimization: Balancing Accuracy and Efficiency.
Mathematics 14 01972 g0a3
FGW α parameter sensitivity. Table A4 reports the analogous analysis for the α blending parameter in FGW ∈ {0.0, 0.3, 0.5, 0.7}. As shown in Figure A4, α = 0.7 achieves the lowest average gap (13.59%) with negligible runtime overhead (avg. < 0.02 s), confirming that structural information dominates for CQAP. Values near α = 0 produce large gaps (>50%), underscoring the inadequacy of pure feature-based transport for this problem class.
Table A4. FGW Alpha Parameter Analysis.
Table A4. FGW Alpha Parameter Analysis.
Problem Sizeα = 0.0α = 0.3α = 0.5α = 0.7
Gap from Exact (%)
3 × 351.6951.690.000.00
4 × 443.7643.7643.769.67
5 × 689.4289.7014.2214.22
6 × 532.1433.8833.8833.88
10 × 1033.9729.9218.5315.95
12 × 1466.8053.3332.287.79
Average Gap52.9650.3823.7813.59
Computation Time (s)
Average0.0140.0180.0190.014
Figure A4. FGW Performance Analysis: Optimal Alpha Parameter Selection.
Figure A4. FGW Performance Analysis: Optimal Alpha Parameter Selection.
Mathematics 14 01972 g0a4
Variability across runs. Figure A5 presents boxplots over 30 independent runs for each method on instances ranging from 15 × 12 to 40 × 50. GW MultiInit shows consistently lower median objective values and tighter interquartile ranges than GW Default and GA, demonstrating both accuracy and reliability of the multi-initialization strategy.
Figure A5. Algorithm Performance Comparison Across Problem Sizes.
Figure A5. Algorithm Performance Comparison Across Problem Sizes.
Mathematics 14 01972 g0a5
Exact vs. approximate runtime growth. Figure A6 plots computational time as a function of problem size for all methods including the Exact solver. The exact solver’s runtime grows superexponentially (from 0.034 s at n = 3 to >4000 s at n = 14), while all GW variants scale polynomially, with GW Default and FGW remaining the fastest and GW_MultiInit incurring a constant factor overhead proportional to the number of restarts.
Figure A6. Computational Time Growth Comparison: Exact vs. Approximate Methods.
Figure A6. Computational Time Growth Comparison: Exact vs. Approximate Methods.
Mathematics 14 01972 g0a6

Appendix C. Extended QAPLIB Varied CQAP Benchmark Discussion

This appendix provides extended numerical results and analysis for the QAPLIB Varied CQAP benchmark evaluation described in Section 5.2.
Per-instance objective values. Table A5 reports the full objective value for each method on all 17 QAPLIB instances. The column “Best Approx.” records the minimum objective across all approximate methods and serves as the gap reference. Bold entries indicate the best result for each instance.
Table A5. Per-instance results on QAPLIB Varied CQAP benchmark.
Table A5. Per-instance results on QAPLIB Varied CQAP benchmark.
InstancenGW MultiInitGW DefaultFGW α = 0.7 GABest Approx.MI Gap (%)
nug12128476.008573.009092.108573.008476.000
chr12a123,662,8333,770,8113,701,3363,770,8113,662,8330
tai12a121,339,5751,340,6681,816,9231,340,6681,339,5750
nug151516,284.2017,173.0016,781.6017,173.0016,284.200
chr15a157,202,1577,305,0047,254,5577,305,0047,202,1570
tai15a152,190,4972,190,4972,341,1172,190,4972,086,0175.01
esc16a165393.605449.505520.205449.505393.600
nug171723,624.2024,212.8025,372.0024,212.8023,624.200
chr20a201,716,1651,724,6231,722,3161,724,6231,716,1650
nug202032,618.2033,837.6037,469.3033,837.6032,618.200
tai20a204,521,8114,669,7694,799,7674,669,7694,521,8110
nug252550,907.7053,112.4052,361.0053,112.4050,907.700
tai25a257,503,5537,662,4677,905,8387,662,4677,503,5530
tai30a3011,061,93711,649,88711,487,44211,649,88710,980,1960.74
tai35a3515,653,11715,998,51216,386,73915,998,51215,653,1170
tai40a4019,359,21221,976,12920,970,61921,976,12919,359,2120
tai50a5034,921,91434,931,90135,486,75934,931,90134,921,9140
Scaling behavior. Figure A7 plots the normalized objective (method value/best approx.) as a function of problem size n, averaged over instances of equal size. GW_MultiInit remains at 1.00 for all sizes except tai15a and tai30a, where the deviation is negligible. GW Default and GA diverge from 1.00 by up to 14% at n = 17 (nug17) but recover at larger sizes, suggesting instance-specific sensitivity rather than a systematic scaling problem.
Figure A7. Normalized CQAP objective (method value/best approximate) vs. problem size n, averaged over instances of equal size. A value of 1.00 (dashed line) denotes the best known result. GW_MultiInit remains at or below 1.01 across all sizes (n = 12–50).
Figure A7. Normalized CQAP objective (method value/best approximate) vs. problem size n, averaged over instances of equal size. A value of 1.00 (dashed line) denotes the best known result. GW_MultiInit remains at or below 1.01 across all sizes (n = 12–50).
Mathematics 14 01972 g0a7
Figure A8 is the most natural addition—a per-instance runtime chart split into two panels: GW-based methods on the left, GA on the right (separate scales due to the orders-of-magnitude difference). This directly parallels Table A3 in Appendix B and gives readers a visual companion to the per-instance data in Table A5.
Figure A8. Per-instance runtime (seconds) for GW MultiInit, GW Default, and FGW α = 0.7 (left panel) and GA (right panel) across 17 QAPLIB Varied CQAP instances, sorted by problem size n. Panels use separate linear scales due to the large runtime disparity between GW-based methods (≤0.35 s) and GA (up to 142 s). GW MultiInit’s overhead relative to GW Default reflects the cost of 10 random restarts.
Figure A8. Per-instance runtime (seconds) for GW MultiInit, GW Default, and FGW α = 0.7 (left panel) and GA (right panel) across 17 QAPLIB Varied CQAP instances, sorted by problem size n. Panels use separate linear scales due to the large runtime disparity between GW-based methods (≤0.35 s) and GA (up to 142 s). GW MultiInit’s overhead relative to GW Default reflects the cost of 10 random restarts.
Mathematics 14 01972 g0a8
Note on EGW performance. EGW variants produce objective values 1.7×–7.5× larger than GW MultiInit across all instances, with the largest gaps observed for tai-family instances (e.g., EGW ε = 0.3 yields 10,064,591 vs. 4,521,811 for GW MultiInit on tai20a). This behavior arises from scale mismatch: QAPLIB cost matrices in the tai-family have entries of order 105–106, causing a fixed ε = 0.3 to impose excessive entropic smoothing and prevent the solver from resolving sharp assignment boundaries. Normalizing ε by the Frobenius norm of the cost matrices—i.e., setting ε ~   =   ε   ·   C X F n —is expected to substantially reduce EGW’s gap and is a practical recommendation for practitioners applying EGW to instances outside the synthetic range explored in Section 5.1.
Benchmark configuration. All QAPLIB experiments use the default configuration: 10 restarts for GW MultiInit, ε ∈ {0.3, 0.5, 0.8} for EGW, α ∈ {0.3, 0.5, 0.7} for FGW. The tai10a instance was unavailable for automated download and is excluded from the evaluation. The benchmark runner is included in the public repository at https://github.com/iman-ie/GW_CQAP.

References

  1. Burkard, R.; Dell’Amico, M.; Martello, S. Assignment problems: Revised reprint. In Assignment Problems; Society for Industrial and Applied Mathematics: Philadelphia, PA, USA, 2012; pp. 327–393. [Google Scholar] [CrossRef]
  2. Pentico, D.W. Assignment problems: A golden anniversary survey. Eur. J. Oper. Res. 2007, 176, 774–793. [Google Scholar] [CrossRef]
  3. Seyedi, I.; Mirzazadeh, S.; Malekidaronkolaei, A.R.E.F.; Mukhtar, M.; Sahran, S. An inventory model with reworking and setup time to consider effect of inflation and time value of money. J. Eng. Sci. Technol. 2016, 11, 416–430. [Google Scholar]
  4. Munkres, J. Algorithms for the Assignment and Transportation Problems. J. Soc. Ind. Appl. Math. 1957, 5, 32–38. [Google Scholar] [CrossRef]
  5. Koopmans, T.C.; Beckmann, M. Assignment problems and the location of economic activities. Econom. J. Econom. Soc. 1957, 25, 53–76. [Google Scholar] [CrossRef]
  6. Sahni, S.; Gonzalez, T. P-Complete Approximation Problems. J. ACM 1976, 23, 555–565. [Google Scholar] [CrossRef]
  7. Chaovalitwongse, W.A.; Androulakis, I.P.; Pardalos, P.M. Quadratic Integer Programming: Complexity and Equivalent Forms. In Encyclopedia of Optimization; Pardalos, P.M., Prokopyev, O.A., Eds.; Springer International Publishing: Cham, Switzerland, 2024; pp. 1–8. [Google Scholar] [CrossRef]
  8. Bertsekas, D. Network Optimization: Continuous and Discrete Models; Athena Scientific: Belmont, MA, USA, 1998; Volume 8. [Google Scholar]
  9. Ahmed, Z.H. A hybrid algorithm combining lexisearch and genetic algorithms for the quadratic assignment problem. Cogent Eng. 2018, 5, 1423743. [Google Scholar] [CrossRef]
  10. Villani, C. The Wasserstein distances. In Optimal Transport; in Grundlehren der mathematischen Wissenschaften; Springer: Berlin/Heidelberg, Germany, 2009; Volume 338, pp. 93–111. [Google Scholar] [CrossRef]
  11. Mémoli, F. Gromov–Wasserstein Distances and the Metric Approach to Object Matching. Found. Comput. Math. 2011, 11, 417–487. [Google Scholar] [CrossRef]
  12. Kravtsova, N. The NP-hardness of the Gromov-Wasserstein distance. arXiv 2025, arXiv:2408.06525. [Google Scholar] [CrossRef]
  13. Burkard, R.E.; Çela, E.; Pardalos, P.M.; Pitsoulis, L.S. The Quadratic Assignment Problem. In Handbook of Combinatorial Optimization; Du, D.-Z., Pardalos, P.M., Eds.; Springer: Boston, MA, USA, 1998; pp. 1713–1809. [Google Scholar] [CrossRef]
  14. Çela, E. The Quadratic Assignment Problem. In Combinatorial Optimization; Springer: Boston, MA, USA, 1998; Volume 1. [Google Scholar] [CrossRef]
  15. Kuhn, H.W. The Hungarian method for the assignment problem. Nav. Res. Logist. Q. 1955, 2, 83–97. [Google Scholar] [CrossRef]
  16. Hahn, P.; Grant, T.; Hall, N. A branch-and-bound algorithm for the quadratic assignment problem based on the Hungarian method. Eur. J. Oper. Res. 1998, 108, 629–640. [Google Scholar] [CrossRef]
  17. Zhang, H.; Beltran-Royo, C.; Ma, L. Solving the quadratic assignment problem by means of general purpose mixed integer linear programming solvers. Ann. Oper. Res. 2013, 207, 261–278. [Google Scholar] [CrossRef]
  18. Loiola, E.M.; de Abreu, N.M.M.; Boaventura-Netto, P.O.; Hahn, P.; Querido, T. A survey for the quadratic assignment problem. Eur. J. Oper. Res. 2007, 176, 657–690. [Google Scholar] [CrossRef]
  19. Pardalos, P.M.; Vavasis, S.A. Quadratic programming with one negative eigenvalue is NP-hard. J. Glob. Optim. 1991, 1, 15–22. [Google Scholar] [CrossRef]
  20. Ahuja, R.K.; Orlin, J.B.; Tiwari, A. A greedy genetic algorithm for the quadratic assignment problem. Comput. Oper. Res. 2000, 27, 917–934. [Google Scholar] [CrossRef]
  21. Said, G.A.E.N.A.; Mahmoud, A.M.; El-Horbaty, E.S.M. A Comparative Study of Meta-heuristic Algorithms for Solving Quadratic Assignment Problem. Int. J. Adv. Comput. Sci. Appl. 2014, 5, 4863. [Google Scholar] [CrossRef]
  22. Hussin, M.S.; Stützle, T. Tabu search vs. simulated annealing as a function of the size of quadratic assignment problem instances. Comput. Oper. Res. 2014, 43, 286–291. [Google Scholar] [CrossRef]
  23. James, T.; Rego, C.; Glover, F. A cooperative parallel tabu search algorithm for the quadratic assignment problem. Eur. J. Oper. Res. 2009, 195, 810–826. [Google Scholar] [CrossRef]
  24. Puris, A.; Bello, R.; Herrera, F. Analysis of the efficacy of a Two-Stage methodology for ant colony optimization: Case of study with TSP and QAP. Expert Syst. Appl. 2010, 37, 5443–5453. [Google Scholar] [CrossRef]
  25. Lu, Y.; Chen, S.; Zhang, X.; Pan, X.; Gang, Y.; Wang, C. A quantum-enhanced heuristic algorithm for optimizing aircraft landing problems in low-altitude intelligent transportation systems. Sci. Rep. 2025, 15, 21606. [Google Scholar] [CrossRef]
  26. Wang, Z.; Wang, X. Quantum-Classical Hybrid Genetic Evolutionary Algorithm for Topology Optimization of Continuum Structures. Int. J. Numer. Methods Eng. 2025, 126, e70073. [Google Scholar] [CrossRef]
  27. Coello, C.A.C. Theoretical and numerical constraint-handling techniques used with evolutionary algorithms: A survey of the state of the art. Comput. Methods Appl. Mech. Eng. 2002, 191, 1245–1287. [Google Scholar] [CrossRef]
  28. de Klerk, E.; Sotirov, R.; Truetsch, U. A New Semidefinite Programming Relaxation for the Quadratic Assignment Problem and Its Computational Perspectives. Inf. J. Comput. 2015, 27, 378–391. [Google Scholar] [CrossRef][Green Version]
  29. Zhang, H.; Beltran-Royo, C.; Wang, B.; Ma, L.; Zhang, Z. Solution to the quadratic assignment problem using semi-Lagrangian relaxation. J. Syst. Eng. Electron. 2016, 27, 1063–1072. [Google Scholar] [CrossRef]
  30. Monge, G. Mémoire sur le Calcul Intégral des Équations aux Différences Partielles; Imprimerie Royale: Paris, France, 1784. [Google Scholar]
  31. Kantorovich, L. On the transfer of masses. In Doklady Akademii Nauk; Russian Academy of Sciences: Moscow, Russia, 1942; Available online: https://cir.nii.ac.jp/crid/1370565168575910170 (accessed on 17 July 2025). (In Russian)
  32. Rachev, S.T.; Rüschendorf, L. Duality Theory for Mass Transfer Problems. In Probability and Its Applications; Springer: New York, NY, USA, 2012; pp. 161–273. [Google Scholar] [CrossRef]
  33. Montesuma, E.F.; Mboula, F.M.N.; Souloumiac, A. Recent advances in optimal transport for machine learning. IEEE Trans. Pattern Anal. Mach. Intell. 2024, 47, 1161–1180. [Google Scholar] [CrossRef]
  34. Khamis, A.; Tsuchida, R.; Tarek, M.; Rolland, V.; Petersson, L. Scalable optimal transport methods in machine learning: A contemporary survey. IEEE Trans. Pattern Anal. Mach. Intell. 2024. [Google Scholar] [CrossRef]
  35. Candelieri, A.; Ponti, A.; Archetti, F. Wasserstein enabled Bayesian optimization of composite functions. J. Ambient Intell. Humaniz. Comput. 2023, 14, 11263–11271. [Google Scholar] [CrossRef]
  36. Kaňková, V. Stochastic optimization problems with nonlinear dependence on a probability measure via the Wasserstein metric. J. Glob. Optim. 2024, 90, 593–617. [Google Scholar] [CrossRef]
  37. Tao, Y.; Chen, C.; Jiang, S.; Wang, Q. Strong Group Fair Classification via Optimal Transport and Mixed-Integer Linear Programming. J. Glob. Optim. 2025, 1–22. [Google Scholar] [CrossRef]
  38. Vayer, T.; Chapel, L.; Flamary, R.; Tavenard, R.; Courty, N. Fused Gromov-Wasserstein Distance for Structured Objects. Algorithms 2020, 13, 212. [Google Scholar] [CrossRef]
  39. Karlsson, J.; Kronqvist, J.; Ryner, M. Globally solving the Gromov-Wasserstein problem for point clouds in low dimensional Euclidean spaces. Adv. Neural Inf. Process. Syst. 2023, 36, 7930–7946. [Google Scholar]
  40. Takeda, S.; Akagi, Y. Gromov-Wasserstein Problem with Cyclic Symmetry. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition, Nashville, TN, USA, 11–15 June 2025; pp. 21011–21020. Available online: http://openaccess.thecvf.com/content/CVPR2025/html/Takeda_Gromov-Wasserstein_Problem_with_Cyclic_Symmetry_CVPR_2025_paper.html (accessed on 7 May 2026).
  41. Cetbon, M.; Peyré, G.; Cuturi, M. Linear-time gromov wasserstein distances using low rank couplings and costs. In International Conference on Machine Learning; PMLR: London, UK, 2022; pp. 19347–19365. Available online: https://proceedings.mlr.press/v162/scetbon22b (accessed on 21 August 2025).
  42. Peyré, G.; Cuturi, M.; Solomon, J. Gromov-wasserstein averaging of kernel and distance matrices. In International Conference on Machine Learning; PMLR: London, UK, 2016; pp. 2664–2672. [Google Scholar]
  43. Seyedi, I.; Candelieri, A.; Messina, E.; Archetti, F. Wasserstein Distributionally Robust Optimization for Chance Constrained Facility Location Under Uncertain Demand. Mathematics 2025, 13, 2144. [Google Scholar] [CrossRef]
  44. Peyré, G.; Cuturi, M. Computational optimal transport: With applications to data science. Found. Trends® Mach. Learn. 2019, 11, 355–607. [Google Scholar] [CrossRef]
  45. Cuturi, M.; Doucet, A. Fast computation of Wasserstein barycenters. In International Conference on Machine Learning; PMLR: London, UK, 2014; pp. 685–693. Available online: https://proceedings.mlr.press/v32/cuturi14.html (accessed on 9 June 2025).
  46. Candelieri, A.; Ponti, A.; Giordani, I.; Archetti, F. On the use of Wasserstein distance in the distributional analysis of human decision making under uncertainty. Ann. Math. Artif. Intell. 2023, 91, 217–238. [Google Scholar] [CrossRef]
  47. Shan, Z.; Lu, X.; Yang, J. Distributionally robust resource allocation using Wasserstein distance. J. Glob. Optim. 2025, 1–16. [Google Scholar] [CrossRef]
  48. Seyedi, I.; Candelieri, A.; Archetti, F. Distributionally Robust Bayesian Optimization via Sinkhorn-Based Wasserstein Barycenter. Mach. Learn. Knowl. Extr. 2025, 7, 90. [Google Scholar] [CrossRef]
  49. Candelieri, A.; Ponti, A.; Archetti, F. Gaussian Process regression over discrete probability measures: On the non-stationarity relation between Euclidean and Wasserstein Squared Exponential Kernels. J. Glob. Optim. 2025, 92, 253–278. [Google Scholar] [CrossRef]
  50. Séjourné, T.; Peyré, G.; Vialard, F.X. Unbalanced optimal transport, from theory to numerics. Handb. Numer. Anal. 2023, 24, 407–471. [Google Scholar] [CrossRef]
  51. Mémoli, F.; Needham, T. Distance distributions and inverse problems for metric measure spaces. Stud. Appl. Math. 2022, 149, 943–1001. [Google Scholar] [CrossRef]
  52. Zhang, W.; Wang, Z.; Fan, J.; Wu, H.; Zhang, Y. Fast Gradient Computation for Gromov-Wasserstein Distance. arXiv 2024, arXiv:2404.08970. [Google Scholar] [CrossRef]
  53. Rioux, G.; Goldfeld, Z.; Kato, K. Entropic gromov-wasserstein distances: Stability and algorithms. J. Mach. Learn. Res. 2024, 25, 1–52. [Google Scholar]
  54. Seyedi, I.; Candelieri, A.; Archetti, F. Fused Unbalanced Gromov–Wasserstein-Based Network Distributional Resilience Analysis for Critical Infrastructure Assessment. Mathematics 2026, 14, 417. [Google Scholar] [CrossRef]
  55. Séjourné, T.; Vialard, F.X.; Peyré, G. The unbalanced gromov wasserstein distance: Conic formulation and relaxation. Adv. Neural Inf. Process. Syst. 2021, 34, 8766–8779. [Google Scholar]
  56. Flamary, R.; Courty, N.; Gramfort, A.; Alaya, M.Z.; Redko, I.; Chapelle, O.; De Lara, N.; Ferreira, S.; Valentin, B.; Seguy, B.; et al. Pot: Python optimal transport. J. Mach. Learn. Res. 2021, 22, 1–8. [Google Scholar]
  57. Burkard, R.E.; Çela, E.; Karisch, S.E.; Rendl, F.; Anjos, M.; Hahn, P. QAPLIB—A Quadratic Assignment Problem Library—Problem Instances and Solutions, [Dataset]; University of Edinburgh: Edinburgh, UK; Computational Optimization Research At Lehigh: Bethlehem, PA, USA, 2022. [Google Scholar] [CrossRef]
  58. Seyedi, I.; Maleki-Daronkolaei, A. Solving a two-stage assembly flowshop scheduling problem to minimize the mean tardiness and earliness penalties by three meta-heuristics. Casp. J. Appl. Sci. Res. 2013, 2, 67–78. [Google Scholar]
  59. Seyedi, I.; Maleki-Daronkolaei, A.; Kalashi, F. Tabu search and simulated annealing for new three-stage assembly flow shop scheduling with blocking. Interdiscip. J. Contemp. Res. Usiness 2012, 4, 394–402. [Google Scholar]
  60. Mula, O.; Nouy, A. Moment-SoS methods for optimal transport problems. Numer. Math. 2024, 156, 1541–1578. [Google Scholar] [CrossRef]
  61. Chen, J.; Koh, S.; Nguyen, B.; Soh, Y. Semidefinite relaxations of the Gromov-Wasserstein distance. Adv. Neural Inf. Process. Syst. 2024, 37, 69814–69839. [Google Scholar]
  62. Titouan, V.; Flamary, R.; Courty, N.; Tavenard, R.; Chapel, L. Sliced gromov-wasserstein. Adv. Neural Inf. Process. Syst. 2019, 32, 14726–14736. [Google Scholar]
  63. Chowdhury, S.; Miller, D.; Needham, T. Quantized Gromov-Wasserstein. In Machine Learning and Knowledge Discovery in Databases. Research Track; Oliver, N., Pérez-Cruz, F., Kramer, S., Read, J., Lozano, J.A., Eds.; Lecture Notes in Computer Science; Springer International Publishing: Cham, Switzerland, 2021; Volume 12977, pp. 811–827. [Google Scholar] [CrossRef]
  64. Fatras, K.; Zine, Y.; Majewski, S.; Flamary, R.; Gribonval, R.; Courty, N. Minibatch optimal transport distances; analysis and applications. arXiv 2021, arXiv:2101.01792. [Google Scholar] [CrossRef]
  65. Beier, F.; Beinert, R.; Steidl, G. On a Linear Gromov–Wasserstein Distance. IEEE Trans. Image Process. 2022, 31, 7292–7305. [Google Scholar] [CrossRef]
  66. Salmona, A.; Delon, J.; Desolneux, A. Gromov-Wasserstein-like Distances in the Gaussian Mixture Models Space. arXiv 2024, arXiv:2310.11256. [Google Scholar]
  67. Olomon, J.; Peyré, G.; Kim, V.G.; Sra, S. Entropic metric alignment for correspondence problems. ACM Trans. Graph. 2016, 35, 1–13. [Google Scholar] [CrossRef]
  68. Kerdoncuff, T.; Emonet, R.; Sebban, M. Sampled Gromov Wasserstein. Mach. Learn. 2021, 110, 2151–2186. [Google Scholar] [CrossRef]
  69. Li, M.; Yu, J.; Xu, H.; Meng, C. Efficient Approximation of Gromov-Wasserstein Distance Using Importance Sparsification. J. Comput. Graph. Stat. 2023, 32, 1512–1523. [Google Scholar] [CrossRef]
  70. Mazelet, S.; Flamary, R.; Thirion, B. Unsupervised Learning for Optimal Transport plan prediction between unbalanced graphs. arXiv 2025, arXiv:2506.12025. [Google Scholar] [CrossRef]
  71. Maus, N.; Wu, K.; Eriksson, D.; Gardner, J. Discovering Many Diverse Solutions with Bayesian Optimization. arXiv 2023, arXiv:2210.10953. [Google Scholar] [CrossRef]
  72. Hvarfner, C.; Eriksson, D.; Bakshy, E.; Balandat, M. Informed Initialization for Bayesian Optimization and Active Learning. arXiv 2025, arXiv:2510.23681. [Google Scholar] [CrossRef]
Figure 1. Illustration of GW related to Equation (18). Arrows represent transport couplings ( T i k and T j l ) between points in the source space X and target space Y .
Figure 1. Illustration of GW related to Equation (18). Arrows represent transport couplings ( T i k and T j l ) between points in the source space X and target space Y .
Mathematics 14 01972 g001
Figure 2. Feature and Structural Alignment in Fused Gromov–Wasserstein Coupling from [38]. Colored nodes represent node features/attributes, while the gray dashed lines indicate the feature-matching term d ( a i , b j ) and the structure-preserving term C 1 ( x i , x k ) C 2 ( x j , x l ) in the FGW objective.
Figure 2. Feature and Structural Alignment in Fused Gromov–Wasserstein Coupling from [38]. Colored nodes represent node features/attributes, while the gray dashed lines indicate the feature-matching term d ( a i , b j ) and the structure-preserving term C 1 ( x i , x k ) C 2 ( x j , x l ) in the FGW objective.
Mathematics 14 01972 g002
Figure 3. Pseudo-code for Gromov–Wasserstein with Multiple Random Initializations (GW-MultiInit).
Figure 3. Pseudo-code for Gromov–Wasserstein with Multiple Random Initializations (GW-MultiInit).
Mathematics 14 01972 g003
Figure 4. Runtime Scalability Analysis of GW Optimization Methods.
Figure 4. Runtime Scalability Analysis of GW Optimization Methods.
Mathematics 14 01972 g004
Figure 5. Solution Quality and Runtime Trade-offs for Large-Scale Problems.
Figure 5. Solution Quality and Runtime Trade-offs for Large-Scale Problems.
Mathematics 14 01972 g005
Figure 6. Trade-off between average solution quality and average computational time across methods. The vertical purple band marks the fast-computation zone (average time < 0.1s); the horizontal green band marks the high-quality zone (average gap < 5% from the exact solution); their intersection defines the ideal operating region.
Figure 6. Trade-off between average solution quality and average computational time across methods. The vertical purple band marks the fast-computation zone (average time < 0.1s); the horizontal green band marks the high-quality zone (average gap < 5% from the exact solution); their intersection defines the ideal operating region.
Mathematics 14 01972 g006
Figure 7. Percentage gap from the best approximate result per QAPLIB instance (n = 12–50), for GW_MultiInit, GW Default, FGW α = 0.7, and GA. GW_MultiInit achieves zero gap on 15 of 17 instances. EGW is omitted due to scale mismatch (avg. gap ≈ 80%); see Appendix C.
Figure 7. Percentage gap from the best approximate result per QAPLIB instance (n = 12–50), for GW_MultiInit, GW Default, FGW α = 0.7, and GA. GW_MultiInit achieves zero gap on 15 of 17 instances. EGW is omitted due to scale mismatch (avg. gap ≈ 80%); see Appendix C.
Mathematics 14 01972 g007
Figure 8. Average gap from best approximate result vs. average runtime (seconds) across 17 QAPLIB Varied CQAP instances. Bottom-left indicates the optimal accuracy–speed trade-off. GW_MultiInit achieves the lowest gap at runtimes three orders of magnitude faster than GA.
Figure 8. Average gap from best approximate result vs. average runtime (seconds) across 17 QAPLIB Varied CQAP instances. Bottom-left indicates the optimal accuracy–speed trade-off. GW_MultiInit achieves the lowest gap at runtimes three orders of magnitude faster than GA.
Mathematics 14 01972 g008
Table 1. Test Problem Instances.
Table 1. Test Problem Instances.
SizeTest ID# Agents# TasksTotal Mass
SmallS1339
S24410
S35617
S46521
MediumM1101031
M2121436
M3151243
M4202062
LargeL1303086
L24050118
L35040146
L46060176
L5100100294
Table 2. Gap from Exact Solution (%). All values report the mean percentage gap averaged over 30 independent runs.
Table 2. Gap from Exact Solution (%). All values report the mean percentage gap averaged over 30 independent runs.
Problem SizeGW DefaultGW MultiInitEGW 0.3EGW 0.5EGW 0.8FGW 0.3FGW 0.5FGW 0.7GA
3 × 31.450.001.450.00-51.690.000.000.00
4 × 40.000.000.030.000.0043.7643.769.670.00
5 × 60.730.730.730.751.0689.7014.2214.220.89
6 × 50.320.000.320.320.3733.8833.8833.880.32
10 × 1070.789.9324.9125.2916.0829.9218.5315.9570.78
12 × 1435.400.0054.2943.4917.9753.3332.287.7935.40
Average18.121.7813.6211.647.0850.3823.7813.5917.89
Table 3. Large Problems Performance (No Exact Solution Available).
Table 3. Large Problems Performance (No Exact Solution Available).
Problem
Size
MassGW
Default
GW
MultiInit
EGW 0.3EGW
0.8
FGW
0.3
FGW
0.7
GA
15 × 12499657.4048349.2349411.9609347.9413,574.98214,434.6279657.404
20 × 20628405.158405.1512,115.7112,737.478428.608471.258405.15
30 × 308613,304.8913,205.9413,572.0615,004.7121,060.2819,424.0613,304.89
40 × 5011822,767.3721,181.4423,504.5333,807.7834,714.2733,806.3422,767.37
50 × 4014652,157.4527,032.4839,587.1149,224.3845,991.3045,560.6139,587.11
60 × 6017628,256.4428,256.4430,728.5738,284.8441,041.3240,649.58NA
100 × 10029495,867.8988,468.9497,709.38128,374.2392,070.4589,252.85NA
Table 4. Computation Time Analysis for Large Problems (seconds).
Table 4. Computation Time Analysis for Large Problems (seconds).
Problem SizeGW
Default
GW
MultiInit
EGW
0.3
EGW
0.8
FGW
0.3
FGW
0.7
GAFastest Method
15 × 120.0130.2380.3192.550.0130.013293.332GW Default/FGW
20 × 200.0591.0240.4801.180.0580.0591283.793FGW 0.3
30 × 300.2945.1141.1731.390.2890.2924650.805FGW 0.3
40 × 501.46924.3815.0861.911.4121.42019,168.123FGW 0.3
50 × 401.44224.3492.1642.071.4181.42925,276.4331FGW 0.3
60 × 604.65378.3735.3585.294.5904.603NAFGW 0.3
100 × 10057.83846.4550.2141.4838.2937.49NAFGW 0.7
Note: Boldface indicates the best-performing value in each problem.
Table 5. Performance Summary of CQAP Instances.
Table 5. Performance Summary of CQAP Instances.
Instance (Agents × Tasks)Best MethodObjective
3 × 3Exact, GW_MultiInit981.6324
4 × 4Exact, GW_MultiInit, EGW821.4323
5 × 6Exact1420.1807
6 × 5Exact, GW_MultiInit2317.2933
10 × 10Exact4525.7574
12 × 14GW_MultiInit5405.2937
15 × 12GW_MultiInit11,089.4670
20 × 20GW_Default8405.1519
30 × 30GW_MultiInit13,205.9421
40 × 50GW_MultiInit21,181.4378
50 × 40GW_MultiInit27,032.4820
60 × 60GW_MultiInit, GW_Default28,256.4427
100 × 100GW_MultiInit88,468.94
Table 6. Summary of QAPLIB Varied CQAP benchmark results (17 instances, n = 12–50). Gap values report single-run outcomes; GW_MultiInit’s internal T= 10 trials per execution mitigate run-to-run variability by construction.
Table 6. Summary of QAPLIB Varied CQAP benchmark results (17 instances, n = 12–50). Gap values report single-run outcomes; GW_MultiInit’s internal T= 10 trials per execution mitigate run-to-run variability by construction.
MethodAvg. Gap
from Best (%)
Avg.
Runtime (s)
Best on
# Instances
GW MultiInit0.340.08515/17
GW Default3.260.0030/17
FGW 6.970.0082/17
EGW   79.870.0070/17
GA3.2649.90/17
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Seyedi, I.; Candelieri, A.; Messina, E.; Archetti, F. Gromov–Wasserstein Meets Combinatorial Optimization: A Scalable Solver for the Capacitated Quadratic Assignment Problem. Mathematics 2026, 14, 1972. https://doi.org/10.3390/math14111972

AMA Style

Seyedi I, Candelieri A, Messina E, Archetti F. Gromov–Wasserstein Meets Combinatorial Optimization: A Scalable Solver for the Capacitated Quadratic Assignment Problem. Mathematics. 2026; 14(11):1972. https://doi.org/10.3390/math14111972

Chicago/Turabian Style

Seyedi, Iman, Antonio Candelieri, Enza Messina, and Francesco Archetti. 2026. "Gromov–Wasserstein Meets Combinatorial Optimization: A Scalable Solver for the Capacitated Quadratic Assignment Problem" Mathematics 14, no. 11: 1972. https://doi.org/10.3390/math14111972

APA Style

Seyedi, I., Candelieri, A., Messina, E., & Archetti, F. (2026). Gromov–Wasserstein Meets Combinatorial Optimization: A Scalable Solver for the Capacitated Quadratic Assignment Problem. Mathematics, 14(11), 1972. https://doi.org/10.3390/math14111972

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop