Synaptic Weight Noise During MLP Learning Enhances Fault-Tolerance, Generalisation and Learning Trajectory

Similar documents
INPE São José dos Campos

Artificial Neural Networks written examination

Softprop: Softmax Neural Network Backpropagation Learning

OPTIMIZATINON OF TRAINING SETS FOR HEBBIAN-LEARNING- BASED CLASSIFIERS

A Neural Network GUI Tested on Text-To-Phoneme Mapping

QuickStroke: An Incremental On-line Chinese Handwriting Recognition System

Python Machine Learning

A Reinforcement Learning Variant for Control Scheduling

Evolutive Neural Net Fuzzy Filtering: Basic Description

An empirical study of learning speed in backpropagation

Lecture 1: Machine Learning Basics

Course Outline. Course Grading. Where to go for help. Academic Integrity. EE-589 Introduction to Neural Networks NN 1 EE

Learning Methods for Fuzzy Systems

SARDNET: A Self-Organizing Feature Map for Sequences

Knowledge Transfer in Deep Convolutional Neural Nets

Test Effort Estimation Using Neural Network

Speech Recognition at ICSI: Broadcast News and beyond

On-Line Data Analytics

Degeneracy results in canalisation of language structure: A computational model of word learning

Artificial Neural Networks

Circuit Simulators: A Revolutionary E-Learning Platform

Rule Learning With Negation: Issues Regarding Effectiveness

Issues in the Mining of Heart Failure Datasets

Analysis of Hybrid Soft and Hard Computing Techniques for Forex Monitoring Systems

A study of speaker adaptation for DNN-based speech synthesis

(Sub)Gradient Descent

Using focal point learning to improve human machine tacit coordination

Module 12. Machine Learning. Version 2 CSE IIT, Kharagpur

How People Learn Physics

Speaker Identification by Comparison of Smart Methods. Abstract

CS Machine Learning

Proposal of Pattern Recognition as a necessary and sufficient principle to Cognitive Science

Time series prediction

Evolution of Symbolisation in Chimpanzees and Neural Nets

PREDICTING SPEECH RECOGNITION CONFIDENCE USING DEEP LEARNING WITH WORD IDENTITY AND SCORE FEATURES

Seminar - Organic Computing

Using dialogue context to improve parsing performance in dialogue systems

COMPUTER-ASSISTED INDEPENDENT STUDY IN MULTIVARIATE CALCULUS

WHEN THERE IS A mismatch between the acoustic

Learning Structural Correspondences Across Different Linguistic Domains with Synchronous Neural Language Models

BENCHMARK TREND COMPARISON REPORT:

*** * * * COUNCIL * * CONSEIL OFEUROPE * * * DE L'EUROPE. Proceedings of the 9th Symposium on Legal Data Processing in Europe

Rule Learning with Negation: Issues Regarding Effectiveness

Modeling function word errors in DNN-HMM based LVCSR systems

Reinforcement Learning by Comparing Immediate Reward

AGS THE GREAT REVIEW GAME FOR PRE-ALGEBRA (CD) CORRELATED TO CALIFORNIA CONTENT STANDARDS

Abstractions and the Brain

Framewise Phoneme Classification with Bidirectional LSTM and Other Neural Network Architectures

Unsupervised Learning of Word Semantic Embedding using the Deep Structured Semantic Model

Software Maintenance

Introduction to Simulation

Human Emotion Recognition From Speech

GACE Computer Science Assessment Test at a Glance

NCEO Technical Report 27

Classification Using ANN: A Review

The Good Judgment Project: A large scale test of different methods of combining expert predictions

AUTOMATED TROUBLESHOOTING OF MOBILE NETWORKS USING BAYESIAN NETWORKS

A Variation-Tolerant Multi-Level Memory Architecture Encoded in Two-state Memristors

Improvements to the Pruning Behavior of DNN Acoustic Models

Word Segmentation of Off-line Handwritten Documents

On the Combined Behavior of Autonomous Resource Management Agents

Interaction Design Considerations for an Aircraft Carrier Deck Agent-based Simulation

Analysis of Enzyme Kinetic Data

Given a directed graph G =(N A), where N is a set of m nodes and A. destination node, implying a direction for ow to follow. Arcs have limitations

Phonetic- and Speaker-Discriminant Features for Speaker Recognition. Research Project

Device Independence and Extensibility in Gesture Recognition

