Systems and methods for harnessing analog noise in efficient optimization problem accelerators

Systems and methods are provided for implementing a hardware accelerator. The hardware accelerator emulates a neural network, and includes a memristor crossbar array, and a non-linear filter. The memristor crossbar array can be programmed to calculate node values of the neural network. The nodes values can be calculated in accordance with rules to reduce an energy function associated with the neural network. The non-linear filter is coupled to the memristor crossbar array and programmed to harness noise signals that may be present in analog circuitry of the hardware accelerator. The noise signals can be harnessed such that the energy function associated with the neural network converges towards a global minimum and modifies the calculated node values. In some embodiments, the non-liner filter is implemented as a Schmidt trigger comparator.

DESCRIPTION OF RELATED ART

Artificial neural networks are a family of technical models based on biological nervous systems, which are used to estimate or approximate functions that depend on a large number of inputs. Neural networks may be represented as a system of interconnected “neurons” which exchange messages between each other. The connections may have numerical weights that can be tuned based on experience, making neural networks adaptive to inputs and capable of machine learning. Artificial neural networks may have a variety of applications, including function approximation, classification, data processing, robotics, and computer numerical control.

There may be various types of neural networks, including feedforward neural networks, radial basis function neural networks, recurrent neural networks, and other types. As a general description, Hopfield Neural Networks (HNNs) are a type of artificial neural network that involve computed iterative steps based on energy minimizing rules. The recurrent, or feedback characteristics of HNNs may be particularly suitable for implementing logic operations, solving optimization problems, performing analog-digital conversion, and implementing associative memories (e.g., content-addressable memories), for example. However, in some cases, models based on HNNs may experience limitations due to its computational properties. For instance, a Hopfield based system may converge at local minima of its energy function, which causes the computation to end without reaching a global minimum. This scenario has a high probability of occurring in HNN implementations, and may be problematic, as it is the global minimum of the network's energy function that typically produces optimal values, or most correct solution. Stabilization at local minima is a common drawback associated with HNNs (due to its energy minimizing properties), which affects the accuracy of its computations and serves as a deterrent from the widespread use of HNNs in various applications.

DETAILED DESCRIPTION

Various embodiments described herein are directed to hardware configured to emulate a logical neural network. Furthermore, the hardware has been adapted to include circuitry, such as a non-liner filter, that is designed for harnessing noise from the analog hardware of the emulated neural network for optimized performance. Analog circuits characteristically have some level of noise present. As referred to herein, noise may be generally described as an unintendedly generated electrical signal. As an example, intrinsic noise is generated within an analog circuit from a variety of sources, such as the signal paths, or the components themselves. There are mechanisms that exist to reduce noise in analog circuits, for instance filters for reducing noise to a level that does not significantly impact characteristics or measurements of the desired electrical signals. Nonetheless, there is some noise that may be irreducible that remains present in the circuit, since intrinsic noise can be a fundamental physical property of analog circuits (e.g., due to the random thermal movement of particles). The embodiments leverage noise that may be present in the analog circuitry of the hardware accelerator to improve its performance, as opposed to many current techniques that aim to remove noise to realize improvements. As described herein, the hardware accelerator is designed to harness noise, that is often times intrinsically present in analog circuits, using hardware-driven annealing techniques, thereby enhancing accuracy of its computations. In addition to improving computational capabilities, the noise harnessing techniques disclosed may realize a robust design that is resilient to increased noise levels (as compared to some existing analog array circuits).

Memristors are devices that may be used as components in a wide range of electronic circuits, such as memories, switches, radio frequency circuits, and logic circuits and systems. In a memory structure, a crossbar array of memory devices having memristors may be used. In memory devices, memristors may be used to store bits of information, 1 or 0. The resistance of a memristor may be changed by applying an electrical stimulus, such as a voltage or a current, through the memristor. Generally, at least one channel may be formed that is capable of being switched between two states—one in which the channel forms an electrically conductive path (“on”) and one in which the channel forms a less conductive path (“off”). In some other cases, conductive paths represent “off” and less conductive paths represent “on”. Furthermore, memristors may also behave as an analog component with variable conductance.

In some applications, a memory crossbar array can be used to perform vector-matrix computations. For example, an input voltage signal from each row line of the crossbar is weighted by the conductance of the resistive devices in each column line and accumulated as the current output from each column line. Ideally, if wire resistances can be ignored, the current (I) flowing out of the crossbar array will be approximately represented in the equation below:
IT=VTG(1)

where V is the input voltage and G is the conductance matrix.

The memristor crossbar array is configured to include contributions from each memristor in the crossbar array. The use of memristors at junctions or cross-points of the crossbar array enables programming the resistance (or conductance) at each such junction.

