Method and system for training a neural network with adaptive weight updating and adaptive pruning in principal component space

Information

  • Patent Grant
  • 5812992
  • Patent Number
    5,812,992
  • Date Filed
    Tuesday, April 29, 1997
    27 years ago
  • Date Issued
    Tuesday, September 22, 1998
    26 years ago
Abstract
A signal processing system and method for accomplishing signal processing using a neural network that incorporates adaptive weight updating and adaptive pruning for tracking non-stationary signal is presented. The method updates the structural parameters of the neural network in principal component space (eigenspace) for every new available input sample. The non-stationary signal is recursively transformed into a matrix of eigenvectors with a corresponding matrix of eigenvalues. The method applies principal component pruning consisting of deleting the eigenmodes corresponding to the smallest saliencies, where a sum of the smallest saliencies is less than a predefined threshold level. Removing eigenmodes with low saliencies reduces the effective number of parameters and generally improves generalization. The output is then computed by using the remaining eigenmodes and the weights of the neural network are updated using adaptive filtering techniques.
Description

The present invention relates generally to the field of neural information processing and, more particularly, to a signal processing system and method for accomplishing signal processing with a neural network that incorporates adaptive weight updating and adaptive pruning for tracking non-stationary signals.
BACKGROUND OF THE INVENTION
Over the years, neural network modeling has been developed to solve problems ranging from natural language understanding to visual processing. A neural network is a computational model composed of neurons (or simply nodes) and connections between the nodes. The strength of each connection is expressed by a numerical value called a weight, which can be modified. Similarly, the "firing" of each node is associated with a threshold numerical value, which is referred to as the nodes' activation. The activation of a given node is based on the activations of the nodes that have connections directed at that node and the weights on those connections. In general, a neural network incorporates some special nodes called input nodes with their activation externally set, while other nodes are distinguished as output nodes.
In contrast to conventional computers, which are programmed to perform specific tasks, most neural networks can be taught, or trained. As such, a rule that updates the activations is typically referred to as the update rule. Similarly, learning in a neural network is generally accomplished using a learning rule to adjust the weights.
A typical neural network model has a set of input patterns and a set of output patterns. The role of the neural network is to perform a function that associates each input pattern with an output pattern. A learning process, such as "error back-propagation", uses the statistical properties of a training set of input/output patterns to generalize outputs from new inputs.
Error back-propagation is a supervised learning process through which a neural network learns optimal weights. Error back-propagation compares the responses of the output nodes to a desired response, and adjusts the weights in the network so that if the same input is presented to the network again, the network's response will be closer to the desired response.
Referring to FIG. 1, the learning rule of error back-propagation is applied to a multi-layer neural network having an input layer 130, an intermediate layer or so-called hidden layer 140 and an output layer 150. The output values of all nodes n.sub.h 112 in the input layer 130 are distributed as an input value to each of the node n.sub.i 114 in the intermediate layer 140. The output value of each of the nodes in the intermediate layer 140 is distributed as an input value to every node n.sub.j 116 in the output layer 150. Each node n.sub.j 116 produces a value which is the total sum net of output values O.sub.i of a node n.sub.i coupled to the output node n.sub.j by a coupling weight w.sub.ji, transformed by a predetermined function f. This same concept applies to the intermediate node n.sub.i 114 with respect to input node n.sub.h 112. In other words, when the values within a pattern p are provided as an input value to each node n.sub.h 112, an output value O.sub.pi and O.sub.pj for each node n.sub.i 114 and n.sub.j 116 respectively, can be expressed by the following formulas: ##EQU1##
Hence, the network acquires output value O.sub.pj of the output node n.sub.j 116 of the output layer 150 by sequentially computing the output values of the input n.sub.j 116, each corresponding to a node from the input layer 130 towards the output layer 150.
The process of learning in accordance with error back-propagation consists of updating coupling weights w.sub.ji and w.sub.ih, so that the total sum E.sub.p of the square errors between the output value O.sub.pj of each node of the output layer 150 on applying the input pattern p and the desired output t.sub.pj, is minimized. Hence, the total network error E for the input pattern p is defined by: ##EQU2## This algorithm is sequentially applied from the output layer 150 back toward the input layer 130. The network error with respect to any weight, e.g. weight w.sub.ji, is given by the gradient .differential.E.sub.p /.differential.w.sub.ji of the total network error E.sub.p with respect to a change in that weight. Hence, the error .delta..sub.j, for each output node n.sub.j 116 can be determined as a function of the corresponding actual value O.sub.pj and target value t.sub.pj and the difference therebetween for that node, as follows:
.delta..sub.j =t.sub.pj (1-t.sub.pj)(O.sub.pj -t.sub.pj) (3)
and for an intermediate node n.sub.i 114, as follows: ##EQU3## After the neural errors are determined, these errors are propagated, via leads 170, back toward the network input nodes.
The coupling weights of both the output layer 150 and the intermediate layer 140 are adjusted according to the following learning rules 180 for n.sub.j 116:
.DELTA.w.sub.ji (n+1)=.eta..delta..sub.j t.sub.pj +.alpha..DELTA.w.sub.ji (n) (5)
and for each intermediate node n.sub.i 114:
.DELTA.w.sub.ih (n+1)=.eta..delta..sub.i t.sub.pi .alpha..DELTA.w.sub.ih (n)(6)
In the above formulas, .eta. represents the rate of learning, which is a constant, and it determines how fast the network weights converge during network training. Coefficient a represents a stabilization factor for reducing the error oscillations and accelerating the convergence thereof. Both coefficients .eta. and .alpha. can be empirically determined from the number of nodes, layers, input values or output values. This weight adjustment process is repeated until the patterns in the training set are exhausted or when the final error value falls below a predefined upper bound E.sub.max. For a detailed explanation of error back-propagation in neural networks, see S. Haykin, Neural Networks, IEEE Press, (1994).
However, error back-propagation is limited in that this technique does not provide any information concerning the optimal number of nodes in the neural network. For example, if the neural network has a predefined number of nodes, the error back-propagation will continue to update the weights for all nodes regardless of whether all the nodes are necessary to achieve the desired response. The effect to the output of having too many nodes will be "overfitting", which leads to poor performance on an out-of-sample data set. Conversely, if the number of nodes defining the network is too few, the neural network will not be optimal because the network will be missing vital information.
To address this network optimization issue, techniques have been developed to assess the need to add or remove a node from a neural network. However, these techniques are generally not well suited for signals whose statistical properties change over time. Such signals are known as "non-stationary signals". For example, if a node is added to a neural network, it will require several time steps to acquire the necessary information to train the weight for this new node. Since the statistical properties of non-stationary signals may change rapidly, the neural network may no longer be of optimal size by the time the new node is trained.
Real world signals such as financial, physiological and geographical data often are non-stationary. Because the number of parameters in a network is a crucial factor in it's ability to generalize, it is the goal of an appropriate model to track the non-stationary signals by adaptively (on-line) updating its parameters. Ideally, this means updating, in response to changes in the input signal, "structural parameters" such as the effective number of hidden nodes (intermediate layer nodes) within the network.
However, traditional methods generally do not provide this capability. For a non-stationary signal, it is not appropriate to fix the model parameters after training on a representative data set.
In addition, weight updates make use of the gradient (.differential.E/.differential.w) of the error E with respect to the weights. Generally, this gradient can be directly computed from the neural network by an error back-propagation process. However, such a gradient cannot be computed with respect to the number of nodes. Since these parameters are in the form of integers, it would not be possible to compute the gradient of the error with respect to parameters, which are required for gradient-based optimization methods.
Therefore, a need exists in the art for a system and method capable of adaptively updating the structural parameter of a neural network for every new available sample of data for tracking non-stationary signals.
SUMMARY OF THE INVENTION
The present invention overcomes the disadvantages associated with the prior art by providing a signal processing system and method that updates structural parameters of the neural network system. Specifically, the invention updates the structural parameters of the neural network in principal component space for every new available input sample. The method of the present invention referred generally as adaptive eigenpruning and adaptive weight updating, consists of six steps which are applied to each new available sample of the input signal. Since the present invention can be applied to any layer of a neural network, the term input signal may represent an input signal to an input layer of a neural network or an input signal to a hidden layer of a neural network.
The first step transforms a non-stationary signal (input signal) to principal component space where the non-stationary signal is transformed into a matrix of eigenvectors with a corresponding matrix of eigenvalues. In statistical literature, this first step is known as performing a principal component analysis (PCA) on the signal. This is a transformation that projects the input signal into a different space used to determine the resonance of the input signal.
However, performing a principal component transformation directly on every new signal input is computationally expensive, so that once a transformation is completed, the inventive method employs recursive estimation techniques for estimating eigenvectors and eigenvalues. The adaptive principal component extraction (APEX) or the LEArning machine for adaptive feature extraction via Principal component analysis (LEAP) are just two examples of such extraction techniques.
The second step transforms the non-stationary input signal (in general, a vector signal) to its principal component space (which is hereinafter referred to as "eigenspace"). The goal of this transformation is to make the components of the input signal mutually orthogonal. The advantage of such a representation is that the effects of the orthogonal components (the "eigenmodes") of the input signal on the filter or neural network output signal can be analyzed individually without taking the other eigenmodes into account.
In the third step, the method computes an "unpruned" output signal by multiplying the orthogonalized input signal with the filter or neural network weight matrix.
In the fourth step, the method selects components of the weighted input signal for pruning from the output signal. The selection procedure identifies the eigenmodes that are revealed in eigenspace to be of minimal influence on the output signal of the system. This step is derives an upperbound on the modeling error introduced by deleting the eigenmodes. This error upperbound is defined as the saliency for the ith eigenmode.
In the fifth step, the method completes the "eigenpruning" by subtracting eigenmodes with small saliencies from the output signal. Since eigenpruning and recomputing the error upperbounds are performed for each new input sample, this method is known as adaptive eigenpruning. Removing eigenmodes reduces the effective number of parameters and generally improves generalization, i.e., performance on an out-of-sample data set.
Finally, the sixth step applies standard filtering techniques such as the Transform Domain Adaptive Filtering (TDAF) to update the weights of the filter or neural network.
Specifically, the present invention applies the six steps mechanism to every input sample, thereby adaptively updating the weights and effective number of nodes in a neural network for every input sample of a non-stationary signal.