arxiv: v1 [cs.cl] 2 Apr 2017

Understanding and Interpreting the NRC s Data-Based Assessment of Research-Doctorate Programs in the United States (2010)

IEEE TRANSACTIONS ON AUDIO, SPEECH, AND LANGUAGE PROCESSING, VOL. 17, NO. 3, MARCH

Discriminative Learning of Beam-Search Heuristics for Planning

A New Perspective on Combining GMM and DNN Frameworks for Speaker Adaptation

Calibration of Confidence Measures in Speech Recognition

Modeling function word errors in DNN-HMM based LVCSR systems

have to be modeled) or isolated words. Output of the system is a grapheme-tophoneme conversion system which takes as its input the spelling of words,

Grade 6: Correlated to AGS Basic Math Skills

A Case-Based Approach To Imitation Learning in Robotic Agents

HIERARCHICAL DEEP LEARNING ARCHITECTURE FOR 10K OBJECTS CLASSIFICATION

DIRECT ADAPTATION OF HYBRID DNN/HMM MODEL FOR FAST SPEAKER ADAPTATION IN LVCSR BASED ON SPEAKER CODE

I-COMPETERE: Using Applied Intelligence in search of competency gaps in software project managers.

System Implementation for SemEval-2017 Task 4 Subtask A Based on Interpolated Deep Neural Networks

Reducing Features to Improve Bug Prediction

ADVANCES IN DEEP NEURAL NETWORK APPROACHES TO SPEAKER RECOGNITION

AUTOMATIC DETECTION OF PROLONGED FRICATIVE PHONEMES WITH THE HIDDEN MARKOV MODELS APPROACH 1. INTRODUCTION

An Empirical and Computational Test of Linguistic Relativity

Generative models and adversarial training

Analysis of Speech Recognition Models for Real Time Captioning and Post Lecture Transcription

CSL465/603 - Machine Learning

Axiom 2013 Team Description Paper

Analysis of Emotion Recognition System through Speech Signal Using KNN & GMM Classifier

Attributed Social Network Embedding

Radius STEM Readiness TM

TD(λ) and Q-Learning Based Ludo Players

A GENERIC SPLIT PROCESS MODEL FOR ASSET MANAGEMENT DECISION-MAKING

A Pipelined Approach for Iterative Software Process Model

On the Formation of Phoneme Categories in DNN Acoustic Models

Soft Computing based Learning for Cognitive Radio

OCR for Arabic using SIFT Descriptors With Online Failure Prediction

Learning From the Past with Experiment Databases

What is Thinking (Cognition)?

Transcription:

Synaptic Weight Noise During MLP Learning Enhances Fault-Tolerance, Generalisation and Learning Trajectory Alan F. Murray Dept. of Electrical Engineering Edinburgh University Scotland Peter J. Edwards Dept. of Electrical Engjneering Edinburgh University Scotland Abstract We analyse the effects of analog noise on the synaptic arithmetic during MultiLayer Perceptron training, by expanding the cost function to include noise-mediated penalty terms. Predictions are made in the light of these calculations which suggest that fault tolerance, generalisation ability and learning trajectory should be improved by such noise-injection. Extensive simulation experiments on two distinct classification problems substantiate the claims. The results appear to be perfectly general for all training schemes where weights are adjusted incrementally, and have wide-ranging implications for all applications, particularly those involving "inaccurate" analog neural VLSI. 1 Introduction This paper demonstrates both by consjderatioll of the cost function and the learning equations, and by simulation experiments, that injection of random noise on to MLP weights during learning enhances fault-tolerance without additional supervision. We also show that the nature of the hidden node states and the learning trajectory is altered fundamentally, in a manner that improves training times and learning quality. The enhancement uses the mediating influence of noise to distribute information optimally across the existing weights. 491