Examples disclosed herein include hardware accelerators for calculating node values for neural networks. Example hardware accelerators may include a memristor crossbar array programmed to calculate node values. Memory cells of the memristor crossbar array may be programmed according to a weight matrix. Driving input voltages mapped from an input vector through the memristor crossbar array may produce output current values which may be compared to a threshold current to generate a new input vector of new node values. In this manner, example accelerators herein provide for hardware calculations of node values for neural networks.

Referring now to the drawings,FIG.1illustrates an example hardware accelerator100according to the embodiments. Hardware accelerator100may be a hardware unit configured for calculating node values for neural networks. Hardware accelerator100may calculate new node values of a neural network by transforming an input vector in relation to a weight matrix. Hardware accelerator100may do so by calculating a vector-matrix multiplication of the input vector with the weight matrix.

In the example illustrated inFIG.1, a Hopfield Neural Network (HNN) is particularly implemented by the hardware accelerator100described herein.FIG.1shows an implementation of the example hardware accelerator100having various components, including: a memristor crossbar array structure101; multiplexer (MUX)115; non-linear filter120; delay flip-flop (DFF) (I/O Buffer)130; and drivers135. Memristor crossbar array105can be configured to implement the weight matrix aspects of the HNN, as described above. As a general principle of analog crossbars, larger crossbar arrays typically have the capacity to perform more computations in parallel. Also, dedicating more of the circuit for the hardware accelerator100to implement the crossbar array105(e.g., larger crossbar array structure) may amortize the costs of the peripheral circuitry, which dominate the power and area consumption. Despite these benefits, larger crossbar arrays can also generate more noise in the circuit, due to the increased number of analog crossbars used, which further leads to noise in the computation results. Thus, there may be a design trade-off for hardware accelerators with respect to the amount of noise that can be handled by the circuit, and its overall computational power. For example, some existing approaches implement smaller arrays as a brute force solution to mitigate the effects of noise. In contrast, the embodiments harness noise in such a way that may yield better computing results when more noise is present in the circuitry. Accordingly, the disclosed hardware accelerator100has a design that can increase its power efficiency by allowing a larger analog crossbar array implementation. As an example, the crossbar array105can be implemented using a 1024×1024 (M×N) array rather than a 100×100 used in some implementations. The non-linear filter120can be configured for implementing the noise harnessing aspects of the HNN, as further described in herein. Thus, the disclosed techniques can realize performance enhancements by adding relative simple post-processing circuitry to the hardware accelerator. Therefore, the embodiments can realize cost and redundancy advantages over some approaches that utilize costly error-correcting codes to address the impacts of noise.

As previously described, HNNs are a type of artificial neural network that can be used as a computational mechanism for various applications. A model of an HNN is conceptually illustrated inFIG.4. Graphically, an HNN as a mathematical construct can be represented as graph400of a bidirectional (undirected) network with nodes (si)410A-410F and edges (wij)420A-420O. Edges420A-420O can be formed between each of the nodes410A-410F. A computational “problem” can be encoded (or trained) in the edge weights and a threshold function. Input node values415A-415F can be delivered to the nodes410A-410F until the computational “answer” to the problem is determined by a final state for the node values. In this manner, an HNN can be a dynamic system, and the node values can evolve based on the edge weightings to all the other node values (e.g., as a dot product operation). The dynamics follow energy minimizing rules, such that the “energy” of the system does not increase, and thus can find a minimum. The final configuration of the nodes encodes the solution. Therefore the “energy” indicates whether the network is modified when an update occurs, and the system reaches its minimum energy when it becomes stable.

The HNN can be “trained” to a set of distinct inputs. As alluded to above, HNNs can employ update rules that minimize a network's energy function (e.g., only reducing energy at each successive update). It should be also be understood that in some cases, inputs are used as initial conditions, and the HNN is allowed to evolve to a rest state (e.g., without training by changing the weights). For example, an energy function of an HNN may be represented as the equation below:
E=−½Σi,jwijsisj+Σiθisi(2)

