Abstract:
An apparatus is disclosed for machine learning of a pattern sequence which is derived from a plurality of inputs. The pattern sequence is predicted from learning rate parameters that are exponentially related to an incrementally calculated gain parameter for each input. The gain parameter are increased or decreased in real time in correlation with the accuracy of the learning process. The disclosed apparatus are advantageously utilized in signal processing, adaptive control systems, and pattern recognition.

Description:
RELATED APPLICATIONS 
     This application is a continuation-in-part of U.S. Ser. No. 07/947,213 filed on Sep. 18, 1992 by the same inventor as this application and assigned to the same assignee. 
    
    
     FIELD OF THE INVENTION 
     The current invention relates generally to a method and apparatus for machine learning of a pattern sequence and more particularly to a method and apparatus for machine learning of a pattern sequence utilizing an incrementally adjustable gain parameter. 
     BACKGROUND OF THE INVENTION 
     The task of learning by a machine a pattern sequence which is a linear function of multiple inputs is a central problem in many technical fields including adaptive control and estimation, signal processing, artificial intelligence, pattern recognition, and neural networking. The machine must perform responsive tracking of the pattern sequence in real time while achieving fast convergence in a computationally efficient manner. Often the process of learning the pattern sequence is made more difficult in that very little prior knowledge of the system generating the sequence is known. Moreover, while the inputs to the machine for learning the pattern may be identified, the relevance and weight of each input in affecting the output pattern sequence is usually not known. 
     Methods of determining the relevance of a particular input along with a specific weight are known. The weights are derived from a modifiable gain parameter. The gain parameter is modified based on the auto-correlation of the increments in the identified input. When the gain parameter is positively correlated with a certain average of the preceding input increments,the gain parameter is increased. Conversely if the input increments are negatively correlated the gain parameter is decreased. The gain parameters are adjusted to enhance the efficiency and responsiveness of the learning process. 
     Prior techniques for adapting the gain parameter of an adaptive learning process have been disclosed by Kesten in &#34;Accelerated Stochastic Approximation&#34;, Annals of Mathematical Studies, Vol 29, 1958,pp 41-59. The Kesten method reduces gain parameters or moves them along a fixed schedule converging to zero. The method can not find a gain level appropriate to the dynamics of a non-stationary task and is limited to a single gain parameter for the entire system. 
     A method entitled Delta-Bar-Delta (DBD) for accelerating convergence of neural networks is disclosed by Jacobs in &#34;Increased Rates of Convergence Through Learning Rate Adaptation&#34;, Neural Networks, vol. 1, 1988, pp 295-307, by Chan et al. in &#34;An Adaptive Training Algorithm for Back Propagation Networks&#34;, Cambridge University Engineering Department Technical Report, CUED/F-INFENG/TR.2, 1987, by Tollenaere in &#34;SuperSAB: Fast Adaptive Back Propagation with Good Scaling Properties&#34;, Neural Networks, vol. 3, 1990, pp. 561-573, by Devos et al. in &#34;Self Adaptive Back Propagation&#34;, Proceedings NeuroNimes, 1988, EZ, Nanterre, France, and by Lee et al. in &#34;Practical Characteristics of Neural Network and Conventional Pattern Classifiers on Artificial and Speech Problems&#34;, Advances in Neural Information Processing Systems, vol. 2, 1990, pp 168-177. These DBD methods do not operate incrementally and are not dynamic. The methods modify the gain parameters after a complete pass through the training set and thus can not be applied to an on-line learning situation. 
     Classical estimation methods including the Kalman filter, Least-Squares methods, Least-Mean-Squares (LMS), and normalized LMS are described by Goodwin et al. in Adaptive Filtering Prediction and Control, Prentice Hall, 1984. These methods can be divided into classes with differing disadvantages. The Kalman filter method offers optimal performance in terms of tracking error, but requires more detailed knowledge of the task domain than is usually available. In particular, it requires complete knowledge of the statistics of the unknown system&#39;s time variation. The least-squares methods requires less such knowledge, but does not perform as well. In addition, both of these methods require a great deal of memory and computation. If the primary learning process has N parameters, then the complexity of these methods is of the order of N 2 . That is, their memory and computational requirements increase with the square of the number of parameters being estimated. In many applications this number is very large, making these methods undesirable. The LMS and Normalized LMS methods are much less complex, requiring memory and computation that is only of order N. However, these methods have slow convergence. 
     Thus it is desirable to discover a method of machine learning that achieves fast convergence and has responsive tracking of a pattern sequence without excessive computation, system knowledge, or intervention in a real time system. 
     OBJECTS OF THE INVENTION 
     Accordingly, it is a primary object of this invention to obviate the above noted and other disadvantages of the prior art. 
     It is a further object of the invention to provide a novel machine apparatus for detecting and learning pattern sequences. 
     It is a yet further object of the invention to provide a novel method apparatus for detecting and learning pattern sequences. 
     SUMMARY OF THE INVENTION 
     The above and other objects and advantages are achieved in one aspect of this invention with a method and apparatus for machine learning of a pattern sequence using an incrementally adaptive gain parameter to adjust the learning rate of the machine. The machine receives a plurality of inputs that may correspond to sensor information or the like and predicts the pattern sequence from past experience and the input values. Each input has associated with it an individual gain parameter and learning rate. The gain parameters are increased or decreased in real time in correlation with the accuracy of the learning process. 
     In one aspect of the invention, the pattern sequence is predicted utilizing a weighted linear combination of the inputs. The particular weights are derived from the individual learning rates of the inputs and the associated gain parameters. 
     The disclosed method and apparatus are advantageously utilized in signal processing, adaptive control systems, and pattern recognition. 
    
    
     BRIEF DESCRIPTION OF THE DRAWINGS 
     FIG. 1 is an illustration of a computer system that embodies the learning machine in accordance with the current invention. 
     FIG. 2 is a depiction of the linear combination of the weighted inputs to produce the output result. 
     FIG. 3 is a graphical comparison of performance among alternative methods of machine learning. 
    
    
     DETAILED DESCRIPTION OF THE INVENTION 
     For a better understanding of the present invention, together with other and further objects, advantages, and capabilities thereof, reference is made to the following disclosure in conjunction with the accompanying drawings. 
     In one embodiment of the current invention, a programmable computer system is utilized as the machine apparatus to perform the learning process. As shown in FIG. 1, the computer system 100 has a processor 105 for executing instructions that employ the disclosed method of machine learning, a memory 110 for storing data, input ports 115 for receiving information to be processed by the processor 105, and an output port 120 for making the results of processor 105 available. Typically computer system 100 is an adaptive signal processing system or a adaptive control system wherein input ports 115 receive sensor information and output port 120 is used to control a physical process. The machine apparatus is also advantageously utilized in pattern recognition applications. 
     The method of machine learning disclosed herein is a meta-learning technique in the sense that it learns the learning-rate parameters of an underlying base learning system. The base learning system is an approximation to the Kalman filter with reduced computational complexity. This learning process is often thought of as a single connectionist unit as shown in FIG. 2. The unit is linear, meaning that the predicted value of the pattern sequence y(t), at each time step t, is a weighted sum of its real-valued inputs x i  (t): ##EQU1## were each w i  (t) is the value at time t of a modifiable weight w i  associated with x i . It is understood in the disclosure that follows that the index i refers to the parameter associated with the input x i . At each time step, the machine 100 receives a set of inputs on input ports 105, 
     x i  (t), computes its output in processor 105, y(t), and compares it to a given desired result, y* (t). The aim of the machine learning is to minimize the squared error δ 2  (t), where δ(t)=y*(t)-y(t), on future time steps. The approximate Kalman filter learning rule updates the weights at each time step according to: ##EQU2##  where α is a positive constant called the learning rate, and R is an estimate of the variance of the noise in y* (R is typically taken to be 1). 
     The present invention utilizes a single linear unit using the above rule as a basis. However for the present invention, there is a different learning rate, k i , for each input x i , and these change according to a meta-learning process. The present invention is named the K1 method. The base-level learning rule is 
     
         w.sub.i (t+1)=w.sub.i (t)+k.sub.i (t)δ(t)            (3) 
    
     The learning rates are a powerful form of bias in this system. Learning about irrelevant inputs acts as noise interfering with learning about relevant inputs. In effect, learning rates are a valuable resource that must be allocated carefully. Inputs that are likely to be irrelevant should be given small learning rates, whereas inputs that are likely to be relevant should be given large learning rates. 
     In the present invention, the learning rates are all of the form ##EQU3## where R is typically equal to 1. 
     The β i  are updated by the following rule: 
     
         β.sub.i (t+1)=β.sub.i (t)+θδ(t)x.sub.i (t)h.sub.i (t),(5) 
    
     where θ is a positive constant denoted the meta-learning rate, and h i  is an additional per-input memory parameter updated by 
     
         h.sub.i (t+1)= h.sub.i (t)+k.sub.i (t)δ(t)! 1-k.sub.i (t)x.sub.i (t)!.sup.+                                                (6) 
    
     where  x! +   is defined as x for x&gt;0, else 0. The memory h i  is a decaying trace of the cumulative sum of recent changes to w i . 
     The intuitive idea behind the current K1 method of machine learning is that the increment to β i  in (5) is proportional to the product of the current weight change, δ(t)x i  (t), and a trace of recent weight changes, h i  (t). By accumulating this product, the overall change in β i  becomes proportional to the correlation between current and recent weight changes. If the current step is positively correlated with past steps, that indicates that the past steps should have been larger (and equation (5) accordingly increases β i ). If the current step is negatively correlated with past steps, that indicates that the past steps were too large; the K1 method is overshooting the best weight values and then having to re-correct in the opposite direction (here equation (5) decreases β i ). 
     The best learning rate will have been found when weight updates are uncorrelated with preceding updates. 
     The K1 method as described above is similar to Jacobs&#39; Delta-Bar-Delta algorithm as described in his 1988 publication. However, Jacobs&#39; method can be applied only on a batch-by-batch basis, with updates after a complete presentation of a training set, whereas here we assume examples arrive one-by-one and are not necessarily revisited afterwards. The K1 method is incremental in that the trace h i  is defined such that it fades away only to the extent that the corresponding input x i  is present, as indicated by x i   2  (t). The K1 method also improves over Jacobs&#39; in that the decay rate is not a separate free parameter, but is tied to the current learning rate. The new K1 method in fact has only one free parameter, the meta-learning rate,θ, whereas Jacobs&#39; method has three free parameters. 
     The steps of the K1 method are as follows: 
     Initialize h i  to 0, and w i , β i  as desired, i=1, . . . ,n 
     Repeat for each new example (x 1 , . . . , x n , y* ): 
     calculate: ##EQU4## 
     In practice, it is often useful to bound each β i  from below by, say, -10, to prevent arithmetic underflows. In addition, it is prudent to limit the change in β i  on any one step to, say, ±2. However, this bounding is not required to obtain the empirical results presented in the next section. 
     EXAMPLE 
     The capabilities of the instant K1 method for a linear combination of inputs were assessed using a series of tracking tasks--supervised--learning or concept-learning tasks in which the target concept drifts over time and is to be tracked. Non-stationary tasks are more appropriate here than conventional learning tasks because we are trying to assess the K1 method&#39;s ability to learn biases during early learning and then use them in later learning. To study this one needs a continuing learning problem, not one that can be solved once and is then finished. 
     The task involved 20 real-valued inputs and one output. The inputs were chosen independently and randomly according to a normal distribution with mean zero and unit variance. The target concept was the sum of the first five inputs, each multiplied either by a weight, i.e. 
     
         y*=s.sub.1 x.sub.1 +s.sub.2 x.sub.2 +s.sub.3 x.sub.3 +s.sub.4 x.sub.4 +s.sub.5 x.sub.5 +0x.sub.6 +0x.sub.7 + . . . +0x.sub.20, 
    
     where all the s i  are continuous values initially zero. To make it a tracking problem, on every example a number selected independently with normal distribution was added to the 5 weights s 1 , . . . ,s 5 . Further, noise was introduced in y* with the variance R. Thus, the same five inputs were always relevant, but their relationship to the target concept changed slowly. 
     The K1 method&#39;s performance was tested versus the LMS (Least Mean Squares) method, the NLMS (Normalized Least Mean Squares), the Kalman filter, and the IDBD method described in the application identified at the beginning of this application. Because this is a tracking task, it suffices to perform one long run and measure the asymptotic tracking performance of the competing methods. 
     All of the tested methods were run for 20,000 examples so as to get past any initial transients, and then ran another 10,000 examples. The average mean-squared error over that 10,000 examples was used as the asymptotic performance measure of the method. The methods used were ordinary LMS, the NLMS (Normalized Least Mean Squares), the Kalman filter, and the IDBD method and the instant K1 method, all with a range of learning or meta-learning rates. The β i  in the currently disclosed K1 method were set initially such that e.sup.β i.sup.(0) =1 for all i. 
     The results of this performance evaluation are summarized in FIG. 3. FIG. 3 illustrates a comparison of the average asymptotic performances of the tested methods. As can be seen the Kalman filter is best in terms of asymptotic error, but the method requires special apriori knowledge that the other alternative methods do not require. The K1 method outperforms the other tested methods and approaches the performance of the Kalman filter. 
     
                       TABLE 1______________________________________Approximate computational complexity of the algorithmsComputational ComplexityAlgorithm     Memory      Adds &amp; Mults______________________________________LMS           n           4nNLMS          n           6nIDBD          3n          13nK1            3n          17nLS            1/2 n.sup.2 + n                     2.5n.sup.2 + 8.5nKalman        1/2 n.sup.2 + n                     2.5n.sup.2 + 8.5n______________________________________ 
    
     TABLE 1 lists the approximate computational complexity of the tested methods. The K1 method has a computational complexity of order n while the Kalman filter is of order n 2 . It is also noted that although the K1 method outperforms the IDBD method it is computationally more complex and thus more difficult to implement. 
     While there has been shown and described-what is at present considered the preferred embodiment of the invention it will be obvious to those skilled in the art that various changes and modifications may be made therein without departing from the invention as defined by the appended claims.