Happened right um so hello everyone good morning um today we will be talking about or this talk is going to be about spiking neural networks specifically i have in order to make sure that you know from this tutorial or education class we get the most out of this education class so i thought instead of covering both hardware algorithm and all those aspects Together i thought i'll streamline this education class mostly around algorithms and then of course some of the efficiency benefits that we get we will talk about it but mostly this talk is going to
be about spiking neural networks some um what has been uh some of the past trends and the present trends and how we are adding on to those trends and what is the future of spiking neural networks from an algorithmic perspective uh looks like right so that Is going to be what uh the outline of our presentation today uh now in terms of the logistics i think because this is going to be pretty much free flow so feel free to unmute yourself and stop me whenever you have a question or you can uh put a question
on chat and what i'm going to do is like you know every uh 15 minutes or so in every 10 minutes i'm going to check the chat if there are any questions i can uh um answer those questions but feel free to unmute Yourselves and post a question if you have anything and i think there is somebody who is doing looking uh the admin team here if they can just give me a cue point at any time whenever there is a chat in case i have not looked at it it will be great okay so
without further ado let's get started um little before we get started just a little background on me uh i am priya panda i'm an assistant professor in the Electrical engineering department at uh yale university um and my key focus area is on neuromorphic computing i have been looking at how to develop novel uh bio inspired algorithms specifically around spiking neural networks in order to enable the next generation of energy efficient as well as robust machine intelligence and at the same time from a hardware perspective we have been looking at complementary uh cmos as well as
Emerging technology based uh uh design of hardware for such spiking neural networks as well as standard neural networks and trying to see how much of acceleration we can obtain um so um before we kind of get into the talk i thought it would be a good idea to give a brief uh history of how neural networks have evolved and at each and every stage of evolution there has been very interesting levels of biofidelity um Between the neural networks and that of the brain so when initially in the 1940s when perceptrons came into being the idea
was that like you know that whenever you have any inputs as you see here you can pass them through a weighted summation operation and that weighted summation operation followed by a non-linearity and in this case uh in with perceptrons they specifically used A non-linearity of a threshold function um or a binary threshold function and they showed that you can do very simple classification tasks with such perceptron based networks now artificial neural networks which are sort of which came in the 1990s and it so happens that the convolutional networks which began the deep learning revolution are
all based on these artificial neural networks but if you look at it they also have the same uh Fundamental crux that means they still have the inputs that pass through a weighted summation operation right and here the only change they did was that instead of having a thresholding non-linearity people started using more uh continuous forms of non-linearity and by that uh there are certain different forms of non-linearity people experimented with sigmoid tan h rectified linear unit or value as um you must all be aware that That is probably uh that is uh currently the most
used non-linearity in any deep learning network right and as i said these convolutional neural networks which ultimately began the deep learning revolution and now have kind of taken off on another level um and that can do a lot of tasks right not just recognition but beyond recognition tasks for example segmentation Even like a lot of natural language processing based models they not only rely on recurrent base models but they have some kind of a convolutional hierarchy also the transformer based models etc they all have some sort of kind of convolutional hierarchy and the idea is
that these convolutional networks they of course have some interesting operations like a convolution operation a cooling Operation that helps them do image processing in in a much more efficient manner but at the end of the day they still are relying on the same operations which is the weighted summation operation followed by a non-linearity and in this case again the non-linearity that they use is radio now we all know that deep learning has broken all records in the recent past i mean there was alphago i'm showing alphago by google deepmind uh in 20 Uh in 2014
they showed that um the alphago with google deepmind was able to uh defeat the then go champion lee siddall in a go match and the kind of points they had was alphago was uh four points ahead of lee sedol so now that's a truly tremendous feat on the part of ai and if you look at like very recent announcements from the deepmind team they have come up with this uh techno uh this algorithm called alpha fold that Allows you to do some dna genome sequencing very very fast and it's all ai based right ah so
now those are really tremendous feats on the part of ai but one question you've got to ask is when alphago is playing against lee sedol what kind of resources is alphago expending in order to defeat lisadore right so you know alphago like these are numbers we took from some of their announcements that alphago was running On around 2000 cpus and 300 gpus and consuming around a few like you know hundreds of watts of power on over on the range of around one megawatt but lisa does brain or an average human brain in general expense 20
watts of power and we just and in that case like lisa doll's brain is not only play a playing the go thing but he's probably you know understanding how to make the next moves he's trying to drink coffee so all those things like you know our Brain now we just don't recognize right we are we are we do a lot of variety of tasks the fact that i'm moving my hands the fact that i'm talking the fact that i'm thinking as to what is my next line all of that is happening within a power budget
of 20 watt so this is pretty incredible so our brain does a lo a variety of cognitive tasks but at a very low power budget right so the basic idea of the next generation of neural networks that are being Explored today is to see actually how can you get brain like functionality but with the brain like efficiency so with artificial neural networks convolutional networks the focus was on how to get more brain like functionality and people have done uh there's a lot of work on machine learning that has come up that have shown that you
can really really uh start um doing a variety of tasks and even getting super human performance of surpass human performance On some of these tasks but the efficiency was still not a central goal in some when these algorithms came up and more and more right now and as artificial intelligence is being thought thought of as you know becoming more ibukitos as you want to embed intelligence and all technology that surrounds us power efficiency or energy efficiency becomes a key concern because more or less today all the devices that are Surrounding us today these are all
battery powered devices so they have some kind of a budget limit in terms of how much competitions you can expend for a given amount of time right so to that effect spiking neural networks kind of offer a very interesting and an elegant solution of course they are brain inspired so if you think of how a spiking neural network looks like here you see that in this case all the inputs right they Also pass through a weighted summation operation and then here the um a question is that what kind of a neuron you use so we
use a different kind of a spiking neuron instead of a relu non-linearity function we use a spiking non-linearity function and this neuronal functionality is generally implemented using a leaky integrated fire or integrate fire neuron and i'll talk about that later but one thing to note here is that Inputs and outputs are produced in the form of spikes that means so spikes are essentially a one or a zero event right so when a spike is present that means there is a one being processed and if a spike is absent let's say here in this region there
is no spike present that means the zero is being processed right so if you think about it we are able to do this very efficient event driven sparse event Driven processing so a neuron will only be active whenever it processes a spike so you know by handling computations and communication using events or using these binary sparse events we can actually reduce the computational cost of these neural networks by orders of magnitude and that is why a lot of there is a lot of interest in seeing how spiking neural networks can enable the next generation of
intelligence algorithms Now again to kind of give you an a more motivation around why is efficiency why is efficiency or energy efficiency such a key concern so i'm going to show you a case study that was done from this group at purdue and what the case study uh dealt with was that they conducted an object recognition application on a smart class with a state-of-the-art accelerator so essentially uh they took a google edge Tpu and they wanted to see what is like you know what is the kind of latency throughput and like you know the power
constraints that this google hdpo has right so they essentially implemented this particular deep neural network which is called retina which is a pretty standard uh neural network for doing object recognition and they found out that the performance on this edge tpu was around 13.3 frames Per second and as per when they tried to measure like you know when they were running this recognition application on the edge tpu how much what was the kind of battery life they they got so they found out that you know in this edge tpu the energy per operation was around
0.5 pico joules and to that effect based on the overall throughput they could calculate the energy per frame and based on that for a battery which has uh used a life Usage of 2.1 watt hour they found out that if you keep on running this object recognition application continuously on this edge tpu the time to die for that battery is going to be 64 minutes so this tells what does this tell you that if you have this edge tpu in let's say your mobile processor or a smart class or something you have to keep on
recharging that device every 60 minutes right and that is not something which is feasible or practical right so you Really need to think about how to bridge these inefficiencies or how to get rid of these inefficiencies and in order to understand that you first have to ask the question where do the inefficiencies come from they can come from the fact that you know maybe you have an inefficient algorithm to begin with the kind of hardware architecture that you are using has some kind of inefficiency or it is not able to implement the software in The
best manner so it's not able to extract out all the throughput of the efficiency that you want it to extract and of course can you come up with better circuits and devices like you know can you look at more efficient uh technology um and the such that the physics of that device the physics of the technology will itself match with some of the functionality that you are wanting to implement on an algorithmic level So so so the question is that in order to kind of you know think about how to bridge these inefficiencies gap people
started thinking about you know can we take cues from the brain and why the brain because it is the most like if you think about intelligence i mean you know brain is the most efficient and the most powerful natural intelligent machine out there so it is but natural that we will take Inspiration from the brain in order to understand how we can do intelligence in a much faster in a much efficient manner so the cues that we want to learn from the brain is that you know can we come up with better neuronal models because
in the brain of course you know um computation doesn't happen with use using these kind of values and all uh what they say is that computation in the brain the computation is much more timing specific that means when It's also spike driven which is similar to what spiking neural networks have and the neuron itself is more like a stochastic neuron it produces spikes in a stochastic manner it can be a discrete neuron like a leaky integrated fire which i'll talk about so can we kind of you know by integrating such brain like neuronal functionality will
we be able to bridge the inefficiency gap is the question secondly learning algorithms right like You know is back propagation the best learning algorithm there is or are there some interesting local learning algorithms that we can use that can actually improve um the training efficiency as well as the inference efficiency as well as make the network more capable right when i talk about learning algorithms i need to think about you know how to improve the generalization behavior of the network etc and then of Course the network topology i mean in the brain everything is not
feed forward there's a lot of feedback connections and what they say is that the number of feedback connections are kind of kind of overpower the number of feed forward connections in the brain and today if you think about most of the neural networks that we work with they do not have any feedback connections as as such right so how to incorporate feedback maybe feedback can play a big role in Terms of error resiliency as well as maintaining the energy and finally of course when you think about the computing principles of the brain i mean there
is not nothing synchronous in the brain everything is asynchronous this neuron can fire at one time so this neuron is doing its own thing at that at another time step and of course we know that in the brain the memory and the compute and by memory means that like you know whatever like In the brain the memory is corresponding to the synapses right that's where all the learning happens and the compute in the brain corresponds to the neuron which sends information or receives information so the memory of the neurons and the synapses in the brain
are very very tightly integrated and co-located but if you think of a one line processor that we have today the processor and the memory are separate from each other so there's a lot of interesting work going On around near memory computing in memory computing and i think there is some interesting tutorial after of in the 11 o'clock session on such um in memory computing and the near memory computing based works and that can also give you that orders of magnitude of efficiency that you would like when you kind of go for this kind of algorithm
hardware core design uh in order to do brain inspired computing now as i said like you know while the topic of spiking Neural networks can span over algorithms hardware and across the entire computing stack from devices to circuits to systems to architectures and then algorithms but uh uh just to make sure that we that is um like we take away most of the information from this talk i'm going to focus on the algorithm aspects of things okay right uh is there other any questions so Far okay if not then i'll move ahead and just repeating
again if you have any questions feel free to unmute yourself or put a question on chat and i will be checking the chat intermittently okay so before we move sorry uh before we move on to like you know uh spiking algorithms first of all i want to kind of talk to you about what are the major differences uh between a standard artificial neural network that We all know we have worked with extensively versus a spiking neural network right ah so if you look at it the spiking network in an artificial neural network in terms of
configuration in terms of the network architecture that we talk about right can be the same so i'm showing you an example of a fully connected network here but we can have the same vgg like convolutional networks or a resonant like convolutional network Architecture so all of that can remain the same the network configuration will be the same the only thing is that here inputs and outputs are real valued in an ann whereas in an snn the inputs and the outputs are spikes right and there are different coding techniques that are used in order to convert
a corresponding input into a spike train so generally what we use like you know the most widely used coding technique is called Rate coding wherein sorry uh wherein you actually uh produce a spike train where in the number of spikes in that spike train will be proportional to the value of the input so let's say you know you have this rgb image with some pixel intensities in across in at every pixel location so you produce a spike ring for each and every pixel location okay where in the frequency of the spikes or the number of
spikes in that spike train will be proportional to the pixel Intensity so higher the pixel value higher will be the number of spikes and lower the pixel value lower will be the number of spikes which is something that is captured here also so for a 0.5 you will have more number of spikes whereas for a point one you have you will have less number of spikes now when should we produce a spike right and when i say spike this basically means an event so all these red lines means that i have a Value of 1
coming in whereas if there are no red lines here that means the value of 0 is being is coming in right now the time at which this particular one will be produced spike will be produced that is not in my hand that is produced all randomly so i use a poiso distribution in order to generate these spikes randomly right um so there is some kind of a stochasticity in the spike generation process ah but okay ah Now that we know like you know the structure is the same uh how we process the inputs and how
we process the outputs is going to be different right here it is real valued and snns it is all uh spike based ah now if you look into the neuronal functionality itself there you will see that there is some interesting again differences here now again in both the cases uh the inputs are passed through the weighted summation operation which is the dot Product operation okay and now of course we know that in an artificial neural network or a n our non-linearity that we use is a rectified linear unit non-linearity so after passing through a value
it will produce some real valued output whereas in a sorry i think there's some animation problem here but in an snn however we know that after summing these uh after wait may after the weighted summation operation on the input spikes You still have to produce an output spike right so you need to change the neuronal functionality and the neuronal functionality we use is again a bio-inspired neuronal functionality which is called leaky integrated fire so what is this leaky integrated fire function it's essentially what we have is that we monitor this value called membrane potential which
can be you know equivalently thought to Be the activation function if i may say so so the activation function in this case is the membrane potential and the membrane potential of this neuronal functionality or neuron is going to increase that means it's going to integrate or leak based on the presence or absence of spice so whenever there is a spike it in it integrates and whenever there is no spike it leaks right so based on this behavior the leaky the membrane Potential of this neuron right it will go through this kind of a leaky integrated
fire behavior and whenever the membrane potential crosses a user defined threshold which i mark by v thresh that is the queue for the output neuron to produce a spike and this spike is then communicated to the rest of the network okay so that's how so this is how you are able to take the information in a spike based manner process it through weighted summation operation and Process it then through the leaky integrate five functionality again to produce spikes from the output side and this is again communicated to the next layers of the network so if
you go back and see like you know how the neuronal functionality of a spiking neuron looks like you have the integrate fire which is the membrane potential but there is a thresholding function right v mem greater than v thresh is this this particular module or Function is going to determine whether you produce a spike or not right so if you have a thresholding function there are going to be some problems when you do gradient descent and why am i talking about gradient descent because gradient descent is the go-to algorithm today right when you are trying
to train your neural networks any kind of neural network whether it's a recurrent network your feed forward convolutional network or Anything you use some sort of a gradient descent based algorithm right as long as you're doing supervised learning right um and for gradient descent you actually need to calculate gradients that has to pass through all these neurons so you know all the neuronal functionality has to be differentiable but if you have a thresholding function as a part of the neuronal functionality that is not going to be differentiable Right so because of this non-differentiatability there is
a lot of um limitation in terms of how can you train spiking neural networks what is the best training algorithm for such spike based neuronal networks is the question right and um going forward today's talk or education class is going to be about like you know the past present and the future of training how what people have come across in terms of training spiking Neural networks what are the different kind of innovations people have done different kind of techniques people have done and then we will be also talking about some of the interesting aspects of
robustness and inherent interpretability that you can actually uh use um you can actually interpret using uh the timing information in the spiking neural network so so this talk is going to be kind of you know answering this question mark here as to what are the effective Ways of deploying or training spiking neural networks okay um no question so far on the chat um so as i said like you know um to in order to deploy a spiking neural network we have to process information in the form of spikes right so coding techniques that take any
input because we all have today we are working with digital inputs right these are like real valued inputs that are coming in at least from the uh case point of images Everything is real valued right ah so how can you convert a real valued input into a spiking input remains a question and there are several coding techniques that have been used as i said like you know uh rate coding which is where that means higher pixel values will produce more spikes uh is kind of the most popular way of uh employing a coding scheme and
that's because it's more widely used because it's easy to implement on top of that it Gives you very good results whereas with there is another coding scheme called temporal coding that means if a pixel has higher value that means it will spike first and if a pixel has lower value it will spike late but it will only produce one spike so the spikes are going to be in extremely sparse uh and that's going to be very very energy efficient but till so far temporal coding techniques have not been really there has not been any work
that has Shown the scalability and the kind of um high performing applications with temporal coding techniques so trade coding becomes like you know in fact in our talk most of the algorithms that i'll be talking about focuses or uses rate coding now in this image i just want to kind of showcase like you know when you are taking an input image which is this rgb valued image and putting it in the spike rate spike dimension in the temporal dimension And essentially what you are doing in the temporal dimension you are binarizing it right so at
every time step you are binarizing the input image and producing some ones and zeros right that's what you are doing uh but what i want to show you is that the rate put it spike image is not losing any information so here in this case at t equal to 1 i am showing you what kind of a binary snapshot you get when uh you rate code this image at the first time Step then at t equal to 5 i'm just kind of adding up or submitting all the in events that i would have produced from
t equal to 1 till t equal to 5 and showing this particular value so at every time step for for t greater than 1 t equal to 5 or equal to 10 or t equal to 50 i have summed all the events or all the spike inputs from all the pixels locations etc and i'm showing you how the averaged or the summed image looks like at t equal to 50 or the summed dimension that it Looks like at t equal to 10 or 5 right so if you look at like the original binary image right
that you produce at every time step whether it is equal to 1 or something it's going to be actually very noisy because it's just ones and zeros but when you start collating or submitting all the information right you see that the great coded image more or less resembles the original image and if the number of time steps is large then there will be hardly any loss of Information between the original image and the this rate coded images hi is there a question here okay if not so um so as i was saying like you know
there hardly will be any loss of information but as the number of time steps increases you have to think about it right now that earlier in an a n you had to let's say you take a trained a m you will pass this uh Trained in and only once through the uh network and you will get some inference result out of it right but in an snn now you have to pass the binary snapshots that you get the rate coded snapshots that you get for 50 times 100 times depending upon how many um such coded
images you would have produced right or what is the total time period of processing so the latency of processing or the latency in case of inference latency in case of straining And sn increases and that is going to give you a energy overhead also right so you really need to be careful as to what kind of latency you work with right because at the end of the day that is going to determine your overall energy and if your cross process well it's a thousand time steps or two thousand time steps then for all you know
a spiking network will be more energy consuming than an a n because of the fact that you have to process all these binary Snapshots but thousand times through the same network so this is not going to be very efficient okay uh just a second right uh so uh what next we will talk about as i said is like different training algorithms that we have um uh and i'm kind of going to give you a very historical view as in like you know instead of just looking at The present uh algorithms that are like you know
that have been uh that have come up in the last one or two years i also want to kind of tell you like you know uh kind of give you a very historical perspective as to what initially start people started focusing on in case of spiking neural networks and then what people are focusing on now and what kind of what are the future Directions so in terms of training algorithms broadly there are three types of training algorithms that people are focusing on today one is stdp based learning as you can see here let me again
put out my laser pointer yeah one is http based learning as you can see here so it's an unsupervised learning rule and i'll say i'll show you how exactly stdp is done um now because if it because it is unsupervised so that Means if you think about it as spiking neural network if you have implemented a spiking neural network on hardware this network will learn on its own without any supervision you don't need to give it a label your training data can come in and then the network will start learning on its own so it's
a very like you know for a hardware research so it was a very very uh what do you say um attractive learning rule because people started thinking oh my god you can do Real time online learning using this kind of unsupervised local learning group but the problem was that we really could not expand uh the imp uh uh spiking as http based learning to deep network so the kind of application or the kind of uh tasks that we could do with the http based learning was very small like you know simple digit recognition on uh
mnist data set and all of that and very shallow networks we Could work with two layered or three layers so then people were like you know we cannot really take this forward so in order to improve the applicability and widen the um usage of spiking neural networks for more diverse scenarios what people started looking into is conversion based networks so your a into snn conversion based networks are pretty much today the state of the art in terms of You know snn deployment so in conversion bit networks again as i as i'll show you that you
know the advantage here is that you take advantage of standard and training that means you take a trained a n and then you use some kind of statistics to kind of transfer this a n into an s n so the weights will all remain the same but you have to convert a relu neuron to a spiking integrate fire or a leak integrate fire neuron and there are different methods that have Come around for this also now then people said like you know with conversion is good but there are some limitations because of the fact that
in conversion we are really not training this network in a spike based manner so all the inherent advantages that the spiking neural network should have because of its temporal statistics right because we are putting information in a temporal manner so there will be some interesting efficiency related things Robustness related things that will ha that will come around in uh in a spike based network but a conversion network is not being trained in us using spikes right so there will be some inherent limitations so to that effect people were like you know i want to go
for a back propagation a spike based back propagation based spiking neural network deployment so you train the network from scratch using spike based back propagation and the good thing is That people then started seeing that yes you can get good accuracy or reasonable accuracy but not as good as a converted network and another thing about conversion as i will show you is that people when initially people started working on conversion the number of time steps that was required for processing was very huge of the order of thousands and again with back propagation you could reduce
the number Of time steps to kind of order of hundreds uh but the problem was that like you know until last year um there was still a a lot of discussion around limited scalability of such um back propagation based spiking neural networks but i will talk to you about some of the recently proposed techniques that have come out of our group that kind of addresses the limited scalability and kind of does more varied applications for Spiking neural networks with back propagation so we'll first look into uh stdp training and then we will move on to
the next set of training techniques so with stdp training as i said like we are always using the standard leak integrate fire neuron here as shown okay and this is the equation that is used to implement a leaky integrated fire neuron so you have this kind of a membrane potential right This v is called the membrane potential and this membrane potential integrates on leaks based upon the incoming spikes coming in and then when it reaches a threshold it will produce a spike that's that's all there is right now with stdp learning the interesting thing is
that you are going to look into the information in terms of temporal difference so let's say you have these kind of configuration Three input neurons connected to one output neuron and let's say all these neurons have spiked at these time instances as shown so i1 and i3 have spiked and oven has piped here okay now what we do with http learning as i said it's all about looking into temporal difference to do the learning so here one when you see the difference between o1 and i3 you see that over has spiked right after i3 so
intuitively it makes Sense that you know there might be some correlation between the spiking of o1 and the spiking of this input i3 so because if there is a correlation then what we will do is correspondingly the weight w3 that connects i3 to o1 we are going to increase it okay and and we are going to increase it by an amount which is shown by this behavior here okay so what this tells us is that is the if the spike timing differences between the output and the input is very low so it's Closer to zero
i'll have a very high weight update right so i'm going to make a larger change to the weight because if there is more correlation you want that weight to increase more right because intuitively it makes sense that you know that correlation is telling us that this neuron and these neurons have some correlated spike activity and there is some interesting information to learn there whereas on the other hand If the spike timing difference is large between the input and the output right where which you see in this case between o1 and i1 right let let's say
there is a larger spike timing difference so you are not going to make a very large change so w one is not going to have a very large change now lets say on the other side also like you know use you see that you know over a spider lets say i2 would have spiked after o1 this means that there is no correlation Between i2 spiking and o1 spiking because you know if if an input is spiking after the output has spiked there is no correlation right and for all you know there is a decorrelation there
that means what if whatever input whatever input information you are passing through from i2 to o1 that should not be reinforced that should be negatively uh negatively updated so what we do is that You know depending upon the uh depending upon the spike timing difference again we will make a negative weight update on w 2 because there is a d correlation here so the main idea with this stdp or spike timing dependent plasticity learning is that you are looking at the temporal difference between the input and the output neuron spiking and based on the temporal
difference you will decide whether you should increase the weight or synaptic strength or you Should decrease the weight or the synaptic strength so correlation means increase and d correlation or not no non correlation means decrease now so that's the basic idea with stdp right it's all unsupervised you just look at the monitor the spike so you pass inputs to the network you look at the output activity and then you let the output activity in the input activity tell you whether you should increase or decrease the weights and you should do It you know in an
iterative manner for certain number of time steps and you see that there's some interesting unsupervised learning that happens okay so now if you look into like one of the first works around stdp learning was proposed by a team in europe and this came in 2015 and they were the first people to show that you can do unsupervised digit recognition uh using this pipe timing Dependent plasticity rule right so what they showed was like you know you take like they just should fit for digit recognition task as i said you so they took some they took
an input image okay and as i said we are doing great coding that means if an input image has a pixel intensity a high pixel intensity it will produce more spikes whereas if it has less intensity so in this case 50 has less intensity it is producing less spikes and if it has a high intensity it Leads to more spikes right now what in the spike in in the spike time independent plasticity based learning rule the kind of network architecture you use uh is a two layer architecture as i will discuss right now and this
is pretty much the standard architecture that is used in all kinds of http based words most of the http based works use this okay so what you have is this kind of a fully connected configuration Between the input as well as the output and in this case the output layer is called the excitatory layer so it com each of these output neuron is a leak integrate fire or a lif spiking neuron so and all the pixels in the input image are fully connected to each and every output neuron here okay so that's the thing and
what we do is that using so once we start once we rate code this image and pass it and and pass the red coded spikes uh to the excitatory layer We let the network itself kind of figure out how the which weight should be um reinforced or increased or which weight should be decreased based on this timing correlation or the timing difference and then the network figures out and interestingly enough what we find sorry interestingly enough what we find is that each and every excitatory neuron here learns some generic representation of the input image okay
Now there is one caveat here because of the fact that you are doing unsupervised learning you really have to think about how to normalize the spiking activity and make sure you are still able to do competition like competitive uh learning when you are doing this so to that effect what people came up with is that in addition to having this excitatory neuronal layer here which is similar to a fully connected layer i will also have this Inhibitory layer and what is the role of the inhibitory layer is that whenever this neuron spikes right it will
send in a signal to the inhibitory layer neuron corresponding neuron here right and that neuron will then inhibit all the other neurons in the excitatory layer from spiking so what is this telling me is that let's say this neuron has spiked when i when it sees a digit input nine okay that means i want this neuron to learn nine actually without And every other neuron should not learn a line that i want to inhibit the activity or learning capability of other neurons and i want to make sure that when if this neuron picks up an
ion to learn then this is the only neuron that is picking it up because other neurons should not pick it up because i'm then kind of you know redundantly learning information so that is the basic intuitive idea here of doing this inhibitory or lateral inhibition but the Idea is that by doing this you can introduce competition among the excitatory neurons to learn different inputs so if this neuron is learning something it will inhibit all the other neurons from learning the same thing similarly if this neuron is learning something it will inhibit all the other neurons
from learning the same thing and on top of the lateral inhibition we also employ something called homeostasis now remember like in this case it's a Dynamic spiking network right we really do not touch the spiking neural network during the training process there is no supervised signal that will tell us oh you know the network has learnt or something so you really have to give it some of these extrinsic control mechanisms will allow the network to learn in a competitive manner even though you have not provided a supervision a supervision signal So what we do is
that with homeostasis what we do is once a neuron let's say has spiked right it has gone through its membrane potential behavior and it has spiked it reaches the threshold so the neuron in the excitatory layer spikes for that same neuron we will increase its threshold now what that tells us is that let's say this neuron has learned a particular pattern digit of nine when another another pattern of nine comes then this Same neuron should not try to become greedy and learn everything right so by increasing the threshold of a neuron that has already learned
something you will then allow the other neurons then to pick up some patterns to learn also so you know basically we enforce competition using lateral inhibition and we make sure that all neurons have this capability of equal learning right every neuron has a chance to learn by doing homeostasis so And these two mechanisms homeostasis and lateral inhibition are very bio-inspired mechanisms that means in our brain also there is some form of homeostasis and lateral inhibition that happens um and um because of the fact that this was one of the first works that showed the effectiveness
of this bio plausible learning mechanism on a bioplausible architecture so there were a lot of inspirations from neuroscience in building this Now as i said like you know after after you start doing stdp what i'm showing you here is the representative patterns that are being picked up by each and every neuron in this excitatory layer so you know you have to do this sadp training over a couple of iterations and you see if you just focus here if you see that initially all none of the neurons would have learned anything relevant but after a few
Iterations of training all these neurons will pick up something relevant and by and in this case since it is doing digit recognition so that means all the neurons are going to pick up some interesting digit patterns and if you look at the accuracy when we measured the accuracy of the network we found out that you know for a 1600 neuronal excitatory layer we found out the accuracy was 92 percent and for 6400 neuron excitatory the accuracy was 95 Now this was not enough right like for mnist the fact that the accuracy is coming out to
be 95 percent when we know the best accuracies go up to 99 percent for mnist that means there is a problem here we really cannot take this up and scale it to larger data sets there is too many dynamic parameters in this problem so uh so that so some of our later works that came uh came out was focusing on what are the advantages and disadvantages of this spike timing Dependent plasticity learning and we found out that with the main disadvantage was that we cannot really go to large number of layers or deeper layers with
stdp learning and even if we want to train a couple of layers more than one or more than two we really need to do like every layer has to be trained in a greedy manner that means first you train layer one with stdp then after that you train layer 2 then after that You layer layer layer 3. so you do each of these learning of layers locally and that really cannot give you a lot of interesting results and of course we still have to have some supervised back propagation at the classifier layers it's not like
so you can train the convolutional layers in http manner but finally when it comes to the classification task you still have to do some supervised back propagation so The main disadvantage was the scalability then the limited application that we could get so of course there were some interesting advantages mostly from a hardware point of view you could do online learning on hardware using this unsupervised role right and because you are you're not doing any gradient descent here right you are literally just finding out the timing difference so correlation is what helps you to do this
learning so it so Happens that correlation is better i mean you know if having a gradient calculator on hardware is much more energy consuming than just fi having a correlation module on hardware so that's what i have written correlation transgradient calculation from a hardware perspective it's going to be more efficient and of course it's more suitable for edge learning and inference because you can do online learning but as i said But there is a caveat here that the applications are very limited so the question was then like you know can we like is the stdp
then is absolutely you know is there any relevance to stdp so what we asked was can we utilize this temporal property to do something more and i'm just going to very quickly go over the slide because this is something of one of our previous works which showed that you know Actually this temporal property can be utilized in some interesting way to do continual learning okay and by continuing learning what we are trying to do is that let's say you have this network which has resource constraints that means you have a fixed size network you cannot
grow the network but you have to keep on learning new information as and when it comes so how do you do it now one simple idea is that can we forget something unimportant or Old in order to learn new information right so that is the key idea that we utilized and we came up with this variant of synaptic uh spite time independent plasticity called adaptive synaptic plasticity which we uh which was which allowed us to do learning to forget now what was learning to forget again as i said that we have constant number of resources
so let's say in this case i have just nine neurons to learn and to learn with okay In this http based network now if i learn digit zero followed by digit one followed by digit two in this kind of a continual manner i see that after all neurons have picked up zeros there is no wait for it to learn one without going through overwriting of information or over learning of information and by the time it learns digit 2 it has completely messed up what it has learned so that like you know The network is completely
rendered useless at this point of time but if i can so this is this problem is called catastrophic forgetting some of you you are aware of continual learning would be aware of this term called catastrophe forgetting but what we find is that with adaptive synaptic plasticity our network learns in a very interesting way that means it keeps on forgetting or reorganizing its resources to learn new information So when uh is let's say in this case it has learned digit zeros first then it forgets see some of the zeros to learn the new information one and
then when digit two comes because zero was the older one and the one is the most recent information it has learned it will forget zeros and ah and to learn the twos and keep ones in that so this is what we were able to do with our control for getting on learning to forget mechanism with adaptive Synaptic plasticity and this is again using an unsupervised local learning rule the same two-layer shallow network with excitatory neurons lateral inhibition homeostasis that i talked about right so there is there are some interesting properties of spike time independent plasticity
as i said in terms of lifelong learning but we cannot really extend it to large stars like imagenet Doing the imaginative recognition or segmentation etc so with that effect then we were like you know let's now move into conversion and again one of the original works of conversion uh was shown in 2015 uh but later on in 2017 and 2018 um there were some more interesting conversion works came up that kind of showed the scalability or like you know you can use this conversion technique in order to deploy Essence of any size that means you
can take any a n and convert it to an sma okay so i'm going to be talking about one of the most widely used conversion techniques which is called threshold balancing but before we do that i just want to kind of take a one minute pause here and ask if there are any questions uh anything that we have talked so far any questions here okay so If there are and then maybe we can uh proceed um so yeah as i said like oh there is one question okay shale the uh dave has asked this question
threshold in stdp is same for all neurons when we increase yes uh the threshold is always the same yes uh we thresh across all neurons in the excitatory layer is always the same that's a good question and thank you for Asking that yes any other questions okay uh maybe then we can um uh continue or resume uh so as i said like we look into conversion so the main idea with oh sorry uh aisha siddiqui has also asked the question if the neuron forgets the past information then will it not affect the learning yes it
will it will affect the learning so uh let me go back here and show you that in this case if It is if it is forgetting the past information then that means the idea is that that past information is not relevant for your final task that you are looking at right because think about it this way that you have deployed this network on some real-time environment and in this real-time environment it is it keeps on getting flooded with new data new data new data now the idea is that for the neuron to understand what is
the data that i need to retain versus What is the data that i can forget right in this case the neuron decided that 0 was probably something that i can forget and i need to retain more newer information and that's the context in which i applied the control for getting but let's say maybe your i am now your problem statement is little bit flipped that means whatever information comes early that is the most relevant one and whatever information Comes later is the like you know it's not relevant it's the insignificant one so here the control
for getting will make sure that zeros are always written one is always written and two may not even it may not even pick up two probably you know it will retain all the zeros and probably pick up one one two here right so you can actually control the environment of forgetting in a way in which your problem asks you to i hope that answers the question aisha But yes definitely it will affect the learning how can we in implement the leaky and integrate concept of lif layer in hardware yes it is an rc circuit uh
in hardware the liquid integrate function will be a simple rc circuit right um but you can also think about it using an adder and then having a constant leak so what we do also is like you know If you don't use a rc circuit or something if you are using a more digital module rather than an analog module ah then you want to kind of have this because the integrate function is nothing but an accumulating function right so an adder function and then you will also have a a little bit of a subtracting amount which
is the leak function so you can implement it using this accumulator subtractor circuitry in digital or rc Circuit in an analog manner i hope that answers the question aisha okay great um if there are no more questions then i will move ahead uh as i said so with conversion uh the idea is that you take a trained a l and then convert it into an snn okay so scaling up to large tasks that was not possible with stdp is now possible okay and of course we maintain the energy efficiency because we are still doing event
driven processing uh the Good thing is that the burden of training is done we really don't have to think about how to go around this thresholding functionality and all of that we can definitely use existing frameworks like pytorch tensorflow because we already know these frameworks are already available for n and training and we are definitely taking the train in and then doing something in order to convert it into an sn so what is the goal with conversion given the trained Weights of an a n we need to convert the relu neuron to an integrated fire
neuron okay so in this case uh there has been some recent works that also do conversion from radio to leaky integrate fire but i'm going to be talking about the um original work that did this transfer from radio to integrate fire and scaled it up to image network tasks okay but essentially what do you mean by integrate fire neuron integrate fire Neuron means that the leak value is uh one right so instead of having some kind of a leak value which is less than 1 which you will always multiply with your previous time steps membrane
potential now you will have a leak value which is equal to 1 right um so if you see here that the idea is that we want to replace value with an integrated fire neuron and all it comes down to is statistical matching so it's very simple so if you see here That this is the value neuron right y is equal to max of zero summation of the wx and an integrated fire spiking neuron looks like this that means the membrane potential at time step t plus one is dependent upon the membrane potential at time step
t so here this value is one if there was a point nine nine point nine eight or something that means there is a leak of 0.99 that means at every time step that it leaks by ten percent if it is point Nine and if it sorry one percent or if it is point nine eight it leaks by two percent etc and then of course it takes the summation um operation which is the w multiplied by the spikes coming in x t now if input x is 0.5 then the expected value of x over all time
steps that means when you average the total number of spikes divided by the total number of time steps that should be equal to 0.5 and that's what rate coding is able to give you this statistical transfer is Achieved by with rate coding because that's what you do now the question is that let's say you have a neuron here which is a relu neuron it gets so your x gets multiplied with a weight of 0.5 your value output is 0.25 here then the idea is that with your membrane potential integrate fire spiking neuron uh functionality if
you have the same weight because the weight will get transferred right from a trained a n to this converted snn the Weight will be the right all you need to make sure you do is that the expected value of the output that means the total number of spikes that you produce divided by the total number of time steps right that you process it for should be also equal to 0.25 okay this is what you need to do now how do we make sure we do that now it so happens that if you think if you
look at the value function y is a function of x then this y As a function of x if you just plot it the slope of this line is going to be equal to w because y will be equal to w x right in this when when this is greater than 0 so the slope of this line is w and if you think about having an equivalent statistical transfer between relu and integrate fire neuron so if you look at expected value of y versus expected value of x and you see the slope of this line
the slope of this Line not only depends upon w but it also depends upon v t h that means depending upon how you set the threshold value of the neuron you will produce that many number of spikes or that many less number of spikes so the answer of balancing or matching value to the spiking neuron or transferring value to the integrated fire neuron lies in balancing bth so if you find the appropriate value of vth when you are doing the conversion you will be Equivalently able to convert the anon into an snn without any loss
that's the basic idea and how do we make sure we select the right threshold and this work was uh this work use this technique called threshold balancing so the idea is that for every time step right for depending upon how the inputs come in let's say i'm just showing you an illustrative example for every time step i just measure the membrane potential here And my threshold is set as the membrane potential that reaches the highest value at a given time step so i take the max of the membrane potential that i observe at every time
step across all d okay and why what is the heuristic reason or the intuition behind using this kind of a metric for setting the threshold because we know that maximum input will definitely cause a neuronal firing at that time step ah and anything in Between we never know if if i set the vth to be here or vth to be here let's say right then i don't know whether my new neuronal input will fire or not right if i set this kind of a threshold and also i am always um making my network more vulnerable
to learning more like you know to learning uh very less information if i set a very high vth and if i set a very low vts like this or this It means that you know every neuron can have this spiking capability for all the inputs coming in that means there will be no information selectivity so by setting my threshold corresponding to the neuron which has the maximum membrane potential and setting the threshold value equal to that maximum membrane potential that you reach at a given time step that's how you are able to kind of do
this equivalence transfer okay so now coming to the results which Kind of are very so it's a very simple technique that means for every layer you just so let's say you have con player 1 you pass rate coded inputs look at the membrane potential across all time steps then set the threshold of that layer corresponding to the maximum membrane potential you reach and then now you go to con layer 2 so then now that you have set the threshold of the first layer you know the spiking activity that will be coming from the first layer
now and that Spike new spiking activity sent to the second layer and then you again set the threshold so you layer wise set the threshold in this kind of a converted uh spiking neural network and we find out that interestingly enough with this conversion mechanism we can deploy 16 layered vgcg networks or 20 layer resonant networks and the kind of error rate that you get is pretty much like negligible when it when you think in comparison to an a n so we get we see That like you know as compared to an a n n
or an s as compared to an a n s n receiver reaches like you know um state of the art accuracy or error values on data sets like c 10 c 500 imagenet etc and if you see some interesting spike activity trend you see that the total number of spikes per neuron whether it's for a vgg network or a resonant network the total number of spikes reduces as you go deeper into the network that means the earlier networks Have a larger spike activity and the deeper networks have a very small spike activity and that sparsity
actually increases with depth and that actually leads to some interesting energy benefit so we find out that you know the 16x reduction in reduced activity or 13x reduction in reduce activity for vgg or rs net translates to energy reduction when you put it on actual hardware estimation energy estimation tools right because now not so in an a n it won't be Like it won't be like only one percent of the neurons in that layer are active it will be all neurons are active right but in an sn actually the sparsity really really plays a huge
role in terms of lending energy efficiency now the main problem here is that for you to get this low accuracy loss conversion from an a n to an s n you really need very large number of time steps that means for you to statistically match the value function To the integrate fire function you really have to process the data over thousands of time steps in order to get an accuracy or a lossless conversion basically or you know you should not incur any performance loss when you do the conversion now that is not really advantageous because
the amount of energy efficiency that you're expecting kind of reduces right because when you actually put it on hardware the latency Of processing is going to really really and the communication related energy all of that is going to overpower all your benefits so the question was that can we come up with a better way of reducing the number of time steps and to that effect people started coming up with this back propagation based spiking neural networks and i'll go into that next ah there is one question here uh chen liu has asked are these works
based on great coding yes yes everything Is based on rate coding her uh chen uh whatever i'm going to be talking about today is all based on rate coding um there has not been very like i think very recently i saw like two weeks ago i saw work on temporal coding uh but that also showed some results on mnist not even sifa 10 so it's still not very mature enough the temporal coding based works uh at least as far as to the best of my understanding Any further questions aisha siddiqui has asked low bth can
also increase the energy consumption absolutely yes because you are spiking a lot that's the reason why you need to balance uh the bth so you need to that's why we don't set it to a very low vth regime or a very high vth regime we set it to the vth regime wherein you will have that equivalent statistical transfer that value activity and the integrated fire activity should match But then the question is that is that good enough right uh will that be sparse enough is the question uh and of course not only vth but as
i said the number of time steps of processing is very large you're processing on the order of two thousand two thousand five hundred time steps to get this kind of a very high performance right and that's not feasible when you put it on hardware so we really have to think about how to reduce the number of Time steps as well as come up with a better way of implementing things rj has asked how vth can be implemented in digital or fpga well the v threshold is essentially a comparator right ah so let us say in
a digital implementation or fpga implementation when you are implementing this leaky integrate phi neuron as i said you have a adder circuitry right or an accumulator actually because you have to also accumulate the value from the previous Time step on on to the current time step so you have an accumulator and when you always have this kind of a comparator circuitry that will take the output of the accumulator and compare it with the threshold vth right and vth is something like you know you can use it uh you you can and comparator can be like
you know you can use some vth as a reference voltage or Something yeah but i hope you uh get the idea about like you know how vth uh basically the comparator will have some v ref right and that v ref will be encoded to the appropriate vth value um the question that might come out from here is that you know now that you have this layer wise threshold that means for every layer right each and every layers neuronal unit will have a different threshold so do we need To save these thresholds somewhere in our main
memory and then fetch it when we are doing neuronal processing yes so all the weightages have to be saved somewhere so that when you are doing the actual processing of the sn and you will fetch all the vth values and then program your comparators to that v reference for that vth for that layer and then do the forward processing so there is going to be a little bit of Overhead in terms of even fetching the vth values and storing the vth values but it's going to be not large enough because e all layers have the
same vts so if it's a 16 layer network that i you're only storing 16 vth values it's not going to be extremely a large overhead when you're storing all these weights and parameters etc i hope that answers the question ajain aisha has asked is vth different uh for different layers why not the same i Should because in the conversion network we do layer wise thresholding that means what happens is first you will show the reported input to the first con layer figure outs its threshold once you have figured out the threshold now when you pass
this rate coded input to the first conveyor that will also produce some spike activity you take those spiking activity now you set the threshold of the next layer of the con of conf2 let's say from that a n Similarly you go on and go source and go on uh i like that now why can't we have the same bts because as i said we have to match the relu activity to the integrate fire activity by you never for all the layers the value activation has a variation right so similarly your integrate fire activity will also
have a variation so you need to have different vth at least in this conversion network because you are not training the network From scratch here you are rather training the network from an a n you're taking its statistics and those variable statistics have to be matched uh even in the s n and that's why you have a variable vth but as we will see in the back propagation which snn we'll actually have set the vth all same and we'll train the network using the same vth so that means with back propagation once you have set
all these hyper parameters related to vth weight Initialization etc etc let the network figure out based on that common vth it will automatically figure out how my weight should be trained such that my accuracy goes up okay hope that answers the question aisha okay great so let's move on to the next uh which is kind of going to be our long-haul discussion on back propagation with spiking neural networks okay so as i said with spike based back propagation uh the what was the main motivation here That we really want to reduce the latency i mean
you know from thousands we at least want to come to the order of hundreds right even lesser than that if possible right um and how and and the idea is that like you know we want to do from scratch training that means the backward propagation the gradient error gradient calculation that you need to do for each and every layer of the network so that you can do weight updates all that has to be done using Spike statistics okay so we have to do end-to-end back propagation using spikes okay and what we will see is that
because we are doing spike based training actually the spike based back propagation train networks have even faster spiking activity than a converted snn because as i said in converted spiking behavior is not under our control right we are taking a trained air and just making Sure that the spiking behavior matches to that of the activity of the anus is that we get this um accurate and no accuracy loss network right but when we are training the network from scratch and letting the network itself figure out that how the weight should be for the given set
of threshold parameters etc it actually leads to spike as far as spiking activity and that can be again that will be very energy efficient as we will see Okay so learning with spike based back propagation if you see like what we are trying to do when we are doing spike based back propagation now this here is a standard forward backward pipeline for any network you will have some forward where you will calculate the intermediate layer activations and calculate the final error or loss and then based on that error or loss you will do a backward
propagation to calculate the error gradients right and That that will be used to calculate the weight updates now when you look at the chain rule when you decompose this error gradient through chain rule you see there is a function f dash that is very very important and that will be used this f dash function is used for updating of all weights now what is f dash f dash is nothing but the differentiation of the neuronal activation so if your neuronal activation is continuous f dash will be Differentiable or f dashes exists so for a relu
derivative f dash exists because del y del x will be equal to 1 in the greater than zero regime right in when x is greater than zero regime ah then this uh value derivative is equal to one right whereas for a leak integrated fire function the thresholding functionality right creates this function or makes this f function non-differentiable right so because the third is a v mem greater than v t Functionality that will determine whether you produce a spike or not so the thresholding functionality uh is there for which the derivative is not defined now the
idea for us with when we are doing spike based back propagation and you would have seen a lot of works that have come up for spike based back propagation what all of these works are trying to do is to approximate the lif neuron right with some kind of a f approx function for Which your gradients can be calculated so you take this discontinuous life function and you kind of during back propagation so during forward propagation you use f but during back propagation you instead use f approx to calculate this f dash okay and this f
approx is a continuous variant of this leak integrate fire function okay and that's all there is to it so this is how you will do gradient based back propagation and Since we are sorry uh since we are replacing the actual gradients for f with surrogate gradients using f aprox so generally the word surrogate gradient based back propagation is what is used to define spike based back propagation training okay so we will do surrogate gradient based back propagation so from now onwards when i say surrogate gradient based back propagation it's essentially the spike based back propagation
training Okay so here what we have is that again we have the poison spike train going into the leaky integrate and fire neuron i have just written it in these time step manner here as you can see here but the idea is the same you have the membrane potential from time step t minus 1 that is being used to update the membrane potential from time step t and of course it is being updated based on The incoming input spikes coming from time step t again right and that will produce this output spike let's say and
of course we are using this u if e membrane potential is greater than threshold it will produce an output spike so this is how forward propagation is now when you do back propagation what we do actually like think about it this way that you would have heard about computational graphs in python tensorflow frameworks right So what happens when we're doing back propagation is that the network gets unrolled in time so at t equal to 1 at t equal to 1 you see that this both the inputs x 1 and x 2 had a spike but
there was no output spike at t equal to 1 and similarly at t equal to 2 x 1 had a spike x 2 did not have a spike and again output did not have a spike and at t equal to 3 this was how the Time stamp of the network looked like from an input and output spike so you unroll the network in time you look at the timestamps of the network from the input and the output spike at different time steps and then what you do during back propagation is that you calculate this do
by dx quantity which is essentially that function f quantity right uh in order to calculate your weight update you you need to calculate do by dx at every time step okay so by Chain rule what happens is that this quantity here kind of you know comes out to be w multiplied by this quantity and i'm not going into the details of the equation uh but the idea is that d d o by d u is essentially that you know non-differentiable quantity so because it's a thresholding functionality d o by d u will be a dirac
delta function and you cannot have a dirac delta function of course because it is undefined so what we do is we approximate and the Approximation that i use i can use a linear approximation i can use an exponential approximation etcetera so without going into the details what we are doing is that wherever this non-differentiability appears i am going to approximate it with a linear or a pass-through gradient so you know you guys would have heard about binary neural networks where they are doing straight through estimation when they are doing back propagation because When they are
doing forward propagation they are kind of doing a thresholding functionality or a sign functionality to produce a plus one or a minus one in a binary network right so they do straight through gradient pass that means even if it encounters this non-linearity the gradient from the previous layer will pass as it is to the gradient from layer l plus one will pass to layer l as it is so this is called Straight through estimation but we can kind of add it up with some or multiply with some scaling factors using exponential or linear relationships and
kind of get some much better behavior because with surrogate gradient as i said the idea is that to approximate the real gradient which is non-differentiable and not cannot be calculated with as close as possible with a surrogate gradient that will allow you to do this time step Based back propagation so with the approximation you will do some pre-computation of possible gradient values um and that actually allows you to do this kind of a gradient based back propagation processing now something to notice here is that when you're doing gradient based back propagation processing in an snn
we are actually processing the sna if you think from a Software point of view okay for a software designer this snn is actually being repeatedly loaded for every time step and when you think from a computational graph processing behavior that means for every time step i need to create a copy and then i have to do the back propagation from the last time step till the current time step right so this is going to be very slow because it's going to be meaning because for 2000 time steps are if you even for 100 times If
you are creating copies of the same network it's going to be very memory expensive to train on the gpus okay or using frameworks but the good thing is that because of the fact that we know that these gpus and these recurrent these frameworks like python tensorflow can actually train recurrent network which also use the same philosophy of this kind of you know using copies of the same graph to do the processing so we know that the s the uh The gpus and the python like frameworks can take an sn and train it using the circuit
gradient mechanism but it's going to be slow so the training is going to be very inefficient uh and that's where you have to think of whether neuromorphic hardware that are being proposed true north or luihi lowihi 2 which has come up very recently i'll talk about it towards the end ah will that be used okay but in this case like going forward I want all of you to like kind of little bit close your eyes towards the training inefficiency but what we will say is that we are now able to train a network using spike
based statistics what are the advantages we are getting during inference okay and can we do more with this kind of spike based statistics is the question okay so with spy uh with surrogate back propagation uh the results as i said like you know we were able to reduce the Number of time steps right so we were able to like with the s and s and converted network the best accuracy we got after thousand times test but here we are able to get the best accuracy with just hundreds of time steps okay so uh we found
out like you know different kinds of speed up and i'm going to quickly go over the results because i want to talk to you about other mechanisms but the idea is that now we were able to train deeper resonance you Know vg9 resonate 9 11 resonate 11 like networks and of course the energy efficiency is much greater than even a converted snn that's what you see here right for example if you just consider a vg-9 network the converted snn has 28x improvement as compared to a n whereas um the the uh sorry um i'm sorry
so then the converted snn has 1.13 x improvement in terms of efficiency as compared to a n whereas in case of the s n uh the Efficiency is atex so like you know the snn has more efficiency because as we see here in terms of the spike activity the snn the the spike based the surrogate gradient trained snn has much lesser spiking activity as compared to the and snn converted network okay and that basically that spike activity reduction ah really really leads to kind of these energy efficiency benefits that's what is the main benefactor here
Okay um now as is oh sorry there's a repetition uh sorry so then but so the main key takeaway that i wanted to project here is that we are using leaky integrate and fire neuron there is temporal dependency that is intact during the training that allows us to do low latency like you know now we are even doing inference at 100 time steps of course the training as i said let's close our eyes to training we have trained the network all you need to Think about is what is the advantages we are doing in inference
so number of processing time steps from conversion has reduced by 10x because conversion was using thousand now it is using 100 but still there is a problem that you cannot really scale to very deep architectures okay so with back propagation and spiking networks what people found out is that we can train it with less time steps right but still uh we really cannot Um you know and then training time was of course higher training energy was also higher but can we actually reduce the time steps further was the question so what there was when an
interesting work that came up in the year 2020 last year uh and which talked about can we use a hybrid way of training things that means you first take a converted network then you take that converter network and then you again train it with surrogate gradient back propagation so that was Actually able to get very large you know that was able to actually get interesting latency results and was also able to give good results in terms of scaling up for larger tasks so with surrogate gradient when this was initially proposed we could not scale it
up to even beyond c 10 tasks like you know c510 was the best data set we could work with but with the conversion plus the back propagation this hybrid training we were now able to deploy uh Snn for imagenet or c500 or tiny imagenet uh but with uh time steps which is slightly more than hundred so because it is an in between kind of a thing right so it will be lesser than conversion and slightly greater than uh just doing surrogate backdrop okay so we have fast we also got faster training more efficient inference but
the con was that we are really really not training from scratch here we are still relying on a converted network and Then training the network or fine-tuning the network with some spike based back propagation right so just showing some interesting results from a hybrid training perspective that we are doing so let's say that first you take an a n right which gives you like i'm just going to follow the ah c far 10 graph here so and let's just follow the resonant graph okay so initially the a n of a resonate 20 network gives you
93.15 accuracy when you convert the network it Goes to 92.94 but you really need to convert it at 2500 time steps if you convert it at lesser time steps like 250 or 100 right the number of the accuracy kind of reduces quite significantly within c410 it accuracy loss is less but with a imagenet like network the accuracy loss is more than five percent or six percent right which is not something that you can afford then what people did was that they kind of converted it at less time Steps but then in order to recover the
loss and accuracy they fine-tuned the network with spike based training add this lesser number of time steps right and now that you have lesser number of time steps you can afford to do the fine tuning with the increased training uh complexity of course because you have to do that computational graph and copy all the time but still it is doable rather than doing a network training for 2500 Time steps right and that was able to recover some of the accuracy loss so the idea is very simple this is a very simple thing you take a
converted network you convert it at lesser number of time steps and whatever accuracy loss you incur you recover it back using some fine tuning but this is spike based fine tuning and we were able to get some interesting state of the art results and this was one of our recent papers in uh From 2020 now based on that there has been some other works right there are other approaches that like you know again like you know the idea is that what are we trying to reduce here number of time steps right so low latency is
going to be one of the key motivations right but at the same time we want to see that you know can you actually look at lower the energy of uh energy can you make things much more faster in terms of training Etc so people started thinking about why should we train with spike inputs ah people started thinking about and this was a work that was again published in 2020 um this was this came from a group at purdue but the idea was that you know instead of training with spikes with a rate encoded inputs we
will feed direct rgb inputs to the first convolutional layer and from the convolutional layer we will attach an lif neuron that converts these float inputs from the First convolutional layer to spikes and then we will train the rest of the network which has these spiking neurons with surrogate gradient design okay so they were able to show low latency uh informa uh like inference but still because of the fact that the first layer was rgb and it was all being processed in an a n like manner the amount of energy was high and also we found
out that the robustness of these networks was very low and i'll talk About robustness in the later slides now there is another thing that also kind of we did in terms of hybridization that means do you really need to when you're training very deep networks can we have a partly artificial and a partly spiking neural net architecture right that will improve the accuracy even more so the idea was that instead of training an sln from scratch across all layers you will have some a nnn blocks you will have some snn blocks And then you will
do the training now can you do and will that help well we found out that yes it helped in terms of lowering the latency but of course there are the energy was higher because of the fact that you're using a n blocks right you are using a n blocks and those a n dots will and will incur higher energy so then ah we ask this question that can we do further better okay so what we proposed Was that we wanted to see that you know so far in snn training people have not used batch normalization
okay and batch normalization as we know that it is one of the key enablers of fast training of spike of artificial neural networks so we wanted to see how to incorporate batch normalization in order to accelerate the training of spiking neural networks using surrogate gradient and we wanted to see that if that gives You some interesting other benefits so the idea is that with batch normally we propose this algorithm called batch normalization through time that allowed us to uh integrate temporal characteristics in some very interesting ways okay it decouples the parameters in the batch number
and i'll show you how it does but the idea is that we were able to like the main contribution was that now we were able to train snns from scratch With just 25 to 30 times of latency and at the same time we were able to come up with this some interesting algorithm called temporal early exit that allowed us to do even better inference latency there are some questions here [Music] oh there are no more questions sorry okay so with batch normalization through time as i said like you know um we are trying To incorporate
batch normalization in a spiking neural network just to give you a refresher as to what batch normalization does what does batch normalization do it when you pass a batch of inputs it calculates the mean and variance for that batch of inputs and then it transforms the input in this way right and on top of that in after your convolutional layer or your fully connected layer you will have A batch norm layer right and what does maximum layer do it batch num layer has these attached parameters called gamma and beta that actually improve the representation capability
of the layer so the learnable parameter gamma and beta are learned during the training process of this a l and they help you to train better okay that's the basic idea of a batch norm in an a n now we will see how we can include that In an s m so with batch normalization in snns now i'm going to go quickly over this slide but the idea was that if we attach a single batch num parameter across all time steps of inputs coming in it is not going to be a very effective way of
doing batch normalization why because we see that the activity of a network across all time steps is very different So that means if you just plot the mean of the signal across all time steps based on the type of input coming in you see that the mean of the signal is itself different so if you attach just one bachelor parameter to to understand all the activity across all time steps that's not going to be able to capture that activity right so what we find is that if you just at standard in a very standard way
if you just attach a bachelor parameter in Front of a convolutional layer before a lif layer the accuracy of the network actually degrades as compared to an an accuracy but with batch normalization through time wherein we will say what is the main idea of batch normalization through time that means what every time step we are attaching a batch num parameter with it okay so that actually is able to give us very good performance in terms of accuracy and the latency is now 25 to 50 Times that so from earlier surrogate gradient learning which was 100
times less now with batch normalization through time we are able to reduce it to 25 to pay 50 time steps so this was actually one this is one of the state of the art works in terms of surrogate gradient from scratch training that allows you to train spiking neural networks at such low latency okay so the idea with the entity is that We vary the internal parameters in a batch norm layer through time okay and as i said like you know in your standard lif neuron you have membrane potential being uh controlled in this way
now with the batch normalization through time uh neuron or with a batch normalization through time kind of a layer what you have is that you will attach this batch norm parameter After your weighted summation function that means after you probably do convolution or a linear function based on fully connected operation you will attach this batch norm layer and if you see the batch norm here here there is a gamma that is being attached to every time step that means for a corresponding time step of input there is a new gamma that is always being learned
okay so from uh architecture perspective how does it Look that here also it it's similar to what an aln has in terms of batch norm a batch name here is between a con when a value here the bntt layer is between a convenient lis okay and now with every x t there will be a new gamma t that is being learned here there is only x coming in so there is only one gamma but here with every x t there is a new gamma t that is being locked now what does that mean is that
like you know for every batch of inputs coming in As you can see here for gamma for time step 0 gamma 0 is the learnable parameter for time step 1 gamma 1 is the learning parameter and so on and so forth right and what we find is that by varying the internal parameters of the batch norm layer through time we can actually get some very good results okay so first let me tell you what does batch normalization through time do when we measure the spiking activity of different layers of this vgg nine Network that was
trained with fifa 10 when we looked at the spiking activity of the converted network the surrogate gradient descent network which we used in the previous uh which i talked earlier and the b entity based network you see that in conversion and surrogate gradient descent initially there is very low activity and then it goes to some high activity and saturates there right that's what was the layer spike activity of Previous methods but with vntt we got a very interesting trend like this gaussian like trend that means there is a rise in activity and then a falling
activity rise in activity and a fall in activity so we wanted to investigate like why is this happening right like what is like because conversion and surrogate gradient are showing this like you know it goes up and then stays so that means the sp once the network reaches some saturating activity Behavior it just continues to ah you know spike at that rate but here every layer is spiking at a very different rate and it increases [Music] it increases and then decreases also for certain layers right so we wanted to investigate this behavior more and this
behavior was actually captured because of the gamma parameter or the Learnable batch num parameter okay we found out actually that when we visualized how gamma is being learned at different layers of the network over time we found out that gamma learns temporal importance of each layer so what we did was we take a trained network we have trained it using batch normalization through time and now for different layers of the network we are capturing what is the final gamma value that is learnt at every time step so for Gamma 1 what is the value of
gamma one at temp time step one gamma two are time step one uh time step two gamma three at times three and so on and we are doing it for every layer okay because there will be every layer has its own gamma value right what we see is that the maximum gamma shifts okay uh so what we see is that like the maximum gamma for con layer one occurs at time step one for conveyor to the Maximum gamma value occurs at time step five and so on and so forth so the maximum gamma shifts to
later time steps for deeper layers right and what is this gamma value mean like if the gamma is high if the gamma value is high then this output will be high as a result if this output is high the membrane potential will go to a higher value that is what we mean right so um if the gamma value is high your membrane Potential will reach a higher value and there'll be more spike activity all that is what that it means and if the gamma value is low then the membrane potential will be low and there'll
be no spike activity right so what this means is that the spike information is propagating in this manner that means the first layer will spike first and the later layers will spike later and this is pretty much intuitive right it's not like every layer should spike at all Times which is what we see previously in previous methods you see that after certain time steps every layer is having a kind of a similar spike rate right but here we are able to see that no that's not the case actually all layers spike at different time steps
and early layers spike early and later layers spike later now this thing can actually while it is very intuitive but it was not captured with previous methods which now batch Normalization through time is able to capture and the other thing that we were able to take advantage of using batch normalization through time is temporal early exit now if you see after this num after time step 20 you see the gamma parameters for all layers is very very low right which is shade which is uh shown in this black shaded regime right so if low gamma
means as i said low spike activity me the low spike Activity that means the network at the later time steps is not spiking enough to give you any relevant information so what we decided was that maybe this means that by after inference if we just monitor the gamma we can actually stop the inference at a very early time step right so even though we trained the network for 25 time steps we don't need to do inference for 25 time steps we can stop the inference at let's say in this case the 20th time step So
i'm going to give you some experimental results that we got and we will do a comparison at every time between conversion surrogate gradient as well as the hybrid training that means conversion plus surrogate gradient okay so for c far 10 as you see here in an sn conversion results for a 16 layer network the latency is very high right but the accuracy is also good okay but with and the surrogate gradient learning the latency was low accuracy was Reasonable right but as we will find out that standard surrogate gradient you cannot really scale it up
to larger data sets like c400 or tiny image net okay and that's why this hybrid training was proposed right because we could not scale it up to larger data sets and as you can see the the hybrid training the latency is somewhere in between like 200 time steps and the accuracy is still reasonable but with bndt we are able to Reduce the latency seriously by orders of magnitude right now it is like you know almost a one tenth of what it was for hybrid training and remember we are doing all this thing from scratch there
is no conversion or anything you allow the entity network to train from scratch with rate coded inputs and we are able to maintain the accuracy up to 90 right and as i said we can do early exit so even though we do the training for 25 time steps we can actually infer at 20 Time steps and still not observe a high accuracy loss we see similar results for again c500 i'm going to skip this slide um but the idea is that with bntt we are able to kind of get the best results and as i
and you there is one thing missing here as you can see the surrogate gradient descent based uh model because that was that cannot be trained on such complex data sets so we really have to use bnt or some other kind of a learning rule in Order to do it but b entity was able to kind of accelerate the training and um give you more by uh uh by the way uh applications now similarly we also expanded it to tiny imagenet and this shows the power of bntd right for enabling training on non-trivial very complex data
sets like time image net and as compared to a converted network we are really using one hundredth of the number of time steps okay and we are getting even Better accuracy than a converted network so this again tells you that actually like so far we were really not utilizing time step based uh training very well and by using just simple batch normalization we are able to accelerate the training i'm going to skip this slide because we are kind of running um we have like right now another 25 minutes to wrap up so i just wanted
to go over some energy efficiency comparison uh the energy Efficiency comparison as i said like we are comparing dnt with surrogate gradient descent and conversion we find that in comparison to surrogate gradient descent even if it uses the same number of time steps right um we wanted to do a fair comparison conversion of course you know we cannot do less number of time steps because we will have a huge accuracy loss so ah become compared with the conversion uh at 91 percent accuracy for like you know so iso accuracy but Reasonable number of time steps
comparison that's what we wanted to compare if you see here that converter networks are i have a spike rate of more than 10 um spikes uh surrogate gradient networks have a spike rate of less than 10 spikes but b and dt on an average have less than one so this is a logarithmic time scale that means uh with the help of bnt we Are able to reduce the number of spikes that means on an average we will have 10 percent spike activity so on an average in the entire network 90 percent of the neurons will
be inactive and only 10 percent of the neurons is active and that is actually going to give you very high energy efficiency as you can see here that with conversion if you actually see that in comparison to the if you increase the number of time steps uh then in some cases you are Not even getting any efficiency improvement as compared to an a n because as the number of time steps increases the latency increases so whatever efficiency you expect with respect to [Music] snn is not there anymore because you are really really consuming a lot
of energy in just doing this more time step processing but with um surrogate gradient design you still are Like getting very less benefits like 5.05 x which is like five percent improvement but with uh bnt we are able to get 9x improvement and that is because of the overall reduction in spike activity as well as the reduction in time steps so bntd has this very good double effect right double advantage effect which is like reduction in spike activity as well as reduction in time steps that gives you interesting energy results Okay so the key takeaway
is that with bnt we are able to train low latency networks very highly energy efficient and for the first time we are able to train networks on non-trivial data sets from scratch okay without relying on conversion or anything okay ah there is a question here uh can we use the entity snn for neuromorphic data set like neuromorphic ms yes uh sorry aisha i skipped that slide but i had a Slide on um dbs c410 uh this was the slide on dc fat and which is actually a neuromorphic data set and we see that with bntt
we are able to get state-of-the-art results like sixty three point uh two percent which is uh almost a uh which is which actually outperforms state of the art uh than what other uh neuromorphic data sets had okay so we are actually able to get much better results than what other state of the art data sets Networks have okay so moving on and again as i said like because bndt allows it to now explore other things right because we now have a from scratch training rule so we were thinking like can we use the entity for
other things like segmentation now this is something that has not been explored in the spiking world before this work right so this is the first work that explores segmentation in in particularly Video segmentation using spiking networks okay and the problem with segmentation if you use conversion there is a problem that you know there is a lot of variation in spike activity when you look at a network that is doing segmentation an artificial neural network that is doing uh segmentation so you really cannot convert without incurring a huge loss of accuracy okay and you really need
a lot of time steps more than like five thousand time steps Even to maintain some reasonable performance right so this is not not really uh feasible so what we did was we applied the bnt from scratch training okay for segmentation applications and if you are familiar with some of these applications then you know that deep lab and fully convolutional network or fcn are sort of the state-of-the-art network architectures that you use for these applications so we came up with a spiking version of deep lab or a spiking Version of fcn but we trained this network
from scratch using bntt now what we found is that now we are able to train the spiking versions of the same architectures using 20s time steps and in terms of the performance we are getting like close right like deep lab has almost similar performance but with fc and fcm still gives you six percent better um performance in terms of miou than spiking fcn uh so a ns are still Showing higher performance than sns and if i increase the number of time steps i can kind of club this but my main idea was that you know
um for the first time we can showcase the feasibility of snns for such time so this was what we could do like with the dvs ddt data set we could do segmentation like this and with pascal voc data set Also this is a spiking version of the deep lab that i am showing and this is actually able to give some very good segmentation results now interestingly enough what we found out is that spiking networks right the spiking deep lab or the spiking fcn as you can see here are much robust to noisy data so let's
say now i put some gaussian noise a blurring noise or salt and pepper noise to this data input here or data input here and if i see my segmentation output result The accuracy drop that i get in terms of for a d lab a n or f c and a n is much higher as i increase the standard deviation of the noise with respect to the uh snn so the snn models are much more robust to noise uh infiltration in an input than an a n model so even though the accuracy in general of the
snn is lower but it's okay because of the fact that the robustness improvements is still observed with uh ans and this is one of the first of its Kind result which showcases the effectiveness of snns in doing something more that a ns are not capable of and in this case which is noise noise based robustness okay now in the last couple of minutes i want to kind of wrap up by talking about some of the other things that we are trying to also uh do with snns and what we are doing and this is one
of our very recent works that was accepted in nature scientific reports so We are trying to showcase that you know so far we are like you know everybody is looking at looking at image classification paths we looked with the entity we looked at uh segmentation also but we were like you know let's start thinking about interpretability for snns right i mean in als there are so many tools visualization tools like grad cam scams um you know guided backdrop etc etc that tell you that when a network makes a Prediction where is the network focusing on
now can we have a similar kind of a visual interpretability tool for an snn now that is still like you know all these things that are pretty much established in the a n world are still not explored in the s n world right and the problem is that when we apply gradient grad cam with sn sorry i'm going to skip that slide this is the main slide i want to focus on when the problem of applying grad cam as it is to Snn is that with grad cap what we are doing is we take a
train network we have to do a back propagation on the train network and figure out this heat map at the input okay but the problem is that when we do gradient back propagation and snn we have to do that surrogate gradient back propagation right and we are always doing some approximation so the gradient approximation will lead to some errors when you are calculating heat maps so if you are so the so the The heat so if you use a gradient based method to do visualization it will always give you inaccurate heat map because your gradients
are surrogate gradients that you use right and those that will not be able to give you a correct heat map so what we wanted to do was that can we come up with a spike centric manner of producing a heat map okay now just i'm showing an example here when i applied grad cam in an snn we actually first Thing you need to notice is that now the grad cam in an snn will produce the heat map across different time steps which is what we expect that you know for the same input now the input
is reported across all time steps so the network is looking at different parts of the input at different time steps this is something my grad cam is telling me but it is not enough to show me that you know there is some interesting information that is being captured okay So what we did was that you know can we actually calculate this visualization heat map using interspike interval so that means instead of doing back propagation can we calculate the heat map just looking at the spike activity when you do forward propagation okay so i'm not going
to go into the details because of the in the interest of time but the idea is that as you see here that if two Neurons are spiking very close to each other that means they are learning something very very interesting and for that neuron if the neuronal spike of that neuron is very close that means it will have a higher contribution score towards visualization than a neuron which is spiking more sparsely okay that's all you you need to remember so if the inter spike interval is short for a neuron it will have a higher contribution
score and if the interspec Interval is less it will have a lower contribution score so with that we were able to get some very interesting visualization and as you see i call it we called it spike activation map and the idea was that now with spike activation map we are actually able to see some interesting visualization results so instead of this noisy visualization you see that in this case this is a goldfish image you see that at different time step again we are getting Different visualization for different time steps but we see that the network
is actually focusing on some parts of the fish image here right and i'm going to show you some more visualization heat maps so i'm going to do layer wise visualization that means first i'm going to show layer 4 visualization for these images for a lion lemon and a bird and you see across different time steps in the layer 4 the network is Actually focusing on some edges and blobs for the lemon it is kind of trying to capture the circle part right for the lion it is trying to focus on the nose the eyes so
it is trying to focus on the edges and the blobs and as you go towards deeper layers and visualize it you see that the network is starting to focus on more shape like or semantic information information as you see come Okay so what this tells us is that using just a forward propagation based visualization tool we are able to understand what a spiking neural network is looking at in order to make a prediction now we already know this right shallow layer learn simple patterns deep layers learn more simple uh semantic information this is an intuition
right and this we already know from a n world but now with the help of Sam we are able to say that the same thing is also being observed in the snn world okay now another thing that we also were able to do using the sam visualization was that to understand whether a converted model and let's say a bnt or a surrogate gradient trained model has some different information that is being learned so we were able to compare the learning capability or the learning representation of a converted model with A bntd model and as you
can expect that you know a bnt model is actually focusing on more interesting features and this is i'm showing for layer 4 and in a converted model it's more noisy so and this and again with the with layer 8 also if you see here in case of the lemon image the converted model is showing some very wrong visualization whereas the surrogate or the bnt trained model is showing some very correct visualizations so what this tells us is That because of the fact that converted snns have been trained without using spike information they have been trained
in the a n manner and then converted of course their interpretability using interstate interval information will be low so that's why we cannot like so their interpretability is less right so that's what again the idea is that to understand where will snns fit now tomorrow if you want to deploy an snn Edge device in a very very critical defense application you need to if you need to add some interpretability to it this is going to be useful a sam based visualization where you have trained this snn from scratch will be better because you know that
in addition to your result you can actually interpret that result using these visualization tools okay so um and as i said like you know this is just a metric to show you that the conversion has a higher error In terms of its visualization than a surrogate gradient model right um the other thing that we were also able to uh get is this very interesting behavior of sensory suppression of an snn when we visualized with uh sam so what we found out is that in general in our brain when we see an image which has multiple
objects of interest our brain focuses on one object and it kind of you know neglects the other objects and what we See is that snn also has this behavior so when you show it this concatenated image of a dog and a bird what we see is that if you look at if you've got what we see first of all the confidence score is that the snn actually predicts the um object b here which is the dog with a higher confidence and it does not even look at object a in this case which is bird and
when we try to visualize with sam as to what is happening in the snn we found Out that the snn is actually focusing on the dog for more number of time steps with whereas it is initially focusing on the bird but that focus goes away right so the sensory suppression behavior which is also very neurologically intact is also shown as seen in an snn and we are able to for the first time showcase this behavior and characterize this behavior using this interpretability tool okay uh so before i go ahead so uh there are A few
questions i want to answer um sorry i'm not able to see the full question yeah aisha has is there any published paper for bnt snn with segmentation and noise or for the result shown in the slide yes it is i will be will be um it is currently under review um um i can i'll give you the archive link there's an archive link for it i'm going to give you the archive link aisha so can you just email me uh later so that i can Send you the archive link um then can we say that
the spikes which are close to each other um they carry more info important information yes with sam that's what we are trying to do and the spikes far away from each other have low or no correlation exactly and sam is able to capture that uh that you know spikes that are closer have more information spikes that are lesser have less information and spy and the spike activation map is actually able to Leverage that uh interspec behavior in order to produce this visualization oh thanks aviral i'm gonna wrap it up um so i'm gonna now go
on to like you know the robustness of an snn um so we know so this is a slide that tells you like you know when i tell robustness i'm gonna focus on adversarial robustness now we already know that adversarial attacks are pretty much a vulnerability dimension of a ns we know That like you know with adversarial attacks what is happening is that you add some structured perturbation to an image and it so happens that the same network which would predict that image with a high confidence now will mispredict it again with a high confidence so
these adversarial perturbations are very very uh interesting and i'm going to skip some of these slides in the interest of time but what is the main thing that we have Found out from some of our recent works is that snns are generally more robust than a ns okay so what we find here if you compare between an a n and an sn which is trained with surrogate back propagation if you compare the accuracy okay we i'm showing you the accuracy of the network as i increase the strength of the adversarial perturbation then the accuracy of
the a n drops very steeply in comparison to the sn and surrogate gradient and income and with respect to That bntd in fact has such good accuracy um um you know it's able to maintain its accuracy for a large strength of attacks okay so this again tells you that as you incorporate more temporal information during the spike training process you will be able to resist and bring in more robustness to the snn okay so there is some intrinsic robustness that we anyway see on top of that b entity improves that intrinsic robustness even further Okay
and we see the same kind of results in terms of even when we just add gaussian noise so without even adding adversarial perturbation if you see the accuracy drop versus the strength of the noise added for gaussian noise we see that an a n has a steeper drop right whereas a bnt or a surrogate back propagation trained snn has a much slower drop right now we wanted to understand that can sam Now with the help of visualization can we support this accuracy drop right that snns are more robust is there a reason why so what
we found out very interestingly is that when we applied a visualization grad cam tool to an a n before it was attacked versus after it was attacked we found out that actually the network gets full because it focuses on the wrong part of the image so after that before attack this network was focusing here but after adversarial Attack the network started focusing on some wrong part of the image that's why it got fooled and earlier if the accuracy was 60 now the accuracy of the model dropped down to 10 percent right so this is what
is happening now with sn and however we found out that the accuracy before attack and after attack was high right as i showed you that the snns are more robust and the reason is that that in terms of its visualization we see that the snn after attack is also Able to focus on the right portion of the image then with the help of visualization we were able to see that right so if you see the elephant image here initially you see that the network is kind of getting confused but you know at later time steps
it starts more or less resembling the same visualization as it was before attack so what does this tell us again and again for the dog image the same kind of results So what this tells us is that snn generally has higher robustness with bnt we are able to improve this robustness even more and sam supports the performance drop that we get with such noisy samples etcetera okay um so um now i'm just going to give you like a very um background that now that with the help of this bnt training we were not only able
to tackle interpretability now but We are able to now showcase that we can actually do federated distributed training with spiking neural networks so we are trying to uh showcase that you know we are trying to broaden the applicability of snns for diverse learning scenarios we are trying to do even privacy preserving distributed learning in essence and it is all because of this the entity learning rule that allowed us to kind of do temporal from scratch training with lesser number Of time steps okay so i'm going to skip some of these slides because uh this was
basically the federated learning results and some of the major results that we got from privacy preserving learning but to summarize i think that you know while snns do offer an energy efficient alternative the main game changer can be if we come up with the best training technique and vnt was one of them there is of course other things that can come up but from Scratch training techniques that use temporal statistics can make a huge difference in widening the use of snns and even helping us interpret and making snns more uh applicable for some um hardware
and some more privacy privacy or security related scenarios and as i said while we are focused on just rate coding techniques but there are other different code coding Techniques that need to be also investigated further to induce more sparsity now i want to finally like kind of conclude my results or conclude this uh education class by just give highlighting uh some recent results from hardware that kind of will capture why is sn algorithm development so important so people here showed that as compared to a gpu or a cpu or a jackson or a mobids chip
when you implement an snn on a low eh or a neuromorphic hardware chip The improvements in terms of energy you got is kind of you know 38x better or 2x better or 7x better than your state-of-the-art gpus or state-of-the-art you know neural accelerator chips okay so so a neuromorphic hardware like whatever energy estimations i give you these are all analytical estimations but with the help of a neuromorphic hardware like intel he and luihee ii was actually launched a couple of weeks ago right Like not even a couple of weeks 10 days ago september 31st is
when they launched this and they are saying that you know they have an interesting framework etc that can give you very good training capabilities and as i told you that training is still inefficient in s so can actually this neuromorphic hardware that is being developed by so many companies and of course being generated from a lot of groups including My group can we actually come up with a suitable and compatible training framework that can take advantage of these snn algorithms and showcase the inference benefits as well as the training benefits remains the question okay and
as and when we move strides in terms of hardware we will be actually able to move beyond these classification related tasks and go into the world of segmentation go into the world of uh distributed learning federated learning Uh previously security etc which are becoming more and more of a concern as we are moving towards um you know edge cloud uh or ubiquitous intelligence so with that i would like to end uh here are some key references all of the topics that i talked about batch normalization through time visualization etc they are all available as github
codes the visualization is also available so you can mail me and i can send you the code we are going to be uh Putting it up on github very soon so thank you all and i'm a point if you have any questions uh please feel free to ask right now and thank you all for attending this and thanks to the organizers for inviting me for doing this thank you so much well thank you priya for doing this great talk i was listening in for some part of the time so i was like make a quick
announcement um since you mentioned luihi 2 we actually have a Keynote tomorrow morning by mike davis who is the lead of the intel's neuromorphic lab uh i think he will be talking about luigi too since that just came out as priya mentioned so i encourage you to attend the keynote tomorrow morning if you want to hear more about that