Manuscript Offprint
arXiv:2608.20110ODEONN: A Digital ODE Solver Architecture for Oscillatory Neural Networks
Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.
Abstract
Oscillatory Neural Networks (ONNs) are an alternative computing paradigm for AI and combinatorial optimization problems. However, digital architectures are often designed for specific applications of ONNs. This work introduces a modular and scalable architecture called ODEONN that is generic to multiple applications of ONNs, and to the best of our knowledge, is the first fully digital ONN to also support complex-valued coupling. Additionally, an approximation of the sine function is introduced that uses half of the hardware resources compared to standard methods. The performance of ODEONN is compared with a full-precision software simulation, where a performance degradation of less than 2% is shown. Therefore, we conclude that the fixed-point quantization and the approximated waveform affect the accuracy of computation by only a small amount. Furthermore, ODEONN shows a 45× reduction in energy-delay product over the software simulation running on conventional hardware.
Keywords: oscillatory neural networks, neuromorphic computing, ode solver, digital ising machine, oscillatory ising machine, FPGA prototyping
1 Introduction
Oscillatory Neural Networks (ONNs) are networks of coupled oscillators [1], which have been shown perform gradient descent in an abstract energy landscape defined by their relative coupling strengths [2]. By carefully choosing the coupling strengths, problems can be embedded in the ONN using Ising formulations [3]. The relative phase differences between the oscillators at equilibrium will convey information about the solution.
Using this core principle, many algorithms have been developed; from AI tasks, such as associative memory and classification [4–6], to graph-based combinatorial optimization problems such as max-cut and traveling salesperson [7–11].
ONNs are often implemented using analog circuits or spintronics [10, 12, 13], as this naturally fits the paradigm. However, concessions have to be made in these implementations by limiting either the overall network size or sparsifying the connectivity between oscillators. Both options have advantages and disadvantages. A smaller fully-connected network allows for easy problem embedding, but limits the scale of problems that can be solved. In contrast, a larger network with a sparse topology, will allow for the embedding of larger scale problems, but the embedding process itself can become complicated [14].
Digital ONN architectures have come forward as an alternative to analog ONNs that allow for designs that scale easier, while maintaining fully connected networks [15–19]. However, many of these implementations only allow for binary phase measurements, so either 0 or radians, or lack precision by limiting the phase to a small number of discrete steps. Others have introduced ordinary differential equation (ODE) Solver based digital ONN architectures, but have targeted a specific application [15] or use simplified waveforms, such as square waves [20, 21]. In this work, we introduce ODEONN, a digital ODE solver architecture implemented on a Field Programmable Gate Array (FPGA) dedicated to solving the ODE that describes ONN behavior, without targeting a specific application for ONNs and while maintaining a smooth waveform function, ideally a pure sine wave.
ODEONN compares favorably with a software-based ODE solver running on a graphics processing unit (GPU), while utilizing as little resources as possible. To our knowledge, this paper is also the first to introduce a versatile digital ONN architecture that includes support for complex coupling.
This paper is structured as follows: Section 2 gives the required background knowledge on ONNs and ODE Solvers. In Section 3, the architecture and its sub-components will be explained. Sections 4 and 5 will go into the benchmarking methodology and the results thereof, respectively. Finally, this paper will be concluded in Sections 6 and 7.
where is the frequency and is the phase of the 'th oscillator. is the coupling coefficient between oscillators and . If one takes to be a complex number, it can be expanded such that
where is the coupling strength between oscillators i and j, and is the phase angle of the coupling between oscillator i and j. Using complex couplings, phase angles between oscillators other than 0 and can be set. In this work, a uniform fixed

Fig. 1: Block diagram of the ODEONN architecture. An external interface is used to program a scheduler, which in turn controls the computation in the oscillator cores and facilitates the communication between them. The scheduler selects cores one by one to read data from it, and transmits it to the other cores via a shared databus. The scheduler is also connected to an external device, in this example an ARM Core, through an Advanced eXtensible Interface (AXI) interface.
frequency of all oscillators is assumed, therefore is an integration constant and can be neglected. Additionally, one can use the identity given in Eq. (2) and the complex exponential notation of a sine to absorb the term into the term and use the term as a scalar weight. Thus, the following simplified equation, which is implemented in this work, is given:
3 Architecture
3.1 Architecture Overview
Fig. 1 shows a generalized layout of the ODEONN architecture, comprising of a global scheduler and number of oscillator cores, which can be determined at time of hardware synthesis. The scheduler facilitates the communication between each oscillator core and the external communication through an external interface, in the case of the chosen FPGA board, a PYNQ-Z2, an Advanced eXtensible Interface (AXI) interface to an ARM processor. This interface is used to upload the coupling strength and coupling phase angles, which determine the network configuration, and to set the desired number of cycles to compute. After the computation is complete, the same AXI interface is used to download the final phase state. The phase evolution can also be streamed during computation using an AXI-stream interface. The oscillator cores are the main functional units that replicate the behavior of an oscillator in an ONN.
3.2 Scheduler
The scheduler block, as shown in Fig. 1, contains the control logic of the architecture. It facilitates the communication between each of the Oscillator Cores and can be interfaced with via AXI. The interface utilizes a standard AXI interface and is connected to an ARM CPU core, as provided by the PYNQ-Z2 hardware. Communication between the Oscillator Cores is achieved by using a parallel bus interface for writing data, and a multiplexed system for reading data. The data bus and address bus for writing data are shared across all Oscillator Cores, but the scheduler has a write enable line per Oscillator Core. This setup allows data to be written to individual cores with a single data bus. The enable lines can also be activated simultaneously to write the same value to all Oscillator Cores in only one cycle, which is used in the control algorithm. Additionally, the scheduler allows each of the Block Random Access Memory (BRAM) units present in the oscillator cores to be accessed via the AXI interface, which enables the weight matrices to be programmed. To read data, a multiplexer is used to select individual data lines of each Oscillator Core. Finally, there are three control signals, one to start the computation, one to set the total number of integration steps to compute, and one that raises a flag once this iteration count has been reached. To track the iteration count, there is a simple counter that increments each time the phases of all Oscillator Cores are updated. Once the network has been programmed and the control flag to start the computation has been raised, the scheduler will perform Algorithm 1 for the set number of iterations.
Algorithm 1 Algorithm for scheduling data transfer between Oscillator Cores
for do for i = 1 to do Obtain the phase from core i Transmit to each other core end for Wait for the cores to complete this iteration end for Raise the flag to indicate the end of computation
3.3 Oscillator Core
A block level view of the oscillator core is shown in Fig. 2. The oscillator core is divided into three main parts: the function evaluation, the memories, and the Euler integration. The function evaluation section evaluates the value of Eq. 3 at each iteration of the integrator. A pipelined computation is used for the function evaluation section, whose stages are shown in Fig. 2 at the top in red. The computation proceeds as follows: first and index is obtained from the scheduler. The next step is to compute the phase