492 Murray and Edwards Taylor [Taylor, 72] has studied noisy synapses, largely in a biological context, and infers that the noise might assist learning. vve have already demonstrated that noise injection both reduces the learning time and improves the network's generalisation ability [Murray, 91],[Murray, 92]. It is established[matsuoka, 92],[Bishop, 9] that adding noise to the training data in neural (MLP) learning improves the "quality" of learning, as measured by the trained network's ability to generalise. Here we infer (synaptic) noise-mediated terms that sculpt the error function to favour faster learning, and that generate more robust internal representations, giving rise to better generalisation and immunity to smail variations in the characteristics of the test data. Much closer to the spirit of this paper is the work of Hanson[Hanson, 9]. His stochastic version of the delta rule effectively adapts weight means and standard deviations. Also Sequin and Clay [Sequin, 91] use stuck-at faults during training which imbues the trained network with an ability to withstand such faults. They also note, but do not pursue, an increased generalisation ability. This paper presents an outline of the mathematical predictions and verification simulations. A full description of the work is given in [Murray, 93]. 2 Mathematics Let us analyse an MLP with I input, J hidden and ]{ output nodes, with a set of P training input vectors Qp = {Oip}, looking at the effect of noise injection into the error function itself. We are thus able to infer, from the additional terms introduced by noise, the characteristics of solutions that tend to reduce the error, and those which tend to increase it. The former will clearly be favoured, or at least stabilised, by the additional terms. while the latter will be de-stabilised. Let each weight Tab be augmented by a random noise source, such that Tab -+ Tab + abtab, for all weights {Tab}. Neuron thresholds are treated in precisely the same way. Note in passing, but importantly, that this synaptic noise is not the same as noise on the input data. Input noise is correlated across the synapses leaving an input node, while the synaptic noise that forms the basis of this study is not. The effect is thus quite distinct. Considering, therefore, an error function of the form ;- 1 K-l 1 K-l ftot,p ="2 L fk/ ="2 L(okp({Tab}) -Okp)2 (1) k=o k=o Where Okp is the target output. We can now perform a Taylor expansion of the output Okp to second order, around the noise-free weight set, {TN}, and thus augment the error function ;- ""' (aokp) 1 ""' ( a2kp ) b ab b d ab cd Okp -+ Okp + L..J Tabab at. +"2 L..J TababTcdcd at. at. +(> 3) (2) a a,c If we ignore terms of order 3 and above, and taking the time average over the learning phase, we can infer that two terms are added to the error function ;- < ftot >=< (tot( {TN}) > + 2 t"i:l 2 LTab 2 [(;kp) 2 + (kp (:k)l (3) p=l k=o ab ab ab

Synaptic Weight Noise During MLP Learning 493 Consider also the perceptron rule update on the hidden-output layer along with the expanded error function :- < "'" I 2 "'" I "'" 6Tkj >= -T L..J < fkpojpokp > -T- 2 {)2 k P 2 L..J < OjpOkp > X L..J Tab --2 p P ab atab (4) averaged over several training epochs (which is acceptable for small values of T the adaption rate parameter). 3 Simulations The simulations detailed below are based on the virtual targets algorithm [Murray, 92], a variant on backpropagation, with broadly similar performance. The "targets" algorithm was chosen for its faster convergence properties. Two contrasting classification tasks were selected to verify the predictions made in the following section by simulation. The first, a feature location task, uses real world normalised greyscale image data. The task was to locate eyes in facial images - to classify sections of these as either "eye" or "not-eye". The network was trained on 16 x 16 preclassified sections of the images, classified as eyes and not-eyes. The not-eyes were random sections of facial images, avoiding the eyes (see Fig. 1). The second, 16x 16 section.:j "eye" ------=> c=- "not-eye" Figure 1: The eye/not-eye classifier. a more artificial task, was the ubiquitous character encoder (Fig. 2) where a 25-1B-111111111111111111 :> 26 I I I I Figure 2: The character encoder task. dimensional binary input vector describing the 26 alphabetic characters (each 5 x 5 pixels) was used to train the network with a one-out-of-26 output code. During the simulations noise was added to the weights at a level proportional to the weight size and at a probability distribution of uniform density (i.e. -max < < max). Levels of up to 4% were probed in detail - although it is clear that the expansion above is not quantitatively valid at this level. Above these percentages further improvements were seen in the network performance, although the dynamics of the training algorithm became chaotic. The injected noise level was reduced

494 Murray and Edwards smoothly to a minimum value of 1% as the network approached convergence (as evidenced by the highest output bit error). As ill all neural network simulations, the results depended upon the training parameters, network sizes and the random start position of the network. To overcome these factors and to achieve a meaningful result 35 weight sets were produced for each noise level. All other characteristics of the training process were held constant. The results are therefore not simply pathological freaks. 4 Prediction/Verification 4.1 Fault Tolerance Consider the first derivative penalty term in the expanded cost function (3), averaged over all patterns, output nodes and weights :- [{ X A' [Ta" ( : ) '] (5) The implications of this term are straightforward. For large values of the (weighted) average magnitude of the derivative, the overall error is increased. This term therefore causes solutions to be favoured where the dependence of outputs on individual weights is evenly distributed across the entire weight set. Furthermore, weight saliency should not only have a lower average value, but a smaller scatter across the weight set as the training process attempts to reconcile the competing pressures to reduce both (1) and (5). This more distributed representation should be manifest in an improved tolerance to faulty weights.... U 8 OJ U - 6 OJ :-S II! 4 II! :: Q. '" 2 5 '. '.. 1 15 nolse=o% - noise::;: 1 fjro noise = 2% ----- noise =3% noise=4% --- 2 25 Synapses Removed (' o) Figure 3: Fault tolerance in the character encoder problem. Simulations were carried out on 35 weight sets produced for each ofthe two problems at each of 5 levels of noise injected during training. Weights were then randomly removed and the networks tested on the training data. The resulting graphs (Fig. 3, 4) show graceful degradation with an increased tolerance to faults with injected noise during training. The networks were highly constrained for these simulations to remove some of the natural redundancy of the MLP structure. Although the eye/not-eye problem contains a high proportion of redundant information, the

Synaptic Weight Noise During MLP Learning 495 -- -- ndiseo% noise = 1% - noise = -._. noise 3% noise = 4% - - - I 1 L- -L o 5 15 2 25 Synapses Removed (%) Figure 4: Fault tolerance enhancement in the eye/not-eye classifier. improvement in the networks ability to withstand damage, with injected noise, is clear. 4.2 Generalisation Ability Considering the derivative in equation 5, and looking at the input-hidden weights. The term that is added to the error function, again averaged over all patterns, output nodes and weights is :- If an output neuron has a non-zero connection from a particular hidden node (Tkj "I ), and provided the input Oip is non-zero and is connected to the hidden node (Tji "I ), there is also a term ojp that will tend to favour solutions with the hidden nodes also turned firmly ON or OFF (i.e. Ojp = or 1). Remembering, of course, that all these terms are noise-mediated, and that during the early stages of training, the "actual" error fkp, in (1), will dominate, this term will de-stabilise final solutions that balance the hidden nodes on the slope of the sigmoid. Naturally, hidden nodes OJ that are firmly ON or OFF are less likely to change state as a result of small variations in the input data {Oi}. This should become evident in an increased tolerance to input perturbations and therefore an increased generalisation ability. Simulations were again carried out on the two problems using 35 weight sets for each level of injected synaptic noise during training. For the character encoder problem generalisation is not really an issue, but it is possible to verify the above prediction by introducing random gaussian noise into the input data and noting the degradation in performance. The results of these simulations are shown in Fig. 5, and clearly show an increased ability to withstand input perturbation, with injected noise into the synapses during training. Generalisation ability for the eye/not-eye problem is a real issue. This problem therefore gives a valid test of whether the synaptic noise technique actually improves generalisation performance. The networks were therefore tested on previously unseen facial images and the results are shown in Table 1. These results show (6)

496 Murray and Edwards t 1 : " I:: u 7 11 'iii -= 6 "'" '" E 5.,. ll-./..!:! 4 I 3 -.., 1.. -.- 2.. - -_.------------ perturbation =,(5 - perturbation =.1. perturbation =.15... - perturbation =.2... 3 4 Noise Level (%) Figure 5: Generalisation enhancement shown through increased tolerance to input perturbation, in the character encoder problem. Correctly Classified (%) Noise Levels % I 1% I 2% I 3% J 4% Test Patterns 67.875 I 7.46 I 7.416 I 72.454 I 75.446 Table 1: Generalisation enhancement shown through increased ability to classifier previously unseen data, in the eye/not-eye task. dramatically improved generalisation ability with increased levels of injected synaptic noise during training. An improvement of approximately 8% is seen - consistent with earlier results on a different "real" problem [Murray, 91]. 4.3 Learning Trajectory Considering now the second derivative penalty term in the expanded cost function (2). This term is complex as it involves second order derivatives, and also depends upon the sign a.nd magnitude of the errors themselves {flep}. The simplest way of looking at its effect is to look at a single exemplar term :- This term implies that when the combination of flep :: K t:,. 2 f T. 2 ({)2 Olep ) lep ab {)T ab 2 (7) is negative then the overall cost function error is reduced and vice versa. The term (7) is therefore constructive as it can actually lower the error locally via noise injection, whereas (6) always increases it. (7) can therefore be viewed as a sculpting of the error surface during the early phases of training (i.e. when flep is substantial). In particular, a weight set with a higher "raw" error value, calculated from (1), may be favoured over one with a lower value if noise-injected terms indicate that the "poorer" solution is located in a promising area of weight space. This "look-ahead" property should lead to an enhanced learning trajectory, perhaps finding a solution more rapidly. In the augmented weight update equation (4), the noise is acting as a medium projecting statistical information about the character of the entire weight set on to

Synaptic Weight Noise During MLP Learning 497 the update equation for each particular weight. So, the effect of the noise term is to account not only for the weight currently being updated, but to add in a term that estimates what the other weight changes are likely to do to the output, and adjust the size of the weight increment/decrement as appropriate. To verify this by simulation is not as straightforward as the other predictions. It is however possible to show the mean training time for each level of injected noise. For each noise level, 1 random start points were used to allow the underlying properties of the training process to emerge. The results are shown in Fig. 6 and 6 u S5 Q.,.. SOO 6 l= 45.5.. c: '".. 4...J c: i! 35 ::E 3 1 2 3 4 5 Synaptic Noise Level Used During Training Figure 6: Training time as a function of injected synaptic noise during training. clearly show that at low noise levels (::; 3% for the case of the character encoder) a definite reduction in training times are seen. At higher levels the chaotic nature of the "noisy learning" takes over. It is also possible to plot the combination of fkp ::. This is shown in Fig. 7, again for the character encoder problem. The term (7) is reduced more quickly 1. O.S.... i;j :> c -.5.. Q -1. 'tl.g -I.S.. " -2... -2.5 g I.<i -3. noise =7% SOO 1 ISOO 2 Learning Epochs Figure 7: The second derivative x error term trajectory for injected synaptic noise levels % and 7%. with injected noise, thus effecting better weight changes via (4). At levels of noise > 7% the effect is exaggerated, and the noise mediated improvements take place

498 Murray and Edwards during the first 1-2 epochs of training. The level of 7% is displayed simply because it is visually clear what is happening, and is also typical. 5 Conclusion We have shown both by mathematical expansion and by simulation that injecting random noise on to the synaptic weights of a MultiLayer Perceptron during the training phase enhances fault-tolerance, generalisation ability and learning trajectory. It has long been held that any inaccuracy during training is detrimental to MLP learning. This paper proves that analog inaccuracy is not. The mathematical predictions are perfectly general and the simulations relate to a non-trivial classification task and a "real" world problem. The results are therefore important for the designers of analog hardware and also as a non-invasive technique for producing learning enhancements in the software domain. Acknowledgements We are grateful to the Science and Engineering Research Council for financial support, and to Lionel Tarassenko and Chris Bishop for encouragement and advice. References [Taylor, 72] [Murray, 91] [Murray, 92] J. G. Taylor, "Spontaneous Behaviour in Neural Networks", J. Theor. Bioi., vol. 36, pp. 513-528, 1972. A. F. Murray, "Analog Noise-Enhanced Learning in Neural Network Circuits," Electronics Letters, vol. 2, no. 17, pp. 1546-1548, 1991. A. F. Murray, "Multi-Layer Perceptron Learning Optimised for On Chip Implementation - a Noise Robust System," Neural Computation, vol. 4, no. 3, pp. 366-381, 1992. [Matsuoka, 92] K. Matsuoka, "Noise Injection into Inputs in Back-Propagation Learning", IEEE Trans. Systems, Man and Cybernetics, vol. 22, no. 3, pp. 436-44, 1992. [Bishop, 9] [Hanson, 9] [Sequin, 91] [Murray, 93] C. Bishop, "Curvature-Driven Smoothing in Backpropagation Neural Networks," IJCNN, vol. 2, pp. 749-752, 199. S. J. Hanson, "A Stochastic Version of the Delta Rule", Physica D, vol. 42, pp. 265-272, 199. C. H. Sequin, R. D. Clay, "Fault Tolerance in Feed-Forward Artificial Neural Networks", Neural Networks: Concepts, Applications and Implementations, vol. 4, pp. 111-141, 1991. A. F. Murray, P. J. Edwards, "Enhanced MLP Performance and Fault Tolerance Resulting from Synaptic Weight Noise During Training", IEEE Trans. Neural Networks, 1993, In Press.