Referring now toFIG.3, an example of a graphical representation of an energy function associated with an HNN is illustrated. It should be appreciated thatFIG.3depicts the energy function corresponding to the HNN as a continuous function, whereas different implementations of an HNN can also correspond to a system with a discrete state energy function. As seen, an energy function can be represented as wave310being substantially sinusoidal in form, where an energy value for the HNN at a particular state corresponds to the vertical position (e.g., height) of the wave310along the y-axis of the graph (with respect to the x-y axis represented by dashed lines). The energy function of the HNN transitions from initial states (e.g., start of a set of inputs) having higher energy levels, illustrated as higher points315A-315E of wave310with amplitudes in the (+) y direction (with respect to the x-y axis represented by dashed lines). In between each of the higher energy states, the network propagates through subsequent states having lower energy and eventually reaches a state with minimal energy. The minimal energy states are illustrated as lower points316A-316F on wave310with an amplitude in the (−) y direction. Accordingly, node values calculated by the HNN also evolve towards energy minima, or the computational answer. Each set of inputs into the HNN can converge to its own answer, which corresponds to a respective minimum energy for that set on the energy graph, also referred to as local minima. Referring toFIG.3, updates to the evolving node values of the HNN are represented by ball320. The position of the ball320along wave310corresponds to the system's energy, which impacts the node values calculated for that particular state. Thus, the HNN reaching a local minimum for a set of inputs can be represented on the energy graph by ball320being positioned at one of the low points316A-316F on wave310. For purposes of illustration, the local minima phenomena can generally be described in the energy graph as ball320resting in a valley. Each valley, or low point316A-316F, produces respective node values that can be considered a computational answer. As such, an HNN has the potential to converge at any of the multiple “answers” (having an energy that becomes stable at any of the points316A-316F on the graph) based on the received input.

A global minimum can be characterized as the optimally minimized energy of the HNN across multiple sets of inputs. Consequently, it is the global minimum (or global convergence) that represents the most accurate calculation by the HNN. InFIG.3, as each of the low points316A-316F represents local minima for the energy function, the global minimum can be represented by the lowest point of wave310on the energy graph, or low point316C. Restated, although the local minima of the energy function correspond to multiple potential computational answers, node values generated by the state at global minimum can be the optimal answer. As previously described, models based on HNN may experience limitations due to its computational properties. For instance, a system can stabilize at local minima (e.g., false solution to a problem) of the energy function. Referring back to the example, ball320may settle in one of the valleys at lower points316A,316B,316D-316F in the energy graph. In order for the ball320to escape a valley, energy can be injected into the system to allow ball320to reach a higher energy level, climbing an upward slope to approach one of the higher points315A-315E. However, as described above, HNNs characteristically do not increase its energy function. Consequently, in the event that the HNN stops evolving at local minima, then the system may be stuck at that state. The energy minimizing rule of HNNs may prevent ball320from escaping the valley, in turn preventing the system from ultimately reaching the global minimum (e.g., correct solution to a problem). As a result, hardware implementations of HNNs can also suffer from the negative impacts of local minima. The embodiments address local minima constraints by adapting the hardware accelerator100inFIG.1, which emulates an HNN, to leverage noise generated by analog circuitry in a way that simulates injecting external energy into the energy graph of an HNN.

Referring again to the example discussed in reference toFIG.3, noise that may generated intrinsically by the memristor crossbar array105(shown inFIG.1) can act as noise being injected into the system.FIG.3illustrates another wave340that can be associated with an energy function for a neural network. In this case, the energy function of wave340may lend itself for having ball321rest in a local minima, similar to the example including wave310. However, the system with wave340is shown as having a noise signal350present. As previously described, the noise signal350which may impact the energy of the system. For instance, noise signal350may introduce an amount of energy needed to excite the ball321enough to escape the valley, or local minima. Accordingly, the presence of noise can considered a resource that may be harnessed to achieve faster convergence and improved accuracy of the HNN. Furthermore, the disclosed systems and techniques may be particularly beneficial for the various applications of HNNs. As referred to herein, simulated annealing refers to a hardware-driven approach for emulating excitation with respect to a neural network's energy function to escape local minimum, and converge towards global minimum.

Moreover, an aspect of simulated annealing includes adjusting an amplitude of the noise signal350to achieve optimal results. As an example, more noise may be needed initially for enough excitation to jump out of local minima. Eventually, once global minima is reached, the need for the hill-climbing features of added noise is no longer needed. Even further, too much noise in the system at global minimum potentially prevents the system from quickly converging. Thus, a small amount of noise, or no noise, is more desirable in the global minima state. In some embodiments, the non-linear filter120(shown inFIG.1) can adjust over time, so that an amount of noise that is tolerated before the computations are substantially impacted can gradually increase. As such, the circuitry is adapted to simulate annealing, where the noise signal350is initially large for escaping local minima, and then has a gradually smaller amplitude approaching the global minima point315C.

The embodiments provide an efficient and hardware-driven solution, which realizes advantages over some existing approaches to address local minima associated with HNNs. For instance, quantum annealing is a known technique to mitigate local minima. Nonetheless, quantum annealing is a temperature-dependent solution, where the environment is controlled for cooling. The lower temperatures induce particles to initially lose energy, and subsequently pull energy from the environment to assume a higher energy state (thus avoiding local minima of the energy function). In the case of hardware implemented HNNs, cryogenic temperatures are used to achieve cooling of the circuits. Thus, quantum annealing often involves high energy consumption and system inefficiency. Furthermore, there is uncertainty regarding whether advancements in quantum annealing will be successful without requiring cooling. The embodiments integrate local minima escaping mechanisms into the HNN emulating circuitry itself, therefore reducing costs and providing an alternative to the other environmental control concerns of other approaches, such as quantum annealing.