Fig. 2: Block level overview of the oscillator core. It is divided into three sections: the function evaluation, the memories, and the Euler integration.
sum . This value is then sent to the waveform evaluation unit, which computes the sine of the given phase value. The exact details of the functionality of this unit is explained later in Section 3.5. Next, the evaluated sine function is multiplied by the coupling strength . These values are then accumulated for cycles. After a complete function evaluation, the value is transferred to the integration stage, and the accumulated value is reset to 0 in preparation for the next iteration.
The integration section uses a first order forward Euler integration method [23], namely
where h is an integration step size constant. The hardware cost of such an integration scheme can be much lower, since only a single multiplier is used, or when h is an exact power of 2, a bitshift can replace the multiplier. Previous similar architectures have also used Euler integration schemes [15, 16, 19–21] and have shown promising results. Other integration schemes are possible, but can require evaluating multiple times, for example a Runge-Kutta method, or solving an algebraic equation, for example an implicit integration method, both of which can be computationally expensive. For these reasons, the Euler integration method is chosen.
There are four memory units: the phase memory, the coupling strength memory, the coupling phase memory, and the accumulator. The two coupling memories are implemented in BRAM units, due to their large size and the fact that they are accessed only serially. The BRAM unit size depends on the number oscillator cores that are implemented and the number of bits per coupling strength and coupling phase, and by
The other two memories are implemented as registers, since they are singular values.
Table 1: Quantization levels of the variables present in Eq. (3)
| Variable | Number of bits |
|---|---|
| 16 | |
| sin amplitude | 16 |
| 8 | |
| 8 |
3.4 Quantization
The main quantity on which the computation is based, the phase has a bounded value . Due to the periodicity of the sine function, any overflow or underflow of this value results in the value wrapping around without impacting the computation. Therefore, in the computation hardware any overflow or underflow of is allowed. This bounded range lends itself naturally to fixed-point computation; The exact minimum and maximum values that the quantity takes on are known beforehand. Hence, fixed-point quantization is used for ODEONN. The full dynamic range of a floating-point system would be redundant. The number of bits for the phase was chosen to be 16, since this fits well into the existing 32-bit AXI interface, and is still within the bounds of the digital signal processing (DSP) hardware in the FPGA, which allows for multiplications up to 18 by 25 bits. As a result, the range is mapped to . is factored out and is accounted for in the sin evaluation unit, which is explained in Section 3.5. The number of bits of the evaluated sine is chosen to be the same as the number of bits for , for the same reasons.
The quantization of the weight quantities and is arbitrary, and both are set to 8 bits. This allows the weight phase angle to be set to an accuracy of radians or . In later sections the quantized quantities will be denoted using and for brevity. As a quick reference, the quantization level of each variable is given in Table 1.
The local truncation error of Euler's method is proportional to , while the global truncation error is proportional to . To obtain a global error of less than , which is an arbitrary choice, when talking in terms of phase error, . should be ideally be an exact power of two to save computation hardware as discussed earlier, therefore . For extra margin, was used.
3.5 Sine Approximation
As part of a function evaluation for each oscillatory integrator unit, a sine function needs to be computed. Typically, in digital hardware either a look-up table or a CORDIC algorithm [24] is used to compute sine evaluations. However, look-up tables are not feasible to scale up for larger number of phase bits; for example, a 16-bit valued sine lookup table would require individual table entries, or when storing a quarter wave, which is enough to fully represent a sine wave, by flipping and reflecting the quarter wave as needed. At 16 bits per sample, this would already require about 4096 FPGA look-up-tables (LUTs), when used as 64-bit read only memories, which would already utilize over 7.5% of the total LUTs available on the chosen FPGA.
Alternatively, one could use the aforementioned CORDIC algorithm. CORDIC, or hybrid versions of it, has found use in accelerators similar to the one discussed in this work [15], however, it remains expensive to implement many CORDIC units in parallel.
It can be argued that for the use case of emulating the behavior of an oscillatory neural network, an exact evaluation of the sine function is not required, and other waveforms have successfully been used [20]. Therefore, the following quadratic approximation of the sine function is proposed.
The main feature of this approximation is that it can be implemented using a single multiplication with two non-constant values, and . The other multiplication and division can be implemented using simple bit shifts, because each constant is an exact power of two. Recall that the phase is quantized such that the range is mapped to , which means that . Additionally, the zero crossings, minima, and maxima all lie at the exact same values as a true sine function. The maximum absolute error of the approximation given by equation (6) is approximately 0.056, but most importantly the zeros and maxima are exact. For illustration, Figs. 3a and 3b show the amplitude and absolute error of the given quadratic error and the exact sine function for the first half period, respectively. The second half period is a shifted and negated version, and therefore has the same error values and is excluded from the figure for readability. We show that this error is small enough to not affect the outcome of the computation by much, which is verified through several benchmarks in Sections 4 and 5.
To compare the resource usage of these three approaches, each of them has been synthesized and implemented for 16-bit sine evaluation, the results of which are shown in Table 2. As shown in Table 2, a CORDIC algorithm uses 1.37% of the FPGA LUT resources, making it impossible to implement more than 72 units, while disregarding the resources needed for the rest of the system. In contrast, the approximated sine wave allows for the implementation of 128 units, either with or without a DSP unit, while not over-utilizing the FPGA resources and leaving room for other logic.
3.6 Oscillator Virtualization
If the FPGA platform has a relative abundance of memory resources compared to computational resources, there is an opportunity to expand the network size by time-multiplexing the computation hardware using a memory banking scheme. With this scheme extra logic is added to allow each oscillator core to select a memory bank. Each memory bank is a replica of the memory section seen in Fig. 2. These replicas hold the coupling values of the virtual oscillators for that given core. In this way, virtual
Also referred to as memory paging.

