Naturalistic Cognitive Neuroimaging


Naturalistic Cognitive Neuroimaging

Anna
Welcome. This is the second presentation in a session on interpretable interpretability for biological systems. Our speaker, Jack Gallant, is a neuroscientist at Berkeley who studies cognition and uses human neuroimaging. He’s known for naturalistic experiments and for putting a lot of care into data science and model evaluation.

Maria
And Jack begins by setting up a contrast. The previous presentation used enormous datasets and machine learning for discovery. His talk takes almost the opposite approach: neuroscience has limited data, and that limitation shapes what kinds of models researchers can use.

Anna
He also contrasts scientific and engineering incentives. Both fields measure things, build models with fewer dimensions than the measurements, and try to predict new observations. But in his view, scientists often emphasize finding a low-dimensional explanation, while engineers must ultimately show that a model predicts reliably.

Maria
He argues that statistical significance by itself is not enough. A result can be statistically significant without telling us how well a model will predict new data. He says neuroscience papers do not always require separate training and test data, generalization tests, or effect-size reporting, even though those are essential for assessing predictive performance.

Anna
For engineering, the consequences of a failed prediction can be concrete—for instance, a bridge that does not hold up. So engineers have strong reasons to test whether models work beyond the data used to fit them. Ideally, you would have a model whose limits are understood and whose predictions are tested.

Maria
When such a model is mathematically tractable, that kind of understanding is the goal. But when the system is too complicated to analyze, a flexible model such as a neural network can be a practical stopgap: it may predict well, even when it is hard to prove when it will work. Jack’s point is that neuroscience cannot treat prediction as an afterthought, but it also cannot ignore interpretation.

Anna
Why is the brain such a difficult case? Jack calls it complicated on almost every level. It has about 80 billion neurons, arranged in hierarchical and parallel networks, with many-to-many recurrent connections. Activity changes with the task and over time, and learning continues at multiple timescales.

Maria
He also cautions against thinking that today’s deep networks are complete models of the brain. In his view, many such networks reflect relatively old ideas about neuroscience and leave out much of what researchers have learned about the brain’s complexity.

Anna
The central practical problem, though, is that neuroscience is data-limited. Jack compares it to astrophysics with a poor telescope: there are enormous numbers of things one would like to observe, but only a small fraction can be measured well. He says this has long been true in neuroscience and is likely to remain true for a while.

Maria
Even over half an hour, the brain’s physical network may be relatively fixed, but the information flowing through it changes with attention, learning, and what the person is trying to do. The control signals behind those changes are distributed and not fully understood. So brain representations are dynamic, not just fixed labels attached to brain regions.

Anna
To make that concrete, Jack shows an MRI experiment in which a person drives through a virtual town. The brain image is flattened for display: red indicates higher-than-average metabolic activity and blue indicates lower-than-average activity. Those patterns shift as the person navigates.

Maria
And this is not just someone watching a video. The participant is lying in the MRI scanner, using a steering wheel and pedals, and viewing the virtual town through a jury-rigged system. They learn the town for about ten hours, then follow instructions such as driving to a particular destination while the researchers record brain activity.

Anna
The task brings together many kinds of information: visual input, steering and pedal movements, destinations, memories of where the driver has been, plans for where to go, other cars and pedestrians, traffic signals, and road layout. The research question is not only what information the brain represents, but where and when those representations appear.

Maria
The experiment provides unusually rich measurements of the task. Because the environment is a video game, the researchers can extract details such as the locations of buildings and cars. They also track eye movements and motor behavior, so they know what the person sees, where they look, what the task demands, and how they respond.

Anna
Those stimulus, task, and motor variables are the inputs—often called X variables—and brain recordings are the outputs, or Y variables. In the experiment Jack describes, a standard MRI scan provides about 100,000 brain measurement points. He notes that MRI’s temporal resolution is about a second, because it measures slow changes in blood oxygenation linked to neural activity.

Maria
That is much slower than neurons can fire. Jack says neural activity can occur around a hundred times per second, while blood-flow changes are slow. So even a powerful, non-invasive measurement method has important limits.

Anna
With inputs and outputs in hand, the analysis becomes a regression problem: use the task variables to predict brain activity. But a simple linear mapping from the raw task to the brain would be inadequate, because the brain is highly nonlinear.

Maria
The lab’s usual strategy is a linearized model. First, they transform the task and stimulus information into an intermediate feature representation that might plausibly exist somewhere in the brain. Then they use regression to predict brain responses from those features.

Anna
The feature transformation can be complicated and nonlinear; the final regression step is linear. Jack’s reasoning is that, if the system is stationary, a linear readout can be attached to a nonlinear representation. If the brain’s representation changes over time, though, that assumption becomes a problem.

Maria
For the driving study, the researchers test 33 different feature spaces or models at once. These include different kinds of visual information, movement, navigation, and task-related features. Because the feature spaces differ in signal-to-noise ratio and may matter differently across brain regions, they use banded ridge regression to estimate separate regularization for each one.