BRIEF DESCRIPTION OF THE DRAWINGS
The teachings of the present invention can be readily understood by considering the following detailed description in conjunction with the accompanying drawings, in which:
FIG. 1 is a block diagram of a neural network applying a prior art error back propagation process;
FIG. 2 is a block diagram of a signal processing system that contains a neural network that embodies the teachings of the present invention;
FIG. 3 is a flowchart showing the process of adaptive weight updating and adaptive eigenpruning;
FIG. 4 is a block diagram of a neural network applying a spectral decomposition of y.sub.t ;
FIG. 5 is a block diagram of FIG. 3 showing the process of adaptive weight updating and adaptive eigenpruning; and
FIG. 6 is a block diagram for the mechanism of recursive estimation of the eigenvalue and eigenvector matrices.





DETAILED DESCRIPTION
After considering the following description, those skilled in the art will realize that the teachings of this invention can be readily utilized to predict non-stationary signals (including, but not limited to financial signals). In general, this invention discloses a method and system for updating a layer in a neural network by adaptively updating the weights and effective number of nodes of the network. This is accomplished by applying the concept of adaptive eigenpruning to a neural network.
FIG. 2 depicts a signal processing system that utilizes the present inventions. This general signal processing system consists of a signal receiving section 210, a signal processing section 220, a processor 230, a monitor 240 and a keyboard 250.
Signal receiving section 210 serves to receive input data signals, such as financial data. Signal receiving section 210 consists of a data receiving section 211, a data storage section 212, and input/output (I/O) switch 214. Data receiving section 211 may include a number of devices such as a modem and an analog-to-digital converter. A modem is a well-known device that comprises a modulator and a demodulator for sending and receiving binary data over a telephone line, while an analog-to-digital converter converts analog signals into a digital form. Hence, input signals are received "on-line" through signal receiving section 210 and, if necessary, are converted to a digital form.
The data storage section 212 serves to store input signals received by data receiving section 211. Data storage section 212 may incorporate a number of devices such as a disk drive, semiconductor memory or other storage media. These storage devices provide a method for applying a delay to the input signals and store input signals for processing at a later time. Finally, the stored input signals are presented to the signal processing section 220 through input/output switch 214, which channels the input signal from signal receiving section 210 to signal processing section 220. The I/O switch 214 also channels the input signals between data receiving section 211 and data storage section 212.
The signal processing system of the present invention includes a signal processing section 220 for producing an output signal O.sub.p from input signal patterns p. The signal processing section 220 consists of a neural network 222 with a learning section 221. The neural network 222 includes at least an input layer 224 and an output layer 228. The neural network may optionally include a number of intermediate layers 226 (also known as hidden layers). Each layer includes at least one node.
A desired (target) output signal t.sub.p and the output signal O.sub.p are applied to learning section 221. Applying a learning signal as described below, learning section 221 causes neural network 222 to undergo learning by updating the parameters w in such a manner that each w is sequentially and repeatedly updated.
The neural network 222 of signal processing section 220 computes, in accordance with the sequences of steps shown by the flow charts of FIG. 3 and 6, an output signal O.sub.p from an input pattern p. Output signal O.sub.p is an output value that correlates to a prediction of the value of input pattern p for n samples ahead.
The processor 230 of the signal processing system receives the output signal O.sub.p and performs additional data processing such as determining the direction or trend of the input pattern p. Furthermore, the processor 230 is coupled to a monitor 240 and a keyboard 250 for displaying data and receiving inputs respectively.
The method of adaptively updating the dimensions of a neural network for every new available input sample of data for tracking non-stationary signals are described with reference to method 300 of FIG. 3. Method 300 starts by taking an input vector x.sub.t =�x.sub.1 (t), x.sub.2 (t), . . . , x.sub.n (t)!.sup.T 310 and transforms it into principal component space in step 320. This step multiplies the vector of elements representing the input signal by a matrix so as to transform the coordinates in which the vector is represented to ones that display the maximum variance along their axes, thus removing correlations between pairs of coordinates.
To illustrate, the method assumes a signal plus noise model with the signal generated by a function linear in the weights which can be represented by y.sub.t =W.sub.0 x.sub.t +e.sub.t. This, in turn, is modeled by:
y.sub.t =Wx.sub.t (7)
Depending on the particular application, x.sub.f may represent one of a number of different signals, including an input vector signal, an output signal from a layer in a neural network or a regression vector on y.sub.t itself. It should be noted that throughout this specification, vectors are represented with an underscore, while matrices are represented by capitals.
However, the dimension of x.sub.f may be time varying, which makes it difficult to estimate the dimension of x.sub.t. Hence, choosing a fixed dimensional choice is inappropriate. The covariance matrix of input x.sub.t is defined as R.sub.t =E�x.sub.t x.sub.t.sup.T !, which can be estimated by:
R.sub.t =.SIGMA..sub.n=0.sup.t .mu..sup.t-n x.sub.n x.sub.n.sup.T(8)
Mu (.mu.) is defined as a forgetting (decaying) factor which causes exponential decay of the temporal weighing of x.sub.t in R.sub.t. Where the vector signals are non-stationary, .mu. is less than 1. Specifically, the forgetting factor .mu. is commonly chosen in the interval 0.950<.mu.<0.999.
The eigen-decomposition of R.sub.t, also called principal component extraction of x.sub.t, can be defined by:
R.sub.t Q.sub.t =Q.sub.t .LAMBDA..sub.t (9)
where Q.sub.t =�q.sub.1,q.sub.2, . . . , q.sub.n ! is the n.times.n orthogonal eigenvector matrix (the adjective orthogonal implies that Q.sub.t Q.sub.t.sup.T =1), and .LAMBDA..sub.t =diag�Ex.sub.t.sup.2 (t),Ex.sub.t.sup.2 (t), . . . , Ex.sub.n.sup.2 (t)! is a n.times.n diagonal matrix of the eigenvalues of R.sub.t. Hence, by solving for the unique solution of Q.sub.t and .LAMBDA..sub.t, the inventive method achieves eigen-decomposition. For a detailed discussion of this decomposition, see e.g. S. Haykin, Adaptive Filter Theory, Prentice-Hall, (1991, chapter 4). It should be noted that step 320 is only performed for t.gtoreq.n. Namely, Q.sub.t and .LAMBDA..sub.t do not exist when t<n.
However, it is computationally expensive to calculate Q.sub.t and .LAMBDA..sub.t for each new signal input x.sub.t. Hence, the method employs recursive estimation of the eigenvalues and eigenvectors as described below with reference to process 600 of FIG. 6.
Continuing with method 300 of FIG. 3, once Q.sub.t and .LAMBDA..sub.t have been eigen-decomposed from the vector x.sub.t, the next step applies principal component pruning (eigenpruning). Eigenpruning is based upon the concept disclosed by Levin et al. in Fast Pruning Using Principal Components, Advances in Neural Information Processing Systems (NIPS)6 pp. 35-42 (1994). This step consists of eliminating eigenmodes that are revealed in eigenspace to have minimal influence on the output of the system. In fact, the advantage of eigenspace decomposition is that it offers the ability to identify the independent contribution of each individual eigenmode on the error of the network. The process of eigenpruning is described below collectively in steps 330-370 in FIG. 3.
In step 330, x.sub.t is computed by:
x.sub.t =Q.sub.t.sup.T x.sub.t (10)
The term x.sub.t is referred to as the Karhunen-Loeve expansion of x.sub.t. The goal of this transformation is to bring x.sub.t to its principal component space. This transformation is effectively a rotation of x.sub.t.
In step 340, y.sub.t, the "unpruned" output of a layer of the neural network is computed by:
y.sub.t =W.sub.t.sup.T x.sub.t (11)
If y.sub.t is a p.times.1 vector, then W.sub.t.sup.T is a p.times.n weight matrix of a layer in the neural network. W.sub.t.sup.T is defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !, where each v.sub.t is a p.times.1 vector. Hence, y.sub.t can also be expressed as y.sub.t =.SIGMA..sub.i=1.sup.n v.sub.t x.sub.t. This is known as the spectral decomposition of y.sub.t and is illustrated in the neural network of FIG. 4. There are "n" vector terms (eigenmodes) in the spectral sum. Since x.sub.t 410 is in principal component space, it can be demonstrated that each eigenmode v.sub.i x.sub.i 420 contributes independently to the error in the output y.sub.t 430 in a layer of the neural network. Using an available desired output signal vector d.sub.t, the error is defined as e.sub.t =d.sub.t -y.sub.t. If y.sub.t is from the output layer of a neural network, a desired output signal d.sub.t is usually available. If y.sub.t holds activities for an intermediate (or hidden) layer in a neural network, a desired output signal d, can be estimated by the back-propagation process. For a detailed exposition on computing desired signals for the hidden layers of a neural network by means of the back-propagation algorithm, see S. Haykin, Neural Networks, IEEE Press, (1994, chapter 6).
The next step in the eigenpruning process is performed in step 350 of FIG. 3. Eigenpruning is implemented by calculating the "saliency" of each eigenmode. Saliency is a quantity that measures the effect of the i.sup.th eigenmode on the output error. Eigenpruning consists of deleting the corresponding eigenmodes with the smallest saliencies such that the sum of the deleted saliencies is less than or equal to a predefined percent of the total sum of the saliencies. Removing eigenmodes with low saliencies reduces the effective number of parameters defining the network and improves generalization. In the embodiment of the present invention, one percent (1%) is chosen. Although this percentage works well with the training data that were used to train the neural network, other heuristics could be used as well.
There are three embodiments of the present invention with regard to the calculation of saliency for each eigenmode. In the first embodiment, since the contribution of v.sub.i x.sub.i to the error is independent from other eigenmodes, it follows that the maximum squared error introduced by each eigenmode v.sub.i x.sub.i is:
s.sub.i (t)=�v.sub.i x.sub.i !.sup.T �v.sub.i x.sub.i !=v.sub.t.sup.T v.sub.i x.sub.i.sup.2 (12)
The saliency s.sub.i (t) is an upper bound for the increase of the squared error when v.sub.i x.sub.i is subtracted from y.sub.t.
In the second embodiment, saliency is alternatively expressed as:
s.sub.i (t)=v.sub.t.sup.T v.sub.i x.sub.i.sup.2, 13)
where x.sub.i.sup.2 is a low-pass filtered version of x.sub.i.sup.2, namely x.sub.i.sup.2 (t)=.mu.x.sub.i.sup.2 (t-1)+(1-.mu.)x.sub.i.sup.2 (t), where .mu. is the forgetting factor discussed above.
In the third embodiment of the present invention, saliency is defined as:
s.sub.i =.lambda..sub.i v.sub.i.sup.T v.sub.i, (14)
where .lambda..sub.i is the ith element on the diagonal of .LAMBDA..sub.t.
To illustrate, since Q.sub.t is orthonormal, which implies Q.sub.t.sup.T =Q.sub.t.sup.-1, y.sub.t can be expressed as:
y.sub.t =W.sub.t Q.sub.t Q.sub.t.sup.T x.sub.t =W.sub.t x.sub.t =.SIGMA..sub.i x.sub.i v.sub.i (15)
where W.sub.t =W.sub.t Q.sub.t and x.sub.t =Q.sub.t.sup.T x.sub.t. Both x.sub.i and v.sub.i (denote the ith column of W.sub.t by v.sub.i) lie in the space spanned by the columns of Q.sub.t. This third embodiment of saliency represents the modeling error (y.sub.t -y.sub.t).sup.2 introduced by deleting the contribution of the term x.sub.i v.sub.i. Lambda (.lambda..sub.i) is the ith eigenvalue in the eigenvalue matrix .LAMBDA..sub.t.
The third embodiment of the present invention is different from the other two embodiments in that, the third embodiment computes saliency by using the ith eigenvalue .lambda..sub.i from the eigenvalue matrix .LAMBDA..sub.t, whereas the first two embodiments use the current input signal x.sub.i. The difference is that .lambda..sub.i is a smoothed average of x.sub.i.sup.2.
With s.sub.i calculated in step 350 for each eigenmode using one of the three embodiments discussed above, the method then identifies a set of indices (.PI.) of eigenmodes with "small" saliencies. As discussed above, .PI. may represent the set of indices for which the cumulative sum of the saliencies is less than or equal to a predefined percent of the total sum (over "n" eigenmodes) of the saliencies. When .PI. has been identified, a p.times.1 pruning vector y.sub.t.sup.p is computed as:
y.sub.t.sup.p =.SIGMA..sub.i.epsilon..PI. v.sub.i x.sub.i. (16)
The pruning vector y.sub.t.sup.p represents the set of eigenmodes that have minimal influence on the actual output signal of a layer of the neural network. As such, this pruning vector y.sub.t.sup.p is used in step 360 to calculate the actual output.
In step 360, the method computes the output y.sub.t of a layer as:
y.sub.t =y.sub.t -y.sub.t.sup.p. (17)
Since y.sub.t represents the "unpruned" output of a layer of the neural network, then it follows that y.sub.t =.SIGMA..sub.i.epsilon..PI. v.sub.i x.sub.i, where y.sub.t is a pruned version of y.sub.t as computed in step 340. Step 360 effectively completes the eigenpruning process and generates the output signal for a layer of the neural network.
Finally, in step 370 the method updates the weights of the neural network by using standard adaptive filtering techniques such as the Transform Domain Adaptive Filtering (TDAF). If an error vector e.sub.t =d.sub.t -y.sub.t is available (or possibly has been estimated by the back-propagation process), then the weights of the corresponding layer of the neural network are updated by the following formula:
W.sub.t+1 =W.sub.t .eta..LAMBDA..sub.t.sup.-1 x.sub.t e.sub.t.sup.T, (TDAF)(18)
where .eta. is a learning rate parameter and x.sub.t =Q.sub.t.sup.T x.sub.t.
It should be noted that other standard adaptive filtering techniques exist and that the use of the TDAF algorithm in the present invention is only illustrative. For a detailed discussion of the Transform Domain Adaptive Filtering (TDAF), see Marshall et al., The Use of Orthogonal Transforms for Improving Performance of Adaptive Filters, IEEE Transactions on Circuits and Systems, vol.36, no.4, (1989).
After computing step 370, the method queries at step 380, whether additional input samples exist. If the query is answered affirmatively, the process reverts back to step 320 along path 390 and the process of adaptive eigenpruning and adaptive weight updating is repeated for the next input sample of the non-stationary signal. If the query is answered negatively, the process ends. An alternative perspective of the process 300 of FIG. 3 is provided in FIG. 5 in the form of a block diagram.
In FIG. 3, the weights and the effective number of nodes of the neural network are updated for every available input sample of a non-stationary signal. However, the direct computation of the matrices Q.sub.t and .LAMBDA..sub.t for every input vector x.sub.t is inherently expensive, especially if n is a high number. Hence, it is necessary to employ techniques that can be used to recursively estimate the eigenvalues and eigenvectors.
There are two embodiments of the present invention for recursive estimation of the eigenvector matrix Q.sub.t and eigenvalue matrix .LAMBDA..sub.t. These embodiments incorporate different extraction techniques and they are described with reference to FIG. 6. As discussed, the eigen-decomposition of step 320 of FIG. 3 becomes computationally expensive when eigen-decomposition is computed directly for each new input sample. Hence, step 320 includes steps to recursively estimate the eigenvector matrix Q.sub.t and eigenvalue matrix .LAMBDA..sub.t as new input samples are received.
Referring to FIG. 6, in step 610, a decision is made as to whether direct eigen-decomposition should be performed. This decision is based on whether eigen-decomposition has been performed for the previous input vector x.sub.t.
In step 615, if eigen-decomposition has not been performed, a decision is made as to whether t.gtoreq.n. As noted above, when t<n, Q.sub.t and .LAMBDA..sub.t do not exist and eigen-decomposition is not available at this point. Since eigen-decomposition is performed on a n.times.n matrix of x.sub.t, this causes the process to end at this point. If t.gtoreq.n, then the process proceeds to step 620, which is the identical step as described in step 320 for the direct eigen-decomposition of x.sub.t.
In the first embodiment of the present invention, if Q.sub.t and .LAMBDA..sub.t are available from the eigen-decomposition of the previous signal input x.sub.t-1, then recursive estimation of Q.sub.t and .LAMBDA..sub.t are computed with respect to the new input sample x.sub.t by updating the covariance matrix R.sub.t in step 630. By using the covariance matrix R.sub.t-1, the covariance matrix R.sub.t can be computed recursively as:
R.sub.t =.mu.R.sub.t-1 +(1-.mu.)x.sub.t x.sub.t.sup.T. (19)
In step 640, an eigenspace decomposition on R.sub.t is then subsequently performed to obtain Q.sub.t and .LAMBDA..sub.t.
The advantage of accurately tracking Q.sub.t and .LAMBDA..sub.t for the purpose of estimating the eigenvalues and eigenvectors recursively is significant. This step dramatically reduces the computational overhead of eigen-decomposing the new vector x.sub.t directly as disclosed above in step 320. The saving is realized from having to only compute x.sub.t x.sub.t.sup.T which is only the product of a n.times.1 vector with a 1.times.n transpose vector. Using the covariance matrix of R.sub.t-1 obtained from the previous eigen-decomposition of x.sub.t-1, R.sub.t can be computed inexpensively.
To illustrate, the recursive eigenpruning process requires the computation of the eigenvector matrix Q.sub.t and eigenvalue matrix .LAMBDA..sub.t for each new input sample. The straightforward method is to perform a standard eigen-decomposition of R.sub.t. The number of elementary arithmetic manipulations (such as multiplications and additions) required for the eigen-decomposition of R.sub.t is on the order of n.sup.3. This means that if the dimension of R.sub.t is n.times.n (say n=100), it will require n.sup.3 (1,000,000 for n=100) arithmetic manipulations to compute the eigenvector matrix Q.sub.t and eigenvalue matrix .LAMBDA..sub.t. Clearly, if these computations are performed for every input sample, a large computational resource will be required. However, with the use of extraction techniques, the saving in computational steps equates approximately to reducing n.sup.3 computational steps to that of n.sup.2 computational steps. As n increases, this saving in computational steps becomes extremely significant.
In a second embodiment of the present invention, algorithms such as APEX or LEAP are used to directly compute Q.sub.t and .LAMBDA..sub.t without updating the covariance matrix R.sub.t. These algorithms are described in detailed in the articles by Kung S. Y., and Diamantaras., A Neural Network Learning Algorithm for Adaptive Principal Component Extraction, Proc. of IEEE Conf. on Acoustic, Speech and signal Processing (ICASSP), pp. 861-864, (1990) and Chen H. and Liu R., An On-line Unsupervised Learning Machine for Adaptive Feature Extraction, IEEE trans. on Circuits and Systems II, vol. 41, no.2, pp. 87-98, (1994). Namely, given the first m-1 principal components, the algorithm can produce the m-th component iteratively. The use of these extraction techniques will further reduce the total number of computational steps by removing step 630, where the covariance matrix R.sub.t is recursively updated.
These algorithms have been developed to reduce the computational load for the updating of Q.sub.t and .LAMBDA..sub.t. The key to these "fast" eigen-decomposition algorithms is that Q.sub.t and .LAMBDA..sub.t are updated for each input sample directly from the data stream of x.sub.t without computing R.sub.t. Both APEX and LEAP are implemented in neural network hardware and/or software and their performance is comparable. Both methods consist of two mechanisms. The first mechanism computes the correlations between the various components of input signal x.sub.t. In APEX and LEAP, this mechanism is implemented by the "Hebbian" ("correlation") updating rule. The Hebbian algorithm finds the dominant correlations.
The second mechanism constrains the first mechanism such that the various correlations found by the Hebbian rule are orthogonal to each other. APEX uses an orthogonalizing learning rule that is referred to as anti-Hebbian learning, whereas LEAP implements the orthogonalizing process by the Gram-Schmidt rule. The mechanisms for correlation learning (Hebbian rule) and orthogonalization (anti-Hebbian and Gram-Schmidt rule) are standard and widely applied.
It should be noted that some of these algorithms were premised on the fact that the input signal is stationary. However, the advantage of applying these techniques to non-stationary signals coupled with the concept of adaptive eigenpruning is significant. As discussed above, the concept of eigenpruning provides an accurate method to update the weights and the effective number of nodes for a neural network, but it is computationally expensive when applied to a non-stationary signal for each input sample. Hence, the use of extraction techniques provides a powerful and efficient solution to reduce the number of computational steps necessary to implement the adaptive eigenpruning process for a non-stationary signal.
Thus, a novel neural network for processing non-stationary signals has been disclosed. However, many modifications and variations of the present invention will become apparent to those skilled in the art.
Specifically, the method of the present invention is implemented completely in eigenspace. However, it is possible to selectively modify various steps of process 300 in different space. To illustrate, eigenpruning can be accomplished by setting the values in a corresponding column in the eigenvector matrix Q.sub.t to zeros, which correlates to eigenmodes with small saliencies. After the eigenvector matrix Q(t) is eigenpruned, the weights of the network are updated. The eigenpruned weight matrix is computed as:
W.sub.ep (t)=W(t)Q.sub.ep (t)Q.sub.ep.sup.T (t), (20)
where ep represents eigenpruned. Using the updated weight matrix W.sub.ep (t), a model output can be computed.
The model output is computed as:
y.sub.ep (t)=W.sub.ep (t)x(t). (21)
Finally, the weights of the neural network are updated using standard adaptive filtering techniques such as the Least Mean Squares (LMS). This filtering technique is used in place of the TDAF and the weights of the corresponding layer of the neural network are updated by the following formula:
W.sub.t+1 =W.sub.t +2.eta..epsilon..sub.k x.sub.t,(LMS) (22)
where .eta. is a learning rate parameter and .epsilon..sub.k is the error signal. Hence, many modifications of the present invention are possible.
The neural network according to the present invention was tested to perform a number of simulations. In one simulation, the tick-by-tick values from May 1985 of the U.S. dollar versus Swiss Franc exchange rate were used as the non-stationary input signal. This time series contains successive tick values that were separated by a few minutes, but the sampling period was not a constant. The time series was processed to the extent that the maximal absolute value was rescaled to one and the mean value was rescaled to zero.
The goal is to predict the value of the exchange rate five ticks ahead, while making use of past values of the exchange rate. The neural network was trained using a training set of 1,000 samples and the next set of 1,000 samples was used as testing data. A two layer feedforward network with 40 `tanh` hidden nodes and one (1) linear output node was employed. In conjunction, a 10-dimensional vector x(t) =�y(t-5), y(t-6), . . . , y(t-14)!.sup.T was used as an input and y(t) as a target output. The goal of the network was to predict the exchange rate five (5) ticks ahead, while making use of the exchange rate of the last ten (10) ticks. The network was loaded with weights w.sub.o, the weights from the trained unpruned network, and the weights were adapted on-line as the network moved over the test data, while the network employed adaptive weight updating and adaptive eigenpruning. A learning rate .eta.=0.05 and forgetting factor .lambda.=0.98 were chosen.
The results are very impressive. Instead of focusing on the predicted values of the exchange rate, the fraction of correctly estimated directions of the exchange rate was computed. In other words, the direction of the exchange rate was predicted. The direction of the exchange rate is computed as: ##EQU4## The area �-.theta., .theta.! is referred to as the deadzone. For .theta.=0, i.e. no deadzone, the adaptive network correctly estimated 72% of the exchange rate directional movements. In fact, when a dead zone of .theta.=0.017 is used, conditional on that a change took place (dir(t).notident.0), the adaptive network predicted 80% of the exchange rate directional movements.
There has thus been shown and described a novel neural network for processing non-stationary signals such as financial data. Many changes, modifications, variations and other uses and applications of the subject invention will, however, become apparent to those skilled in the art after considering this specification and the accompanying drawings which disclose the embodiments thereof. All such changes, modifications, variations and other uses and applications which do not depart from the spirit and scope of the invention are deemed to be covered by the invention, which is to be limited only by the claims which follow.
Claims
  • 1. A neural network having a plurality of weights for receiving a sequence of signal inputs x.sub.t,x.sub.t+1, x.sub.t+2 . . . , each input x.sub.t comprising n signal components x.sub.1 (t), x.sub.2 (t-1), . . . , x.sub.n (t-(n-1)) and for generating an output signal that anticipates the behavior of said input signal for a number of time samples ahead, said neural network comprising:
  • transformation means for transforming a set of n signal inputs into a set of principal components having a saliency assigned to each of said principal component;
  • pruning means, coupled to said transformation means, for pruning a number of said principal components that correspond to the smallest saliencies, where the number of said principal components is limited by a sum of said saliencies of said pruned principal components to be less than or equal to a predefined threshold level, leaving a remaining set of principal components;
  • first computing means, coupled to said pruning means, for computing the output signal using said set of remaining principal components: and
  • wherein said neural network an updating means, coupled to said first computing means, for updating the weights of the neural network adaptively based on an error between a target output and the output signal.
  • 2. A neural network having a plurality of weights for receiving a sequence of signal inputs x.sub.t,x.sub.t+1, x.sub.t+2. . . , each input x.sub.t comprising n signal components x.sub.1 (t), x.sub.2 (t-1), . . . , x.sub.n (t-(n-1)) and for generating an output signal that anticipates the behavior of said input signal for a number of time samples ahead, said neural network comprising:
  • transformation means for transforming a set of n signal inputs into a set of principal components having a saliency assigned to each of said principal component:
  • pruning means coupled to said transformation means, for pruning a number of said principal components that correspond to the smallest saliencies, where the number of said principal components is limited by a sum of said saliencies of said pruned principal components to be less than or equal to a predefined threshold level, leaving a remaining set of principal components;
  • first computing means, coupled to said pruning means, for computing the output signal using said set of remaining principal components: and
  • updating means, coupled to said first computing means, for updating the weights of the neural network adaptively based on an error between a target output and the output signal,
  • wherein said transformation means includes an estimation means for recursively estimating a current set of principal components from a set of principal components of a previously transformed set of n signal inputs.
  • 3. The neural network of claim 2, wherein said estimation means estimates said current set of principal components in accordance to the formula
  • R.sub.t =.mu.R.sub.t-1 +(1-.mu.)x.sub.t x.sub.t.sup.T
  • where R.sub.t-1 is a covariance matrix of a previous set of n signal inputs, R.sub.t is a covariance matrix of said current set of n signal inputs, .mu. is a predetermined constant, x.sub.t is a current input signal, and x.sub.t.sup.T is a transpose of said current input signal.
  • 4. The neural network of claim 2, wherein said estimation means estimates said current set of principal components by directly calculating a matrix Q.sub.t and a matrix .LAMBDA..sub.t, where Q.sub.t is a matrix of eigenvectors and .LAMBDA..sub.t is a matrix of eigenvalues.
  • 5. The neural network of claim 2, wherein said saliencies are calculated in accordance to the formula
  • s.sub.i (t)=�v.sub.i x.sub.i !.sup.T �v.sub.i x.sub.i !=v.sub.t.sup.T v.sub.i x.sub.i.sub.2
  • where x.sub.t is the Karhunen-Loeve expansion of x.sub.t and v.sub.i is a p.times.1 vector of W.sub.t.sup.T defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !.
  • 6. The neural network of claim 2, wherein said saliencies are calculated in accordance to the formula
  • s.sub.i (t)=v.sub.t.sup.T v.sub.i x.sub.i.sup.2
  • where x.sub.t is the Karhunen-Loeve expansion of x.sub.t, v.sub.i is a p.times.1 vector of W.sub.t.sup.T defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !, x.sub.i.sup.2 is defined as x.sub.i.sup.2 (t)=.mu.x.sub.i.sup.2 (t-1)+(1-.mu.)x.sub.i.sup.2 (t) and .mu. is a forgetting factor.
  • 7. The neural network of claim 2, wherein said saliencies are calculated in accordance to the formula
  • s.sub.i =.lambda..sub.i v.sub.i.sup.T v.sub.i,
  • where .lambda..sub.i is the ith element on the diagonal of .LAMBDA..sub.t and v.sub.i is a p.times.1 vector of W.sub.t.sup.T defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !.
  • 8. The neural network of claim 2, wherein said pruning means includes:
  • second computing means for computing an output in principal component space;
  • identifying means, coupled to said second computing means, for identifying said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level; and
  • third computing means, coupled to said identifying means, for computing a pruning vector from said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level.
  • 9. The neural network of claim 2, wherein said pruning means includes:
  • identifying means for identifying said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level; and
  • fourth computing means, coupled to said identifying means, for computing a weight matrix in regular space from said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level.
  • 10. A method of signal processing, utilizing a neural network having a plurality of weights, for receiving a sequence of signal inputs x.sub.t, x.sub.t+1,x.sub.t+2 . . . , each input x.sub.t comprising n signal components x.sub.1 (t), x.sub.2 (t-1), . . . , x.sub.n (t-(n-1)) and for generating an output signal that anticipates the behavior of said input signal for a number of time samples ahead, said method comprising the steps of:
  • (a) transforming a set of n signal inputs into a set of principal components having a saliency assigned to each of said principal component:
  • (b) pruning a number of said principal components that correspond to the smallest saliencies, where the number of said pruned principal components is limited by a sum of said saliencies of said pruned principal components to be less than or equal to a predefined threshold level, leaving a remaining set of principal components:
  • (c) computing said output signal using said remaining set of principal components; and
  • (d) updating the weights of the neural network adaptively based on an error between a target output and the output signal.
  • 11. A method of signal processing, utilizing a neural network having a plurality of weights, for receiving a sequence of signal inputs x.sub.t,x.sub.t+1,x.sub.t+2. . . each input x.sub.t comprising n signal components x.sub.1 (t),x.sub.2 (t-1), . . . , x.sub.n (t-(n-1)) and for generating an output signal that anticipates the behavior of said input signal for a number of time samples ahead, said method comprising the steps of:
  • (a) transforming a set of n signal inputs into a set of principal components having a saliency assigned to each of said principal component;
  • (b) pruning a number of said principal components that correspond to the smallest saliencies, where the number of said pruned principal components is limited by a sum of said saliencies of said pruned principal components to be less than or equal to a predefined threshold level, leaving a remaining set of principal components:
  • (c) computing said output signal using said remaining set of principal components: and
  • (d) updating the weights of the network adaptively based on an error between a target output and the output signal
  • wherein said transformation step includes an estimation step for recursively estimating a current set of principal components from a set of principal components of a previously transformed set of n signal inputs.
  • 12. The method of claim 11, further comprising the step of:
  • (f) repeating steps (a)-(d) for each new signal input.
  • 13. The method of claim 11, wherein said estimation step estimates said current set of principal components in accordance to the formula
  • R.sub.t =.mu.R.sub.t-1 +(1-.mu.)x.sub.t x.sub.t.sup.T
  • where R.sub.t-1 is a covariance matrix of a previous set of n signal inputs, R.sub.t is a covariance matrix of said current set of n signal inputs, .mu. is a predetermined constant, x.sub.t is a current input signal, and x.sub.t .sup.T is a transpose of said current input signal.
  • 14. The method of claim 11 wherein said estimating step estimates said current set of principal components by directly calculating a matrix Q.sub.t and a matrix .LAMBDA..sub.t, where Q.sub.t is a matrix of eigenvectors and .LAMBDA..sub.t is a matrix of eigenvalues.
  • 15. The method of claim 11, wherein said saliencies are calculated in accordance to the formula
  • s.sub.i (t)=�v.sub.i x.sub.i !.sup.T �v.sub.i x.sub.i !=v.sub.t.sup.T v.sub.i x.sub.i.sup.2
  • where x.sub.t is the Karhunen-Loeve expansion of x.sub.t and v.sub.i is a p.times.1 vector of W.sub.t.sup.T defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !.
  • 16. The method of claim 11, wherein said saliencies are calculated in accordance to the formula
  • s.sub.i (t)=v.sub.t.sup.T v.sub.i x.sub.i.sup.2
  • where xx.sub.t is the Karhunen-Loeve expansion of x.sub.t, v.sub.i is a p.times.1 vector of W.sub.t.sup.T defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !, x.sub.i .sup.2 is defined as x.sub.i.sup.2 (t)=.mu.x.sub.i.sup.2 (t-1)+(1-.mu.)x.sub.i.sup.2 (t) and .mu. is a forgetting factor.
  • 17. The method of claim 11, wherein said saliencies are calculated in accordance to the formula
  • s.sub.i =.lambda..sub.i v.sub.i.sup.T v.sub.i,
  • where .lambda..sub.i is the ith element on the diagonal of .LAMBDA..sub.t and v.sub.i is a p.times.1 vector of W.sub.t.sup.T defined as W.sub.t.sup.T =�v.sub.1,v.sub.2, . . . , v.sub.n !.
  • 18. The method of claim 11, wherein said pruning step includes the steps of:
  • computing an output in principal component space;
  • identifying said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level; and
  • computing a pruning vector from said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level.
  • 19. The method of claim 11, wherein said pruning step includes the steps of:
  • identifying said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level; and
  • computing a weight matrix in regular space from said principal components that correspond to the smallest saliencies, where a sum of said smallest saliencies is less than a predefined threshold level.
  • 20. A signal processing system having a neural network for receiving a sequence of signal inputs x.sub.t, x.sub.t+1, x.sub.t+2 . . . , each input x.sub.t comprising n signal components x.sub.1 (t), x.sub.2 (t-1), . . . , x.sub.n (t-(n-1)) and generating an output signal that anticipates the behavior of said input signal for a number of time samples ahead, said neural network having a plurality of hierarchically connected nodes forming a plurality of layers, each of said layer consisting of at least one node, said nodes being inter-connected with a plurality of weights, said signal processing system comprising:
  • transformation means for transforming a set of n signal inputs into a set of principal components having a saliency assigned to each of said principal component;
  • pruning means, coupled to said transformation means, for pruning a number of said principal components that correspond to the smallest saliencies, where the number of said pruned principal components is limited by a sum of said saliencies of said pruned principal components to be less than or equal to a predefined threshold level, leaving a remaining set of principal components;
  • computing means, coupled to said pruning means, for computing the output signal of a layer of the neural network using said set of remaining principal components; and
  • updating means, coupled to said computing means, for updating the weights of the neural network adaptively based on an error between a target output and the output signal.
  • 21. The signal processing system of claim 20, wherein said transformation means includes an estimation means for recursively estimating a current set of principal components from a set of principal components of a previously transformed set of n signal inputs.