Referring back toFIG.1, hardware accelerator100can include memristor crossbar array105and peripheral circuitry. Memristor crossbar array105can be a configuration of parallel and perpendicular lines with memory cells coupled between lines at intersections. Memristor crossbar array105may include a plurality of row lines104, a plurality of column lines106, and a plurality of memory cells106A-106I. Each of the memory cells106A-106I may be coupled between each unique combination of one row line104and one column line106. In other words, none of the memory cells106A-106I share both a row line104and a column line107.

Row lines104may be electrodes that carry current through memristor crossbar array105. In some examples, row lines104may be parallel to each other, generally with equal spacing. Row lines104may sometimes be, for example, a top electrode or a word line. Similarly, column lines106may be electrodes that run nonparallel to row lines104. Column lines106may sometimes be, for example, a bottom electrode or bit line. Row lines104and column lines106may serve as electrodes that deliver voltage and current to the memory cells106A-106I. Example materials for row lines104and column lines106may include conducting materials such as Pt, Ta, Hf, Zr, Al, Co, Ni, Fe, Nb, Mo, W, Cu, Ti, TiN, TaN, Ta2N, WN2, NbN, MoN, TiSi2, TiSi, TiSi3, TaSi2, WSi2, NbSi2, V3Si, electrically doped polycrystalline Si, electrically doped polycrystalline Ge, and combinations thereof. In the example ofFIG.1, crossbar array105may have N row lines and M column lines.

Memory cells106A-106I may be coupled between row lines104and column lines106at intersections of the row lines104and column lines106. For example, memory cells106A-106I may be positioned to calculate a new node values of an input vector of node values with respect to a weight matrix. Each of the memory cells106A-106I may have a memory device such as a resistive memory element, a capacitive memory element, or some other form of memory.

In some examples, each of the memory cells106A-106I may include a resistive memory element. A resistive memory element may have a resistance that changes with an applied voltage or current. Furthermore, in some examples, the resistive memory element may “memorize” its last resistance, either in a volatile or a non-volatile way. In this manner, each resistive memory element may be set to at least two states. In many examples, a resistive memory element may be set to multiple resistance states, which may facilitate various analog operations. The resistive memory element may accomplish these properties by having a memristor, which may be a two-terminal electrical component that provides memristive properties as described herein.

In some examples, a memristor may be nitride-based, meaning that at least a portion of the memristor is formed from a nitride-containing composition. A memristor may also be oxide-based, meaning that at least a portion of the memristor is formed from an oxide-containing material. Furthermore, a memristor may be oxy-nitride based, meaning that at least a portion of the memristor is formed from an oxide-containing material and that at least a portion of the memristor is formed from a nitride-containing material. Example materials of memristors may include tantalum oxide, hafnium oxide, titanium oxide, yttrium oxide, niobium oxide, zirconium oxide, or other like oxides, or non-transition metal oxides, such as aluminum oxide, calcium oxide, magnesium oxide, dysprosium oxide, lanthanum oxide, silicon dioxide, or other like oxides. Further examples include nitrides, such as aluminum nitride, gallium nitride, tantalum nitride, silicon nitride, and oxynitrides such as silicon oxynitride. In addition, other functioning memristors may be employed in the practice of the teachings herein.

A memristor may exhibit nonlinear or linear current-voltage behavior. Nonlinear may describe a function that grows differently than a linear function. In some implementations, a memristor may be linear or nonlinear in voltage ranges of interest. A voltage range of interest may be, for example, a range of voltages used in the operation of hardware accelerator100. In some examples, memory cells106A-106I may include other components, such as access transistors or selectors. For example, each of the memory cells106A-106I may be coupled to an access transistor between the intersections of a row line104and a column line106. Access transistors may facilitate the targeting of individual or groups of memory cells106A-106I for the purposes of reading or writing the memory cells.

Alternatively, a selector may be an electrical device that may be used in memristor devices to provide desirable electrical properties. For example, a selector may be a 2-terminal device or circuit element that admits a current that depends on the voltage applied across the terminals. A selector may be coupled to each of the memory cells106A-106I to facilitate the targeting of individual or groups of memory cells106A-106I. For example, a selector may do so by acting like an on-off switch, and it may mitigate sneak current disturbance.

The memory cells106A-106I of memristor crossbar array105may be programmed according to a weight matrix of a neural network. A weight matrix may represent a compilation of operations of a neural network. For example, a weight matrix may represent the weighted edges of HNN illustrated inFIG.4. The value stored in the memory cells106A-106I may represent the values of a weight matrix. In implementations of resistive memory, the resistance levels of each of the memory cells106A-106I may represent a value of the weight matrix. In such a manner, the weight matrix may be mapped onto crossbar array105.

