<?xml-model href='http://www.tei-c.org/release/xml/tei/custom/schema/relaxng/tei_all.rng' schematypens='http://relaxng.org/ns/structure/1.0'?><TEI xmlns="http://www.tei-c.org/ns/1.0">
	<teiHeader>
		<fileDesc>
			<titleStmt><title level='a'>Designing Ising machines with higher order spin interactions and their application in solving combinatorial optimization</title></titleStmt>
			<publicationStmt>
				<publisher></publisher>
				<date>12/01/2023</date>
			</publicationStmt>
			<sourceDesc>
				<bibl> 
					<idno type="par_id">10434158</idno>
					<idno type="doi">10.1038/s41598-023-36531-4</idno>
					<title level='j'>Scientific Reports</title>
<idno>2045-2322</idno>
<biblScope unit="volume">13</biblScope>
<biblScope unit="issue">1</biblScope>					

					<author>Mohammad Khairul Bashar</author><author>Nikhil Shukla</author>
				</bibl>
			</sourceDesc>
		</fileDesc>
		<profileDesc>
			<abstract><ab><![CDATA[Abstract                          The Ising model provides a natural mapping for many computationally hard combinatorial optimization problems (COPs). Consequently, dynamical system-inspired computing models and hardware platforms that minimize the Ising Hamiltonian, have recently been proposed as a potential candidate for solving COPs, with the promise of significant performance benefit. However, prior work on designing dynamical systems as Ising machines has primarily considered quadratic interactions among the nodes. Dynamical systems and models considering higher order interactions among the Ising spins remain largely unexplored, particularly for applications in computing. Therefore, in this work, we propose Ising spin-based dynamical systems that consider higher order (>2) interactions among the Ising spins, which subsequently, enables us to develop computational models to              directly              solve many COPs that entail such higher order interactions (i.e., COPs on hypergraphs). Specifically, we demonstrate our approach by developing dynamical systems to compute the solution for the Boolean NAE-K-SAT (K≥4) problem as well as solve the Max-K-Cut of a hypergraph. Our work advances the potential of the physics-inspired ‘toolbox’ for solving COPs.]]></ab></abstract>
		</profileDesc>
	</teiHeader>
	<text><body xmlns="http://www.tei-c.org/ns/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xlink="http://www.w3.org/1999/xlink">