(a)

(b)
Fig. 3: The approximation of the sine function .
(a) First half period of a sine function and the quadratic approximation . The second half period is not shown for clarity as it is symmetric regardless.
(b) Absolute error of the quadratic approximation for the first half period. The second half period is not shown for clarity as it is symmetric regardless.
Table 2: FPGA resource usage of different 16-bit sine implementations.
| Sine Algorithm | LUTs | FFs | DSPs |
|---|---|---|---|
| Single unit | |||
| Lookup Table | 5008 (9.41%) | 16 (0.02%) | 0 |
| CORDIC | 731 (1.37%) | 704 (0.66%) | 0 |
| Eq. (6) | 58 (0.11%) | 48 (0.04%) | 1 (0.45%) |
| Eq. (6) (No DSP) | 291 (0.55%) | 79 (0.07%) | 0 |
| Scaled to 128 units | |||
| Lookup Table | 641k (1204%) | 2048 (1.92%) | 0 |
| CORDIC | 93.6k (176%) | 90.1k (84.7%) | 0 |
| Eq. (6) | 7424 (14.0%) | 6144 (5.12%) | 128 (58.2%) |
| Eq. (6) (No DSP) | 37.2k (70.0%) | 10.1k (8.96%) | 0 |
oscillators are created by reusing the computation hardware over time but extending the memory hardware. Naturally, each memory block has to be extended to allow the storage of the weights for the virtual oscillators. Nevertheless, this memory-banking scheme allowed for a increase in network size, leading to a maximum total (virtual) oscillator count of , which is implemented in ODEONN . The scheduling algorithm also needs to be modified slightly. Algorithm 2 is an alternative version of the scheduling algorithm, which allows the use of memory banks in the oscillator cores.
We show the hardware utilization in Table A3 in the appendix.
Algorithm 2 Algorithm for scheduling data transfer between cores with memory banks
for do for b = 1 to do for i = 1 to do Obtain from core i Transmit to each core end for Send signal to store to phase to bank b and reset summation memory end for Send signal to update phase to each core end for Raise flag to indicate end of computation
4 Methods
For verification of ODEONN, four benchmarks will be utilized. These benchmarks stem from the two primary target applications for ONNs; Combinatorial optimization and associative memory. From the former category, max-cut and Sudoku puzzle solving, a subset of graph coloring, will be used, and from the latter, two associative memory tasks are tested, one with binary colors, the other with grayscale colors. The goal of the benchmarks is to demonstrate how ODEONN compares relative to a floating-point GPU ONN simulation. If the performance difference is small, it shows that ODEONN sufficiently approximates the theory and that it could be used to accelerate future benchmarks. Hence, the achieved performance in this paper will not be compared to other works, since the relative performance between the theory and the architecture in this paper is the focus, not the performance of any given mapping or algorithm on ONN. To this end, a Python-based software ODE Solver running on a GPU was utilized. All simulation parameters, such as the time step size, total number of time steps, and the integration method were matched exactly to the parameters in the hardware architecture. The only difference lies in the number representation, while ODEONN utilizes fixed-point quantization, the Python simulation fully utilizes 32-bit floating-point quantization. This allows for a qualitative analysis of the effect of quantization for ODE solver-based ONN simulation, in hardware and software. To analyze the effect of the sine approximation from Eq. (6) in isolation from quantization effects, the Python simulations were run in several configurations per benchmark. The configuration for each benchmark is shown in Table 3. Note that the effect of weight quantization is only analyzed for the associative memory benchmarks, since the weights can be represented exactly for the optimization problems even in the quantized form.
The Python simulations are run on a server running Red Hat Enterprise Linux version 8.10 utilizing an NVIDIA L40 GPU. In addition to the benchmarks, the utilization of resources is checked by synthesizing ODEONN at from 16 up to and including 128 and from 1 up to and including 8. The main takeaway of each
| Benchmark | sin | |||
|---|---|---|---|---|
| Max-cut | ✓ | not applicable | ✓ | not applicable |
| Sudoku | ✓ | not applicable | ✓ | not applicable |
| Associative memory | ✓ | ✓ | ✓ | ✓ |
| Grayscale Associative memory | ✓ | ✓ | ✓ | ✓ |
Table 3: Quantization and approximation setups used in Python per benchmark.
The coupling values for these cases can be represented in the quantized form without loss of generality, thus these benchmarks would be redundant.
benchmark will be highlighted in the results section. The full results are provided in the appendix.
4.1 Max-cut
Max-cut is a combinatorial optimization problem, where a graph needs to be separated into two groups, while maximizing the number of edges between the groups. The typical mapping of a max-cut problem to an ONN is to take the adjacency matrix of the graph as the weights between the oscillators, but set the weights to negative values, -1 for unweighted graphs, or minus the weight for weighted graphs [3, 25]. A data set was generated with node counts from 16 to 512, edge densities from to . For each node count and edge density 10 random connected graphs were generated. Each graph was evaluated 100 times, each time with uniform random initial phases in the range . The average cut value was recorded at each data point for comparison.
4.2 Sudoku Puzzles
Sudoku is a subset of the graph coloring problem, where a grid of cells needs to be filled in with non-repeating digits in the sub-grids, columns, and rows. The problem mapping introduced in [26] is used to benchmark ODEONN. This mapping of Sudoku to ONN uses a non-Hermitian complex coupling matrix. Thus, this gives a comparison point for the performance regarding problems that use complex coupling. We repeat the methodology used in [26], where solved puzzles were used to generate random input puzzles. 10 base puzzles are used, which are randomized 100 times, and simulated 10 times with different random initial phases. To minimize the effect of run variance, we use the exact same input puzzles on ODEONN and on the GPU ONN. Additionally, the GPU ONN is run with an exact sine function and with the approximation sine function to isolate the effect of the approximation from the results.
4.3 Associative Memory
To evaluate performance in terms of associative memory tasks, a dataset of alphabet letters was trained using the Diederich-Opper 2 [27] learning rule. The weights are normalized to , the full 8-bit range. For each pattern learned in the dataset, 1000 randomly corrupted versions were generated at three corruption levels; , , and . The corruption percentage is the number of pixels that get inverted, so either