Memory cells106A-106I may be programmed, for example, by having programming signals driven through them, which drives a change in the state of the memory cells106A-106I. The programming signals may define a number of values to be applied to the memory cells106A-106I. As described herein, the values of memory cells106A-106I of crossbar array105may represent a weight matrix of a neural network, such as an HNN.

In continuing reference toFIG.1, hardware accelerator100may receive an input vector of node values at the plurality of row lines104. The input vector may include node values which are to be evolved into next input values for the neural network. The input vector node values may be converted to input voltages (VI)103by a drive circuit, drivers135. A drive circuit135may deliver a set of input voltages that represents the input vector to the memristor crossbar array105. In some examples, the voltages103may be other forms of electrical stimulus such as an electrical current driven to the memory cells106A-106I. Furthermore, in some examples, the input vector may include digital values, which may be converted to analog values of the input electrical signals by a digital-to-analog converter. In other examples, the input vector may already include analog values.

Upon passing through the memristor crossbar array105, the plurality of column lines107may deliver output currents (Io)109, where the output currents109may be compared to a threshold current according to an update rule to generate a new input vector of new node values. According to the embodiments, the thresholding aspects of the circuit's function are adapted in order to apply the disclosed hardware-based annealing techniques by harnessing noise. Details of these operations is described in below.

Hardware accelerator100may also include other peripheral circuitry associated with crossbar array105. The drivers135, may for a selected row line104, can drive a corresponding row line104with different voltages corresponding to a neural network or the process of setting resistance values within memory cells106A-106I of memristor crossbar array105. Similar drive and decode circuitry may be included for column lines107. Control circuitry may also be used to control application of voltages at the inputs and reading of voltages at the outputs of hardware accelerator100. Digital to analog circuitry and analog to digital circuitry may be used for input voltages103and the output currents109. In some examples, the peripheral circuitry above described can be fabricated using semiconductor processing techniques in the same integrated structure or semiconductor die as crossbar array.

As described herein, there are three main operations that occur during operation of the hardware accelerator100. The first operation is to program the memory cells106A-106I in the memristor crossbar array105so as to map the mathematic values in an N×M weight matrix to the array. In some examples, N and M may be the same number, and the weight matrix is symmetrical. In some examples, each of the memory cells106A-106I are programmed at a time during the programming operation. The second operation is to calculate an output current by the dot-product of input voltage and the resistance values of the memory cells of a column line107. In this operation, input voltages are applied, and output currents obtained, corresponding to the result of multiplying an N×M matrix by an N×1 vector. In some examples, the input voltages are below the programming voltages so the resistance values of the memory cells106A-106I, such as resistive memory, are not changed during the linear transformation calculation. The third operation is to compare the output currents with a threshold current. For example, comparators120may compare the output currents with the threshold current to determine a new input vector of new node values.

In an example, hardware accelerator100may calculate node values by applying a set of voltages (VI)103simultaneously along row lines104of the N×M crossbar array105and collecting the currents through column lines107and generating new node values. On each column line107, every input voltage103is weighted by the corresponding memristance (1/Gij) and the weighted summation is reflected at the output current. Using Ohm's law, the relation between the input voltages103and the output currents can be represented by a vector-matrix multiplication of the form: {VO}T=−{VI}T[G] Rs, where Gijis an N×M matrix determined by the conductance (inverse of resistance) of memristor crossbar array105, Rs is the resistance value of the sense amplifiers and T denotes the transpose of the column vectors VOand VI. The negative sign follows from use of a negative feedback operational amplifier in the sense amplifiers. From the foregoing, it follows that the hardware accelerator100can be utilized for multiplying a first vector of values {bi}Tby a matrix of values [aij] to obtain a second vector of values {cj}T, where i=1,N and j=1,M. The vector operation can be set forth in more detail as follows:
a11b1+a21b2+ . . . +aN1bN=c1
a1Mb1+a2b2+ . . . +aNMbN=cM(3)

The vector processing or multiplication using the principles described herein generally starts by mapping a matrix of values [aij] onto crossbar array105or, stated otherwise, programming (e.g., writing) conductance values Gijinto the crossbar junctions of the memristor crossbar array105.

