Backpropagation and the Brain
Transcript
[MODERATOR] Our next speaker is Timothy Lillicra-- Uh, Timothy Lillicrap from Deep Brain in London. [TIMOTHY LILLICRAP] Okay. [MODERATOR] Deep Mind. (laughter) [TIMOTHY LILLICRAP] Whatever. Yeah. Okay So I-- I'm gonna talk today a bit about something I've been interested in for for a long time, which is backprop and the brain, and whether backprop has anything to tell us about it, and wh-- how I've been kinda thinking about it for a while. There's lots of people that have, have been involved in some of the work I'm gonna talk about, but I'm gonna be kinda just going through various pieces.
I'd particularly like to just note uh, Sergey Bartunov and Jordan who have done especially some of the experiments that show up in this. But yeah, there's lots of people involved in all of these things. So I've-- I've kind of I guess this-- this-- this slide it's about the-- the credit assignment problem, which I think uh, comes up in cortex all over the place, which is ba-- basically this, right? That if something, some information comes into a primary sensory area and then eventually that leads to a motor output or some sort of associative concept area where you're forming some decision about something then there's, you know, there's some sort of series of processing along the way and really the behavioral effects, those downstream behavioral effects depend on those, that earlier activity and on the whole chain along the way. And in some sense, the problem for the brain is how to, say, how to adjust those, say,
those blue synapses in abstract, based on what happens in the downstream behaviors that take place. And I think it's fair to say now that effectively this problem is in artificial networks essentially it's solved one way and that is with backprop. So we, you know, we compute the derivative of some error with respect to the weights on our network and we update parameters. And there's lots of things like Adam and RMSprop that are-- are sort of better than just standard SGD like this But they all basically just make use of backprop to compute to compute the gradients and make updates. And I wanna make a point here that this is-- this is also true, and I'm actually gonna hit this point a little harder later too. This is also really true not only in supervised cases where we're doing something like ImageNet but also in the reinforcement learning algorithms that have been successful recently on hard problems and in unsupervised cases, right?
So, all the best unsupervised algorithms we're running as well are all under the hood, sort of people are training with backprop. And so I think it's sort of worth inquiring, you know, does backprop have anything to tell us about how the brain is doing hard problems? And it's a, it's probably even now a bit of a contentious proposal. It certainly has been. But maybe it's becoming less of a contentious proposal. Okay, so right. So I think neuroscientists have been happy with the idea, I mean, just to flesh this out a bit more, happy with the idea for a long time that we have learning rules that operate on sort of two layers or sh-- or relatively shallow in some sense but in a network that's got a network that's deep in some sense then in order to credit you know, this synapse down here between A and B, I really need to know something about the downstream structure of my own brain, right?
And that's what backprop says, and that's indeed what I think to do learning effectively you should do. And so there's a real question about how to do that. You should know something, how to know something about the structure of your own downstream brain and how to use that to make updates in earlier layers. Um, so just to-- to recap I'll spend a bit of time here. Why isn't backprop biologically plausible? Because I think it should be said, even though I think backprop in some sense has something to tell us about the brain obviously and it's in just, like, the purest form, I think it's not running in the brain. I mean, that's kind of clear and there's a bunch of reasons. So here's a, just a two-layer network and you know, we take the derivatives of some error in this case we end up, you know, we just take and use the chain rule, get this expression at the end.
And this kinda summarizes I think why people have complained about backprop, and rightly so. So there's various things here. So it says the weights in the lower layer ought to be changed according to this expression. That expression involves an error term it involves using the downstream weight matrices it involves using the derivative of the local activation function. The last one is pretty easy, that's just the presynaptic input to that hidden layer. And as well it also, backprop really involves this separate forward and backward passes which isn't really in that equation, but you know, you need to do these two things. You need to do a forward pass and then you need to do a backward pass.
Um, and there's lots of things-- Okay, so there's lots of things to say about these pieces, and I'm just gonna say a few of them and then hit more of them as I, as I go along. The error term was really a huge worry for people for ages. I agai-- I guess I kinda wanna say here when backprop kind of arrived on the scene, people were using it in a supervised setting, but I think now it's kind of clear that you can have an error term arriving from reconstruction losses that are from your unsupervised-- your unsupervised algorithm. You can have instead of just a normal error term in a supervised setting, you can have a policy gradient that shows up in a similar sense, so when you're doing reinforcement learning.
So I think that sense that the error term is like a big boogeyman is, I think it's sort of dying. The second one, the transpose of the downstream weight matrices, I mean, I think that's still very real. I mean, it's not like-- I think no one thinks that th-- this-- th-- this is a reasonable thing for the brain to have hold of and to use in-- in earlier layers that is, like, real perfect transposes of downstream weights. Derivative of the activation function, I don't think is that big a deal.
I mean, this thing is sort of basically a simple function of the input to those neurons. It's, I don't think it's that hard to c-- imagine computing something like this if you wanted to. But then the other one, the separate forward and backward passes is also probably pretty out there in some sense. So that is that you would actually do sort of a forward prop through your network and then compute a backprop quite separately, and then use that to do updates. Right, so that's usually the kind of set, the, at least some set of the things that people worry about when they worry about is backprop or something like it operating in the brain.
Um, but I wanna, Yeah, I do wanna dig into these a little bit more But I'm gonna start by s-- sort of mentioning, you know, there's been some recent indirect evidence, and this has been noted I think by a couple people here coming from the De Carlo lab and from Kriegescourt's lab uh, sorry if I, I'm butchering those names that are showing that, look, if we take big networks and we train them with backprop and we post-talk look into the representations and we post-talk look into the representations these things that this thing doesn't work, but that's okay, these, these these things that are trained and do better in terms of, say, classifying images do better at do better at letting you sort of loo-- predict the variance in V4 and IT neurons. And you see that's even better in the case of higher level neurons in these kind of convolutional networks. But that's pretty indirect, right? I mean, it doesn't say, that says that the, some of
the representations formed look a bit like what you get in a backprop network but it doesn't tell you how you got there, and that's kinda what I'm, I'm, I'm a bit obsessed about is how, how do you get a big deep network that does powerful things like be able to operate on ImageNet. How did it get to that state? Okay, so I think it's pretty important in some sense to have this kind of a picture in mind, which is that there's a, there is really a huge spectrum, I think, of credit assignment algorithms that might be working in a deep network that has a bunch of connections through.
And on one side, in some sense, I would say, okay, you have something like backprop where you compute exactly the gradients and you make exactly these kinds of weight updates to all the weights in your network, and you do that well. And, you know, you sort of do it precisely. You give yourself precise knowledge of all the downstream connections. On the other far end, you have something along the lines of weight perturbation or activity perturbation, which are simple reinforced-style learning algorithms, which basically say, "I'm gonna take, uh," so the E here or the sort of something about a performance metrics, an error or performance metric, "I'm gonna look at how my performance metric changes as a function of, say, noise that I inject into my weights or into my activities, and I'm gonna look at correlations
between those things, and then I'm gonna make weight updates based on those correlations." So it's kind of the simplest thing you could do, and it's a great idea in many ways and in certain settings it works okay. It should be said that I think there's been a sense, at least historically in neuroscience, that this kind of learning, this sort of correlation with a global signal of change in performance has be-- had, is what drives a lot of the learning in the brain. And I think there's good reasons for that the, good reasons to have thought that. For example, you do see things like dopamine delivered globally in the brain, or fairly globally in the brain. And that looks a bit like you transmitted something like a performance, a global performance indicator. Right, but what's troubling, what's trouble with the, this sort of left side of the spectrum is that it doesn't actually work very well in practice when you train on large networks with hard tasks. And notably, I think, as far as I'm aware,
no one has used these kinds of techniques ever to be able to sort of successfully train a, a, a large network on something like ImageNet. It's, it just, really, I think, probably does not work, in my hands anyway. Even smaller scale things than that really don't work. And the reason is very simple. The reason is very simple. As you increase the number of neurons in the network, as you increase the number of weights, those correlations mean that, those, the fact that you're sort of just doing this via correlations you know, those weight updates, means that the variance on your gradient estimator gets worse and worse and worse as the number of neurons blows up.
Um, so there are things in between, and that's what I'm gonna talk a bit about today is, you know, what, what, what lies in between this space, and I think what lies in between this space is tons and tons of algorithms that we haven't really explored all that well, that know something about the downstream structure that approximate something about the downstream structure, and use that to make weight updates that are much better than at that end, but maybe not quite backprop. Yeah. [AUDIENCE MEMBER] So, looking on the left side of this, I'm, I'm just trying to understand what, what do we know al-- al-- Already right? So in the real brain we understand that, we know that, say, dopamine is not secreted everywhere. I mean, there are projections in certain areas. Yeah. There is temporal structure to that as well, right? And so I just wonder have there been attempts of trying to salvage something like this on the left side with maybe being
somewhat more realistic in terms of spatio-temporal dynamics of-- [TIMOTHY LILLICRAP] Sure, so that's a good question, and I think the short answer is not nearly enough. And I wish more people would because I think we need to understand this whole spectrum better. As I said, in my hands, even on something like medium-sized datasets, the left-hand side, things like this, trying to salvage something like the left-hand side has been really hard. Like even after two or three layers of neurons and things like this, I can't even get things to take off reasonably using that sort of, those sort of approaches. Doesn't mean it can't be done. I mean, if we've learned anything recently it's that negatives, you know, don't mean a whole lot. So please, I mean, my, my, my failure on that case, you know, I-- I would, it would be great to see more people try and see if they could.
In fact so I'll, I'll say a little bit very, very briefly about this uh, more, which is, so here is, here is sort of learning on MNIST. These are, this is just MNIST. Here's backprop in the blues with varying numbers of neurons in it with a couple layers in hidden layers. The others are node perturbation and weight perturbation where you're yeah, using same structure network, and you're sort of seeing, you're doing all the weight updates using weight perturbation, node perturbation. And even on MNIST, these are reasonably well tuned as we c-- as far as we can tell, and even on MNIST, this is insanely slow to sort of, to learn these things. And in harder datasets, we feel like I haven't even been able to get these things to take off reasonably at all. We don't understand necessarily why that is, but it's theoretically in some limit, these things should work but it's sort of what is that limit in terms of number of samples and number of data trials?
Um, on the other hand, we have things like target prop variance, which I'll talk a bit about more, which which can do a pretty good job. So these are MNIST and one of the medium-sized datasets I talked about Street View House Numbers where they do about as well as backprop, and on, on these datasets anyway about as well as backprop and about as quickly. So there are other algorithms out there which don't make some of the assumptions that Backprop does that do decently, and I'll, I'll kind of dig into that a bit more as I go.
Okay, so I wanna say that this is also sort of maybe back to this point. I mean, I think that there was a good reason for neuroscientists all along to believe that something like backprop is going on and like I said, too, for a machine learner, an appeal to the variance in gradient estimators is often enough. You can kinda just sorta spell that out to them, and they're pretty happy but it's rarely enough to convince neuroscientists. And so I kind of I think that first of all I wanna say what do I mean by something like Backprop? And this is what I mean, and it's that learning is achieved across multiple layers by sending information from neurons, so detailed information from neurons closer to the output back to earlier layers to help compute their synaptic updates. And that's kinda what I mean by something like Backprop. And I think, you know if we think about that if you kinda believe in some very basic things that we, I think we just know about cortex,
then you should be almost on the same page already that that's going on in the brain. In the specific form of it, we have very little idea, but the generalities we know, and that is because feedback connection in cortex are ubiquitous. They're really all over the place. That is from area back to earlier areas, and those connections people have shown modify the activity and spiking in neurons in earlier layers. And the second thing is that plasticity in the forward connections can be driven by pre and post-synaptic spiking, e.g. sort of like STDP protocols, and so if you just put those together, the feedback connections are gonna modify the spike times of these guys, which means that you're going to change how the forward connections are being learned. So almost sort of just by simple derivation, the something like backprop is going on. Now the specifics, as I said, have all to be sort of worked out, and you could still claim that those modifications are
kind of epiphenomenal and don't aren't doing anything interesting, but it seems, it would seem a little crazy to me. You know, why have all those feedback connections? Why have them do things like modify learning in earlier layers? Okay, I also wanna kinda hit as I said again this point about reinforcement learning. I mean, it's clear that the brain is making massive use of reinforcement learning, and I think it's good to have a clear view of how sort of backprop-like things and reinforcement learning might be fitting together and what that means and to sort of make sure we're teasing those apart nicely and have it clear in our heads. So here's the sort of standard reinforcement
learning block diagram where you've got an agent, say composed of a bunch of networks that's getting observations and rewards and sending actions to an environment. And, and what we've s-- what we have, wha-- what people have been doing o-- a lot recently, what I've been spending a lot of my time doing, is sort of doing RL with big, big networks, and I think it's worth just sort of looking, walking through that a tiny bit to see how we think about now that hooks up with something like backprop. And so here is a single trial of reinforcement learning, right? You know, you start in some state. You run through some policy network. You produce an action. You sample from that policy network. You produce an action, get a reward, transition to a new state, and so on through time.
You know, you've got a trajectory here, and you can, if you wanted, compute the probability of a trajectory in this way, and if you do a bit of math, well, so actually before I get there, so, you know, what do we do as far as outcomes? You know, we would do something like compute the return for a single trial, which is some discounted sum of rewards, and then our objective function is like, you know, what you really care about is integrating over all the possible trajectories you, your policy would take you to. What are the returns associated with those trajectories? And integrating that over all the trajectories you might reach you know. Okay, so then, what we, what people are doing a lot now in RL and with deep networks is something like this. It's a use, a model-free policy gradient set-up, which in some sense bears a lot of resemblance to what I talked about earlier, this sort of simple way of updating weights and you would
roll out a trajectory, see what happens, compute you know, compute performance metrics and all this But then basically just take the derivative in some sense a sample derivative of your objective function, and this is, I suppose, the really important part. You, that kinda splits into two parts where you kind of do the RL part in these reduced action space, actions spaces, and then you still, at the end of the day, take the derivatives back through your big deep network.
And if you weren't doing that, you'd be in a lot of trouble to learn the sorts of complicated behaviors we can now learn, so this is an agent that's gotten raw pixels and rewards and learns to go around and collect objects in an environment, and learns to do it relatively successfully. So the basic agent would just, like, run into the walls and all these kinds of things, and this is kind of almost, it, it is basically almost becoming old hat, but I think it's worth dwelling here on the, you know, what are the relationships between reinforcement learning and algorithms like Backprop? And the relationship exactly is that we use a bunch of RL, but we are combining it with backprop and that's really crucial, so this still takes hundreds of millions of steps even with backprop. So if you were instead sitting there and doing the sort of updates to your weights, you know, you've got a policy gradient up at the top,
and then from that point on, you did correlative-based updates to the weights in your network without taking into account the structure of the network, this hundreds of millions would get basically intractably worse, right? Intractably worse. So we basically just, I think if you just, mm, probably would not work. I'm happy to have people prove me wrong, but that's my sense of things at the moment. Okay, so now having, I think that there's a similar story to tell for unsupervised learning. Again, like all the sort of stuff that we're doing recently, there's some cool stuff talked about with PredNets and so on that was discussed yesterday. All these things I think basically used backprop and so some sort of replacement for it is worth looking for. That's pretty loud. Okay, so I'm gonna go back a bit to this question and, and talk a bit about some actual attempted replacements and some,
some ideas from the recent neuroscience literature. So yeah, again, why isn't backprop biologically plausible? These are some of the reasons. One of the things that I got interested in particularly, in part because it was one of the big things that people sort of were worried about, is this transpose of downstream weights, so knowing about your own internal structure. Um, so right, and, and this is, this was actually coined historically, this was coined the weight transport problem I think in '87 in a paper by Grossberg. So in 1986, backprop was published. 1987 Grossberg published a paper and talked about some of the issues with thinking about backprop as, as, as saying anything about the brain, and one of the issues he pointed out was this issue of needing to know about W1 in order to update W0 and he coined this the weight transport problem, and if, in the literature through the '80s and '90s, it was probably one of the biggest cited issues with backprop.
So you know, why do you need to do this why do, why do you need to do this? This is the sort of basic figure. I mean, backprop sends error back precisely through symmetric sets of synapses, and this, I think everyone would generally agree in neuroscience looks crazy having sort of these precise set of synapses in that backward error path as in your forward path. Now I think surprisingly So I did some work playing around with thinking about whether you could learn backward weights.
So you say forget about trying to, forget about trying to sort of like use that transpose. Could you actually learn these backward weights? And in the process during control experiments, actually stumbled on something even weirder, which was that for a lot of problems, even if you just took a backward weight matrix B, you just sampled it randomly and then froze it, actually things work remarkably well. So this figure is basically showing a very, very simple problem, but the upper lines are sort of some shallow learning, reinforcement learning along the lines of node perturbation that I talked about. The black line is backprop, and this green line is what I called feedback alignment where you just fix those backward weights to some random set And you just did learning as usual otherwise.
And essentially, you see this thing tracks backprop really pretty well on this problem. This is showing that actually over time the sorts of updates that feedback alignment was making come to close, more closely resemble those of backprop. And you don't have to have them come so zero would be if they were exactly what backprop was doing, and they don't have to be perfect in order to get, you can see, you don't have to be perfect in order to get learning that looks very much like backprop. So that's part of the, I think part of the idea here is that you don't have to know perfectly about the downstream structure of the network that you're dealing with. You should maybe just have some idea about it and that might work. Now here, it looks like you have no idea about it because B is just yep? [AUDIENCE MEMBER] So is, in that case, actually W learning about B? I mean, uh-- [TIMOTHY LILLICRAP] That's a great question. And in fact, empirically, yes it is.
Um, yeah, and I'll, I'll show you that in a second. So just very quickly, this also works for things like MNIST and some harder datasets and I'll get, I'll come to sort of like, you know, where, where we really stand now, but this is sort of MNIST and you can see the green is performing about as well as backprop and you see s-- sort of similar dynamics in this, in terms of this. What do the weight updates look like? Do they look like what backprop is doing? Yep? [AUDIENCE MEMBER] Can you clarify, so WT was used for training. There's no feedback projections, right?
[TIMOTHY LILLICRAP] So [AUDIENCE MEMBER] But in the random case, you do have feedback projections? [TIMOTHY LILLICRAP] So in both cases, there's feedback projections. In the backprop case, that's the sort of normal backprop case, you use exactly the transpose of W, which all, which changes as W changes, of course. In this case-- [AUDIENCE MEMBER] I mean, for purely feedforward network. [TIMOTHY LILLICRAP] Yes. You [AUDIENCE MEMBER] Still use backprop. That's [TIMOTHY LILLICRAP] Right. [AUDIENCE MEMBER] In absence of actual feedback projection. [TIMOTHY LILLICRAP] That's right. [AUDIENCE MEMBER] So, The feedback connections are only used during training? They're just used-- That's [TIMOTHY LILLICRAP] Right. They're only used during learning, that's right. Yeah. [AUDIENCE MEMBER] But in the other case, do you have or you don't have In [TIMOTHY LILLICRAP] This case, they're only used for learning as well. Oh, so-- That's right. And I think it should be said, that is one of the other things that I think is-- I mean, it wasn't listed on my slide, but it's one of the other issues that is clearly objectionable about backprop. We know that the feedback connections and cortex actually alter activity in earlier layers, whereas the feedback connections in Backprop really are only there for learning.
You can literally throw them away. They are like, you know, I, I, but I think that these things can live together, and I, I'll talk a bit ab-- a bit more about that. So in any case, so yeah, B is this unstructured thing that's just sampled the beginning of learning and fixed. Um-- Question. Yep sorry. [TIM] The fact that the W does come from a B-- [TIMOTHY LILLICRAP] Yes. [TIM] --imply this will work only in cases where weights are massively different. [TIMOTHY LILLICRAP] Yes, that is true. [TIM] Also, it seems like feedback connections don't do that much, right? When they're silenced and you have a hard time seeing what their effect is. [TIMOTHY LILLICRAP] Yes. Well, and that's right. So, I would say my, I don't think that they're just for learning, but I think I mean, there's been some talk about this yesterday. My guess would be that they're mostly for learning and that the kind of the, just to wax a little bit, that they're probably sort of to nudge you in the right
direction for inference. So, you sort of say, "Okay, you should move in this direction." And then having moved in that direction a bit, you look at those deltas and those deltas, inference-wise, tell you, "Oh, you should do that more, more in future." Instead of having to compute it via the feedback, the forward connections just do that in future. But yeah. [AUDIENCE MEMBER] Yeah. I don't know when to ask this question, but the synaptic weights that you're talking about, if you actually look at a synapse, they're very low-resolution things. They might have 10 or 15 amplicons in them-- Yeah. --that can be modified. So, have you quantified or will you comment later on the ability for this entire scheme to work when you have very low-resolution weights for learning? Yeah. Including in your scheme, if you were gonna assume
back backwardly-directed weights, they would also be-- [TIMOTHY LILLICRAP] Yeah. [AUDIENCE MEMBER] --equally poor-- Yeah. --quality weights. Yeah. And so, what I'm saying is, is this a non-- does, does this kill things or is it perfectly-- [TIMOTHY LILLICRAP] So, it's a great question. I think like loosely, I think it doesn't. There's been a bunch of work in machine learning recently specifically around-- so first of all, definitely around trying to have fewer bits, you know, in your representation of weights. And in fact, there's a whole little sub-community who care not at all about neuroscience, but love the idea of getting rid of tons and tons of bits, both in the activations and in the weights 'cause they wanna run things on your cell phone.
So, there is a community who is doing that, who's understanding you know who's trying to understand when I wanna train those kinds of networks can I do it with very few bits? And the answer is-- look, I think the short answer is, yeah, roughly, and people are making progress on it. It's certainly not solved in the sense that you can get exactly the kinds of performance you can with like 32-bit floating stuff everywhere. But people are making reasonably good progress on it, in that niche. Yep. Okay. So very quickly one of the things that we actually see happening, someone asked this question, was that when you go and look at the weights, W they actually do sort of align. So, if we look at all the synapses blue, this is sort of some, we're looking at some sort of alignment between the backward weights and the forward weights. And this, over the process of training, is getting closer and B is fixed, so this must be happening in W. And indeed,
this is kind of what we believe is going on in this kind of weird situation, which is that there's first of all, some transfer of information about the content of B into W naught by updates. Then W naught, actually that information about B actually gets transferred up into W. Once you've had that happen, there is this a correspondence formed between W and B. And then in the third phase, then actually you can have reasonably decent learning happen you know, deep learning happen.
That is the error transmitted via B is effective for W naught. And I think-- I mean, it's really worth saying, I think that it's really worth not overstating the importance of this in the sort of trying to figure out what's going on in cortex. It's more that I think this was an illustration that there's gonna be a lot of learning algorithms, ones that even surprise us a lot where you can know very roughly about your downstream weights, and that's good enough to do much, much better learning than simple RL reinforced style things. Yeah. [AUDIENCE MEMBER] Sorry. Can I-- Sorry. I'm trying to understand if I get this correct. The number of feedback signals here is still basically the same as the number of Ws, give or take, right? Yeah. So, we still have one feedback signal per one synapse in this setup? [TIMOTHY LILLICRAP] One feedback signal, say, per neuron in the hidden layer. Sorry. [AUDIENCE MEMBER] Per neuron.
[TIMOTHY LILLICRAP] And I think-- I mean, the, probably the biggest distinction, right, between something like a standard reinforced style algorithm and what you would do in backprop is you deliver in backprop vector-based error to all of your neurons, which is really sort of computed and individualized for those guys, and you use detailed feedback to do that. And that's, those are the things that I think are important, rather than just a global scalar delivery. Was there another question? [AUDIENCE MEMBER] I think it's more realistic to change B once in a while. --should get drift in here. Have you tried that to-- [TIMOTHY LILLICRAP] Sure. So there's lots of things, again, I mean, there's a whole bunch, and actually I'll maybe I'll get on to some of these other ones where you would-- --maybe choose, you know, train B and, and so on in a moment. Other people have is the short answer. Yeah. Okay. So, I also wanna just comment very briefly on some of the
energy-based model stuff, which was talked about yesterday. And I th-- I suspect that this stuff has a lot in the end to tell us about things. People, I think, in the literature around backprop, have liked energy-based stuff because you don't have this weird forward phase and then backward phase that are completely disjoint. What you do is-- Yeah. --something like this. You have a network which is full of recurrent units. Um, you run a positive phase where you clamp uh, you clamp these you clamp some say data and target to the network. And you let this thing evolve 'til it's done in some sense. You have what's called a negative phase where you'd, say, just clamp the data and let the whole thing run and, say, output its own target. And importantly, when you do this, the way that you update the hidden units is you integrate stuff from the forward connections and things from the backward connections, and it's really the difference
between these phases that's used to drive learning, so the weight updates are a function of a function of looking across these phases. At the moment empirically, these algorithms are a bit problematic basically because you need fairly long settling phases that look a little bit crazy but I think people are hopeful that maybe some of that can be dealt with. So I actually think there's probably insight to be had in the energy-based model direction. Empirically, it's sort of, it's been hard to make them work at scale in part because these long settling times, especially if you have many layers of neurons.
But it's worth putting them into this roadmap. Um, one of the things that I, I've been more interested in recently is, is just this question, and is it, th-- that is that, do any of the existing biologically motivated learning algorithms scale up to solve really hard credit assignment problems? Um, and, and I think I'm gonna show you, spoiler, is like a bit of a negative. We don't have much And I think that's interesting in its own right that there's a lot more work to do there. So I'm gonna talk about one specific bit of work we did with an algorithm called Difference Target Prop and v-- variants of it which we took as kind of I thought, maybe one of the nicest starting points to investigate that question. And basically, we took it because it satisfied a couple of things. It said, okay, it does get rid of weight transport almost, and we have a variant of it where we did get rid of weight transport entirely.
And we also tried it in the context where we didn't do any weight tying as in for the convolutions. And we also wanted to try and get rid of signed error signals, which I think is one of the issues in backprop where you can certainly point to and say, you know, "Look, it doesn't really look like what we're transmitting back through feedback connections or signed errors." I should say that when we did these experiments, we still have all of these issues. We're still using continuous rather than spiking signals. We're still violate Dale's law. We still do use separate and forward and backward passes and local activity derivatives and your personal complaint here. But in some ways, I think the part of our impetus recently has been, like, "Look, do we have any algorithms on the table which for the really well-known constraints can do anything decent on big problems?"
So, okay, so here's the algorithm. Here's the sort of starting point for these, this class of algorithms, which is target propagation, and this goes back to an algorithm uh, that an idea, set of ideas from Yan in the, the '80s. And the idea is very simple and kinda nice, and I think actually agrees with a lot of the ideas that people have talked about here which is this. You do some forward pass through some network and then to begin with, let's assume you have perfect inverses for those layers. So then, you can take a target up at the top and basically project it through these inverses and say, "Well, if I wanted to get that target as an output what should have my activity been here in these layers in order to perfectly produce that target at the output?" So these, you can think about as basically top-down expectations. So it's sort of, I got this inverse,
I compute down through it, you should have been this. And then just layer-wise, I do a simple difference between these things, and I update the weights so that I would have landed closer to this thing in future if I saw that pattern, right? So in some sense, it's, like, dead simple And it's kinda lovely. It's using top-down expectations et, et cetera. It's transporting across layers, not errors, but activities. So that's what it's sending across layers is expectations about what the lower layer should have been. In practice, this algorithm doesn't really work very well, unfortunately. Um, and so there was a a fellow in Yoshua Bengio's lab called Dongyeon, who, who worked on this idea called difference target prop, and it's I think the details are maybe, the details are maybe not too worth going on t-- uh, going into here. But the main notion was, okay, it's obviously unrealistic to have these perfect inverses, so what he did was he said,
"I'm gonna learn imperfect inverses going back through the layers, just using an autoencoder reconstruction loss. So I'm gonna t-- try and reconstruct what was sent up from here up and then down. So I'm gonna learn these imperfect inverses, and I'm gonna use those imperfect inverses to send, so first of all, to send targets just as I di-- as I did in the last the last slide. Um, but I can also use the reconstruction here as a way to correct those targets and make them better and make them better." And this algorithm does nominally work reasonably well for at least small and mid, mid-sized problems and also to the point maybe back there, it explicitly says, Yeah, maybe we should learn the backward weights. And so, they, they you do updates on the backward weights V here. So you have basically layer-wise losses, layer-wise learning rules that operate at every layer and you have them both for the forward and backward weights. Right.
Now, this, in practice, the actual version that they wrote about still used backprop at the very top level. We worked on a variant where we sort of got rid of the gradients completely at that top level. I don't think it's too germane here, but we looked at this a bit, and then we looked at a bunch of datasets running from MNIST all the way up to ImageNet and we looked at fully connected and locally connected networks. And by locally connected, I mean not conv nets, but where you do weight sharing, but you actually get rid of that and kinda saw, and sought to see how well these things would work in practice. So, here is the rough story, which is that on MNIST, you can kind of do pretty well with this kind of thing and do, get replicated original results, get good accuracy great. In Street View house number and sort of going on down the story is that the gap between difference target prop and our variance of it widened a bit, so that by the time you get down
to CIFAR and you're working with locally connected architectures in CIFAR there actually ends up being pretty large gaps pretty large gaps in performance. And basically, this is because difference target prop is producing approximations to those gradients, and there's some variance to those estimators and probably even some bias to those estimators, which might be even worse that produce these suboptimal learning results. You can kinda see this very briefly here. Maybe it's just best to look at the learning curves where these guys are, these guys here are variants of, are backprop in these architectures. And the other ones up there are the other guys up there in these bands, if you like, are variants of, of target prop. Okay. So, the real one for us though was, you know, these things were still kinda working reasonably well. The real thing we wanted to look at was scaling this all the way up to ImageNet, which is we, which is something that we know
humans can do reasonably well. And so we're like, you know, this was, I should mention, the result here is obviously pretty negative, but I thought this was the best one we had on the table in some sense, right? So, I think it wasn't-- I actually think Dong-Hyun did some great work, and this was kind of like I was excited. This was, like, the best thing on the table that didn't violate weight transport and so on. Anyway, this is the basic result. Backprop in this kind of-- Y-- I should say these results are not particularly good for ImageNet, but this is a relatively small network that we're training this on for various reasons I can get into. But the important thing is the difference target prop and all the variants we explored are up there in that little band. So, they can barely--they basically can't even get off the ground in these relatively small networks, five to seven layers of locally connected units and so on. So,

Ask anything
We've read this whole study set, so questions about it get the best answers.