Target
Query
Output
(a)

Target
Query
Output
(b)
Fig. 4: Pattern retrieval examples.
(a) Example of pattern retrieval. On the left the target pattern is shown, which has been corrupted (25%) to obtain the query in the middle. After performing pattern retrieval the output is obtained from ODEONN.
(b) Example of grayscale pattern retrieval. On the left the target pattern is shown, which has noise added (25%) to obtain the query in the middle. After performing pattern retrieval the output is obtained from ODEONN.
flipped from black to white, or from white to black. To prevent dead dynamics at the initial conditions the equivalent of one LSB of noise was added, i.e. . These corrupted versions were used as queries for the associative memory tasks. Then, for each query, the phase dynamics were simulated in the aforementioned configurations and the final phase values were evaluated after 5000 integration steps. A query is considered correct when the binarized phases, which were binarized using a simple boxing algorithm, were exactly equal to the expected target pattern, otherwise the pattern is deemed incorrect. See Fig. 4a for an example of the three steps in an associative memory process.
4.4 Grayscale Associative Memory
To evaluate the functionality of the complex coupling functionality, a grayscale associative memory benchmark is used. Similar to the black-and-white associative memory task, a dataset is constructed, instead this time two symbols are taken from the MNIST[28] dataset. The color space of the patterns is reduced such that there are 8 steps from fully white to fully black. Following this, the complex coupling weights are computed using the complex Hebbian learning rule, as described in [2]. The weight amplitudes are normalized to , the full 8-bit range. Additive uniform random noise will be used to disturb the images, instead of randomly corrupting, or flipping pixels as described in Section 4.3. Again, for each pattern learned in the dataset, 1000 versions were generated at three noise levels; 10%, 20%, and 25%. The noise percentage is a percentage of the total amplitude range, . For example, 10%
Table 4: Max-cut performance comparison for a 512 node graph.
| Implementation | Average Cut value [-] 10% density | Average Cut value [-] 25% density | Average Cut value [-] 50% density | Average Cut value [-] 75% density |
|---|---|---|---|---|
| GPU ONN | 7719 (-0.1%) | 18088 (-0.1%) | 34729 (-0.1%) | 50855 (-0.0%) |
| GPU ONN + sin | 7730 (0%) | 18107 (+0.0%) | 34754 (+0.0%) | 50883 (+0.0%) |
| ODEONN | 7730 | 18105 | 34752 | 50880 |
Note: The values in brackets are the relative difference to ODEONN.
noise means that noise values are sampled from the range . These noisy versions were used as queries for the associative memory tasks. Then, for each query, the phase dynamics were simulated in the aforementioned configurations and the final phase values were evaluated after 5000 integration steps. Fig. 4b shows the three stages of a pattern in the grayscale associative memory process. The accuracy of the results are evaluated using the structural similarity index measure (SSIM) [29], where a value of 1 means the patterns are identical and 0 means they are completely different.
4.5 Performance and Efficiency
To obtain a performance metric for both platforms, a random weight matrix with weights in the range is used as a test. By using a random weight matrix, any compiler optimization that sparsifies the matrix can be ruled out. This weight matrix is then simulated for one million integration steps and the average integration steps per second is computed. The average power draw of the L40 graphics processing unit (GPU) is taken from the NVIDIA System Management Interface. No other processes were utilizing the GPU during testing to ensure all power consumption is caused by the ONN simulation. The power consumption of the FPGA is taken as the power reported by the Vivado development software.
5 Benchmarking Results
5.1 Max-cut
Table 4 shows the results for the max-cut benchmark. As can be seen for each edge density, the relative difference is below , which can be considered within run-to-run variance. Therefore, neither the approximation of the sine function nor the fixed-point quantization of ODEONN has any effect on the performance of ONN for a max-cut task; on the contrary, the approximation of the sine function seems to have slightly improved the average cut values. However, this improvement is almost negligible.
5.2 Sudoku
As seen in Figure 5, ODEONN performs close to the GPU ONN, with a slight reduction in performance of at most 9 percentage points. This deviation can be explained entirely by the approximated sine, because it can be seen that the results of the software

Fig. 5: Sudoku retrieval rate across different puzzle sizes and ratios between the number of known and unknown cells.
simulation with the approximated sine coincide closely with the results of ODEONN. Therefore, it can be concluded that the quantization of the phases and weight values does not affect the accuracy of the benchmark, but the approximated waveform does.
5.3 Associative Memory
The results of the associative memory benchmark are shown in Table 5. As can be seen, ODEONN is outperformed by the GPU ONN when the GPU ONN implementation is using non-quantized weights. However, when the GPU ONN also operates using quantized weights, the performance gap is closed. Thus, the quantization of the trained weights has a large impact on associative memory performance. Performance of the GPU implementation with and without the approximation of the sine function is nearly identical. Therefore, the impact of approximating the sine wave is small for the associative memory task. Comparing the GPU ONN results with and without weight quantization reveals that most of the performance reduction can be attributed to the quantization of the weights. This is in line with observations of previous work [30]. Therefore, it can be concluded that the quantization of the phase quantities is sufficient to perform associative memory tasks, but that those of the coupling values are insufficient. If one is specifically targeting this application or similar ones, it is recommended to increase the number of bits for the weight amplitude .
5.4 Grayscale Associative Memory
As seen in Table 6, the quantization of the weight values does not seem to have any effect on the outcome of the computation, in contrast to the results for binary
Table 5: Associative memory performance comparison for patterns.
| Implementation | Correct [%]10% Corrupted | Correct [%]20% Corrupted | Correct [%]25% Corrupted |
|---|---|---|---|
| GPU ONN | 100 (+25%) | 99.70 (+45%) | 90.02 (+47%) |
| GPU ONN + | 66.18 (-17%) | 61.88 (-9.7%) | 57.86 (-5.3%) |
| GPU ONN + | 100 (+25%) | 100 (+46%) | 88.60 (+45%) |
| GPU ONN + | 74.72 (-6.4%) | 63.58 (-7.2%) | 59.30 (-2.9%) |
| ODEONN | 79.78 | 68.54 | 61.08 |
Note: The values in brackets are the relative difference to ODEONN.