With reference still toFIG.1, in some examples, each of the conductance values Gijmay be set by sequentially imposing a voltage drop over each of the memory cells106A-106I. For example, the conductance value G2,3may be set by applying a voltage equal to VRow2at the second row line104of memristor crossbar array105and a voltage equal to VCol3at the third column line107of the array105. The voltage input, VRow2, may be applied to the second row line occurring at the second row line adjacent the j=1 column line. The voltage input, VCol3, will be applied to the third column line adjacent either the i=1 or i=N location. Note that when applying a voltage at a column line107, the sense circuitry for that column line may be switched out and a voltage driver switched in. The voltage difference VRow2−VCol3will generally determine the resulting conductance value G2,3based on the characteristics of the memory cell106flocated at the intersection. When following this approach, the unselected column lines107and row lines104may be addressed according to one of several schemes, including, for example, floating all unselected column lines107and row lines104or grounding all unselected column lines and row lines. Other schemes involve grounding column lines107or grounding partial column lines107. Grounding all unselected column lines and row lines is beneficial in that the scheme helps to isolate the unselected column lines and row lines to minimize the sneak path currents to the selected column line107.

In accordance with examples herein, memristors used in memory cells106A-106I may have a linear current-voltage relation. Linear current-voltage relations permit higher accuracy in the matrix multiplication process. However, memristor crossbar array105having linear memristors are prone to having large sneak path currents during programming of the array105, particularly when the size of memristor crossbar array105is larger than a certain size, for instance, 32×32. In such cases, the current running through a selected memristor may not be sufficient to program the memristor because most of the current runs through the sneak paths. Alternatively, the memristor may be programmed at an inaccurate value because of the sneak paths.

To alleviate the sneak path currents in such instances, and especially when larger arrays are desired, an access device, such as an access transistor or a non-linear selector, may be incorporated within or utilized together with a memristor to minimize the sneak path currents in the array. More specifically, memory cell should be broadly interpreted to include memristive devices including, for example, a resistive memory element, a memristor, a memristor and transistor, or a memristor and other components.

Following programming, operation of linear transformation accelerator100proceeds by applying the input voltages110and comparing the output currents to threshold currents. The output current delivered from column lines106may be compared, by current comparator116, with a threshold current. Current comparator116may be a circuit or device that compares two currents (i.e., output current and threshold current) and outputs a digital signal indicating which is larger. Current comparator116may have two analog input terminals and one binary digital output.

Additionally,FIG.1shows that the hardware accelerator100can include a non-linear filter120. According to the embodiments, non-linear filter120is particularly designed to leverage noise in the analog circuitry. For instance, noise that may be intrinsically generated by the crossbar array105, can be used in manner that implements the simulated annealing aspects described above. In the illustrated example ofFIG.1, the non-linear filter120can be coupled to the crossbar array105, such as being included in the peripheral circuitry of the hardware accelerator100.FIG.2Ashows an example of a circuit configuration for the hardware accelerator200comprising the memristor crossbar array structure205, and prominently illustrating a configuration for the non-linear filter220. In the example ofFIG.2A, the non-linear filter220can be implemented as a Schmidt trigger260.

In the configuration ofFIG.2A, the Schmidt trigger260handles noise that may be present in the circuit during the computations of the emulated neural network. Utilizing a Schmidt trigger260in the hardware design not only reduces the impact of noise on computations, but can improve efficiency and/or accuracy of these computations in the presence of high levels of noise, which favors implementing a larger crossbar array205. As alluded to above, larger crossbar arrays can provide comparatively increased computational capabilities than a hardware accelerator using smaller cross bar arrays. A Schmidt trigger260can be implemented using relatively simple circuitry. As seen inFIG.2A, an example Schmidt trigger circuit260can include resistors222,223,224and operational amplifier (op-amp)221. Thus, a performance enhancing solution can be implemented using minimal adaptations to the peripheral circuitry of the hardware accelerator200. The Schmidt trigger260can be generally described to function as causing a threshold to be direction-dependent, adding resistance to change (or inertia). For example, the Schmidt trigger260can be included in the portion of the circuit where comparisons are performed in the computation. A comparator in the hardware accelerator200may be used to determine a new node value for the emulated HNN. The new node values may be aggregated to generate a new input vector. For example, each output current may be compared by an update rule. A new node value corresponding to a particular output current can be set to a first value if the particular output current is greater than or equal to the threshold current, ⊖l. The new node value can be set to a second value if the particular output current is less than the threshold current. Each output current may be represented as the sum of the products of an input vector with the weight matrix. For example, the update rule may be represented as the equation that follows:

Referring back toFIG.1, the node values may also be programmed to attain values of +1 or 0, rather than +1 and −1 in the above equation. Any other pair of values may also be used. In some examples, the threshold currents may be delivered to the current comparators116via circuitry independent from crossbar array102. Furthermore, in some examples, column lines107may have different threshold currents associated with it. This is further described below. Alternatively, each column line106may be associated with a same threshold current.

