s m O m\IfBooleanT#1E_#2[#4]\IfBooleanF#1E_#2#3[#4#3]
Optimal Transport with Cyclic Symmetry
Abstract
We propose novel fast algorithms for optimal transport (OT) utilizing a cyclic symmetry structure of input data. Such OT with cyclic symmetry appears universally in various real-world examples: image processing, urban planning, and graph processing. Our main idea is to reduce OT to a small optimization problem that has significantly fewer variables by utilizing cyclic symmetry and various optimization techniques. On the basis of this reduction, our algorithms solve the small optimization problem instead of the original OT. As a result, our algorithms obtain the optimal solution and the objective function value of the original OT faster than solving the original OT directly. In this paper, our focus is on two crucial OT formulations: the linear programming OT (LOT) and the strongly convex-regularized OT, which includes the well-known entropy-regularized OT (EROT). Experiments show the effectiveness of our algorithms for LOT and EROT in synthetic/real-world data that has a strict/approximate cyclic symmetry structure. Through theoretical and experimental results, this paper successfully introduces the concept of symmetry into the OT research field for the first time.
1 Introduction
Given two probability vectors and a cost matrix, the discrete optimal transport (OT) problem seeks an optimal solution to minimize the cost of transporting the probability vector toward another one. Its total transportation cost is an effective tool that compares two probability vectors. Therefore, OT has been studied in various research areas, e.g., text embedding (Kusner et al. 2015), image matching (Liu et al. 2020), domain adaptation (Courty et al. 2017), graph comparison (Nikolentzos, Meladianos, and Vazirgiannis 2017), and interpolation (Solomon et al. 2015).
There are many formulations for OT. Kantorovich (1942) was the first to formulate OT as the linear programming problem, and the linear OT (LOT) made great progress toward solving OT. Recently, the strongly convex-regularized OT (SROT) has attracted much attention, especially, the entropy-regularized OT (EROT) (Cuturi 2013; Blondel, Seguy, and Rolet 2018; Peyré and Cuturi 2019; Guo, Ho, and Jordan 2020). SROT is superior to LOT in terms of guaranteeing a unique solution and computational stability.
Many algorithms have been studied to solve OT. The network simplex algorithm (Ahuja, Magnanti, and Orlin 1993) is a well-known classical algorithm for LOT and has been widely used. The Sinkhorn algorithm (Cuturi 2013) and primal-dual descent algorithms (Dvurechensky, Gasnikov, and Kroshnin 2018; Guo, Ho, and Jordan 2020) have been proposed to solve EROT faster. Recently, algorithms utilizing special structures of input data have been in the spotlight for solving OT faster, e.g., algorithms that utilize the low-rankness of the input data (Tenetov, Wolansky, and Kimmel 2018; Altschuler et al. 2019). Besides, several algorithms utilize the Gibbs kernel structure of the input cost matrix in the Sinkhorn algorithm, such as separability (Solomon et al. 2015; Bonneel, Peyré, and Cuturi 2016) and translation invariance (Getreuer 2013; Peyré and Cuturi 2019).