Fig. 6: Pattern retrieval accuracy for various pattern sizes with pixel corruption.
associative memory. This is likely due to the fact that patterns are already limited to 8 colors and only two patterns are trained , which typically requires less granularity in the weight values. There is, however, a measurable difference when the approximation of the sine function is used. In this case, the SSIM is lower than with an exact sine function. A possible explanation for this is that the error shown in Fig. 3b slightly displaces the relative stable points between two grayscale values, therefore causes a slight color difference in pixels, which affects the SSIM. The performance difference is only 2%, thus the ODEONN architecture still performs very close to the GPU ONN simulation.
Only two patterns are trained because the learning rule was not capable of memorizing more without breaking down. This is a limitation encountered in the complex Hebbian learning rule, which is outside the scope of this paper.
Table 6: Grayscale associative memory performance comparison.
| Implementation | Mean SSIM [-]10% Noise | Mean SSIM [-]20% Noise | Mean SSIM [-]25% Noise |
|---|---|---|---|
| GPU ONN | 0.92950 (+2.0%) | 0.92950 (+2.0%) | 0.92950 (+2.0%) |
| GPU ONN + | 0.92954 (+2.0%) | 0.92954 (+2.0%) | 0.92954 (+2.0%) |
| GPU ONN + | 0.91130 (-0.0%) | 0.91130 (-0.0%) | 0.91130 (-0.0%) |
| GPU ONN + | 0.91136 (-0.0%) | 0.91136 (-0.0%) | 0.91136 (-0.0%) |
| ODEONN | 0.91138 | 0.91138 | 0.91138 |
Note: The values in brackets are the relative difference to ODEONN.
Table 7: Performance comparison ODEONN versus GPU for a 512 oscillator network
| Implementation | Power [W] | Throughput [it/s] | EDP [nJs] |
|---|---|---|---|
| ODEONN | 2.8 | 48285 | 1.2 |
| GPU ONN | 95 | 41878 | 54 |
| Ratio (ODEONN/GPU) | 0.029 | 1.15 | 0.022 |
Note: The Energy-Delay Product is computed as , where is the power and is the throughput.
5.5 Performance and Efficiency
As can be seen in Table 7, ODEONN architecture computes about more iterations per second than the software implementation running on GPU. During the simulation of the ONN, the FPGA consumes the power of the GPU. This means that not only is ODEONN faster, it also consumes less power, leading to a total improvement of the Energy-Delay Product of over . Of course, the GPU would be capable of simulating larger networks, while ODEONN is limited to a network of 512 on this particular board.
5.6 Resource Utilization
For reference, the resource utilization without memory banking is shown in Table 8 and the resource usage of the final design used for benchmarking is shown in Table 9. Roughly linear scaling of each resource can be observed up to the point where the maximum number of DSP cores is exceeded. We found that the maximum network size on the PYNQ-Z2 that can be achieved is 512 oscillators. The exact configurations of and can be found in the appendix.
6 Conclusion
In this paper an FPGA-based ODE Solver architecture for Oscillatory Neural Networks called ODEONN has been described. This architecture has been benchmarked using four typical applications tackled using ONNs, two NP optimization tasks, and two associative memory tasks. For each of these tasks, either no performance penalty or a penalty of less than has been observed, when compared to a full precision software
Table 8: Resource usage without memory banking excluding AXI interfaces.
| 16 | 32 | 64 | ||
|---|---|---|---|---|
| LUTs | 2146 | 4280 | 8732 | 25606 |
| FFs | 1875 | 3672 | 7278 | 17649 |
| DSPs | 32 | 64 | 128 | 220 |
| BRAMs | 8 | 16 | 32 | 64 |
At this point, the maximum number of DSPs provided by the FPGA is exceeded, the remaining logic has been absorbed into LUTs and FFs.
Table 9: Resource utilization of final design excluding AXI interfaces , leading to 512 virtual oscillators.
| LUTs | FFs | BRAMs | DSPs |
|---|---|---|---|
| 36853 | 29960 | 128 |
This is the maximum number of DSPs provided by the FPGA, the remaining logic has been absorbed into LUTs and FFs.
simulation running on GPU. Depending on the benchmark, the performance penalty came from the sine approximation or from the weight quantization, the latter of which can easily be resolved by increasing the number bits. In some cases, ODEONN even outperformed the simulation. Furthermore, this architecture showed a 45× energy-delay product increase when compared to a GPU-based ONN simulation.
7 Discussion
One main limitation of ODEONN is the communication overhead of transmitting the phase data between each core will increase linearly with the amount of cores, since the phase data is transmitted serially in time, but in parallel to all cores. Thus, as the architecture is scaled up, the time spent transmitting will also go up. However, the ratio between transmission and computing will remain the same, regardless of the number of cores. For each of the , there is the same number of that has to be transmitted to the other cores and each additional takes an extra clock cycle to process. There is no immediate solution that would resolve this communication overhead, without significantly increasing the usage of computing resources. For example, one could consider transmitting multiple phases in parallel to reduce the overhead, but then multiple phases would also need to be processed in parallel, or buffered if computed in serial.
8 Data Availability
The data that support the findings of this study are available from the corresponding author upon reasonable request.
9 Acknowledgment
This work has received funding from the Dutch Research Council's AiNed Fellowship research program, AI-on-ONN project under grant agreement No. NGF.1607.22.016.
10 Author Contributions
Bram F. Haverkort: Conceptualization, Data curation, Formal analysis, Investigation, Methodology, Software, Validation, Visualization, Writing - Original Draft; Aida Todri-Sanial: Conceptualization, Funding acquisition, Project administration, Resources, Supervision, Writing - Review & Editing;
11 Competing interests
Bram F. Haverkort and Aida Todri-Sanial are inventors on patent application NL4002111 filed by the Eindhoven University of Technology, covering the contents of this paper.
References
[1] Todri-Sanial, A., Delacour, C., Abernot, M., Sabo, F.: Computing with oscillators from theoretical underpinnings to applications and demonstrators. npj Unconventional Computing 1(1), 1–16 (2024) https://doi.org/10.1038/s44335-024-00015-z. Publisher: Nature Publishing Group. Accessed 2024-12-04
[2] Hoppensteadt, F.C., Izhikevich, E.M.: Pattern recognition via synchronization in phase-locked loop neural networks. IEEE Transactions on Neural Networks 11(3), 734–738 (2000) https://doi.org/10.1109/72.846744. Conference Name: IEEE Transactions on Neural Networks. Accessed 2024-06-24
[3] Lucas, A.: Ising formulations of many NP problems. Frontiers in Physics 2 (2014) https://doi.org/10.3389/fphy.2014.00005. arXiv:1302.5843 [cond-mat, physics:quant-ph]. Accessed 2024-07-04
[4] Cai, W., Li, Z., Wang, I., Wang, Y.-N., Lee, T.H.: OscNet v1.5: Energy Efficient Hopfield Network on CMOS Oscillators for Image Classification. arXiv. arXiv:2506.12610 [cs] (2025). https://doi.org/10.48550/arXiv.2506.12610. http://arxiv.org/abs/2506.12610 Accessed 2025-06-30
[5] Sabo, F., Todri-Sanial, A.: ClassONN: Classification with Oscillatory Neural Networks Using the Kuramoto Model. In: 2024 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 1–2. IEEE, Valencia, Spain (2024). ISSN: 1558-1101. https://ieeexplore.ieee.org/abstract/document/10546829 Accessed 2024-07-04
[6] Gower, A.: How to Train an Oscillator Ising Machine using Equilibrium Propagation. arXiv. arXiv:2505.02103 [cond-mat] (2025). https://doi.org/10.48550/arXiv.2505.02103. http://arxiv.org/abs/2505.02103 Accessed 2025-05-08
[7] Vadlamani, S.K.: Combinatorial optimization using the Lagrange primal-dual dynamics of parametric oscillator networks. Physical Review Applied 21(4) (2024) https://doi.org/10.1103/PhysRevApplied.21.044042
[8] Landge, S., Saraswat, V., Singh, S.F., Ganguly, U.: n-Oscillator Neural Network based Efficient Cost Function for n-city Traveling Salesman Problem. In: 2020 International Joint Conference on Neural Networks (IJCNN), pp. 1–8 (2020). https://doi.org/10.1109/IJCNN48605.2020.9206856. ISSN: 2161-4407. https://ieeexplore.ieee.org/abstract/document/9206856 Accessed 2024-06-21
[9] Gonul, Y.E., Kayan, C.E., Mustafazade, I., Kandasamy, N., Taskin, B.: GPU-Accelerated Simulated Oscillator Ising/Potts Machine Solving Combinatorial Optimization Problems. arXiv. arXiv:2505.22631 [cs] (2025). https://doi.org/10.48550/arXiv.2505.22631. http://arxiv.org/abs/2505.22631 Accessed 2025-06-30
[10] Su, Y., Do, A.T., Kim, T.T.-H., Kim, B.: ROC-Spin: A 28nm 2,000 Ring-Oscillator-Collapse Spins for Solving Combinatorial Optimization Problems. In: 2024 IEEE Asian Solid-State Circuits Conference (A-SSCC), pp. 1–3 (2024). https://doi.org/10.1109/A-SSCC60305.2024.10848963. https://ieeexplore.ieee.org/abstract/document/10848963/authors Accessed 2025-02-03
[11] Wang, T., Wu, L., Nobel, P., Roychowdhury, J.: Solving combinatorial optimisation problems using oscillator based Ising machines. Natural Computing 20(2), 287–306 (2021) https://doi.org/10.1007/s11047-021-09845-3. Accessed 2024-06-21
[12] Soni, S., Rezaeiyan, Y., Boehnert, T., Farkhani, H., Ferreira, R., Kaushik, B.K., Moradi, F., Shreya, S.: SpinONN: energy efficient brain-inspired spintronics-based Hopfield oscillatory neural network for image denoising. Neuromorphic Computing and Engineering 5(3), 034001 (2025) https://doi.org/10.1088/2634-4386/ade622. Publisher: IOP Publishing. Accessed 2025-06-30
[13] Cilasun, H., Moy, W., Zeng, Z., Islam, T., Lo, H., Vanasse, A., Tan, M., Anees, M., S, R., Kumar, A., Sapatnekar, S.S., Kim, C.H., Karpuzcu, U.R.: A coupled-oscillator-based Ising chip for combinatorial optimization. Nature Electronics 8(6), 537–546 (2025) https://doi.org/10.1038/s41928-025-01393-3. Publisher: Nature Publishing Group. Accessed 2025-06-30
[14] Li, B.: Improved Mapping Strategies for Integrated Oscillator-Based Ising Machine Networks. Theoretical and Natural Science 95, 152–159 (2025) https://doi.org/10.54254/2753-8818/2024.21348
[15] Bashar, M.K., Li, Z., Narayanan, V., Shukla, N.: An FPGA-based Max-K-Cut Accelerator Exploiting Oscillator Synchronization Model. In: 2024 25th International Symposium on Quality Electronic Design (ISQED), pp. 1–8. IEEE, San Francisco, CA, USA (2024). https://doi.org/10.1109/ISQED60706.2024.10528742. ISSN: 1948-3295. https://ieeexplore.ieee.org/document/10528742 Accessed 2024-07-19
[16] Sreedhara, S., Roychowdhury, J., Wabnig, J., Srinath, P.: Digital Emulation of Oscillator Ising Machines. In: 2023 Design, Automation & Test in Europe Conference & Exhibition (DATE), pp. 1–2 (2023). https://doi.org/10.23919/DATE56975.2023.10137084. ISSN: 1558-1101. https://ieeexplore.ieee.org/document/10137084 Accessed 2024-09-25
[17] Abernot, M., Gil, T., Jiménez, M., Núñez, J., Avellido, M.J., Linares-Barranco, B., Gonos, T., Hardelin, T., Todri-Sanial, A.: Digital Implementation of Oscillatory Neural Network for Image Recognition Applications. Frontiers in Neuroscience 15 (2021) https://doi.org/10.3389/fnins.2021.713054. Publisher: Frontiers. Accessed 2024-06-21
[18] Delacour, C., Carapezzi, S., Abernot, M., Boschetto, G., Azemard, N., Salles, J., Gil, T., Todri-Sanial, A.: Oscillatory Neural Networks for Edge AI Computing. In: 2021 IEEE Computer Society Annual Symposium on VLSI (ISVLSI), pp. 326–331. IEEE, Tampa, FL, USA (2021). https://doi.org/10.1109/ISVLSI51109.2021.00066. ISSN: 2159-3477. https://ieeexplore.ieee.org/document/9516738 Accessed 2024-11-08
[19] Gonul, Y.E., Taskin, B.: An ASIC Emulated Oscillator Ising/Potts Machine Solving Combinatorial Optimization Problems. arXiv (2026). https://doi.org/10.48550/arXiv.2604.14027
[20] Liu, B., Zhang, T., Gao, X., Han, J.: An Efficient Simulated Oscillator-Based Ising Machine on FPGAs. In: 2024 IEEE 24th International Conference on Nanotechnology (NANO), pp. 469–474 (2024). https://doi.org/10.1109/NANO61778.2024.10628658. ISSN: 1944-9380. https://ieeexplore.ieee.org/document/10628658 Accessed 2025-08-22
[21] Deep Goru, A.G., Shreesha Sreedhara, B., Pavan Sumanth Sikhakollu, C.V., Thomas Jagielski, D., Manohar, E.R., Jaijeet Roychowdhury, F.: DOIM140: A 140-spin, all-to-all connected, Oscillator Ising Machine IC in 180nm CMOS. In: 2026 IEEE Custom Integrated Circuits Conference (CICC), pp. 1–4 (2026). https://doi.org/10.1109/CICC65509.2026.11509608
[22] Kuramoto, Y.: Chemical Oscillations, Waves, and Turbulence. Springer Series in
Synergetics, vol. 19. Springer, Berlin, Heidelberg (1984). https://doi.org/10.1007/978-3-642-69689-3. http://link.springer.com/10.1007/978-3-642-69689-3
[23] Euler, L.: Institutiones Calculi Integralis (Foundations of Integral Calculus). Institutionum calculi integralis, vol. 1. Imperial Academy of Sciences, St Petersburg (1768). Chap. 7. https://archive.org/details/institutionescal020326mbp
[24] Volder, J.: The cordic computing technique. In: Papers Presented at the the March 3-5, 1959, Western Joint Computer Conference. IRE-AIEE-ACM '59 (Western), pp. 257–261. Association for Computing Machinery, New York, NY, USA (1959). https://doi.org/10.1145/1457838.1457886. https://doi.org/10.1145/1457838.1457886
[25] Wang, T., Roychowdhury, J.: OIM: Oscillator-Based Ising Machines for Solving Combinatorial Optimisation Problems. In: McQuillan, I., Seki, S. (eds.) Unconventional Computation and Natural Computation, pp. 232–256. Springer, Cham (2019). https://doi.org/10.1007/978-3-030-19311-9_19
[26] Haverkort, B.F., Sbravati, F., Porfir, S., Todri-Sanial, A.: Solving Sudoku using oscillatory neural networks. Neuromorphic Computing and Engineering 6(2), 024007 (2026) https://doi.org/10.1088/2634-4386/ae65d4
[27] Diederich, S., Opper, M.: Learning of correlated patterns in spin-glass networks by local learning rules. Physical Review Letters 58(9), 949–952 (1987) https://doi.org/10.1103/PhysRevLett.58.949. Publisher: American Physical Society. Accessed 2024-09-16
[28] Deng, L.: The MNIST Database of Handwritten Digit Images for Machine Learning Research [Best of the Web]. IEEE Signal Processing Magazine 29(6), 141–142 (2012) https://doi.org/10.1109/MSP.2012.2211477. Conference Name: IEEE Signal Processing Magazine. Accessed 2024-09-16
[29] Wang, Z., Bovik, A.C., Sheikh, H.R., Simoncelli, E.P.: Image quality assessment: From error visibility to structural similarity. IEEE Transactions on Image Processing 13(4), 600–612 (2004) https://doi.org/10.1109/TIP.2003.819861
[30] Abernot, M., Azemard, N., Todri-Sanial, A.: Oscillatory neural network learning for pattern recognition: an on-chip learning perspective and implementation. Frontiers in Neuroscience 17 (2023) https://doi.org/10.3389/fnins.2023.1196796. Publisher: Frontiers. Accessed 2024-07-04
Appendix A Additional benchmarking data
The full benchmarking results are available in Tables A1 and A2. ODEONN resource usage for all values of and is given in Table A3.
Table A1: Max-cut performance comparison (Full table).
| Implementation | Average Cut value [-]10% density | Average Cut value [-]25% density | Average Cut value [-]50% density | Average Cut value [-]75% density |
|---|---|---|---|---|
| 16 Nodes | ||||
| GPU ONN | 16.9 (-0.6%) | 24.4 (-0.8%) | 39.7 (0%) | 56.1 (-0.7%) |
| GPU ONN + sin | 16.9 (-0.6%) | 24.4 (-0.8%) | 39.7 (0%) | 56.1 (-0.7%) |
| ODEONN | 17.0 | 24.6 | 39.7 | 56.5 |
| 32 Nodes | ||||
| GPU ONN | 45.0 (-0.4%) | 85.3 (-0.6%) | 157.8 (-0.3%) | 214.8 (-0.2%) |
| GPU ONN + sin | 45.1 (-0.2%) | 85.3 (-0.6%) | 157.7 (-0.4%) | 214.7 (-0.2%) |
| ODEONN | 45.2 | 85.8 | 158.3 | 215.2 |
| 64 Nodes | ||||
| GPU ONN | 152.8 (-0.3%) | 332.4 (-0.2%) | 594.7 (-0.2%) | 838.8 (-0.2%) |
| GPU ONN + sin | 152.9 (-0.3%) | 332.3 (-0.2%) | 594.4 (-0.3%) | 838.7 (-0.2%) |
| ODEONN | 153.3 | 332.9 | 596.0 | 840.3 |
| 128 Nodes | ||||
| GPU ONN | 538.7 (-0.3%) | 1235 (0.2%) | 2277 (-0.2%) | 3279 (-0.1%) |
| GPU ONN + sin | 540.3 (0%) | 1238 (0%) | 2281 (0%) | 3282 (0%) |
| ODEONN | 540.3 | 1238 | 2281 | 3282 |
| 256 Nodes | ||||
| GPU ONN | 2048 (-0.2%) | 4703 (-0.2%) | 8872 (-0.1%) | 12872 (-0.1%) |
| GPU ONN + sin | 2052 (0%) | 4710 (-0.0%) | 8882 (0%) | 12884 (+0.0%) |
| ODEONN | 2052 | 4711 | 8882 | 12883 |
| 512 Nodes | ||||
| GPU ONN | 7719 (-0.1%) | 18088 (-0.1%) | 34729 (-0.1%) | 50855 (-0.0%) |
| GPU ONN + sin | 7730 (0%) | 18107 (+0.0%) | 34754 (+0.0%) | 50883 (+0.0%) |
| ODEONN | 7730 | 18105 | 34752 | 50880 |
Note: The values in brackets are the relative difference to ODEONN.
Table A2: Associative memory performance comparison (Full table).
| Implementation | Correct [%]10% Corrupted | Correct [%]20% Corrupted | Correct [%]25% Corrupted |
|---|---|---|---|
| 3 × 3 Patterns | |||
| GPU ONN | 100 (0%) | 80.3 (+12%) | 78.95 (+10%) |
| GPU ONN + | 100 (0%) | 81.40 (+13%) | 79.25 (+11%) |
| GPU ONN + | 100 (0%) | 80.45 (+12%) | 79.15 (+11%) |
| GPU ONN + | 100 (0%) | 80.90 (+13%) | 79.15 (+11%) |
| ODEONN | 100 | 71.80 | 71.50 |
| 5 × 4 Patterns | |||
| GPU ONN | 100 (+0.5%) | 89.85 (+8.1%) | 69.85 (+12%) |
| GPU ONN + | 100 (+0.5%) | 87.15 (+4.9%) | 66.70 (+6.8%) |
| GPU ONN + | 99.95 (+0.5%) | 90.60 (+9.1%) | 68.40 (+9.5%) |
| GPU ONN + | 99.93 (+0.4%) | 86.00 (+3.5%) | 65.23 (+4.5%) |
| ODEONN | 99.50 | 83.08 | 62.45 |
| 7 × 6 Patterns | |||
| GPU ONN | 99.98 (+0.2%) | 91.58 (+9.7%) | 81.0 (+17%) |
| GPU ONN + | 98.80 (-1.0%) | 81.14 (-2.8%) | 68.86 (-0.4%) |
| GPU ONN + | 100 (+0.2%) | 94.56 (+13%) | 82.28 (+19%) |
| GPU ONN + | 98.60 (-1.2%) | 79.24 (-5.1%) | 67.10 (-3.0%) |
| ODEONN | 99.76 | 83.50 | 69.14 |
| 10 × 10 Patterns | |||
| GPU ONN | 100 (+11%) | 96.96 (+36%) | 82.48 (+25%) |
| GPU ONN + | 82.40 (-8.7%) | 69.10 (-3.3%) | 63.64 (-3.8%) |
| GPU ONN + | 99.98 (+11%) | 97.74 (+37%) | 81.02 (+22%) |
| GPU ONN + | 80.92 (-10%) | 66.80 (-6.5%) | 62.38 (-5.7%) |
| ODEONN | 90.24 | 71.46 | 66.18 |
| 22 × 22 Patterns | |||
| GPU ONN | 100 (+25%) | 99.70 (+45%) | 90.02 (+47%) |
| GPU ONN + | 66.18 (-17%) | 61.88 (-9.7%) | 57.86 (-5.3%) |
| GPU ONN + | 100 (+25%) | 100 (+46%) | 88.60 (+45%) |
| GPU ONN + | 74.72 (-6.4%) | 63.58 (-7.2%) | 59.30 (-2.9%) |
| ODEONN | 79.78 | 68.54 | 61.08 |
Note: The values in brackets are the relative difference to ODEONN.
Table A3: Resource usage Excluding AXI interfaces
| 16 | 32 | 64 | ||
|---|---|---|---|---|
| 16 | 32 | 64 | 128 | |
| LUTs | 2146 | 4280 | 8732 | 25606 |
| FFs | 1875 | 3672 | 7278 | 17649 |
| DSPs | 32 | 64 | 128 | 220 |
| BRAMs | 8 | 16 | 32 | 64 |
| 32 | 64 | 128 | 256 | |
| LUTs | 2577 | 5081 | 10409 | 28908 |
| FFs | 2385 | 4696 | 9365 | 21768 |
| DSPs | 32 | 64 | 128 | 220 |
| BRAMs | 8 | 16 | 32 | 64 |
| 64 | 128 | 256 | 512 | |
| LUTs | 3539 | 7000 | 14434 | 36853 |
| FFs | 3423 | 6771 | 13543 | 29960 |
| DSPs | 32 | 64 | 128 | 220 |
| BRAMs | 8 | 16 | 32 | 128 |
| 128 | 256 | 512 | ||
| LUTs | 5137 | 10554 | 20261 | n/a |
| FFs | 5493 | 10918 | 22687 | n/a |
| DSPs | 32 | 64 | 128 | n/a |
| BRAMs | 8 | 32 | 128 | n/a |
At this point, the maximum number of DSPs provided by the FPGA is exceeded, the remaining logic has been absorbed into LUTs and FFs.
For and , the architecture is not synthesizable due to exceeding the limitations in memory resources.