<div xmlns="http://www.tei-c.org/ns/1.0"><p>The minimization of the Ising Hamiltonian using dynamical systems such as coupled electronic <ref type="bibr">[1]</ref><ref type="bibr">[2]</ref><ref type="bibr">[3]</ref><ref type="bibr">[4]</ref><ref type="bibr">[5]</ref> and photonic oscillators <ref type="bibr">[6]</ref><ref type="bibr">[7]</ref><ref type="bibr">[8]</ref> has received substantial attention in recent years <ref type="bibr">9,</ref><ref type="bibr">10</ref> . A significant driving force behind the effort to realize a so-called 'Ising machine' is that the solution to the Ising model can be mapped to many computationally intractable problems in combinatorial optimization (e.g., MaxCut, Traveling Salesman Problem (TSP) among others) <ref type="bibr">[11]</ref><ref type="bibr">[12]</ref><ref type="bibr">[13]</ref><ref type="bibr">[14]</ref><ref type="bibr">[15]</ref><ref type="bibr">[16]</ref><ref type="bibr">[17]</ref><ref type="bibr">[18]</ref> . Consequently, this creates the possibility of realizing Ising machine-inspired custom accelerators that can offer the possibility of significant performance benefits. However, dynamical system formulations that have been used to 'solve' the Ising model typically consider only pair-wise coupling; examples include, oscillator Ising machines, coherent Ising machines etc. From an application standpoint, while these characteristics capture quadratic interactions, the dynamical systems and their supporting computational models cannot be applied directly to solve problems that require higher order interaction among the spins <ref type="bibr">19,</ref><ref type="bibr">20</ref> . Therefore, the objective of this work is two-fold: (1) define dynamical systems that model higher order (&gt; 2) interactions among the Ising spins; and (2) map the resulting dynamics to relevant computational problems. We consider two examples: computing the solutions for the NAE-K-SAT (Not-All-Equal SAT) problem and the Max-K-Cut of a hypergraph. Our motivation behind selecting these two combinatorial optimization problems was that their objective functions directly map to the solution of the higher order Ising models, and therefore, help illustrate the principle of how dynamical systems for the higher order Ising models can be used in combinatorial optimization. Also, we emphasize here that presently our focus is on defining the Ising machine dynamics that capture the higher order interactions, and not on the physical implementation of the higher order interactions.</p><p>The general form to represent higher order interactions among the Ising spins can be expressed as, where J</p><p>(2) ij represents the pairwise interaction coefficient between two Ising spins. The first term on the right-hand side (i,j J (2) ij s i s j ) is usually considered when describing quadratic/pairwise interactions among Ising spins</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>OPEN</head><p>Department of Electrical and Computer Engineering, University of Virginia, Charlottesville, VA 22904, USA. * email: ns6pf@virginia.edu s = {-1, 1} n ; the Zeeman term which considers the interaction of spins with an external magnetic field has been neglected here. Considering the higher order interactions among the spins can help describe the objective functions of several combinatorial optimization problems (COPs) as illustrated here with the example of the NAE-K-SAT problem (without the need for problem decomposition). The NAE-K-SAT problem is a constrained version of the Boolean Satisfiability (SAT) problem where the objective is to find an assignment for the variables of the given Boolean expression (in the conjunctive normal form) such that: (a) at least one variable in every clause is TRUE (i.e., the clause is satisfied; standard SAT constraint); (b) at least one variable in every clause is FALSE <ref type="bibr">21</ref> ; the NAE-K-SAT problem is considered here since it directly maps to the general form of Eq. ( <ref type="formula">1</ref>), as illustrated further on. Using an approach inspired by SAT, the NAE-K-SAT problem can be expressed as computing an assignment for the variables such that</p><p>Here, C i &#8801; (x 1 &#8744; x 2 &#8744; x 3 . . . x N ) , and S i &#8801; (x 1 &#8744; x 2 &#8744; x 3 . . . x N ) (i.e., S i and C i have the same variables but in opposite forms). Traditionally, when considering only pairwise interactions among the Ising spins, mapping such problems can entail significant pre-processing including the use of auxiliary variables that can significantly increase the size of the problem that must be eventually solved <ref type="bibr">20,</ref><ref type="bibr">[22]</ref><ref type="bibr">[23]</ref><ref type="bibr">[24]</ref><ref type="bibr">[25]</ref> using the dynamical system.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Results</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>NAE-4-SAT.</head><p>To illustrate how we can map the NAE-K-SAT problem to higher order interactions among the Ising spins, we first consider the example of the NAE-4-SAT problem where each clause of the NAE-4-SAT problem consists of 4 literals, expressed in the general form as</p><p>, where x &#8712; {0, 1} n ( x is a set of Boolean variables). K = 4 is specifically chosen here since it is the lowest K where higher order interactions among the Ising spins are required to formulate the objective function for the problem (shown in Table <ref type="table">1</ref>). To formulate the problem in terms of Ising spins, we utilize the following property among the Boolean variables and the spins</p><p>Here, the logic level 0 (1) corresponds to an evaluation of -1(1) of the expression on the right-hand side, respectively. Furthermore, the complement of the logical OR among the XOR terms (</p><p>can be expressed as, 1 -</p><p>Simplifying the above expression yields</p><p>. . . 1+s k s l 2 &#8801; 1 8 (1 + s i s j + s i s k + s i s l + s j s k +s j s l + s k s l + s i s j s k s l ) . It can be observed that besides the second order interaction terms, the resulting expression also contains a 4 th order interaction term among the spins. Consequently, the objective function for the NAE-4-SAT problem, over M clauses, can be formulated as the minimization of Table <ref type="table">1</ref>. Objective functions for the NAE-K-SAT problem expressed using Ising spins. We note that constants and scalars have not been shown here in the expression for the single clause as well as for the objective function.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>K Expression for a single clause &amp; objective function for the NAE-K-SAT</head><p>2 Expression for a single clause:</p><p>Objective function:</p><p>It can be observed that when the variables appear only in the normal form i.e., c mi &#8805; 0 , the expression represents the solution to the archetypal MaxCut problem 3 Expression for a single clause:</p><p>Expression for a single clause:</p><p>Objective function:</p><p>Expression for a single clause:</p><p>Objective function:</p><p>Here, c mi = 1(-1) , if the ith variable appears in the mth clause in the normal (negated) form; c mi = 0 if the ith variable is absent from the mth clause. Using the same approach, we derive such expressions for a few other values of K in the NAE-K-SAT problem in Table <ref type="table">1</ref>. Details of the derivation of the objective function for NAE-5-SAT are shown in Supplementary 1. Constructing a dynamical system for the NAE-K-SAT problem. We now aim to formulate the dynamical system and the corresponding energy function for the NAE-K-SAT problem. The dynamical system, defined by -&#8711; &#966; E i = d&#966; i dt , is designed such that the ground state of the 'energy' function (more precisely, the Lyapunov function) must correspond to a global optimum of the objective function. To construct this system, we draw inspiration from the dynamics of coupled oscillators under second harmonic injection which effectively forces the oscillator states to assume a binary phase value of 0 or &#960; (details of the second harmonic injection can be found in work by Wang et al. <ref type="bibr">26</ref> ). Without loss of generality, we assume that one spin state (say, s = +1 ) is rep- resented by phase 0 while the other spin state ( s = -1 ) is represented by the phase angle &#960;. Subsequently, the second order interaction terms among the Ising spins s i s j can be represented by cos(&#966; i&#966; j ) . When the spins are in opposite states i.e., s i = 1(-1); s j = -1(1) , s j s j &#8801; cos &#966; i&#966; j = -1 , whereas when the spins are in the same states i.e., s i = 1(-1); s j = 1(-1) , s j s j &#8801; cos &#966; i&#966; j = 1 . Similarly, the higher order interactions can be modeled as shown in Table <ref type="table">2</ref>.</p><p>The equivalence between the higher order terms and the corresponding energy term is shown in Table <ref type="table">3</ref>.</p><p>Using the above relationships developed in Table <ref type="table">1</ref>, the energy functions for the NAE-K-SAT problem can be formulated as shown in Table <ref type="table">4</ref>. The corresponding dynamics d&#966; i dt , shown in Table <ref type="table">4</ref>, can be obtained from the dynamical system equation d&#966; i dt = -&#8711; &#966; E i . The second harmonic term in the energy function -C s 2 N i=1 cos(2&#966; i ) is added to ensure that the oscillator phases effectively binarize to {0, &#960;} . The energy con- tribution of this term is minimized ( = -N C s 2 ) at the binary phase points &#966; &#8712; {0, &#960;} . Consequently, by using the appropriate strength of the second harmonic injection ( C s ), we can ensure that the energy function reaches its minimum for &#966; &#8712; {0, &#960;} . We have borrowed this approach from prior work on oscillator-based Ising machines (with second order interactions) <ref type="bibr">26</ref> .</p><p>Furthermore, using the dynamical system equation d&#966; i dt = -&#8711; &#966; E i , we can also show that for the energy functions described in Table <ref type="table">4</ref>, dE dt &#8804; 0 i.e., they are Lyapunov functions.</p><p>Figure <ref type="figure">1</ref> shows an illustrative example of the NAE-4-SAT problem computed using the proposed dynamical system. Details of the simulation used to simulate the illustrative NAE-4-SAT problem are described in Supplementary 4.</p><p>Max-K-Cut on a hypergraph. In the prior section, we exploited the binary nature of the Ising spins (along with higher order interactions among them). We now 'extend' the definition of the 'spin' in order to facilitate the design of computational models for an even broader spectrum of COPs that would benefit from the use of &gt; 2 states for each node/spin. To facilitate this, we express the possible states of a spin as re i&#952; k , where r = 1 , and</p><p>, the possible states are within {1, -1}, which represents the traditional definition of an Ising spin. In contrast, when K &gt; 2 , the 'spin' assumes K configurations, represented as complex quantities (e.g., for K = 3 , the possible states are 1 , e i 2&#960; <ref type="bibr">(1)</ref> 3 , e i 2&#960;(2) 3 ). While we have utilized this concept for solving combinatorial problems on graphs (i.e., problems with quadratic objective functions) <ref type="bibr">18</ref> , here we</p><p>Equivalent energy function for modeling higher order interactions among Ising spins. The second harmonic signal included as a part of the dynamics (not shown here) helps force &#966; to {0, &#960;}.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Order Ising interaction</head><p>Equivalent formulation for constructing dynamical system</p><p>explore this concept for hypergraphs (that entail higher order interactions) by considering the example of solving the Max-K-Cut of a hypergraph.</p><p>Computing the Max-K-Cut on a hypergraph is defined as the challenge of partitioning the nodes of a hypergraph into K partitions in a manner that maximizes the number of hyperedges having nodes that lie in at least two sets created by the partitions <ref type="bibr">27</ref> . The Max-K-Cut problem and its comparison with the archetypal MaxCut problem are illustrated in Fig. <ref type="figure">2a,</ref><ref type="figure">b</ref> for the case of a graph and a hypergraph, respectively.</p><p>To develop the objective function for the problem, each hyperedge of the graph can be expressed as</p><p>, where s j = 1e i&#952; j ; &#952; j can assume any of the following values from 2&#960;k K ; k = 1, 2, . . . K -1 enforced by the higher order harmonic injection. c mj = 1(0) if the jth node belongs (does not belong) to the mth hyperedge. We note that the &#8242; i &#8242; represents the imaginary number &#8730; -1 whereas &#8242; i &#8242; refers to the index. f (&#65533;&#952; ij ) is designed such that Re s i s * j e if (&#65533;&#952; ij ) = -1(1) , if the nodes i and j are placed in different (same) sets, and essentially rewards (penalizes) the system in terms of energy, respectively. Additional details about the design and properties of f (&#65533;&#952; ij ) have been presented in our prior work <ref type="bibr">18</ref> . Consequently, if the hyperedge satisfies the (4)</p><p>Table <ref type="table">3</ref>. Equivalence between the higher order Ising spin interaction terms and equivalent energy function.</p><p>Second order interactions ( s i .s j )</p><p>Third order interactions ( s i .s j .s k )</p><p>Fourth order interactions ( s i .s j .s k .s l )</p><p>Table <ref type="table">4</ref>. Objective functions, corresponding energy expressions, and system dynamics for NAE-K-SAT problems for K = 2, 3, 4, and 5. We note that while the form of the expressions for K = 2 and K = 3, as well as K = 4 and K = 5 are similar, the coefficients ( c mi ) are different. C is the strength of coupling among the nodes whereas C s represents the strength of the second harmonic injection.</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>K Objective function, equivalent energy function, and dynamics</head></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="2">and 3</head><p>Objective function:</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head n="4">and 5</head><p>Objective function:</p><p>Energy function:  In case of hypergraph, e i denotes the ith hyperedge. Max-K-Cut (K = 2, 3, 4) solutions computed using the proposed dynamical system for an illustrative hypergraph. Evolution of phases ( &#966; ), energy and the Max-K-Cut solution, respectively for (c-e) K = 2; (f-h) K = 3; (i-k) K = 4.</p><p>As an example, considering a hypergraph where the maximum number of nodes connected by a hyperedge is 3, the objective function for the Max-K-Cut problem can be expressed as:</p><p>where, For a hypergraph with hyperedges having more than 3 nodes, the objective function entails the use of higher order interactions among the spins.</p><p>To formulate a dynamical system for minimizing the above objective function, we express Re s i s * j e if (&#65533;&#952;ij) as cos &#65533;&#952; ij + f &#65533;&#952; ij . Furthermore, we restrict the configuration space of &#952; to 2&#960;k K where k = 1, 2, . . . K -1 , by injecting the Kth harmonic (of sufficient strength) which lowers the energy at specific phase points, as described in prior work <ref type="bibr">18</ref> . The resulting energy function can be described as, We note that &#966; has been used to express the energy function for the dynamical system instead of &#952; which represents the configuration space of the 'extended spin' . The corresponding dynamics for which the function in Eq. ( <ref type="formula">8</ref>) is a Lyapunov function are given by: In the derivation of Eq. (9b), we exploit the fact that &#8706;f (&#65533;&#966;ij) &#8706;&#966; i = 0 18 . Furthermore, using Eq. (9a), it can be shown that dE dt = -N i=1 d&#966; i dt 2 &#8804; 0 (similar to Eq. ( <ref type="formula">3</ref>)). We now evaluate our proposed model on a representative hypergraph. We consider a hypergraph where each hyperedge has 3 vertices. The corresponding dynamics for this case can then be written as, Figure <ref type="figure">2c</ref>-k also shows the computed Max-K-Cut (for K = 2, 3, and 4) for a hypergraph instance (with 10 nodes, and 20 hyperedges). The illustrative problem has a maximum of 4 nodes per hyperedge. Details of the simulation used to simulate the illustrative Max-K-Cut problem are described in Supplementary 4.</p><p>(5)</p></div>
<div xmlns="http://www.tei-c.org/ns/1.0"><head>Conclusion</head><p>In this work, we develop computational models for Ising machines that consider higher order interactions (beyond quadratic/pairwise) among Ising spins. Our approach enables the direct formulation of analog computing models for many COPs that entail such interactions without the need for problem decomposition and reduction. Furthermore, using the combination of higher order interactions along with 'expanding' the number of 'spin' states to greater than 2, we can directly map and solve an even broader class of problems on hypergraphs. This has been summarized in Fig. <ref type="figure">3</ref>. While the focus of the present work was to develop dynamical systems as higher order Ising machines, evaluating the scalability of this approach i.e., its ability to solve larger graphs will be crucial to its eventual success and utility. As the graph sizes increase, the role of local minima in the high dimensional phase space becomes increasingly important. The system dynamics may get trapped in such minima resulting in sub-optimal solutions. Furthermore, identifying the optimal range for the parameters ( C and C s ) in larger systems may also become more challenging. Eventually, these factors will also ascertain the performance benefits of this approach over traditional digital algorithms used to solve such problems. A systematic study to evaluate the scalability of this approach and its comparison with digital methods will be undertaken in the future.</p><p>In the context of the broader effort focused on developing dynamical system-inspired models for solving hard COPs, this work expands on the potential of physics-inspired solvers to accelerate COPs. </p></div><note xmlns="http://www.tei-c.org/ns/1.0" place="foot" xml:id="foot_0"><p>Scientific Reports | (2023) 13:9558 | https://doi.org/10.1038/s41598-023-36531-4</p></note>
		</body>
		</text>
</TEI>