In this paper, we propose novel fast algorithms for OT utilizing a new special structure, cyclic symmetry, of input data. Specifically, we assume -order cyclic symmetry for the input data; the input -dimensional probability vector is a concatenation of copies of an -dimensional vector, and the input cost matrix is a block-circulant matrix consisting of matrices with size (see Assumption 1). Such OT with cyclic symmetry appears universally in various real-world examples: image processing, urban planning, and graph processing (see examples in Section 4). Intuitively, we can obtain an optimal solution to such a problem faster by solving OT for only one of the symmetric components of the input data and concatenating copies of the obtained solution. However, this approach cannot work due to ignoring interactions between the symmetric components (see Appendix A). Unlike such an intuitive way, we propose novel fast algorithms utilizing cyclic symmetry for two crucial OT formulations: LOT and SROT.
First, we propose a fast algorithm for LOT with cyclic symmetry (C-LOT). Figure 1 shows an overview of this algorithm. Our main idea is to reduce C-LOT, which has variables, to a small LOT, which has only variables, by utilizing cyclic symmetry. To achieve this reduction, we introduce auxiliary variables considering cyclic symmetry and rewrite C-LOT as a - optimization problem. Surprisingly, the inner problem can be solved analytically, and the - problem becomes a small LOT. Therefore, this algorithm solves C-LOT faster by solving the small LOT instead. Using the network simplex algorithm to solve the small LOT, its time complexity bound becomes where is the cost matrix and . This is greatly improved from when solving C-LOT directly.
Next, we propose a fast algorithm for SROT with cyclic symmetry (C-SROT). Unlike C-LOT, we cannot reduce C-SROT to a small SROT due to the regularizer. To overcome this issue, we consider the Fenchel dual of C-SROT. By utilizing cyclic symmetry, we show that the Fenchel dual problem has only variables, which is significantly fewer than the variables in the naive dual of C-SROT. Therefore, this algorithm solves the small Fenchel dual problem by the alternating minimization algorithm (Beck 2017, Chapter 14). Since the number of variables is very few, its time complexity for one iteration will be reduced, resulting in fast computation as a whole. Especially, this algorithm for EROT with cyclic symmetry (C-EROT), which is a subclass of C-SROT, becomes a Sinkhorn-like algorithm. We call it cyclic Sinkhorn algorithm. The interesting point is that the Gibbs kernel in the cyclic Sinkhorn algorithm differs from that in the original Sinkhorn algorithm and is designed by considering cyclic symmetry. Its time complexity bound of each iteration is , which is significantly improved from when solving C-EROT by the original Sinkhorn algorithm.
Finally, we propose a two-stage Sinkhorn algorithm for C-EROT with approximate cyclic symmetry. In the real world, there are many cases where the input data exhibit only approximate cyclic symmetry due to slight noise and displacement. The cyclic Sinkhorn algorithm cannot be applied to such cases because strict cyclic symmetry of the input data is assumed. To overcome this issue, the two-stage Sinkhorn algorithm first runs the cyclic Sinkhorn algorithm to quickly obtain a strict symmetric solution. It then runs the original Sinkhorn algorithm to modify the solution. As a result, this algorithm obtains the optimal solution to C-EROT with approximate cyclic symmetry faster by utilizing cyclic symmetry at the first stage. In Section 7.2, we experimentally confirmed the fast computation of this algorithm when input data have approximate cyclic symmetry.
In summary, this paper introduces the concept of symmetry into the OT research field for the first time and proposes fast cyclic symmetry-aware algorithms that solve small optimization problems instead of the original OT. We validated the effectiveness of our algorithms in synthetic/real-world data with a strict/approximate cyclic symmetry structure.
2 Related Work
OT was initially formulated by (Monge 1781). Later (Kantorovich 1942) relaxed it as the linear programming problem, which permits splitting a mass from a single source to multiple targets. The linear OT (LOT) is easier to solve than Monge’s form and has made great progress toward solving OT. To solve OT, many algorithms have been proposed. For example, the network simplex algorithm (Ahuja, Magnanti, and Orlin 1993) is one of the classical algorithms for LOT and has been widely used. Recently, algorithms have been proposed to solve OT faster by adding the entropy regularizer (Cuturi 2013; Altschuler, Niles-Weed, and Rigollet 2017; Lin, Ho, and Jordan 2019b; Alaya et al. 2019). The dual form of the entropy-regularized OT can be solved faster by the Sinkhorn algorithm that updates dual variables via matrix-vector products (Sinkhorn 1967). For further acceleration, many improvements to the Sinkhorn algorithm have been proposed. For example, (Altschuler, Niles-Weed, and Rigollet 2017), (Lin, Ho, and Jordan 2019b), and (Alaya et al. 2019) proposed using greedy, randomized, and safe-screening strategies, respectively, to efficiently update the dual variables. Primal-dual algorithms have received much attention (Dvurechensky, Gasnikov, and Kroshnin 2018; Lin, Ho, and Jordan 2019a; Guo, Ho, and Jordan 2020) because they report faster computation than the Sinkhorn algorithm and its variants but are rarely used in practice due to the difficulty of implementation (Pham et al. 2020). This paper focuses on the network simplex algorithm and Sinkhorn algorithm because they are widely used.
As another line of work to solve OT faster, utilizing special structures of input data has been well studied (Solomon et al. 2015; Bonneel, Peyré, and Cuturi 2016; Peyré and Cuturi 2019; Getreuer 2013; Tenetov, Wolansky, and Kimmel 2018; Altschuler et al. 2019). Inspired by the fact that geodesic distance matrices can be low-rank approximated (Shamai et al. 2015), a low-rank approximation for the cost matrix in OT was introduced to reduce the time complexity of the Sinkhorn algorithm (Tenetov, Wolansky, and Kimmel 2018; Altschuler et al. 2019). Several approaches have utilized the Gibbs kernel structures of the cost matrix appearing in the Sinkhorn algorithms. The key to these approaches is to approximate the calculation involving the Gibbs kernel; by utilizing separability (Solomon et al. 2015; Bonneel, Peyré, and Cuturi 2016) or translation invariant (Peyré and Cuturi 2019; Getreuer 2013) of the Gibbs kernel on a fixed uniform grid, the matrix-vector product in the Sinkhorn algorithm can be replaced with convolutions. Thus, it can be computed faster by, e.g., a fast Fourier transform. This paper introduces the utilization of a new special but ubiquitous structure, cyclic symmetry, in OT.
3 Preliminary
3.1 Notations
denotes the set of non-negative real numbers. denotes the inner product; that is, for vectors , , and for matrices , . The probability simplex is denoted as . denotes the all-ones vector in .
3.2 Regularized Optimal Transport (ROT)
We define the regularized OT (ROT) that adds a convex regularizer to the linear OT (LOT) introduced by (Kantorovich 1942). Given two probability vectors and a cost matrix , ROT can be defined as
(1) |
where is called a transportation matrix and is a convex function, called a regularizer. We assume if ; this assumption imposes the non-negative constraint on .
ROT 1 is a generalization of various OT formulations. For example, 1 leads to LOT when is given by
(2) |
Also, 1 leads to the strongly convex-regularized OT (SROT) when is a strongly convex function; a function is called strongly convex if is convex for some . As an important subclass of SROT, 1 leads to the entropy-regularized OT (EROT) introduced by (Cuturi 2013) when is given by
(3) |
where .
4 C-ROT: ROT with Cyclic Symmetry
This section explains our assumption of cyclic symmetry for ROT 1 and real-world examples of this problem.
We assume that in 1 have the following -order cyclic symmetry.
Assumption 1.
In this paper, we call ROT 1 with Assumption 1 Cyclic ROT (C-ROT). This problem appears universally in various real-world examples given below.
Example 1 (Image with Cyclic Symmetry).
Cyclic symmetry in images has been a central image research topic. Especially, because image data are represented in a rectangle form, mirror or rotational symmetry has been utilized for various tasks; mirror symmetry has been utilized for the face recognition (Zhao et al. 2003) and rendering (Wu, Rupprecht, and Vedaldi 2023), and rotational symmetry in medical and galaxy images has been utilized for the image segmentation (Pang et al. 2022) and morphology prediction (Dieleman, Willett, and Dambre 2015). Thus, we here consider ROT between images with cyclic symmetry, and . For images with mirror symmetry, we assume mirror symmetry along the vertical axis;
(6) |
for and . We vectorize these images by appropriately ordering pixels as follows:
(7) | ||||
(8) | ||||
(9) |
By defining as the Manhattan, Euclidean, or Chebyshev distance matrix between pixel positions, satisfy Assumption 1; thus, C-ROT for will appear. Similarly, by appropriately ordering pixels for in the case of rotational symmetry, C-ROT for will appear.
Example 2 (Urban Planning with Cyclic Symmetry).
ROT has straightforward applications in logistics and economy (Kantorovich 1942; Guillaume 2012). Imagine a situation where planners design the structure of a city, this structure is simply given by two probability distributions: the distributions of residents and services . In this context, the objective function value of ROT enables us to measure how close residents and services are and evaluate the city’s efficiency. Several city structures, such as Howard’s garden city (Howard 1965), assume that residents and services are equally located along cyclic symmetry to improve quality of life. In such structures, and , where is given by the Euclidean distance between each resident and service , satisfy Assumption 1; thus, C-ROT will appear.
Example 3 (Graph with Cyclic Symmetry).
Graphs are commonly used to model real-world data. For example, chemical molecules and crystal structures can be modeled using graphs (Bonchev 1991; Xie and Grossman 2018), and their graphs often exhibit cyclic symmetry (Jaffé and Orchin 2002; Ladd 2014). To compare two graphs, computing their distance has been well-studied and OT-based approaches have been proposed (Nikolentzos, Meladianos, and Vazirgiannis 2017; Petric Maretic et al. 2019). We here consider ROT for computing a distance between two graphs with cyclic symmetry. Following (Nikolentzos, Meladianos, and Vazirgiannis 2017), we represent features for the vertices of a graph as the eigenvectors of its adjacency matrix. Like chemical molecules and crystal structures, we assume the vertex features are equally distributed along cyclic symmetry. By defining to ensure the same amount of outgoing/incoming flow from/to a vertex and as the Manhattan, Euclidean, or Chebyshev distance in the eigenvectors’ feature space, , and satisfy Assumption 1. Thus, C-ROT for two graphs will appear.
5 Fast Algorithms for C-ROT
In this section, we propose fast algorithms for C-ROT. Note that several proofs are in the supplementary material.
5.1 Block-Cyclic Structure of Optimal Solution
We first show the following lemma.
Lemma 1.
Under Assumption 1, there exists an optimal solution to 1 that has the following structure:
(10) |
where .
The proof is shown in Appendix B.
5.2 Algorithm for C-LOT
We here propose a fast algorithm for cyclic LOT (C-LOT), which is the special case of C-ROT 1 where is given by 2. From 11, C-LOT 1 can be rewritten as
(12) |
By introducing auxiliary variables and rewriting 12 for , we can show the following theorem.
Theorem 1.
Note that will return a set of indices if the same minimum value exists in several indices, and we can choose any one but the smallest index by .
Proof.
We fix in 12. The matrix satisfies and we can rewrite 12 as
(16) |
The inner problem can be solved analytically and independently for each -th entry of ; the optimal solution is given by 15, and the optimal objective function value is . Next, we solve the outer optimization problem for . Because , and the objective function is , this optimization problem is identical with 13. ∎
Theorem 1 indicates that C-LOT 1 can be reduced to the small LOT 13, which has significantly fewer variables than variables of the original C-LOT 1. Therefore, we will obtain the optimal solution to C-LOT 1 by solving the small LOT 13 instead. The proposed algorithm is summarized in Algorithm 1. Also, Figure 1 shows the overview of this algorithm.
We evaluate the time complexity of Algorithm 1. The time complexity depends on the algorithm to solve the small LOT 13. We here use the network simplex algorithm, the most popular algorithm to solve LOT, to evaluate the time complexity. Tarjan (1997) showed that the time complexity of the network simplex algorithm to solve LOT 1 with the regularizer 2 is , where . This enables the time complexity of line 2 in Algorithm 1 to be bounded by . Because line 1 and lines 3–7 can be conducted in time, the total time complexity of Algorithm 1 is . This is significantly improved from when solving C-LOT 1 directly.
5.3 Algorithm for C-SROT
We propose a fast algorithm for cyclic SROT (C-SROT) which is the special case of C-ROT 1 where is a strongly convex regularizer. Note that because defined by 2 is not strongly convex, we cannot apply this algorithm to C-LOT.
The following theorem follows from Fenchel’s duality theorem and optimality conditions in convex analysis (see, e.g., (Rockafellar 1970, Section 31)).
Theorem 2.
The proof is shown in Appendix C.
Note that is a smooth and differentiable convex function because is strongly convex. Theorem 2 indicates that we will obtain the optimal solution to C-SROT 1 by solving the dual problem 17 instead because we can reconstruct it by the relationship 18 and Lemma 1.
We here propose to apply the alternating minimization algorithm (Beck 2017, Chapter 14) to 17; we iteratively optimize the objective function of 17 with respect to while fixing , and vice versa. When we fix , the partial derivative of the objective function with respect to is
(19) |
and is optimal if 19 equals to 0. Because 19 monotonically decreases with respect to , we can find such easily by, e.g., the well-known Newton’s method. This also applies to the optimization with respect to while fixing . The alternating minimization algorithm for a smooth convex function is guaranteed to attain fast convergence (see (Beck and Tetruashvili 2013) for more details).
The distinguishing feature of this algorithm is treating a few dual variables. If the alternating minimization algorithm is used for the dual problem of 1 without considering cyclic symmetry, the number of dual variables is . In contrast, our algorithm treats only dual variables, which is significantly reduced to . Therefore, the computational time required for one iteration in the alternating minimization will be considerably reduced.
5.4 Algorithm for C-EROT
We here propose a fast algorithm for cyclic EROT (C-EROT), which is the crucial special case of C-ROT 1 where is given by 3. Because 3 is strongly convex, we can apply the cyclic-aware alternating minimization algorithm introduced in Section 5.3 to C-EROT.
From 20, we can get optimal in closed form:
(22) |
We can rewrite 22 and describe the optimal as follows:
(23) |
where . This algorithm resembles the Sinkhorn algorithm (Cuturi 2013); we call it cyclic Sinkhorn algorithm. Note that the optimal solution to C-EROT 1 can be easily reconstructed from the optimal and by 18 and Lemma 1. The proposed algorithm is summarized in Algorithm 2.
We evaluate the time complexity of Algorithm 2. The time complexity depends on the matrix-vector product iterations in lines 4 and 5 in Algorithm 2 to solve the Fenchel dual problem 17. In the original Sinkhorn algorithm, the time complexity of each iteration is (Cuturi 2013). In contrast, in our cyclic Sinkhorn algorithm, the time complexity of each iteration is ; thus, our algorithm solves C-EROT significantly faster than the original Sinkhorn algorithm.
6 Two-Stage Algorithm for C-EROT with Approximate Cyclic Symmetry
There are many real-world cases in which input data show only approximate cyclic symmetry. In Example 1, satisfies Assumption 1 strictly when using the pixel-wise Euclidean distance, but input distributions (namely, images) often satisfy Assumption 1 only approximately due to slight noise and displacement. Thus, the above-proposed algorithms cannot be applied to such cases because they assume to satisfy Assumption 1 strictly. To overcome this issue, we here propose a fast two-stage Sinkhorn algorithm for C-EROT with approximate cyclic symmetry. Because EROT is commonly used thanks to its differentiability and computational efficiency (Peyré and Cuturi 2019; Guo, Ho, and Jordan 2020), we focused on C-EROT here. The two-stage Sinkhorn algorithm first runs the cyclic Sinkhorn algorithm (Algorithm 2) to quickly obtain a strict symmetric solution. It then runs the original Sinkhorn algorithm (Cuturi 2013) to modify the solution. Therefore, this algorithm obtains the optimal solution to C-EROT with approximate cyclic symmetry faster by utilizing cyclic symmetry at the first stage. The proposed algorithm is described in Algorithm 3.
If satisfying Assumption 1 strictly, the time complexity of this algorithm is the same as that of the cyclic Sinkhorn algorithm. If not, it will be complex due to mixing the two Sinkhorn algorithms at Stages 1 and 2. This analysis is for future research, but we experimentally confirmed that this algorithm shows fast computation when input data have approximate cyclic symmetry in Section 7.2.
7 Experiments
To validate the effectiveness of our algorithms, we conducted experiments on synthetic/real-world data that satisfy Assumption 1 strictly/approximately. In all experiments, we evaluated whether our algorithms, which solve small optimization problems instead of the original OT, show the same results as the original OT but with faster computation. These experiments were performed on a Windows laptop with Intel Core i7-10750H CPU, 32 GB memory. All the codes were implemented in Python.
Algorithm | |||||||
---|---|---|---|---|---|---|---|
Obj. value | Marginal error | Time (sec.) | Obj. value | Marginal error | Time (sec.) | ||
Network Simplex | – | ||||||
Cyclic Network Simplex | 2 | ||||||
5 | |||||||
10 | |||||||
25 | |||||||
50 | |||||||
Sinkhorn | – | ||||||
Cyclic Sinkhorn | 2 | ||||||
5 | |||||||
10 | |||||||
25 | |||||||
50 |
Algorithm | ||||||
---|---|---|---|---|---|---|
Obj. value | Marginal error | Time (sec.) | Obj. value | Marginal error | Time (sec.) | |
Sinkhorn | ||||||
Cyclic Sinkhorn | ||||||
Two-Stage Sinkhorn |
7.1 Synthetic Data w/ Strict Cyclic Symmetry
We created synthetic random data for each of the two dimensions, , that satisfy Assumption 1 strictly in (for details, see Appendix D). For validation, we evaluated the average and standard deviation over each data of the objective function values, marginal constraint errors defined by , and the computation time when using different algorithms: the network simplex algorithm (Ahuja, Magnanti, and Orlin 1993), Algorithm 1 using the network simplex algorithm in line 2 (we call it cyclic network simplex algorithm), the Sinkhorn algorithm (Cuturi 2013), and the cyclic Sinkhorn algorithm (Algorithm 2). We set for the regularizer 3. The computation time was recorded between inputting the data and outputting the optimal solution. Because these synthetic data also satisfy Assumption 1 for all that are divisors of , namely , we conducted experiments for each ; larger leads to smaller problems that output the same result. The network simplex algorithm was implemented using LEMON (Dezső, Jüttner, and Kovács 2011).
Table 1 lists the results. The network simplex algorithm and cyclic one had the same optimal objective function value, but the latter showed faster computation times as becomes larger. This was also the case when using the Sinkhorn algorithm and the cyclic one. These results support the effectiveness of our proposed algorithms; higher cyclic symmetry (i.e., larger ) results in faster computation time.
7.2 Real Data w/ Approximate Cyclic Symmetry
For real-world data, we tested the case of mirror symmetry () in Example 1 with the NYU Symmetry Database (Cicconet et al. 2017). In this dataset, we selected images with mirror symmetry along the vertical axis (the images are shown in Appendix E). These images were converted to gray-scale, resized to be or pixels, and normalized so that the sum of the intensity is . We then obtained by 7 and by the pixel-wise Euclidean distance. For validation, we evaluated the same metrics as in Section 7.1 over image pairs. Because EROT is commonly used in real applications (Peyré and Cuturi 2019), we focused on C-EROT here and compared the Sinkhorn algorithm, the cyclic one (Algorithm 2), and the two-stage one (Algorithm 3). Note that, in the two-stage Sinkhorn algorithm, we stopped Stage 1 before the end of convergence to prevent the solution far from the optimal one for real images (for details, see Appendix F). We set as the same as in Section 7.1 for the regularizer 3.
Table 2 lists the results. The cyclic Sinkhorn algorithm showed the fastest computation time. However, because this algorithm assumes to satisfy Assumption 1 strictly, its objective function value differed from that of the original Sinkhorn algorithm, and marginal error occurred. In contrast, the two-stage Sinkhorn algorithm showed the same objective function value as that of the original one and no marginal error but with faster computation time than using the original one. These results indicate that the cyclic Sinkhorn algorithm can be a good choice for real-world data because of its fastest computation time if users tolerate the objective function value difference and the marginal error. If not, the two-stage Sinkhorn algorithm is promising for real-world data, which solves C-EROT with approximate cyclic symmetry faster than the original Sinkhorn algorithm.
8 Discussions and Limitations
Through this paper, we confirmed that our algorithms can solve C-ROT faster. For further progress, we discuss the following future issues. (I) In Assumption 1, we assume knowing the cyclic order in advance. Because cyclic symmetry arises naturally from the physical structure of input data, this assumption is reasonable in some real-world cases. However, we must improve our algorithms for unknown-order cyclic symmetry. (II) It is unknown whether our algorithms can be generalized for other symmetries, e.g., dihedral symmetry (Gatermann and Parrilo 2004). Further development of our algorithms for general symmetries remains as future work. (III) The main contribution of this paper is showing the utilization of cyclic symmetry in OT with theoretical proofs, but we must test our algorithms in various real-world data for further development.
9 Conclusion
We proposed novel fast algorithms for OT with cyclic symmetry. We showed that such OT can be reduced to a smaller optimization problem that has significantly fewer variables as higher cyclic symmetry exists in the input data. Our algorithms solve the small problem instead of the original OT and achieve fast computation. Through experiments, we confirmed the effectiveness of our algorithms in synthetic/real-world data with strict/approximate cyclic symmetry. This paper cultivates a new research direction, OT with symmetry, and paves the way for future research.
References
- Ahuja, Magnanti, and Orlin (1993) Ahuja, R. K.; Magnanti, T. L.; and Orlin, J. B. 1993. Network Flows: Theory, Algorithms, and Applications. Prentice-Hall, Inc.
- Alaya et al. (2019) Alaya, M. Z.; Berar, M.; Gasso, G.; and Rakotomamonjy, A. 2019. Screening Sinkhorn Algorithm for Regularized Optimal Transport. In Advances in Neural Information Processing Systems.
- Altschuler et al. (2019) Altschuler, J.; Bach, F.; Rudi, A.; and Niles-Weed, J. 2019. Massively scalable Sinkhorn distances via the Nyström method. In Advances in Neural Information Processing Systems.
- Altschuler, Niles-Weed, and Rigollet (2017) Altschuler, J.; Niles-Weed, J.; and Rigollet, P. 2017. Near-linear time approximation algorithms for optimal transport via Sinkhorn iteration. In Advances in Neural Information Processing Systems.
- Beck (2017) Beck, A. 2017. First-Order Methods in Optimization. Society for Industrial and Applied Mathematics.
- Beck and Tetruashvili (2013) Beck, A.; and Tetruashvili, L. 2013. On the convergence of block coordinate descent type methods. SIAM journal on Optimization, 23(4): 2037–2060.
- Blondel, Seguy, and Rolet (2018) Blondel, M.; Seguy, V.; and Rolet, A. 2018. Smooth and Sparse Optimal Transport. In International Conference on Artificial Intelligence and Statistics.
- Bonchev (1991) Bonchev, D. 1991. Chemical graph theory: introduction and fundamentals, volume 1. CRC Press.
- Bonneel, Peyré, and Cuturi (2016) Bonneel, N.; Peyré, G.; and Cuturi, M. 2016. Wasserstein Barycentric Coordinates: Histogram Regression Using Optimal Transport. ACM Transactions on Graphics, 35(4).
- Boyd and Vandenberghe (2004) Boyd, S.; and Vandenberghe, L. 2004. Convex Optimization. Cambridge University Press.
- Cicconet et al. (2017) Cicconet, M.; Birodkar, V.; Lund, M.; Werman, M.; and Geiger, D. 2017. A convolutional approach to reflection symmetry. Pattern Recognition Letters, 95: 44–50.
- Courty et al. (2017) Courty, N.; Flamary, R.; Tuia, D.; and Rakotomamonjy, A. 2017. Optimal Transport for Domain Adaptation. IEEE Transactions on Pattern Analysis and Machine Intelligence, 39(9): 1853–1865.
- Cuturi (2013) Cuturi, M. 2013. Sinkhorn Distances: Lightspeed Computation of Optimal Transport. In Advances in Neural Information Processing Systems.
- Dezső, Jüttner, and Kovács (2011) Dezső, B.; Jüttner, A.; and Kovács, P. 2011. LEMON – an Open Source C++ Graph Template Library. Electronic Notes in Theoretical Computer Science, 264(5): 23–45. Second Workshop on Generative Technologies.
- Dieleman, Willett, and Dambre (2015) Dieleman, S.; Willett, K. W.; and Dambre, J. 2015. Rotation-invariant convolutional neural networks for galaxy morphology prediction. Monthly Notices of the Royal Astronomical Society, 450(2): 1441–1459.
- Dvurechensky, Gasnikov, and Kroshnin (2018) Dvurechensky, P.; Gasnikov, A.; and Kroshnin, A. 2018. Computational Optimal Transport: Complexity by Accelerated Gradient Descent Is Better Than by Sinkhorn’s Algorithm. In International Conference on Machine Learning.
- Gatermann and Parrilo (2004) Gatermann, K.; and Parrilo, P. A. 2004. Symmetry groups, semidefinite programs, and sums of squares. Journal of Pure and Applied Algebra, 192(1-3): 95–128.
- Getreuer (2013) Getreuer, P. 2013. A Survey of Gaussian Convolution Algorithms. Image Processing On Line, 3: 286–310.
- Guillaume (2012) Guillaume, C. 2012. Optimal transportation and economic applications. Lecture Notes.
- Guo, Ho, and Jordan (2020) Guo, W.; Ho, N.; and Jordan, M. 2020. Fast Algorithms for Computational Optimal Transport and Wasserstein Barycenter. In International Conference on Artificial Intelligence and Statistics.
- Howard (1965) Howard, E. 1965. Garden Cities of To-Morrow, volume 23. Mit Press.
- Jaffé and Orchin (2002) Jaffé, H. H.; and Orchin, M. 2002. Symmetry in chemistry. Courier Corporation.
- Kantorovich (1942) Kantorovich, L. 1942. On the transfer of masses (in Russian). In Doklady Akademii Nauk, volume 37, 227.
- Kusner et al. (2015) Kusner, M.; Sun, Y.; Kolkin, N.; and Weinberger, K. 2015. From Word Embeddings To Document Distances. In International Conference on Machine Learning.
- Ladd (2014) Ladd, M. F. C. 2014. Symmetry of crystals and molecules. Oxford University Press, USA.
- Lin, Ho, and Jordan (2019a) Lin, T.; Ho, N.; and Jordan, M. 2019a. On Efficient Optimal Transport: An Analysis of Greedy and Accelerated Mirror Descent Algorithms. In International Conference on Machine Learning.
- Lin, Ho, and Jordan (2019b) Lin, T.; Ho, N.; and Jordan, M. I. 2019b. On the Acceleration of the Sinkhorn and Greenkhorn Algorithms for Optimal Transport. In ArXiv Preprint: 1906.01437v1.
- Liu et al. (2020) Liu, Y.; Zhu, L.; Yamada, M.; and Yang, Y. 2020. Semantic Correspondence as an Optimal Transport Problem. In Computer Vision and Pattern Recognition.
- Monge (1781) Monge, G. 1781. Mémoire sur la théorie des déblais et des remblais. De l’Imprimerie Royale.
- Nikolentzos, Meladianos, and Vazirgiannis (2017) Nikolentzos, G.; Meladianos, P.; and Vazirgiannis, M. 2017. Matching Node Embeddings for Graph Similarity. In Proceedings of the Thirty-First AAAI Conference on Artificial Intelligence.
- Pang et al. (2022) Pang, S.; Du, A.; Orgun, M. A.; Wang, Y.; Sheng, Q. Z.; Wang, S.; Huang, X.; and Yu, Z. 2022. Beyond CNNs: Exploiting Further Inherent Symmetries in Medical Image Segmentation. IEEE Transactions on Cybernetics, 1–12.
- Petric Maretic et al. (2019) Petric Maretic, H.; El Gheche, M.; Chierchia, G.; and Frossard, P. 2019. GOT: An Optimal Transport framework for Graph comparison. In Advances in Neural Information Processing Systems.
- Peyré and Cuturi (2019) Peyré, G.; and Cuturi, M. 2019. Computational Optimal Transport: With Applications to Data Science. Now Publishers.
- Pham et al. (2020) Pham, K.; Le, K.; Ho, N.; Pham, T.; and Bui, H. 2020. On Unbalanced Optimal Transport: An Analysis of Sinkhorn Algorithm. In International Conference on Machine Learning.
- Rockafellar (1970) Rockafellar, R. T. 1970. Convex Analysis, volume 18 of Princeton Mathematical Series. New Jersey: Princeton University Press.
- Shamai et al. (2015) Shamai, G.; Aflalo, Y.; Zibulevsky, M.; and Kimmel, R. 2015. Classical Scaling Revisited. In International Conference on Computer Vision.
- Sinkhorn (1967) Sinkhorn, R. 1967. Diagonal equivalence to matrices with prescribed row and column sums. In The American Mathematical Monthly, 402–405.
- Solomon et al. (2015) Solomon, J.; de Goes, F.; Peyré, G.; Cuturi, M.; Butscher, A.; Nguyen, A.; Du, T.; and Guibas, L. 2015. Convolutional Wasserstein Distances: Efficient Optimal Transportation on Geometric Domains. ACM Transactions on Graphics, 34(4).
- Tarjan (1997) Tarjan, R. E. 1997. Dynamic trees as search trees via euler tours, applied to the network simplex algorithm. Mathematical Programming, 78(2): 169–177.
- Tenetov, Wolansky, and Kimmel (2018) Tenetov, E.; Wolansky, G.; and Kimmel, R. 2018. Fast Entropic Regularized Optimal Transport Using Semidiscrete Cost Approximation. SIAM Journal on Scientific Computing, 40(5): A3400–A3422.
- Wu, Rupprecht, and Vedaldi (2023) Wu, S.; Rupprecht, C.; and Vedaldi, A. 2023. Unsupervised Learning of Probably Symmetric Deformable 3D Objects From Images in the Wild (Invited Paper). IEEE Trans. Pattern Anal. Mach. Intell., 45(4): 5268–5281.
- Xie and Grossman (2018) Xie, T.; and Grossman, J. C. 2018. Crystal Graph Convolutional Neural Networks for an Accurate and Interpretable Prediction of Material Properties. Phys. Rev. Lett., 120: 145301.
- Zhao et al. (2003) Zhao, W.; Chellappa, R.; Phillips, P. J.; and Rosenfeld, A. 2003. Face Recognition: A Literature Survey. ACM Comput. Surv., 35(4): 399–458.
Appendices: Optimal Transport with Cyclic Symmetry
Appendix A Simple Counter-Example to the Intuitive Utilization of Cyclic Symmetry in OT
As explained in Section 1, the intuitive way, which solves OT for only one of the symmetric components of input data and concatenates copies of the obtained solution, cannot work well. To explain this reason clearly, we here present a simple counter-example to this intuitive utilization of cyclic symmetry in OT.
We consider the rotational symmetry case () of Example 1 in Section 4 with the following gray images.

