METHODS AND SYSTEMS FOR IMPLEMENTING DYNAMIC NEURAL NETWORKS
A method is described for designing systems that provide efficient implementations of feed-forward, recurrent, and deep networks that process dynamic signals using temporal filters and static or time-varying nonlinearities. A system design methodology is described that provides an engineered architecture. This architecture defines a core set of network components and operations for efficient computation of dynamic signals using temporal filters and static or time-varying nonlinearities. These methods apply to a wide variety of connected nonlinearities that include temporal filters in the connections. Here we apply the methods to synaptic models coupled with spiking and/or non-spiking neurons whose connection parameters are determined using a variety of methods of optimization.
Latest Applied Brain Research Inc. Patents:
- Methods and systems for encoding and processing vector-symbolic representations of continuous spaces
- Methods and systems for storing and querying database entries with neuromorphic computers
- Digital circuits for evaluating neural engineering framework style neural networks
- Legendre memory units in recurrent neural networks
- Methods and systems for implementing dynamic neural networks
This application is a continuation of U.S. application Ser. No. 15/243,223 filed Aug. 22, 2016, which is incorporated by reference herein in its entirety.
FIELD OF THE INVENTIONThe invention relates generally to computing using single or multi-layer networks; and more particularly to a system and method for providing feed-forward, recurrent, and deep networks that process dynamic signals using temporal filters and static or time-varying nonlinearities.
BACKGROUNDThe majority of artificial neural networks (ANNs) in use today are applied to static inputs (e.g., images). However, processing dynamic inputs (e.g., movies, sound, sensory feedback) is critical for real-time interaction with the world in domains such as manufacturing, auditory processing, video processing, and robotics. Non-ANN prior art methods for processing dynamic inputs occasionally rely on future information for processing a current state. This is sometimes called “acausal” filtering, and is typically physically implemented using delays (i.e. waiting until the future information is available before computing a response). Other state-of-the-art methods for processing dynamic inputs include nonlinear filtering, in which the output is not a linear function of the input. Both of these kinds of filtering are challenging for ANNs to realize. Currently, a dominant approach to processing temporal information in ANNs is to employ Long, Short-Term Memories (LSTMs; see S. Hochreiter and J. Schmidhuber, Long short-term memory. Neural Computation, vol. 9, no. 8, pp. 1735-1780, November 1997). LSTMs rely solely on recurrent connections to process information over time with no synaptic filtering.
Another class of dynamic ANNs are those that employ “reservoir computing” (RC; see M. Luko{grave over (s)}evi{grave over (c)}ius and H. Jaeger, Reservoir computing approaches to recurrent neural network training. Computer Science Review, vol. 3, no. 3, pp. 127-149, August 2009). Reservoir ANNs randomly connect large numbers of nonlinear nodes (i.e., neurons) recurrently, and then optimize (i.e., ‘learn’) a linear readout to perform dynamic signal processing. A neuron is said to be ‘spiking’ if its output consists of brief temporal pulses of output in response to its input. If the nodes in the reservoir are non-spiking (i.e., rate neurons), the method is called an Echo State Network (ESN; see H. Jaeger, The echo state approach to analysing and training recurrent neural networks. German National Research Center for Information Technology Technical Report, vol. 148, p. 34, January 2001). LSTMs and the majority of other ANNs use rate neurons. There are a variety of methods for determining the connection weights between neurons in these networks, including gradient descent on the output connection weights, the First-Order Reduced and Controlled Error (FORCE; see D. Sussillo and L. F. Abbott, Generating coherent patterns of activity from chaotic neural networks. Neuron, vol. 63, no. 4, pp. 544-557, August 2009.) method on feedback connections, and unsupervised, error-driven Hebbian learning rules on the recurrent connections. Like LSTMs, ESNs and related methods rely solely on recurrent connections to process information over time. If the reservoir in an RC network uses spiking nodes, then the method is called a Liquid State Machine (LSM; see W. Maass, T. Natschläger, and H. Markram, Real-time computing without stable states: A new framework for neural computation based on perturbations. Neural Computation, vol. 14, no. 11, pp. 2531-2560, November 2002). Liquid state machines are trained (i.e., optimized) in a similar manner to ESNs. Because of the spiking temporal representation, LSMs typically introduce a temporal filter (i.e., synapse) on the input to the nodes. This is most commonly a low-pass filter (i.e., decaying exponential), which smooths the spiking input before driving the neural non-linearity. LSMs usually use the same linear filter on all neurons, and they are usually first-order.
A different approach to building spiking and non-spiking dynamic neural networks is the Neural Engineering Framework (NEF; see C. Eliasmith and C. Anderson, Neural engineering: Computation, representation, and dynamics in neurobiological systems. MIT Press, 2003). In this approach, the dynamics of the network are optimized to approximate a given function. This can be thought of as directly optimizing the “reservoir” in RC networks. The optimization can be done directly using a global optimizer, or during run-time using any of several learning rules. These networks usually assume a first-order low-pass temporal filter (i.e., synapse) as well.
Prior art approaches to implementing dynamic neural networks either do not have a synaptic filter (e.g., LSTMs, ESNs), or pick a simple filter (e.g., LSMs, NEF networks). These approaches also assume that the same filter is used for the majority of synapses in the model.
SUMMARYIn a first aspect, some embodiments of the invention provide a method for implementing single or multi-layer, feed-forward or recurrent neural networks for dynamic computations. The method includes defining any node response function that either exhibits brief temporal nonlinearities for representing state over time, often termed ‘spikes’, or exhibits a value at each time step or over continuous time (i.e., ‘rates’). These response functions are dynamic because they accept input over time and produce output over time. For spiking neurons, the nonlinearity is over both time and state, whereas for rate neurons it is largely over state. The method also includes defining one or more temporal filters (i.e., synapses) on the input and/or output of each node. These synapses serve to filter the input/output signal in various ways, either linearly or nonlinearly. This structure is then used to determine connection weights between layers of nodes for computing a specified dynamic function. Specification of the function can be performed either by writing it in closed form, or by providing sample points.
In some cases, the initial couplings and connection weights are determined using a neural compiler. Connection weights can be further trained either with online or offline optimization and learning methods.
In a second aspect, some embodiments of the invention provide a system for pattern classification, data representation, or signal processing in neural networks. The system includes one or more input layers presenting a vector of one or more dimensions, as well as zero or more intermediate layers coupled via weight matrices to at least one of the input, other intermediate, or output layers, and one or more output layers generating a vector representation of the data presented at the input layer or computing a function of that data. Each layer comprises a plurality of nonlinear components, wherein each nonlinear component has zero or more temporal filters on its input and zero or more temporal filters on its output, with one or more filters associated with each component, and the component coupled to the layer's input and output by at least one weighted coupling. The output from each nonlinear component's temporal filter is weighted by the connection weights of the corresponding weighted couplings and the weighted outputs are provided to the layer's output. The input to each nonlinear component's temporal filter is weighted by the connection weights of the corresponding weighted couplings and the weighted and filtered inputs are provided to the component. The connection weights are determined using methods of the first aspect.
In some cases, the input to the system is either discrete or continuous in time and/or space.
In some cases, the input to the system can be scalar or a multidimensional vector.
A preferred embodiment of the present invention will now be specified in detail with reference to the drawings.
Herein, specific details are set forth in order to provide a thorough understanding of the exemplary embodiments described. However, it will be understood by those of ordinary skill in the art that the embodiments described herein may be practiced without these specific details. In other instances, well-known methods, procedures and components have not been described in detail so as not to obscure the embodiments generally described herein. Furthermore, this description is not to be considered as limiting the scope of the embodiments described herein in any way, but rather as merely describing the implementation of various embodiments as presented here for illustration.
The embodiments of the systems and methods described herein may be implemented in hardware or software, or a combination of both. These embodiments may be implemented in computer programs executing on programmable computers, each computer including at least one processor, a data storage system (including volatile memory or non-volatile memory or other data storage elements or a combination thereof), and at least one communication interface.
Program code is applied to input data to perform the functions described herein and to generate output information. The output information is applied to one or more output devices, in known fashion.
Each program may be implemented in a high-level procedural or object-oriented programming or scripting language, or both, to communicate with a computer system. Alternatively the programs may be implemented in assembly or machine language, if desired. The language may be a compiled or interpreted language. Each such computer program may be stored on a storage media or a device (e.g., read-only memory (ROM), magnetic disk, optical disc), readable by a general or special purpose programmable computer, for configuring and operating the computer when the storage media or device is read by the computer to perform the procedures described herein. Embodiments of the system may also be considered to be implemented as a non-transitory computer-readable storage medium, configured with a computer program, where the storage medium so configured causes a computer to operate in a specific and predefined manner to perform the functions described herein.
Furthermore, the systems and methods of the described embodiments are capable of being distributed in a computer program product including a physical, non-transitory computer readable medium that bears computer useable instructions for one or more processors. The medium may be provided in various forms, including one or more diskettes, compact disks, tapes, chips, magnetic and electronic storage media, and the like. Non-transitory computer-readable media comprise all computer-readable media, with the exception being a transitory, propagating signal. The term non-transitory is not intended to exclude computer readable media such as a volatile memory or random access memory (RAM), where the data stored thereon is only temporarily stored. The computer useable instructions may also be in various forms, including compiled and non-compiled code.
It should also be noted that, as used herein, the wording “and/or” is to mean inclusive-or. That is, “X and/or Y” is intended to mean X or Y or both, for example. As a further example, “X, Y, and/or Z” is intended to mean X or Y or Z or any combination thereof.
Embodiments described herein generally relate to a system and method for designing and implementing a feed-forward or recurrent neural network for dynamic computation. Such a system can be efficiently implemented on a wide variety of distributed systems that include a large number of nonlinear components whose individual outputs can be combined together to implement certain aspects of the system as will be described more fully herein below.
Examples of nonlinear components that can be used in various embodiments described herein include simulated/artificial neurons, field-programmable gate arrays (FPGAs), graphics processing units (GPUs), configurations of analog components and other physical primitives including but not limited to transistors, and/or other parallel computing systems. Components of the system may also be implemented using a variety of standard techniques such as by using microcontrollers.
The systems described herein can be implemented in various forms including soft-ware simulations (using standard languages (e.g. Python, C, etc.) and more specialized implementations (e.g. Open Computing Language (OpenCL), Message Passing Interface (MPI), etc.), hardware, and/or any neuronal fabric. Examples of neuronal fabric mediums that can be used to implement the system designs described herein include Neurogrid (see S. Choudhary, S. Sloan, S. Fok, A. Neckar, Eric, Trautmann, P. Gao, T. Stewart, C. Eliasmith, and K. Boahen, Silicon neurons that compute, in International Conference on Artificial Neural Networks, pp. 121-128, 2012), SpiNNaker (see M. Khan, D. Lester, L. Plana, A. Rast, X. Jin, E. Painkras, and S. Furber, SpiNNaker: Mapping neural networks onto a massively-parallel chip multiprocessor. IEEE, June 2008), and TrueNorth (see P. A. Merolla, J. V. Arthur, R. Alvarez-Icaza, A. S. Cassidy, J. Sawada, F. Akopyan, B. L. Jackson, N. Imam, C. Guo, Y. Nakamura, B. Brezzo, I. Vo, S. K. Esser, R. Appuswamy, B. Taba, A. Amir, M. D. Flickner, W. P. Risk, R. Manohar, and D. S. Modha, Artificial brains. A million spiking-neuron integrated circuit with a scalable communication network and interface. Science, vol. 345, no. 6197, pp. 668-673, August 2014). As used herein the term ‘neuron’ refers to spiking neurons, continuous rate neurons, and/or components of any arbitrary high-dimensional, nonlinear, distributed system.
To generate such systems, the system dynamics can be characterized at a high level of description, using available background information regarding function. A low-level neural network structure can then be employed that includes a specific filter, or distribution of filters, on the inputs to the neurons in the network, and analytically relate the two. Subsequently, it is possible to optimize the connections between the elements in the neural network to accurately compute the desired function using standard optimization methods. The challenge this addresses is one of identifying and efficiently exploiting low-level dynamics and network structure at the functional level for dynamic information processing.
Referring now to
At step 200, the method defines any node response function that exhibits brief temporal nonlinearities for representing state over time, i.e., ‘spikes’ or node response functions that elicit values at each time, i.e., ‘rates’. There are a wide variety of example spiking nonlinearities in the literature, including the Hodgkin-Huxley neuron, the Fitzhugh-Nagumo neuron, the exponential neuron, the quadratic neuron, the theta neuron, the integrate-and-fire neuron, the leaky integrate-and-fire neuron, the Wilson neuron, and the Izhikevich neuron, among others. Similarly, there are a wide variety of example rate nonlinearities, such as the family of sigmoidal curves, the tanh function, and/or the rectified linear neuron. Various hardware implementations of these and other nonlinearities have also been proposed for generating spike-like or rate-like outputs, any of which can be employed.
Steps 201-203 determine a plurality of input and/or output filters to be associated with the layer inputs. There are a wide variety of filters in the literature, many of which are considered models of synaptic response, including the exponential decay ‘low-pass’, the delayed low-pass, the alpha synapse, the double exponential synapse, and conductance-based models. These filters can be applied to each neuron input and/or output, or to each dimension of the input and/or output space being manipulated by the layer, and may be heterogeneous, as indicated at steps 204, 205.
At step 206, the method determines the dynamic function that is to be computed by the network. This function can be specified in closed form or defined with a set of example inputs and/or outputs.
Step 207 includes employing the chosen network structure to compute the specified dynamic function by finding the correct input and output weights. The novel approach proposed here for finding the weights is described in detail for several example embodiments below. Optimization for the weights can be accomplished in a number of ways at step 208, including by direction optimization (e.g., as sometimes used in the NEF), by optimization based on example simulations of the network as per step 210, or using any of a variety of standard “learning rules” or optimization methods specified in the literature as per step 209. The proposed network construction method shows how these optimization methods can be effectively used for networks with the structure specified. With this method the weights determined in step four can be used in a dynamically implemented spiking or rate neural network to compute the function trained for. This consists in running the dynamic neural model, where each neuron is connected to others by the input/output filters weighted by the connection weights determined during optimization. As shown in the example embodiments, this set of steps allows for good performance on a wide variety of difficult dynamic computations.
In this method the input/output filters can be discrete or continuous. Many software and hardware implementations use discrete time steps to simulate dynamical systems or perform computation over time. As shown in the example embodiments, this method can account for discrete or continuous filtering. Accounting for discrete filtering can significantly improve the accuracy of discrete time step implementations.
In this method the optimization performed to determine the input/output weights can be performed either offline or online, determined in any of a number of ways. NEF methods fall into the former class, are very efficient and have strong convergence guarantees. In the example embodiments this is the most common method employed. However, some example embodiments use offline methods that require simulation of the network. Other work has shown how these same networks can be optimized using online methods as well (e.g., see T. Bekolay, Learning in large-scale spiking neural networks, Master's Thesis, University of Waterloo, September 2011).
In this method the input/output weights can often be combined between layers to determine a single large connection weight matrix, as is more common in standard neural networks. This method can employ either factorized weights (i.e., separate input/output weights) or non-factorized weights (i.e., a single matrix). The optimization described can be performed on either factorized or non-factorized weights. Often factorized matrices are more computationally efficient to employ. The example embodiments use factorized matrices.
In this method the specified dynamic function can be continuously or discretely defined. Discretely defined functions are especially relevant for implementation of these methods in digital hardware and software.
In this method the specified dynamic function can be defined in a wide variety of ways. Most generally any linear or nonlinear differential equations in phase space can be specified. Identifying such systems can include, but is not limited to writing the equations in closed form, specifying a transfer function form, or providing a set of input/output point pairs. Similarly, any function specified as a pure delay or definable in terms of pure delays (e.g., a finite impulse response filters) can be employed. Subsequent example embodiments demonstrate a variety of these methods, including pure delays and a variety of functions defined in terms of pure delays, including differentiation and computing spectral power.
In this method the specified dynamic function can be a controllable pure delay or definable in terms of a controllable pure delay. A controllable pure delay is shown in an example embodiment. This is a nonlinear filter that allows the amount of delay to change as a function of its input. As with non-controlled delays and linear filters, controlled delays can be used to define an extremely wide variety of nonlinear temporal filters.
In this method Padé approximants can be used to implement the specified dynamic function, as can system identification methods. Padé approximants are a useful means of providing optimal approximations to filters defined over infinite states (like pure delays). An example embodiment demonstrates the use of this approximation for computing dynamic functions. Similarly, approximating complex dynamic functions can be performed by using numerical methods for system identification.
Example Embodiment: Acausal FilteringPast work has not demonstrated a general approach to performing acausal filtering in such networks. An acausal filter is a dynamical system that requires information from future times to determine the value of the filtered signal at the current time. Acausal filtering is important for a wide variety of dynamic signal processing, including performing differentiation, highpass filtering, distortion reversal (and/or any other deconvolution), predicting future states of the system, among many others. Acausal filtering is closely related to prediction because it requires making estimates of future states. The methods described in this section address this problem for dynamic neural networks.
To perform acausal filtering, we need to know information that is not yet available to the system. Consequently, we wait for a period of time to gather sufficient information, and then compute the desired filter. To successfully pursue this approach, it is essential to be able to compute delayed versions of the input signal. Past work has not demonstrated how to construct such delays accurately and in general. We begin by addressing how to compute delays in dynamic neural networks.
Linear time-invariant (LTI) systems can be described by the state equations:
where the time-varying vector x represents the system state, y the output, u the input, and the time-invariant matrices (A, B, C, D) fully define the system dynamics. All causal finite-order LTI systems can be written in this form.
Accurate DelaysIn many scenarios, the transfer function is a more useful representation of the LTI system. The transfer function is defined as
where Y(s) and U(s) are the Laplace transforms of output y(t) and input u(t) respectively. The variable s denotes a complex variable in the frequency domain, while t is a non-negative real variable in the time domain. The transfer function is related to the state-space representation (1) by the following equation:
The transfer function for a pure delay of α seconds is:
A transfer function can be converted into state-space representation using (2) if and only if it can be written as a proper ratio of finite polynomials in s. The ratio is proper when the degree of the numerator does not exceed that of the denominator. In this case, the output will not depend on future input, and so the system is causal. The order of the denominator corresponds to the dimensionality of x, and therefore must be finite. Both of these conditions can be interpreted as physically realistic constraints where time may only progress forward, and neural resources are finite.
To approximate the irrational transfer function (3) as a ratio of finite polynomials, we use the Padé approximants of the exponential,
This gives the optimal approximation for a transfer function with order p in the numerator and order q in the denominator. After choosing suitable values for p≤q, we can numerically find a state-space representation (A, B, C, D) that satisfies (2) using standard methods.
For the common case that p=q−1, we may bypass the need for any numerical methods by analytically finding a simple state-space representation. Consider the Padé approximants of (3) in the case where q−1 and q are the order of the numerator and denominator, respectively. We rewrite (4) by expanding (5) to get:
This transfer function is readily converted into a state-space representation in controllable canonical form:
However, the factorials in di, and ci may introduce numerical issues. To simplify implementation we scale the ith dimension of x by −dq-i. This is achieved without changing the transfer function by multiplying the jth entry in B by −dq-j, the ith entry in C by −1/dq-1, and the (i, j)th entry in A by dq-i/dq-j, to obtain the equivalent state-space representation,
This follows from noting that v0=dq-1 and vi=dq-i-1/dq-1 for i≥1. This provides an exact solution for the Padé approximation of the delay.
With this description we can use the NEF methods to generate an example embodiment.
Furthermore, these methods are significantly more accurate and far less computationally expensive than other state-of-the-art methods. Specifically,
Another embodiment of the delay network allows us to introduce controlled delay into the network by noting that in (6) all terms in the feedback A matrix are a function of α. Consequently, we can introduce an input that provides a on-the-fly, controlling the delay online. This input is encoded into the state-space x and the product is computed in the recurrent connection.
An accurate method for generating a delayed version of a signal provides the basis for general acausal filtering. One embodiment of an acausal filtering network is the network that computes the derivative of the input signal.
which smoothes out the derivative. In this example τ=50 ms.
This embodiment network is one example of a general (acausal) deconvolution net-work with the specific transfer function
Deconvolution can be instantiated with any LTI that one wishes to invert, provided the delayed inverse can be accurately approximated.
To perform more complex acausal filtering, we need to generate many delayed versions of the input signal. It is known that any finite impulse response filter can be approximated by a weighted sum of delays. Consequently, another embodiment consists of creating many different delays in a network and weighting those to compute the filter. Such a delay bank is very flexible for computing a wide variety of dynamic functions using neural networks. Determining the output weights on the filter bank can be done using a wide variety of methods that employ either online or offline learning or optimization. More generally, such a filter bank allows for nonlinear combinations of delays and represented states.
An example embodiment that employs a filter bank and is performing nonlinear filtering is demonstrated in
The next embodiment we consider uses controlled delay and an arbitrary filter to perform trajectory generation is shown in
Past work has not shown how to account for arbitrary synaptic filters in the implemented neural network. The NEF has demonstrated how to account for the special case of a first-order low-pass filter. The methods described in this section address the general problem. Some of these modifications improve network accuracy and reduce the number of network elements needed to perform a given computation effectively. These modifications also allow the efficient use of a wider variety of discrete and continuous synaptic filters.
Referring to
This system has transfer function
where F(s)=C(sI−A)−1B+D is the transfer function for (A, B, C, D).
To invert the change in dynamics introduced by appending G(s), we must compensate for the change of variables
in the complex frequency domain. This involves finding the required F′ (s) such that
is equal to the desired transfer function, F(s). Then the state-space representation of F′(s) provides (A′, B′, C′, D′) which implement the desired dynamics.
For example, if we replace the integrator with a low-pass filter, so that
and set G(s) to unity then:
which is an alternative derivation of the mapping given by NEF methods.
However, this is the only form of H (s) solved for by the NEF. We extend this result to apply to a wider variety of filters. For instance, in the case of the alpha synapse model where
we can show that:
Notably, this embodiment is nonlinear in s. We can use the Taylor series expansion
to linearize √s in our characterization of F′(s), giving
Another example embodiment is the case of a discrete low-pass filter with a z-transform of
where (Ā,
A further example embodiment is one which compensates for a continuous feedback delay of β seconds, by setting G(s)=e−βs, then
where W0(xex)=x is the principle branch of the Lambert-W function, since
In this case, since W0 is nonlinear in s, the effect of the change of variables on the required state-space representation will depend on the desired transfer function F.
For this embodiment we consider the case of a synapse modeled by a low-pass filter with a pure delay of β seconds, to account for possible transmission time delays along presynaptic axons. In this instance,
We can then show
So in the pure delay case when F(s)=e−αs is the desired transfer function, let
so that
is the required transfer function. Then we can numerically find the Padé approximants by using the Taylor series of (10).
As shown in
Consider the Laplace transform of some k-order synapse:
We wish to implement the desired nonlinear dynamical system:
using this synaptic filter. Letting w(t)=ƒ′(x, u) and observing that in the actual system x(t)=(w*h)(t), we can write these dynamics in the Laplace domain:
since s is the differential operator. So the required function ƒ′(x, u) for the recurrent connection, for any synapse, is:
where x(i) denotes the ith derivative of x(t).
In the discrete case x[t+1]=ƒ(x, u):
The proof for the discrete case is similar by use of the time-shift operator with the z-transform.
For the generalized alpha synapse (i.e., double exponential), we find
This approach requires us to differentiate the desired system. If we are dealing with linear systems, then we can do this analytically to obtain a closed-form expression.
By induction it can be shown that:
Then by expanding and rewriting the summations:
This gives a matrix form for any LTI system with a k-order synapse, provided we can determine each u(j) for 0≤j≤k−1.
As a demonstration, we can apply the above formula to the generalized alpha synapse, giving the following expression for any linear system:
Past work has not shown how to take advantage of having a variety of different synaptic filters within the implemented network. The methods described in this section address this general problem. Some of these modifications improve network accuracy for performing dynamic computation.
Introducing heterogeneous filters into the NEF significantly extends these methods. As shown in
In the NEF, there is a single synaptic filter per projection between ensembles, resulting in the encoding given by:
where δi is the neural activity (rates or spikes) from neuron i, and Ji is a bias current. Here we have introduced the notion of defining one or more synaptic filter per neuron, as is shown in
or per dimension in the input space
where hi(t) is a vector of D filters applied to their respective dimensions in the D-dimensional input vector x(t). This provides a wider variety of “temporal features” that are encoded by the neural population, allowing us to extend the NEF in a manner that provides better implementation of a broad class of dynamical computation.
In our example embodiment, we use heterogeneous first-order linear filters, but the methods apply to any linear filters. Here, we employ these methods to compute the differentiation operator. Specifically, we approximate the filter H(s)=2τs/(τs+1). This is the derivative s multiplied by a low-pass 1/(τs+1) (to make it causal) and scaled by 2τ for normalization. We simulate a network of 1000 spiking neurons with 15 Hz white noise input, and vary the width of the distribution for the time constants of the input filters for each neuron. The time constants are picked from an even distribution with a lower bound of 0.2 ms and an upper bound that varies up to 10 ms.
The embodiments demonstrated here show the ability to compute a variety of linear and nonlinear dynamic functions, including accurate casual and acausal filters. Examples include specific applications to delays, discrete implementation, spectrographic power, derivatives, and Fourier transforms. Additional embodiments extend these results by showing how to employ a wide variety of synaptic filters, and how to exploit heterogeneous distributions of synaptic filters.
The example results shown demonstrate that the methods described in this invention allow us to improve RMSE and computation time compared to state-of-the-art approaches, and also show the applicability of these methods to a wide variety of neural networks, both spiking and non-spiking, for performing dynamical computation.
The methods described here can be used to develop additional embodiments not described in detail. These include exploitation of intrinsic neuron dynamics, such as using intrinsically bursting neurons to more efficiently implement oscillatory networks, or adapting neurons to more efficiently and accurately compute differentiation. Similarly, these methods can support dynamic processing, such as prediction (which reduces to differentiation for a wide variety of cases, e.g., as is evident from the Taylor series expansion of functions). Some of the examples provided can be directly combined, such as using a controlled delay bank of filters for trajectory generation to produce useful networks. As well, the employment of nonlinear synaptic filters and nonlinear mixing of delays can be accomplished through direct applications of these methods.
Claims
1-24. (canceled)
25. A computer implemented method for implementing an artificial neural network on a computing system, the artificial neural network comprising a plurality of nodes, each node having a node input and a node output, the method comprising:
- determining a desired dynamic function ƒ to be computed using the artificial neural network;
- defining at least one node response function for the plurality of nodes of the artificial neural network, wherein the at least one node response function is defined to receive varying inputs over time at each node input and produce varying outputs over time at each node output;
- associating at least one synaptic filter with each node in the plurality of nodes, wherein at least one particular synaptic filter in the at least one synaptic filter is associated with each node in the plurality of nodes;
- determining an approximated dynamic function by approximating the desired dynamic function using Padé approximants; determining connection weights between the plurality of nodes in the artificial neural network using the at least one node response function and the at least one linear synaptic filter, wherein each connection weight is coupled to at least one of a corresponding node input or a corresponding node output and each connection weight is configured to be multiplied by at least one of the input received by the corresponding node input or the output produced by the corresponding node output; and
- operating the artificial neural network on the computing system using the determined connected weights to compute the approximated dynamic function.
26. The computer implemented method of claim 25, wherein the desired dynamic function ƒ includes at least one desired delay.
27. The computer implemented method of claim 26, wherein the at least one desired delay is a controllable delay.
28. The computer implemented method of claim 26, wherein the at least one desired delay comprises a plurality of delays arranged into a delay bank.
29. The computer implemented method of claim 28, further comprising, for each delay in the plurality of delays, associating a delay weighting with that delay and weighting the output from that delay using the associated delay weighting.
30. The computer implemented method of claim 27, wherein the at least one desired delay comprises a plurality of delays arranged into a delay bank.
31. The computer implemented method of claim 25, wherein the desired dynamic function ƒ is defined to process multidimensional vector inputs.
32. The computer implemented method of claim 25, wherein the desired dynamic function ƒ is defined to process auditory inputs and/or video inputs.
33. The computer implemented method of claim 25, wherein the desired dynamic function ƒ is defined to implement an acausal filter.
34. The computer implemented method of claim 25, wherein the computing system has a system-specific synaptic filter and determining the approximated dynamic function comprises:
- determining a modified dynamic function ƒ′ based on the desired dynamic function ƒ, wherein the modified dynamic function ƒ′ is determined to account for the system-specific synaptic filter; and
- determining the Padé approximants from the modified dynamic function.
35. A data processing system comprising:
- a non-transitory computer readable medium storing computer readable instructions and a data structure configured to compute a desired dynamic function, wherein the data structure comprises a plurality of nodes, each node having a node input and a node output, and the plurality of nodes being arranged into a plurality of layers of nodes including at least one input layer and at least one output layer; and
- a computer processor operable to execute the computer readable instructions stored on the computer readable medium using the data structure to compute the desired dynamic function;
- wherein the data structure is defined by determining the desired dynamic function ƒ to be computed by the plurality of nodes; defining at least one node response function for the plurality of nodes, wherein the at least one node response function is defined to receive varying inputs over time at each node input and produce varying outputs over time at each node output; associating at least one synaptic filter with each node in the plurality of nodes, wherein at least one particular synaptic filter in the at least one synaptic filter is associated with each node in the plurality of nodes; determining an approximated dynamic function by approximating the desired dynamic function using Padé approximants; and determining connection weights between the plurality of nodes in the artificial neural network using the at least one node response function and the at least one linear synaptic filter, wherein each connection weight is coupled to at least one of a corresponding node input or a corresponding node output and each connection weight is configured to be multiplied by at least one of the input received by the corresponding node input or the output produced by the corresponding node output, whereby the connection weights enable the plurality of nodes to compute the desired dynamic function ƒ based on input received at the at least one input layer.
36. The data processing system of claim 35, wherein the desired dynamic function ƒ includes at least one desired delay.
37. The data processing system of claim 36, wherein the at least one desired delay is a controllable delay.
38. The data processing system of claim 36, wherein the at least one desired delay comprises a plurality of delays arranged into a delay bank.
39. The data processing system of claim 38, wherein, for each delay in the plurality of delays:
- a delay weighting is associated with that delay; and
- the output from that delay is weighted by the associated delay weighting.
40. The data processing system of claim 37, wherein the at least one desired delay comprises a plurality of delays arranged into a delay bank.
41. The data processing system of claim 38, wherein the desired dynamic function ƒ is defined to process multidimensional vector inputs.
42. The data processing system of claim 35, wherein the desired dynamic function ƒ is defined to process auditory inputs and/or video inputs.
43. The data processing system of claim 35, wherein the desired dynamic function ƒ is defined to implement an acausal filter.
44. The data processing system of claim 35, wherein the processor has a system-specific synaptic filter and the approximated dynamic function is determined by:
- determining a modified dynamic function ƒ′ based on the desired dynamic function ƒ, wherein the modified dynamic function ƒ′ is determined to account for the system-specific synaptic filter; and
- determining the Padé approximants from the modified dynamic function.
Type: Application
Filed: Dec 20, 2021
Publication Date: Jun 2, 2022
Applicant: Applied Brain Research Inc. (Waterloo)
Inventors: Aaron Russell Voelker (Stittsville), Christopher David Eliasmith (Waterloo)
Application Number: 17/556,466