Anna
A key detail is that they model one voxel at a time rather than averaging brain measurements together at the outset. Jack favors starting at the finest grain and avoiding averages that might throw away information. He says averaging can be useful when done optimally, but unconsidered averaging can obscure what is in the data.

Maria
The lab does use statistical tests, partly because the field expects them, but Jack says significance is not what they care about most. They estimate the noise ceiling—the best performance the data could support—and ask what fraction of that ceiling their model reaches. That makes prediction quality more informative than significance alone.

Anna
They also take overfitting seriously. They keep separate data for fitting and testing, divide the fitting data further for exploratory analysis, and, after settling on the models, test them in separate subjects. The point is to check that choices made during exploration have not merely been tuned to the original data.

Maria
The features themselves can be proposed in advance or labeled afterward, but post hoc choices create a risk of overfitting. The layered testing strategy is meant to guard against that risk. Feature spaces can also represent information over different time spans—for example, a driver’s starting location, the route ahead, or memories of the route already traveled.

Anna
Where do the features come from? Some are directly available from the virtual environment: semantic categories such as buildings, signs, and people; the driver’s gaze; visual properties such as color and optical flow; and behavioral measures. The researchers also draw on ideas in the existing animal and human navigation literature.

Maria
They fit all 33 models simultaneously. The result is a large collection of weights across brain locations and features—roughly tens of thousands of features fitted to about 100,000 voxels. That is too much information to inspect directly, so they use dimensionality reduction to look for broader patterns.

Anna
Dimensionality reduction itself involves choices. The team may use methods such as PCA, clustering, or t-SNE, and different methods can produce different views of the data. Jack’s practical advice is that when there is no single clearly correct method, try several approaches and see whether the conclusions remain consistent.

Maria
In one analysis, the broad patterns include future navigation, past navigation, visual input, and visual-motor functions. A PCA view yields three especially intuitive networks: motor, visual, and navigation. The researchers can map those patterns over the cerebral cortex and see that they are fairly consistent across the three subjects shown.

Anna
The components are interpreted using both their feature loadings and where they appear in the brain. For example, a component that loads on control variables and maps to the motor system is identified as motor-related. Jack stresses that this is a way to summarize a complex matrix, not a magic label that explains everything.

Maria
Another question is which feature spaces contribute to the predictions. The team uses variance partitioning, but Jack openly warns that it becomes difficult when there are many overlapping variables. The models are not orthogonal, so it is hard to assign a clean, independent share of the variance to each one.

Anna
Some features—such as driving affordances, the future route, steering controls, motion energy, and gaze-related semantics—account for much of the variance. More subtle navigation features that researchers might especially care about contribute little overall. Jack suggests they may matter in a smaller set of brain areas, including regions such as the hippocampus, where MRI signal-to-noise can be lower.

Maria
That result is a reminder that even a familiar statistical method can be hard to interpret in a complicated dataset. If researchers struggle to interpret a regression with 33 feature spaces, interpreting a deep learning model is not automatically easier.

Anna
Jack returns to the brain’s dynamic nature with a memorable example: if your cat, Fluffy, goes missing, your brain becomes focused on detecting Fluffy. Basic visual regions may continue representing the outside world in much the same way, while prefrontal activity can be recruited for the search. The task changes what information is emphasized.

Maria
In the driving data, the comparison is between a more neutral driving state and task-directed driving. Representations shift toward features that matter for the task, such as traffic signals, sidewalks, vehicles, and traffic signs. So the same brain is not simply running an unchanging set of representations.

Anna
Even with this elaborate experiment and analysis, the model explains only about half the variance in the brain data. There is still meaningful signal that the researchers cannot account for, and they do not yet know all the feature spaces needed to capture it.

Maria
One tempting response is to train a neural network directly on the neuroscience data. In principle, the network could be fitted by backpropagation and might predict well with enough data. But neuroscience does not have enough observations to fit a general network of that kind, and the resulting model would still raise difficult interpretation questions.

Anna
A more common approach is to take a network pretrained on another task and use its internal features to predict brain responses. In vision research, for example, researchers have used networks such as AlexNet or VGG, trained on static images, and found that their features can predict responses across parts of the visual hierarchy.

Maria
One study Jack mentions found that different AlexNet layers fit different locations in the early visual system. He sees that correspondence as expected: both the biological and artificial systems are hierarchical and trained to represent natural images. For him, the more surprising result would have been if their learned hierarchies did not correspond.

Anna
There is a complication: layers in deep networks can be highly correlated with one another. If they are all entered into a model without accounting for that correlation, it can be difficult to tell which layer is responsible for a prediction. Banded ridge regression can fit the layers separately and help select the most appropriate ones for each voxel.

Maria
Jack describes this as part of a larger effort to get a fairer account of what the brain represents, without letting the biases built into a pretrained network determine the answer. But he then introduces a different strategy: use deep-learning tools to build a custom network whose architecture is designed around neuroscience.