In the example shown inFIG.2A, the Schmidt trigger260can function as a comparator. As a general description, a Schmidt trigger260can be comparator circuit that applies positive feedback to a non-inverting input such that the output retains its value until the input changes sufficiently to further trigger a change in the output. Applying the Schmidt trigger260where thresholding is performed in the circuit, thereby causes the threshold to be state dependent. As a result, the Schmidt trigger260can allow values to be computed, without noise compromising the computational result. This capability to “hold” a computational result, making it more resistant to change (e.g., an unintended impact of noise) can be associated with a width that corresponds to the signaling of a Schmidt trigger260.

An example of a width237associated with the Schmidt trigger260is illustrated graph229which visually represents the trigger's transfer function. The horizontal axis of graph229can be input voltage (e.g., Vin), and the vertical axis can be output voltage (e.g., Vout). As such, a low voltage input limit235(e.g., VIL) and a high voltage input limit236(e.g., VIH) can represent the switching thresholds. A width237for the Schmidt trigger260, may be represented graphically as the difference between the lower limit and upper limit of the trigger, VIL235and VIH236respectively. A general description of the relationship between the width237of the Schmidt trigger260and the noise tolerance is as follows: a larger width237translates to more tolerance to an amount of noise that is needed for triggering a change to the output, which is the circuit allowing noise to have little impact on the computational values (e.g., more analog noise filtered); and a smaller width327allows for less tolerance to an amount of noise needed for triggering a change to the output, which is the circuit allowing for noise to have a greater impact on the computational values (e.g., less noise filtered out). For example, the simulated annealing techniques may be implemented by the Schmidt trigger260by initially having its width237set to a lowest limit value, for example zero (e.g., W=0). Accordingly, any noise in the circuitry, for example noise from the analog crossbar array205, is permitted to substantially impact the computational values, which simulates leveraging noise for excitation out of local minima for the neural network. Therefore, in cases where intrinsic noise in the hardware accelerator200is greater than an optimal noise for convergence of the emulated neural network, the resulting computations can be improved. In some embodiments, the Schmidt trigger260is particularly configured to allow the amount of noise that impacts the computational results to be equal (or greater than) a determined optimal noise value associated with the neural network emulated by the hardware (e.g., optimal noise value may represent a noise level used in simulated annealing that may generate the most accurate calculations for an HNN).

Furthermore, Schmidt trigger260is configured such that the width237can dynamically change as a function of time (or a function of number of computations). For instance, width237for the Schmidt trigger260may be initially set to zero, and then gradually increases over time, allowing less analog noise to impact the computational result. As such, the Schmidt trigger260can simulate annealing techniques described above, where more noise is introduced into the system, in order to provide enough excitation for the neural network to escape local minima. Then, the amount of noise gradually tapers off, allowing the neural network to converge at global minima. Similarly, the Schmidt trigger260ramps up its width237to increase the associated noise tolerance, thereby reducing the impact of noise on the circuit's computational results. According to the embodiments, width237can serve as a dynamic parameter that can be tuned for the purposes of harnessing noise to enhance the hardware accelerator200. In most cases, the width237implemented is a design objective that is specific to the application of the hardware accelerator200. For purposes of illustration, width237can be set at any desirable value between a lower limit of zero (W=0) for full noise tolerance, and an upper limit of one (W=1) for substantially no noise tolerance, which can be described as the width237spanning the maximum input voltage size. For example, a Schmidt trigger260can introduce an element into computations of an HNN that may be represented as the equation below:

Accordingly, based on the application of equation (5), the Schmidt trigger260inFIG.2Ais configured to implement a history dependence on ⊖i.

Referring now toFIG.2B, an alternate configuration for a non-linear filter270used for harnessing analog noise is shown. In the example ofFIG.2Bthe non-linear filter270is implemented as a low-pass filter. The non-linear filter270functions in a manner that is substantially similar to the non-linear filter ofFIG.2A. In other words, a low pass filter270implementation can be configured to increasingly filter out more of the noise from impacting the computational results, as a function of time. Therefore, more noise is initially allowed to impact the circuit's computations vis-à-vis the low pass filter270. Thereafter, the non-linear filter270begins to gradually filter out more of the analog noise. Consequently, a hardware-driven implementation can simulate the abovementioned annealing techniques.

It should be appreciated that various types of low pass filters270may be used to implement the non-linear filter270inFIG.2B. In an example, the low pass filter270can have a circuit configuration that includes a capacitor, which is added to a feedback path of an op-amp. The circuitry is configured for the low pass filter270to act as a history integrator, performing low pass filtering of noise. Thus, the example illustrated inFIG.2Balso employs a relatively simple adaption to the peripheral circuitry to realize noise harnessing. It should be understood that the examples ofFIGS.2A-2Bare for purposes of discussion, and the disclosed hardware accelerator250, and the components therein, can be arranged in various other circuit configurations as deemed appropriate and/or necessary.