CROSS REFERENCE TO RELATED APPLICATION

This application is a continuation of patent application Ser. No. 08/448,770 entitled "METHOD AND SYSTEM FOR TRAINING A NEURAL NETWORK WITH ADAPTIVE WEIGHT UPDATING AND ADAPTIVE PRUNING IN PRINCIPAL COMPONENT SPACE" filed on May 24, 1995, now abandoned.

US Referenced Citations (12)
Number Name Date Kind
5052043 Gaborski Sep 1991
5129039 Hiraiwa Jul 1992
5140670 Chua et al. Aug 1992
5159660 Lu et al. Oct 1992
5168262 Okayama Dec 1992
5175678 Frerichs et al. Dec 1992
5253329 Villarreal et al. Oct 1993
5268834 Sanner et al. Dec 1993
5280564 Shiomi et al. Jan 1994
5282261 Skeirik Jan 1994
5371834 Tawel Dec 1994
5636326 Stork et al. Jun 1997
Non-Patent Literature Citations (7)
Entry
Chen H. and Liu R., An On-Line Unsupervised Learning Machine for Adaptive Feature Extraction, IEEE trans. on Circuits and Systems II, vol. 41, No. 2, pp. 87-98, (1994).
De Vries B., Gradient-Based Adaptation of Network Structure, International Conference on Artificial Neural Networks 94, Sorrento, Italy, (May 1994).
King S.Y., and Diamantaras K., A neural Network Learning algorithm for Adaptive Principal Component Extraction (APEX), Proc. of IEEE Int'l Conf. on Acoustics, Speech and Signal Processing (ICASSP), pp. 861-864, (1990).
Levin, A., and Leen T., and Moody J., Fast Pruning Using Principal Components, Advances in Neural Information Processing Systems (NIPS) 6, pp. 35-42, Morgan Kaufmann Publishers, (1994).
Levin et al., "Fast Pruning Using Principal Components," Advances in Neural Information Processing Systems (NIPS) 6, pp. 35-42, 1994.
Kung, S.Y. and Diamantaras, K., "A Neural Network Learning Algorithm for Adaptive Principal Component Extraction (APEX)", Proc. of IEEE Int'l Conf. on Acoustics, Speech and Signal Processing (ICASSP), pp. 861-864, 1990.
Levin, A., and Leen, T. and Moody, J., "Fast Pruning Using Principal Components", Advances in Neural Information Processing Systems (NIPS) 6, pp. 35-42, 1994.
Continuations (1)
Number Date Country
Parent 448770 May 1995