Anna
That strategy comes from a long-running problem in his lab: modeling V4, an intermediate area in the visual hierarchy. The team recorded from single V4 neurons for weeks and months, collecting about four hours of data per neuron rather than the much shorter recordings common in the comparisons he describes. Across several years, they gathered data from 300 neurons in two animals.

Maria
Even that unusually large dataset was not enough to justify fitting an unconstrained, general-purpose neural network. Instead, the researchers built an architected model based on mechanisms and pathways they believed were relevant to the visual system. That gives them a model designed to be more biologically plausible and easier to connect to known anatomy.

Anna
The model begins with a log-polar transformation, reflecting the emphasis on the fovea in primary visual cortex. It then uses a motion-energy model of V1, a well-established approach in neuroscience and computer vision. Further stages rectify and remix the outputs and apply similar operations as the model moves through V2 and V4.

Maria
The organizing hypothesis is that successive areas may repeat related computations on inputs that have been rectified and remixed. The number and order of the stages are not arbitrary in the way a simple diagram might suggest: they reflect the known progression from V1 to V2 to V4 in the primate ventral visual pathway.

Anna
The resulting model has about 20,000 parameters, far fewer than a pretrained VGG model. Jack argues that its components can be related to neurons and local circuit elements, whereas he says it is not clear how to build VGG in the brain. On the basis of prediction performance, the custom model consistently predicts the recorded V4 responses better than VGG in the comparison he shows.

Maria
Its prediction quality is comparable to what the lab had previously achieved for primary visual cortex, where researchers already had a strong model. That leads Jack to say they now have a good predictive model of V4 by that criterion. But prediction accuracy is not the same thing as a clear explanation of what V4 does.

Anna
The data still have not saturated the model. If performance had leveled off as more data were added, the curves would flatten. But the curves for most of the neurons are still rising, even after the team collected around a million frames—about 100 times more data than the comparison datasets he discusses.

Maria
So the model predicts well, but its internal stages are nonlinear and difficult to interpret. The researchers can describe the anatomy and the computations built into the model, yet they still cannot give the simple answer people want: is V4 mainly about curvature, texture, color, or something else?

Anna
To investigate individual neurons, the team uses an iterative method to estimate patterns that optimally drive each one. These are spatiotemporal patterns, though the slides show a summary over time. The researchers compare a predicted receptive field with the video frame that produced the neuron’s largest response in the experiment.

Maria
Some matches are striking—for example, a stimulus image of a prairie pheasant aligns closely with a distinctive leaf-shaped receptive field. But the patterns are often too complicated to interpret by eye. A vivid example does not, by itself, produce a general explanation of what the population of V4 neurons represents.

Anna
The next step is dimensionality reduction across neurons. The researchers can embed the neurons using different kinds of information, such as spatial or color structure, and then use familiar tools such as PCA or clustering to identify groups or patterns.

Maria
Using this kind of analysis, Jack says the team could account for reports of selectivity in V4 from the previous 40 years. That is a way to connect a complex predictive model to a body of experimental findings, although it still does not reduce the area to one simple feature.

Anna
In the questions afterward, someone asks whether each neuron has just one meaningful optimal pattern. Jack explains that they regenerated patterns many times—100 or 1,000 times per neuron—and examined how they varied. Most neurons had compact optima, while a few had two or three.

Maria
The key comparison was not only whether a neuron’s own optima were compact, but how different one neuron’s optima were from another’s. Jack says the optima were far apart across neurons, so neurons remained distinct even when an individual neuron had several possible optima.

Anna
He then broadens the answer beyond V4. Even V1 neurons, which are often described using relatively simple motion-energy filters, can be made distinct by the effects of their non-classical surrounds. Higher visual areas become more complicated, but Jack argues that their neurons also remain meaningfully different from one another.

Maria
In areas farther from sensory and motor surfaces, attention and learning can exert stronger effects. Jack gives the example of V4, where he says attention changes responses by about 15 percent, compared with much more flexible modulation in prefrontal cortex. There, a neuron’s response can be redirected by what the person is attending to or learning.

Anna
Asked whether attention is the same as plasticity, Jack calls this a personal view rather than a settled claim in his field. He suggests that attention may be a short-term, top-down form of plasticity, and that repeated attention over time may contribute to learning as temporary changes become more permanent.

Maria
The main lesson is that neuroscience is constrained by limited data, and that constraint limits which machine-learning methods can be fitted directly. Regression-based methods remain useful, and neural networks can contribute through pretrained features or carefully designed architectures. But neither predictive success nor a sophisticated model automatically solves the interpretation problem.

Anna
Exactly. The brain is both complicated and dynamic, and interpreting it is complicated too. Jack’s examples show why careful testing, attention to data quality, and multiple ways of analyzing results matter—and why even very large neuroscience datasets can leave important questions unanswered.

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