Naturalistic Cognitive Neuroimaging
Transcript
[RICH KARWANA] I'm Rich Karwana again from Microsoft Research. This is the second presentation in our session on interpretable interpretability for biological systems. Happy to introduce Jack Gallant Jack is from here at Berkeley where he's the chancellor's professor in the Department of Psychology. But he's also got affiliations in like every other department in the university. Electrical engineering, computer science, neuroscience, bioengineering, vision science, and biophysics. Um, Jack's research is in cognitive and human neuroimaging and he's one of the main people in neuroscience who's focused on what you might think of as naturalistic experiments that are aimed at producing quantitative behavior and models that are really accurate and generalize well. Um, Jack is very proud of the fact that his lab really sweats the details when it comes to data science and that they use an empirical workflow that's actually quite different from
the standard approaches that are used elsewhere in neuroscience. So go ahead, take it away, Jack. Thank you. Thanks Rich. [JACK GALLANT] Um, I just wanna, um-- Let's see, first of all, I am, I'm a neuroscientist, you know, I do a lot of applied math but that's kind of forced, it's not my desire. I just really want to do neuroscience but because our datasets tend to be more complicated than most people's in my field you know, we've paid very close attention to the developments in data science over the last 20 years. And so I'm, I, I would say I have glancing familiarity and sort of empirical experience with a lot of these methods. I did want to mention that, you know, the last talk we just saw was awesome, it was an amazing display of discovery science driven by enormous infinitely large datasets and great machine learning, and this talk's gonna be the exact opposite of that.
So this is gonna be depressing in some ways. Uh-- That [RICH KARWANA] Means it won't be a great talk? [JACK GALLANT] That, that too. Wasn't a dimension I was thinking of, but that may be also true. Okay, so I just wanted to mention 'cause we were just, yesterday there was a lot of kind of philosophical discussions about data science, you know, my perspective on this is that the deal here is that the incentive structure for scientists is very different than the incentive structure for engineers. In some sense, you know, we all are doing the same thing. We wanna measure some stuff, we wanna build a model of the stuff whose dimensionality is far lower than the measurements right? 'cause then we can understand it. And then we wanna predict some new stuff. Now if you're a scientist, this is the most important thing, modeling this stuff with a low dimensional model. And, in fact, it's so important in I would say less developed areas of science like psychology and biology and neuroscience that people don't even worry about this.
There's no journal in psychology or biology, that I am aware of, that requires you to report predictions or effect size or generalization tests. Or even to have separate fit and test datasets. So everybody cares about this and they're, and the, you know, the mark is statistical significance, even though that's the noise floor not the noise ceiling, and everybody reports significance And then they declare victory and pretend it's the noise ceiling and move on. So that's science. Engineering, I think to its credit, has to worry about this whole thing, because ultimately if you have a statistically significant bridge and it falls down, you have a problem and someone will sue you. So the lawyers keep the engineers honest, and at some point, they have to be able to predict. Now every engineering professor in this room knows that ideally, you want this. You want a model that you can prove. I wanna know the bounds, when it'll work,
when it won't work, and then I wanna show that it, you know, predict something, right? But, of course the kids think this is boring. Anybody under 25 wants to do this because it's so much cooler and you can get a job at Facebook. So they wanna build neural networks, this, engineering professors hate this because you can't prove anything with this. When does it work? When does it not work? I don't know. So this is kind of a stopgap, but if you don't know what to do here, like you've got a nonlinear dynamical system or something else that's mathematically intractable, then this is the best you can do and I think, you know, this morning, as I said, the sorry the talk that we just saw was a great demonstration and this is not a pointless exercise. But these two points of view are very different.
Engineering professors are willing to do this because they've gotta get here first, they've gotta get to predictions, and they're willing to take a lousy model first to get to predictions and then go back and try to figure it out. And in neuroscience, this kind of deep network model is kind of pointless unless you can interpret it very, very quickly. So just wanted to mention, so kind of a very different thing, very different approach. All right, so I study the brain. The brain is, you know, complicated, that's the first law of neuroscience. There's 80 billion neurons organized in these very complicated hierarchical parallel networks They're organized at multiple scales, the scales don't necessarily communicate with one another, they're kind of compartmentalized.
The brain connections are many to many and recurrent the information that's flowing through the brain networks is very, very dynamic and changes based on the task and over time with learning. And the brain learns continuously at all timescales. So, you know, the brain is very different from the deep networks we use in computer science, those deep networks for the most part are kind of I would say circa 1945 neuroscience, and neuroscience, although it's very hard, we've learned a lot since that time. And most of that has not been incorporated into deep networks.
But the real problem for a neuroscientist trying to understand the brain is this: we are data limited. At any point in time, in any field of science, you're either model limited, I would say theory limited, or you're data limited. Neuroscience is data limited. It's always been data limited, it'll probably be data limited for a long time, and if you wanna think of, if you don't know anything about neuroscience But you know perhaps about physics, the way to think about neuroscience is it's like astrophysics with a really bad telescope. So you all know the problems with astrophysics, there's billions of stars out there, you can see a few thousand maybe?
It's the same problem in neuroscience. And in fact, I've had tons of physicists come through my lab, the only ones that stick around are the astrophysicists 'cause they just look at the data they're like, "Oh, this is the same kind of lousy data I always deal with. No problem." So the brain on a very short time scale of say a half an hour is a fixed network, the hardware doesn't change, but the information flowing through the network changes based on attention and learning and the task demands through these control signals that are broadly distributed and no one really understands. So the representation of information in the brain is constantly dynamically evolving.
In the human brain, we don't really know exactly what the hardware is, we don't know all of the brain areas, there's probably something like 500, at least, different brain structures that all represent different kinds of information in this deep network and we don't have a very good idea of how these networks represent information. So you can imagine if you take a complicated task like driving while you're driving through the world there are constantly changing patterns of brain activity. So you saw when I first put this slide up that we put some slices in the brain and kind of flattened it out, so now we have something about the size of a large pizza, and the red regions are locations where metabolic activity is higher than average and the blue regions are locations where metabolic activity is lower than average. We're measuring this with an MRI machine. So you can see that these patterns of red and blue are constantly changing dynamically as an individual
is driving through this virtual town in this taxi driver task. [AUDIENCE MEMBER] Could you say that one more time? The red versus the [JACK GALLANT] Sure. Red here is more metabolic activity and blue is less metabolic activity. Is it [AUDIENCE MEMBER] For real image we are seeing vision or-- [JACK GALLANT] This is what the person saw in-- so this is an MRI experiment and the person's lying in the MRI machine and they're driving in this virtual world. And [AUDIENCE MEMBER] The brain is really the brain of the person watching this? And this is the brain. Oh wow. [JACK GALLANT] Yeah, yeah. This is real. This is real time. [AUDIENCE MEMBER] Perfect. [JACK GALLANT] And, um-- Are they just using the [AUDIENCE MEMBER] Image or are they turning, like, a controller-- [JACK GALLANT] I took that slide out. This is an awesome experiment. They're actually driving. They've got a little steering wheel in the MRI machine. Oh, you're a video
[AUDIENCE MEMBER] Game. They've [JACK GALLANT] Got pedals and they've got the virtual reality in a very complicated jury rigged system on their eyes, and this is a very large town. It's about four square miles on this side. It's got about 200 structures and roads. They spend about 10 hours learning the town, and then after they've learned the town, we just put 'em in an Uber driver task. "drive to the Taco Bell." And they drive to the Taco Bell. "now drive to the gas station." That's all they do. They do that for hours and we record brain activity. Okay? And then the question is, well, so think about what you do when you're doing this task. Okay, you gotta look at the visual input, right? So that has to be represented somewhere. You gotta operate the pedals and the steering wheel. That stuff has to be operated, has to be represented somewhere. You have to know where you're going. You have to have some memory of where you've been, where you're going, what the map is.
And if you notice in this road, there's other cars and vehicles and things. You have to avoid the other cars. You can't run into 'em. Can't run into the pedestrians. There's traffic signals, there's all kinds of complicated things going on. All that stuff, the past, the future, perception, motor cognition, all of it has to be represented somewhere in this, right? And we want to know what and where. Right. So how do you solve this problem? [AUDIENCE MEMBER] Do you also record where the muscle movements are? The muscle movements? Yeah. [JACK GALLANT] Yeah, yeah. We have all the ground truth from this. So this is a video game, so we can extract all the semantic information from the video game. We know where all the buildings are, we know where the cars are, we know the layout of the world.
We track your eyes So we know where you're looking. And we're recording all the motor movements, so we know what your behavior is. So we have all the stimulus task, which is where you're going, and motor response variables. Those are our X variables, and our Y variables are brain recordings from, say, 100,000 points in the brain. This is a three test MRI machine, records about 100,000 points. The new MRI machine we're building here at Berkeley will get 100 times more data. We'll get a million points. It'll be really cool. So that's basically our data set. There's a bunch of Xs and there's a bunch of Ys. Yes? [AUDIENCE MEMBER] What is the frequency for temporal resolution of this? [JACK GALLANT] Oh, you don't want to know.
So MRI, I should just mention, MRI is the greatest non-invasive imaging method ever developed. It just beats every other method like EG and anything else to heck. It still sucks. The resolution of MRI, the temporal resolution is about a second. There's almost no information in the MRI signals at a time scale faster than one second. And that's because MRI measures changes in metabolic activity that are reflected in oxygen flow in the blood vessels. And the coupling between neural activity, neuron can fire about 100 times a second, and blood, changes in blood flow, blood oxygenation is very, very slow.
Yes? Can you make the town busier? Yes. This is, just happens to be a Sunday morning, So Yeah, Yeah. We can, we, there are other conditions where there's-- And pedestrians crossing, all of that. And pedestrians crossing, [AUDIENCE MEMBER] Yeah. I presume you'll tell us later, but presumably you have more than one subject. And how consistent is this-- I will-- Is this story from subject to subject? [JACK GALLANT] I'll show you in just a second, but all the workflow in our lab is like, again, I don't do anything like anybody else in neuroscience does it. We never do things at the group level. What we do is we do the whole experiment in each individual subject. [AUDIENCE MEMBER] I didn't mean at the group level, but the same experience. [JACK GALLANT] Yeah, I'll show you in a second. So okay, so we got some X variables, we got some Y variables. That means we got a regression problem. And, you know, most neuroscience problems end up being regression problems.
So okay, fine, we're gonna do a regression problem. [AUDIENCE MEMBER] When you say regression, you mean linear regression? [JACK GALLANT] Well, that's the question. What kind of regression do we want to use, right? Okay. Some form of regression. Okay? [AUDIENCE MEMBER] Unintelligible) [JACK GALLANT] So, What? [AUDIENCE MEMBER] Uninteligible) Well, [JACK GALLANT] Yeah, I mean, it could be, it could be, it could be a network, right? So that's the issue is what should we do? It's going to be a regression problem of some form, some very general form. We got some Xs, we want to predict some Ys, right? So traditionally the way you do this is basically you just use, you know, your standard progression framework for doing this. Um, you interpret as Bayesians, but you implement it just as a standard GLM.
Now if you do a linear model, the brain's highly nonlinear, so this would be kind of dumb and wouldn't get you very far. So generally what we do in my lab, I would say 95% of the work is this linearized model, which is basically we take the stimulus task and motor variables and we shove them through some complicated computational model that is meant to produce an intermediate representation that we think might exist somewhere in the brain. And then we regress that representation onto the brain data. And as long as the brain, as long as everything's stationary, that should always work because you can always stick a linearity at the end of any arbitrary nonlinear system and it's the same system, right? If the brain's non-stationary, you're screwed, but let's not think about that because we're all screwed all the time.
That's non-stationary is bad. Okay, so generally we do this, and I'll explain how we do this in a minute. Of course, like I said, all the kids want to do this. Let's just stick a neural network in here. And even if you want to do this, stick a neural network in here, there are multiple ways to do it that all have all their own advantages and disadvantages. So generally this is our linearized regression framework. Essentially we have usually multiple feature spaces that we're testing simultaneously. In this driving experiment, we actually have 33 different kinds of feature spaces to 33 different models. We want to fit them all simultaneously. They all have their own signal to noise. They all have different signal to noise in different brain regions. So we use essentially a banded ridge regression model that allows us to estimate different regularizers for each of these different feature spaces and they all get fit simultaneously.
--so this kind of gives you an idea. We got our stimulus and task, we got our brain activity, we've got some linearizing feature space that we're gonna interpose between these two because they're too nonlinear to each other. We can pick a variety of feature spaces and then we're gonna have some training data, some testing data, so-- sorry, some training data, some training features we're gonna get some model weights, and then we're gonna cross-validate on a held-out [AUDIENCE MEMBER] Dataset. Are you doing single voxel or are you doing joint modeling? [JACK GALLANT] Um, in this stuff I'll be talking about, we're doing one voxel at a time. Um, I'm a strong believer in starting at the finest grain first and then working your way up. I don't like averaging anything until I absolutely have to, so this is all single voxel.
I really hate, averaging, optimal averaging is great. All other averaging sucks And I hate throwing away information, so I don't like to average if I don't know what I'm doing. Okay, and then we're gonna test basically on, you know a variety of statistical tests because if we don't do significance testing the psychologists will complain. Generally, we produce a variety of metrics in these experiments. Yeah, we do statistical significance but we don't really care about that. What we really care about is estimating the noise ceiling and then what fraction of the noise ceiling were we performing? In other words, how good is our prediction performance?
So now where do you get these features? Yes. [AUDIENCE MEMBER] Are the features labeled in advance? [JACK GALLANT] So they don't have to be, right? You can-- The features can be whatever you want, and you can label them post hoc. So, and because you're doing something post hoc, you might worry, well, wait a minute, you're just gonna overfit. So in our lab, not only do we have separate fit and test data sets to prevent overfitting, and then within the fit set, we break that up into separate train-and-test sets for exploratory data analysis. We also collect separate fit and test subjects. So we'll, like say, collect three subjects, get all the models finalized. Okay, this is it. We're freezing everything, and then we'll just fit them in the other three subjects to make sure we get the same results. Yeah.
Um-- [AUDIENCE MEMBER] So, you're-- The input to this model, is it a single still image? [JACK GALLANT] No, no, the input to the model is the video [AUDIENCE MEMBER] Data. Okay, so you're feeding in, you're trying to-- how much context is there to the model? [JACK GALLANT] As much as the individual feature spaces need. [AUDIENCE MEMBER] Okay. [JACK GALLANT] Like, you might have a model that says, "I think there's gonna be somewhere in the brain that represents where you started from. Throughout the entire trip, it knows where you started from, and that representation is going to be active." That's a theory I have. So I can set a feature space that will, that is just basically where you started from, and it will integrate over all time or it will be tested at all time points, right? Feature space could be anything. And of course, there's gonna be a bunch of feature space that have to do with prospective planning about where you're going to drive, and a bunch of feature space is going to be involved with retrospection and memory about where you were in the past, right?
Okay, so now we need to get some features. Where do we get the features from? Well, we can get them, you know, first off, you can just guess what the features might be. Like, probably, you know where the buildings are and stop signs and the people that are wandering around there, and you can get them from the video game data. Because I have the subject's view, I can do a semantic segmentation. I know where you're fixating, so I know what you're attending to. I can get all kinds of features. This would just be semantic features from this, right? But I also have optical flow, I have color, I have all the behavioral data.
And so this actually just shows the results of one feature space, which is semantic segmentations. This gave me 16 categories of features, and you can color-code them according to PCA of the features, and then kind of plot on a, on a flat map. And this is how we interpret things. This is basically, our final data is always feature spaces projected onto the cerebral cortex. And we flatten it out because we want to see the whole thing. And this uses software developed in my lab. All right, so this is the re-- this is a really, like, I'm just glossing over so much information here, so don't worry about it. This is 33 models that we fit. You can see there's path distance remaining, how far you have to go, your future path that you're going to take, the beeline distance remaining, the controls you used, day semantics, affordances, which is where can you drive, where you can't, where can't you drive?
Motion energy, spatial semantics. There's all kinds of stuff going on here. All, everything we could think of, based on the literature, that might be represented in the brain during navigation. This comes from huge amounts of animal and human literature. We fit all these models simultaneously, all at once in one subject. And now, of course, you got too much data because altogether, well, there's 33 feature spaces here but the number of features here is about, some are probably around 40,000 features, and we're fitting that to each of 100,000 voxels. So it's a big data fitting problem.
We use kernel ridge regression for this because the time axis is very, very short. So kernel ridge regression enables us to solve this fitting problem, even though, you know, you shouldn't be able to. And then we get all this data. We have too much data to think about, so we have to do dimensional reduction. Everybody does the same thing when you do dimensional reduction. You either do PCA or cluster analysis or something, right? Those are just two sides of the same coin. And so you get about five different networks when you do this. This happens to be a t-SNE, which I, I'm not a big fan of, but that's what, that's what's shown here. You get future navigation motor, visual motor, visual inputs, which is what you see, and past navigation. [AUDIENCE MEMBER] So it's sensitive to the type of dimensionality reduction that you are using? I mean-- [JACK GALLANT] It is. I'm just showing you one example here. [AUDIENCE MEMBER] Okay.
[JACK GALLANT] Obviously, if we do PCA, we're going to get a different result than t-SNE or-- [AUDIENCE MEMBER] Yeah. [JACK GALLANT] --or non-negative matrix factorization, whatever the heck you want to do, right? And so generally, we do multiple things. There's no right thing to do. So I was taught when I was a graduate student by my very wise old advisor, if there's no right thing to do, do it as many wrong ways as possible and see if the results you get are consistent. That's generally my philosophy. So this just kind of shows you, you know, the data are rich and high dimensional. You can also do a PCA. So if you do a PCA on these data which, you know, is just a different method to mention our direction, you get kind of three functional networks; a motor network, a visual network, and a navigation network. Okay. You should all at this point go, "Duh," because, you know, if I asked you beforehand, before I showed you this data, what would the three subdivisions be, that's probably what you'd pick. But now the cool thing is we can kind of see where they're located across the cerebral cortex. And notice these three subjects these networks are fairly consistent with each other. [AUDIENCE MEMBER] Yes? How do you know the first one is motor and not the second or the third?
[JACK GALLANT] You, what you do is after you get the PC you have a look and see what it's loading on, right? So it's loading on the controls. Also, this happens to be where your motor system is located, and this is where your visual system is located in the human brain. Can I ask a question about how [AUDIENCE MEMBER] You map the original data into the PC? [JACK GALLANT] I just want to mention, this was only the first five minutes of the talk, so. What? [AUDIENCE MEMBER] Yeah. The next-- No, [JACK GALLANT] No, no, continue as long as you-- [AUDIENCE MEMBER] Yeah, we have an hour afterward, so, [JACK GALLANT] That's fine with me, I, you know, I'm a professor, I'll talk 'til tomorrow.
[AUDIENCE MEMBER] So how did you know which area to bring, you know, first PC mapped to? [JACK GALLANT] Well, again, you have a, you have you take the principal components-- Yeah. --and So each voxel has a projection to the PCs. So now if you just take the first three PCs you can assign them to the red, green, and blue gun, and then you can sign that voxel the color of its projection in this first three PC space. It's just a quick and dirty way to try to see where things lie. [AUDIENCE MEMBER] But this is on the input, the X? That's a part of-- [JACK GALLANT] Well, the PC is, as you mentioned, a reduction on a matrix that's voxels by feature [AUDIENCE MEMBER] Weights. On the feature you were ranking [JACK GALLANT] The voxels? It's a regression, it's a regression matrix that we're PCing. [AUDIENCE MEMBER] You have the voxel in there, right? [JACK GALLANT] Yeah, voxels by weights. So this is 100,000 by 50,000 the same matrix. I thought
[AUDIENCE MEMBER] You didn't have the voxels. [JACK GALLANT] Okay. And we get one of those matrices for each subject, right? So usually when you wanna, when you get these PCs what you do is you stack the matrices all together so you're getting PCs for all the subjects, and you don't have to do that. It's a handy thing to do. Right, these subjects are pretty consistent. Now, what neuroscientists really wanna know is which model's important and which model's not important. And in the regression framework, that ends up being basically a variance partitioning game that you have to play. And we all know that variance partitioning works great if you have three variables and then it all breaks down and goes to hell. Don't worry about that, please don't ask me any questions. Pretend that the, there's no real wizard behind the curtain and just, like, go with it.
This is kind of the variance partitioning scheme for these different variables. You can see that some things like affordances, where can you drive, future path, where am I gonna go in the future, steering and controls well, there's these other models, let's not-- motion energy, which is low level visual features gaze semantics, which is what is the semantic category of the thing you're looking at. These are most of the variables that account for most of the variants. And sadly, all the variables that people who do navigation research actually care about, which are these very subtle kinds of navigation related feature spaces, they account for a vanishingly small fraction of the variants. And I think that's just, you know, those variables are really important, but they're only important for a subset of brain areas. Some of those brain areas like the hippocampus tend to be very far away from the antennas in our MRI machine and therefore
have low signal to noise, so they don't end up contributing very much. Are these directions orthogonal? They're not exactly orthogonal. These models are not orthogonal at all. That's why variance partitioning is kind of a tricky, it's a fraught exercise with any complicated dataset like this. But you gotta do something, right? So, you know, it's kind of funny, this talk, this meeting is about interpreting deep learning models, but if you think about this, fitting 33 feature spaces just using the GLM, we don't even know how to interpret those data. So, and that's like, you know, a 200-year-old method, right? So, it's kind of scary.
I should also mention that as I said, these brain representations are not static, they're dynamic. If you go home tonight and your cat Fluffy is all of a sudden missing, your brain tries to become a giant Fluffy detector. Where is Fluffy? Where is Fluffy? Every place in your brain tries as hard as it can to be optimized for the Fluffy detection task. And brain areas like near your visual system, your primary visual cortex, they don't change very much, they're just gonna keep signaling the outside world. Your prefrontal cortex, every neuron will get sucked into this Fluffy detection enterprise and will become a giant Fluffy detector. And that's just how the brain works, it's this dynamic network that reconfigures its representation based on the task. And you can see that here. When you're in this driving task, this is basically a neutral driving state versus a task directed driving state. A bunch of representations shift towards poles,
which are where the traffic signals are, sidewalks, and other vehicles, and traffic signs, which are all the things you need to pay attention to in this task. Okay. So fine. Does that experiment make me happy? No. Why not? Well, okay, it's like the most massive experiment ever done on a dataset like this, but it we're only accounting for like, I don't know, 50% of the variance we have in the data. So there's a bunch of other signal that we should be able to model, and I don't know what those feature spaces are. So as I said, if you're under 25 your first thought is, why not use a neural network, train it to drive in this environment,
and then you'd solve all the problems. So there's a long history of people trying to use neural networks in neuroscience to explain data, in fact the very first paper ever that used a neural network was a three-layer neural network, in the good old days to directly fit to neural data, was from Yong Dang, who's here at UC Berkeley, and her students Brian Lau and her postdoc Garrett Stanley. And a few years later, we did the same thing. This is a pretty simple enterprise. You've got some neural data that you collected. You just try to basically train your neural network by backprop, and then the models will fit really well if you have enough data, and then you try to interpret them, and of course to interpret them you have to project them into some space that means something, right?
And that's fine, you can do this, but this is never gonna work with the datasets we have, because we're data limited. We'd never have enough data to fit a full neural network. So although in some ways this might be a great thing to do, it's out of the possibility of things we can do. So that's useless. So what people do in this field, for the most part, is they use a pretrained neural network, trained on a different task, and they take the features from that network and then they use the GLM to fit 'em to their data. And that's a lot better, because now the network has learned something that might be useful, and you can figure out what in the learned network is useful for you. So in the vision world, where this has been applied--? [AUDIENCE MEMBER] The task it was trained on, or the task? [JACK GALLANT] In the vision world, that where this is done, no, that's not what's done usually because people who are doing neuroscience don't view themselves in the business
of training networks, right? So they'll take the networks from another source. So for example you'll take AlexNet, or you'll take VGG, and you'll use the features trained in those networks, which were all trained on static images, and you'll use those features to fit your data. And those models actually do a pretty good job. Um, the first person who did this recently, the kind of the recent, you know, post post-three layer network world was Jim Carlow's group at MIT, and they showed that these models do a good job of predicting neural responses to natural images across a wide range of the visual hierarchy. So this is a perfectly good thing to do.
We've also done this. Uh, this is a study from a former student of, of that spent some time in my lab, he was Jitendra's student, now a professor at MIT, Pulkit Agrawal. And he used AlexNet actually to fit voxels in the early visual system. So these are all the early visual areas, early intermediate visual areas in the early visual hierarchy, and what he found is that different layers of AlexNet fit different locations in the visual hierarchy. I thought this was a boring result because to me it's obvious the brain is a hierarchal network trained to represent natural images, so it's gonna represent the hierarchal statistics of natural images. Alexnet is a hierarchal network trained to represent natural image, so it's gonna represent the hierarchal statistics of natural images. The interesting result would be if those things weren't the same, right? The fact they're the same just means they learn the same thing and that to me doesn't get interesting. But everybody else got very excited about this.
There are some problems using the networks in this way, mainly that the layers of deep networks are very, very highly correlated with one another, unless you take care to decorrelate them, and basically nobody tries to do that. So but what you can do is you can use banded ridge regression to fit the individual layers of neural networks separately. And banded ridge regression will essentially do it will adjudicate between the different correlated layers, and it will select the appropriate layer for each voxel. And this kind of cleans up your data a lot. This is kind of an ongoing line of research in our lab, is how to use neural networks to get a fairer answer about what is being represented in the brain that's not contaminated by the biases in the neural networks themselves.
Okay, but the, in the last part of the talk, which I'll try to make quick I want to talk about another approach to using neural networks and deep learning that nobody's mentioned yet. And that is using the really great infrastructure for fitting deep networks to fit an architected neural network that is bespoke for your purposes. So I have long, for like the last 40 years, studied this visual area called Area V4. It's in the middle of the visual hierarchy. In the old days, when we had poorer methods you could only study one area at a time. You couldn't study the whole brain. So I started studying V4, and there's no good model of V4. It's a really important intermediate visual area. There's no computational model of V4 that does any good at all. So we tried to solve that problem.
And we tried to solve it by recording from single V4 neurons for weeks and months. So by doing that, this gave us a dataset that was far, far larger than anybody else's dataset. So rather than having, say, you know, 10 minutes of stimulus response histograms for a neuron, we would have, say, four hours of data from a single neuron. And over several years, we collected data from 300 neurons in two animals, and that was datasets, you know, 100 times bigger than any other dataset out there, for this area. So then we said, okay, now we want to fit neural networks. We still don't have enough data to just fit a general neural network, and plus then we would have an interpretation problem. So instead let's try to fit an architected neural network that is designed to reflect mechanisms, computational mechanisms, in the visual system that we know exist.
So that turns out to be this thing here. This is a cascade. We begin by taking our stimuli and doing a log-polar transform on them, and that's because your primary visual cortex does a log-polar transform on the retinal image to emphasize the fovea. Then we already know we have really good models in neuroscience for primary visual cortex. This is an area that's been studied for 60 years. There are really good models for this. They're used all the time in computer vision as the motion energy model. V1, we implement a motion energy model using neural network architecture deep network architecture. Then we take this V1 output and rectify it and shove it through a scattering transform, essentially mixing model, and shove it into another V1. So this V2 module is essentially exactly the same as this V1 module. It's another set of motion energy filters that apply to the output of V1. Then there's another scattering transform which is just mixing the different inputs, and then that goes into
essentially another V1 model. So the cool thing about this model is it's kind of a hypothesis that as you develop through this visual hierarchy, each level of visual hierarchy is essentially performing the same operation as the earlier level. It's just doing it on the rectified and remixed output. Yes? [AUDIENCE MEMBER] Mixing stuff there, there's no convolutional layer or it's all individual, pixelized, one by one? There [JACK GALLANT] That, don't even, don't even go there. There's a lot of weird com, local convolutions that go on here 'cause you have to do with color and time and space but they're kind of lost in the details on this level. So this is locally convolutional.
[AUDIENCE MEMBER] But it [JACK GALLANT] Has to preserve space obviously right? [AUDIENCE MEMBER] So space-- But what for, whether this looks like some kind of an arbitrary decision, why not three, why not 10? [JACK GALLANT] Oh, well, so it's an arbitrary decision if you're not, like, you know, a neurophysiology insider, right? So this model for V1 is like the canonical model for V1. It's like the model everybody believes. So then we have two areas from V1. We have V1 mostly projects in primates and humans to V2, and V2 mostly projects to V4. So down the ventral stream which is the pattern recognition stream of your brain. So these three layers, that's, like, set by the anatomy, and then the only question is, what do we want to do in V2 and V4? And since nobody has any idea, the easiest thing is, well, let's just assume that what happened when you as a primate developed new visual area is essentially just did the same
thing and re-routed the inputs. Right. So it looks arbitrary but I would, rather than arbitrary, I would replace it with the word elegant just because it sounds better. All right. And then we compared that to a VGG model and the really cool thing about this is you notice the number of parameters in this model is 20,000. If you take a pretrained VGG model and try to pitch these data, you're talking about, you know, millions of parameters right? So this model is way lower dimensional than taking pre-trained features from VGG. Way, way, way lower dimensional And it's anatomically plausible. Every single thing in this model we know how to build out of neurons, out of local circuit elements and neurons. Vgg, you know, we have no idea how to build that. So that's kind of cool. I really like that for this reason.
All right. And to make a long story short since we're running out of time, this thing predicts really well. This is VGG versus our model, and you can see our model basically consistently gives you better predictions. This prediction quality for these neurons is about the same as the predictions we used to a-- We already used to get from primary visual cortex. So since everybody believes we have a good model of primary visual cortex, by the criterion of prediction accuracy, we now have a good model of V4. But one thing I did want to mention here is this plot. This plot shows the prediction performance versus the amount of data we have. And if we had saturated, we would see flat curves
out here where we're not improving prediction anymore. You notice none of these curves, maybe this red one, but this one neuron-- this is four different neurons, none of these curves are flat, meaning we don't have enough data. We're already collecting 10 to the 6 frames, 100 times more data than anybody else has, and we still haven't saturated our ability to fit this model, even the simple HCE model. So this, again, I keep repeating myself, neuroscience is data limited. Even when you do everything you can to collect infinitely large datasets that no other human would collect, you're still data limited.
All right, now we have a problem which is that this model is, like, too, you know, all these stages are nonlinear. It's hideous to try to interpret what's going on here. There's no easy way to deal with this and try to interpret it. We can interpret the anatomy. We know what computation is being performed, but I can't go home and tell my wife, "Oh, here's what V4 does," which is what everybody wants to know. Is it curvature? Is it texture? Is it color? What is V4 doing, right? Everybody wants a story, and I can't give you a story based on this model. So the way we dealt with this was we actually took a, a trick that we learned from Bin Yu and we developed, we basically determined through an iterative process the optimal pattern that would drive all the V4 neurons in our sample. And you can see these optimum patterns here on these gray-- this is-- I should mention that these are spatio-temporal patterns, right? Because we're, we're building a

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