An Upper Bound for Minimum True Matches in Graph Isomorphism with Simulated Annealing
Hashem Ezzati, Mahmood Amintoosi, Hashem Tabasi

TL;DR
This paper demonstrates that simulated annealing is unlikely to find near-optimal solutions for graph isomorphism, providing theoretical bounds and experimental evidence of its limitations in achieving accurate matches.
Contribution
It offers a theoretical upper bound on the success of simulated annealing for graph isomorphism and validates this with experimental results showing low probabilities of correct matches.
Findings
Simulated annealing has a very low probability of achieving more than three correct matches.
Theoretical bounds suggest simulated annealing is ineffective for near-optimal solutions.
Experimental results confirm the theoretical limitations in practical scenarios.
Abstract
Graph matching is one of the most important problems in graph theory and combinatorial optimization, with many applications in various domains. Although meta-heuristic algorithms have had good performance on many NP-Hard and NP-Complete problems, for this problem there are not reported superior solutions by these algorithms. The reason of this inefficiency has not been investigated yet. In this paper we show that simulated annealing as an stochastic optimization method is unlikely to be even close to the optimal solution for this problem. In addition to theoretical discussion, the experimental results also verified our idea; for example, in two sample graphs, the probability of reaching to a solution with more than three correct matches is about in simulated annealing.
| Number of Vertices () | Number of permutations with at least 3 elements in their true positions | |
| Number of vertices | |
|---|---|
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsGraph Theory and Algorithms · Data Management and Algorithms · Optimization and Search Problems
An Upper Bound for Minimum True Matches in Graph Isomorphism with Simulated Annealing
Hashem Ezzati1 and Mahmood Amintoosi2,∗ and Hashem Tabasi3
1Amirkabir University of Technology, Tehran, IRAN, [email protected]
2Hakim Sabzevari University, Sabzevar, IRAN, [email protected]
3Damghan University, Sabzevar, IRAN
Abstract
Graph matching is one of the most important problems in graph theory and combinatorial optimization, with many applications in various domains. Although meta-heuristic algorithms have had good performance on many NP-Hard and NP-Complete problems, for this problem there are not reported superior solutions by these algorithms. The reason of this inefficiency has not been investigated yet. In this paper we show that simulated annealing as an stochastic optimization method is unlikely to be even close to the optimal solution for this problem. In addition to theoretical discussion, the experimental results also verified our idea; for example, in two sample graphs, the probability of reaching to a solution with more than three correct matches is about in simulated annealing.
keywords: Graph matching, Simulated Annealing, Meta-Heuristic, Stochastic Optimization
1 Introduction
Several important applications in computer vision, such as 3D reconstruction from stereo images , object matching, object category and action recognition [22] require the ability to efficiently match features of two sets. Image features are considered as graph vertices for modeling the matching problem as a graph matching problem.
Graph matching is one of the oldest problems in Graph theory and combinatorial optimization, which has attracted so much attention to itself. It also has various applications such as Image matching in computer vision [14, 26]. Consider two graphs with vertices in each graph, the number of all possible matching cases between them is . There are several variants of the graph matching problems, one of them is matching in Isomorphic Graphs. An example of this variant is 2D Image Matching Problem. Figure 1 shows a pair of car images along with their corresponding graphs. The blue/red lines represent true/false matches.
Graph matching is an NP-hard problem [26] with complexity of in its general form. A permutation of numbers shows a point in the solution space. In many applications such as figure 1 only just one permutation among possible solutions is acceptable. Meta-heuristic algorithms which are mainly based on random search are used on many NP-hard and NP-complete problems successfully. For example, they are efficient on Traveling Salesman, N-Queen, Facility Location, Graph Coloring, Max-Cut Problem, bin-packaging, time tabling and etc. [21, 23, 11].
There are several methods including linear programming, spectral, eigen decomposition, genetic algorithm and simulated annealing to solve the graph matching problem. We divided the published related works to journal and non-journal papers:
Journal Papers:
Egozi et. al. [7] reported an spectral approach for graph matching. Qiao et. al. [17] also used spectral graph matching in remote sensing. Finch et.al. [8] and Luo and Hancock [16] reported Expectation Maximization and Singular Value Decomposition methods for dealing the problem. Almohamad and Duffuaa [1] used linear programming. Gradient descent approach was used in [25]. Shapiro and Brady [20] and Umeyama [24] solve the matching problem by eigen decomposition. Brown et.al. [3], Auwatanamongkol [2], Cross et. al. [6, 5] and Fröhlich and Košir [9] used genetic algorithm (GA).
Non-Journal Papers:
Leordeanu and Hebert [15] reported spectral method. Using simulated annealing (SA) [10], ant colony optimization [19] and tabu search (TS) [14] also reported by the researchers. In [4, 12] also GA has been used for the problem.
As can be seen, meta-heuristic approaches – except GA – were only reported in non-journal published papers. In this paper we will discuss why this sort of approaches are not efficient to solve matching problem.
Some meta-heuristic approaches like SA and TS are based on defining a neighboring structure and move from one point in solution space to another point. Previous journal papers shows that stochastic optimization methods like SA are not attractiveness for researchers. This fact and the authors failure to solve the matching problem by SA, makes this intuitive result that methods like as SA are not effective for matching problem. GA uses crossover in addition to mutation, here the performance of this algorithm is not investigated.
In this study, we will show that the probability of reaching the optimal solution (success rate) is close to zero, with simulated annealing. Simulated annealing is a kind of an stochastic optimization methods; these methods start from a random point in the solution space and produce neighbors by applying random operators.
Section 2 devoted to theoretical aspects of an upper bound on success rate in SA. Section 3, shows experimental results on various graphs for inspecting the theoretical results. Conclusion remarks is our last section.
2 Theoretical Discussion
In some problems , there are many optimal points in the solution space, which makes easier finding the solution. Finding the optimal point, takes more time, when the optimal points in solution space are rare. N-Queen problem [13] is a problem with so many correct solutions. For example there are about 100 milion correct answers for . As can be seen in table 1, the number of solutions rapidly grows, when increases. But in some problems such as graph matching, only one correct solution exist. Our goal is to prove that the ratio of partly good solutions decreases, when the number of graph vertices increases, for graph matching. Before bringing into mathematical derivation, some basic definitions are explained here.
2.1 Basic Definitions
Definition 2.1** (Graph Matching).**
Consider two graphs and , a one-to-one mapping from to represents a matching between the two graphs [21].
Definition 2.2** (Isomorphism).**
Consider two graphs and , they are isomorphic if and only if there is a mapping as each vertex of exactly corresponds to a vertex of (Any two vertices x and y of are adjacent in if and only if and are adjacent in )[21].
Simulated Annealing Algorithm:
SA algorithm starts from a random point, and picks a random move to go to a new point in the neighbor of the previous point. If the new point improves the solution (decreases energy), then it is always accepted. Otherwise, it is accepted with some probability. This probability decreases exponentially over time and with the badness of the move.
Feasible Solution:
A feasible solution or a point in the solution space is a permutation of , in matching problem.
True Solution:
In this paper it is supposed that the true solution is numbers in ascending order.
Energy (Error):
The number of elements that are not in their true positions, is the solution energy (error), which should be minimized. This measure is normalized by dividing by . For example suppose that the true solution of a matching problem be {1,2,3,4,5} and a random solution be {3,2,1,4,5}. In this permutation are not in their right places, hence its corresponding error is . In stochastic optimization methods like SA, in each run, the starting point is selected randomly; the mean error is computed by averaging the errors over multiple runs.
Precision:
Precision is 1 minus error.
Derangement:
a derangement is a permutation of the elements of a set, such that no element appears in its original position. The number of derangements of a set of size n, usually written , , or , is called the “derangement number”.
In the following section we will show that precision, approaches zero, when the graph size increases.
2.2 Theorems
Each feasible solution is a random permutation of {1, …, n}, in stochastic optimization approaches like SA, the new solution is produced by perturbing the current solution. The common methods for permutation perturbation are swapping, insertion, inversion and scramble operators. All of these operators make a new vector (solution) from the current vector by altering some part of the vector. In fact, moving to the new point is just moving to a new random point, around the previous point. Here we discuss the probability of “goodness” of a random point.
In a solution space of permutations vectors, there are points. Remmel [18] showed that the number of permutations of , that no number is located in its true position (known as derangement) is:
[TABLE]
which is equivalence to following non-recursive summation [18]:
[TABLE]
For demonstrating that the SA move operator is week to produce good results, it is sufficient to show that the probability of producing good solutions is very low with this manner. In the following it is shown that the expected value for having a solution with only 3 correct matches is about 0.02. Before that, some preliminary theorems should be explained.
Lemma 2.1**.**
The number of permutations of , that exactly elements are located in their true positions is:
[TABLE]
Proof.
The proof is obvious, if elements are located correctly, elements are not on their true positions. derangement number of these elements is . Since the number of -combinations of elements is \left(\begin{array}[]{c}n\\ m\end{array}\right), the total number of the mentioned permutations is:
[TABLE]
∎
In the following, the probability of being elements in their true positions, denoted by .
Theorem 2.2**.**
The probability of being elements of elements on their true positions in a random permutation – denoted by – is .
Proof.
The total points in the solution space is ; by using Lemma 2.1 we have:
[TABLE]
∎
Corollary 2.3**.**
.
Proof.
[TABLE]
Substituting by and using eq. (2) yields:
[TABLE]
since:
[TABLE]
hence:
[TABLE]
∎
Corollary 2.4**.**
* is .*
Corollary 2.5**.**
For large , the probability of being at most elements of elements in their true positionsis:
[TABLE]
Corollary 2.6**.**
For large , the probability of being at least elements of elements in their true positions– denoted by – is:
[TABLE]
Proposition 2.7**.**
From the last corollary it is obvious that the probability of being of elements on their correct positions is :
[TABLE]
Suppose that the goodness of a solution (its precision) is the total number of its elements () that are located on their true positions . The above inference showed that, as increases, the probability to have a partly good solution decreases. In other words the probability to have at least true matches in a solution vector is bounded by a small number, which makes SA non-effective to solve graph matching problem.
3 Experimental Results
The previous theoretical discussion is verified by experimental results in this section. The experiments performed in this section are divided into two parts. In the first part, a large number of random permutations is generated and the correctness of proposition 2.7 is shown. In second part, this is verified by applying SA algorithm on random graphs.
3.1 Random permutations results
Here 100000 random permutations for various values of are generated. For example for , 100000 random permutation is generated and the number of those permutations that at least 3 elements are located on their true positions is counted. The results is shown in table 2. The last column of the table shows , which according to proposition 2.7 should be equal 0.02. As can be seen the experimental results verifies theory.
3.2 Simulated Annealing Results
Simulated annealing runs on the random graph analogous to the previous section. Table 3 shows the simulation results. Each corresponds to vertices numbers of two graphs with equal number of nodes, which should be matched. The graphs are produced according to [14]. Theoretical deductions is satisfied for those graphs having large number of nodes. As can be seen, as the number of vertices increases, the value of the last column approaches to 0.02, which verifies proposition 2.7.
4 Conclusions
In this study, an upper bound for minimum true matches in graph matching problem using simulated annealing has been proposed. Graph matching problem for some problems like image stereo matching, has just one optimal solution. We argued that finding the optimal solution with stochastic optimization methods are not feasible, due to the low probability of the number of true matches. Mathematical derivation showed that the rate of true matches is very low, in a random based search method. For example the probability that only 3 nodes were matched correctly is about 0.02. Experimental results verified theoretical discussion.
**Compliance with ethical standards
Conflict of interest** The authors declare that they have no conflict of interest.
Ethical approval: This article does not contain any studies with human participants or animals performed by any of the authors.
The reference list from the paper itself. Each links out to its DOI / PubMed record.
- 1[1] Almohamad, H.A., Duffuaa, S.O.: A linear programming approach for the weighted graph matching problem. IEEE Transactions on Pattern Analysis and Machine Intelligence Vol 15 (5), pp. 522–525 (1993)
- 2[2] Auwatanamongkol, S.: Inexact graph matching using a genetic algorithm for image recognition. Pattern Recognition Letters 28 (12), 1428 – 1437 (2007). DOI https://doi.org/10.1016/j.patrec.2007.02.013 . URL http://www.sciencedirect.com/science/article/pii/S 0167865507000682
- 3[3] Brown, R.D., Jones, G., Willett, P., Glen, R.C.: Matching two-dimensional chemical graphs using genetic algorithms. Journal of Chemical Information and Computer Sciences 34 (1), 63–70 (1994). DOI 10.1021/ci 00017 a 008 . URL https://doi.org/10.1021/ci 00017 a 008 · doi ↗
- 4[4] Choi, J., Yoon, Y., Moon, B.R.: An efficient genetic algorithm for subgraph isomorphism. In: Proceedings of the 14th Annual Conference on Genetic and Evolutionary Computation, GECCO ’12, pp. 361–368. ACM, New York, NY, USA (2012). DOI 10.1145/2330163.2330216 . URL http://doi.acm.org/10.1145/2330163.2330216
- 5[5] Cross, A.D., Myers, R., Hancock, E.R.: Convergence of a hill-climbing genetic algorithm for graph matching. Pattern Recognition 33 (11), 1863 – 1880 (2000). DOI https://doi.org/10.1016/S 0031-3203(99)00171-5 . URL http://www.sciencedirect.com/science/article/pii/S 0031320399001715
- 6[6] Cross, A.D., Wilson, R.C., Hancock, E.R.: Inexact graph matching using genetic search. Pattern Recognition 30 (6), 953 – 970 (1997). DOI https://doi.org/10.1016/S 0031-3203(96)00123-9 . URL http://www.sciencedirect.com/science/article/pii/S 0031320396001239
- 7[7] Egozi, A., Keller, Y., Guterman, H.: A probabilistic approach to spectral graph matching. Pattern Analysis and Machine Intelligence, IEEE Transactions on Vol 35 (1), pp. 18–27 (2013). URL http://dx.doi.org/10.1109/tpami.2012.51 · doi ↗
- 8[8] FINCH, A.M., WILSON, R.C., HANCOCK, E.R.: Symbolic graph matching with the em algorithm. Pattern Recognition Vol 31 (11), pp. 1777 – 1790 (1998). URL http://www.sciencedirect.com/science/article/pii/S 0031320398000107