Referring back toFIG.2B, the function of the low pass filter270, the memristor crossbar array255can generate noise that is permitted to impact its output, thereby simulating annealing to improve performance. Furthermore, as the hardware accelerator250is more robust and resilient to extra noise in the system, the variance in solution quality is also improved. Also, by provisioning for a larger crossbar array255to be implemented, the noise harnessing techniques improve power-efficiency used in computing complex optimization problems. For example, a low pass filter270can introduce an element into computations of an HNN that may be represented as the equation below:
ui(t)←ui(t)*α+ui(t−1)*(1−α)  (6)

where α is between 0 and 1 (typically close to 1)

Based on the application of equation (6), the low pass filter270is configured to have a smoothing effect on ui(e.g., low pass filtering), which effectively handles excessive noise in the hardware accelerator250.

As the low pass filter270harnesses noise to impact computations of the HNN, delivery of the new input vector of new node values, can cause a controller to determine whether the new node values are final node values of the HNN. For example, the emulated neural network may be modeled to determine a minimum energy of a system. In such an example, a controller can determine whether the new node values, which here represents an energy of the system, are a local minimum of the system. In response to a controller determining that the new node values are not final node values, the new input vector can be converted to input voltages to be delivered to the plurality of row lines of the crossbar array105. In such a manner, the hardware accelerator250can be recurrent to calculate an iterative problem, such as determining a minimum energy of a system, implementing an HNN as hardware. Furthermore, the hardware accelerator250, incorporating the noise harnessing techniques disclosed herein, can improve its computations used for solving optimization problems. As an example, the noise harnessing techniques may improve the success probability of the computed solutions of a hardware accelerator from ˜30% (without noise harnessing) to ˜55% (including noise harnessing).

In some cases, the hardware accelerator100can be implemented as an engine in a computing device. Example computing devices that include an example accelerator may be, for example, a personal computer, a cloud server, a local area network server, a web server, a mainframe, a mobile computing device, a notebook or desktop computer, a smart TV, a point-of-sale device, a wearable device, any other suitable electronic device, or a combination of devices, such as ones connected by a cloud or internet network, that perform the functions described herein. Although the embodiments are described in reference to HNNs for purposes of discussion, it should be appreciated that the noise harness techniques can be similarly applied to other recurrent neural networks, such as Boltzmann techniques, and the like. Even further, the embodiments are not intended to be limited to memristor crossbar arrays, but can be applicable to other arrays (e.g., composed of various forms of analog cells) that perform analog computations, such as phase-changing memory (PCM), oxide memristors, Flash cells, magnetoresistive random access memory (MRAM), and the like.

FIG.5depicts a block diagram of an example computer system500in which the hardware accelerator and/or the noise harnessing techniques of the embodiments described herein may be implemented. The computer system500includes a bus502or other communication mechanism for communicating information, and one or more hardware processors504coupled with bus502for processing information. Hardware processor(s)504may be, for example, one or more general purpose microprocessors.

The computer system500also includes a main memory506, such as a random-access memory (RAM), cache and/or other dynamic storage devices, coupled to bus502for storing information and instructions to be executed by processor504. Main memory506also may be used for storing temporary variables or other intermediate information during execution of instructions to be executed by processor504. Such instructions, when stored in storage media accessible to processor504, render computer system500into a special-purpose machine that is customized to perform the operations specified in the instructions. The description of the functionality provided by the different instructions described herein is for illustrative purposes, and is not intended to be limiting, as any of instructions may provide more or less functionality than is described. For example, one or more of the instructions may be eliminated, and some or all of its functionality may be provided by other ones of the instructions. As another example, processor504may be programmed by one or more additional instructions that may perform some or all of the functionality attributed herein to one of the instructions.

The computer system500further includes storage device510. The various instructions described herein, including the ADC list concatenation techniques, may be stored in a storage device510, which may comprise read only memory (ROM), and/or other static storage device coupled to bus502for storing static information and instructions for processor504. A storage device510, such as a magnetic disk, optical disk, or USB thumb drive (Flash drive), etc., is provided and coupled to bus502for storing information and instructions. The storage device510may store the computer program instructions (e.g., the aforementioned instructions) to be executed by processor504as well as data that may be manipulated by processor504. The storage device may comprise one or more non-transitory machine-readable storage media such as floppy disks, hard disks, optical disks, tapes, or other physical storage media for storing computer-executable instructions and/or data.

The computer system500may be coupled via bus502to a display512, such as a liquid crystal display (LCD) (or touch screen), for displaying information to a computer user. An input device514, including alphanumeric and other keys, is coupled to bus502for communicating information and command selections to processor504. Another type of user input device is cursor control616, such as a mouse, a trackball, or cursor direction keys for communicating direction information and command selections to processor504and for controlling cursor movement on display512. In some embodiments, the same direction information and command selections as cursor control may be implemented via receiving touches on a touch screen without a cursor.