These images obviously have rotational symmetry.
Intuitively, to utilize the rotational symmetry in the above images, it looks good if we consider OT for only one of the symmetric parts of the images, i.e., only the red rectangular areas in Figure A1. However, when the cost matrix is given by the pixel-wise Euclidean distance matrix, the optimal transportation plan for the -th entry (the value is ) in the left image is to be transported toward -th entry (the value is ), beyond the red rectangular area, in the right image. Thus, the OT for only one of the symmetric parts (the red rectangular areas) of the above images will give an incorrect transportation plan.
Therefore, the intuitive utilization of cyclic symmetry, i.e., solving OT for only one of the symmetric components of input data and concatenating copies of the obtained solution, cannot work well. Consequently, we must consider the interaction between the symmetric components and develop novel fast algorithms that appropriately utilize cyclic symmetry with theoretical proofs, leading to our algorithms in the main paper.
Appendix B Proof of Lemma 1
Proof.
Let be an optimal solution to 1. We define as follows:
(A1) |
where
(A2) |
is the block-circulant permutation matrix, denotes the identity matrix, and denotes the zero matrix.
First, we will show that is a feasible solution to 1. satisfies the constraints of row summation because
(A3) |
Similarly, we can show that satisfies the constraints of column summation (i.e., ). Thus, is a feasible solution to 1.
Next, we will show that is an optimal solution to 1. For this purpose, we check the optimal function value of 1 when . Let be the objective function of 1, we get
(A4) |
Note that, we use the convexity of and Jensen’s inequality in the inequality relationship of the above equation. Thus, is an optimal solution to 1.
Appendix C Proof of Theorem 2
Proof.
We rewrite 11 with Lagrange multipliers and for the two equality constraints as follows:
(A6) | ||||
Note that Problem 11 is convex and the constraints are linear and that Slater’s constraint qualification holds. Hence, the strong duality holds (see, e.g., (Boyd and Vandenberghe 2004, Section 5.2.3)), and we can swap the - and -operations in LABEL:apeq:problem_CROT_lagrange:
(A7) | ||||
(A8) |
One of the optimality conditions is
(A9) |
∎
Appendix D Further Details of Synthetic Data in Section 7.1
We created synthetic data using the “Random Generator” class in Python. We set the random seed to . We here considered that the input data have -order cyclic symmetry.
For creating the synthetic -dimensional input probability vectors and , we first sampled and by -dimensional uniform distribution with the half-open interval . We then created and by concatenating copies of and , respectively, like 4 and normalized them so that the sum of each is .
For creating the synthetic input cost matrix , we first sampled by -dimensional Gaussian distribution with the mean and the standard deviation ; note that we selected these parameters to keep the same order of magnitude of metrics, namely the objective function value and the marginal error, in all experiments in Section 7. We then add the absolute minimum value, namely , to all entries of to ensure their non-negativity. After that, we created by concatenating copies of like 5.
Appendix E Selected Images for Real-World Data in Section 7.2
In Section 7.2, we selected the 20 images with mirror symmetry () in the NYU Symmetry Database (Cicconet et al. 2017). We here show their images in Figure A2. As you see, there are various kinds of images.

Appendix F Further Details of the Two-Stage Sinkhorn Algorithm used in Section 7.2
In Section 7.2, we stopped Stage 1 in the two-stage Sinkhorn algorithm before convergence to prevent the solution far from optimal for real images. For details, we first run the cyclic Sinkhorn algorithm until the marginal error is below . We then run the original Sinkhorn algorithm until the difference between its objective function value and the value obtained by directly solving C-SROT using the original Sinkhorn algorithm is below .
Appendix Appendix Reference
Boyd, S.; and Vandenberghe, L. 2004. Convex Optimization. Cambridge University Press.