Deep convolutional models improve predictions of macaque V1 responses to natural images
Paper · 2019 · Santiago A. Cadena, George H. Denfield, Edgar Y. Walker et al.
Summary
A neuron in primary visual cortex can respond strongly to a bar tilted at a particular angle. Predicting how many spikes that same neuron will fire when shown a photograph is harder. A photograph contains edges, textures and contrasts that can influence the response together. Cadena and colleagues asked whether deep convolutional networks could predict those responses more accurately than the classical filters used to describe this part of the brain. They recorded spikes from awake rhesus macaques viewing grayscale photographs and textures synthesized from them, and evaluated the predictions on images held out from fitting.
The authors compared two ways of obtaining the visual features used to predict a neuron’s response. In the first, they took a network called VGG-19, already trained to recognize objects, and used the activity at one of its intermediate layers to describe each image. They fitted a separate mapping from that description to the spike count for each neuron. In the second, they learned the image features directly from the recordings. The neurons shared the same feature extractor, while each had its own mapping from those features to its predicted response. Sharing let the second approach learn visual computations from a population of neurons at once.
Across the 166 neurons included in the analysis, the best VGG-19 layer accounted for an average of 51.6% of the explainable variance on the test set. This metric compares the prediction with the part of response variability that can be attributed to the image, using repeated presentations to estimate trial-to-trial noise. The network trained on spikes reached 49.8%. A bank of Gabor filters, which detects oriented patterns and measures their strength across spatial phase, reached 45.6%. A simpler predictor that applied a single linear filter to the pixels reached 16.3%. The pretrained features also retained their predictive performance with 20% of the training images in the reduced-data analysis, while learning the features from spikes benefited from the full training set.
The comparisons suggest that successive nonlinear transformations capture something about V1 responses that the classical filters miss. The advantage over the Gabor bank appeared across the range from neurons that respond to a pattern at a particular spatial phase to neurons that respond more consistently as that phase changes. It also extended across a range of orientation tuning widths. The strongest predictions still left nearly half the explainable variance unaccounted for. The authors interpret object recognition as a useful way to learn features for predicting early visual responses. The experiments leave open which biological computations produce those responses and which parts of the network’s transformations approximate them.
Deep dive: Deep convolutional models improve predictions of macaque V1 responses to natural images
Deep convolutional networks predict macaque visual cortex responses to natural images better than classical filters, with less recording data when pretrained. · about 38 minutes to read
The problem and its context
From an oriented bar to a natural image
Primary visual cortex, abbreviated V1, receives visual information after processing in the retina and the lateral geniculate nucleus, a structure in the thalamus. The early place of V1 in that pathway makes it a natural place to ask how the brain transforms an image. In the work the authors describe, Hubel and Wiesel showed that neurons respond selectively to properties such as local orientation and contrast. A bar or grating gives an experimenter control over these properties. By changing its angle or position and measuring the response, the experimenter can characterize which patterns elicit spikes from a particular neuron.
A neuron’s receptive field is the region of visual space where an image can influence its response. An oriented pattern inside that region can give a clear demonstration of selectivity. A photograph places many patterns in the region at the same time. Contrasts can vary nearby and in the surrounding area, and the arrangement of one feature can change how much another feature matters. A quantitative account of a neuron should specify how those inputs combine and use that specification to predict a response to a new image. A description of the neuron’s preferred orientation addresses only part of that task.
The authors start with two familiar accounts of V1 selectivity. A linear–nonlinear predictor for a simple cell first weights pixels with a spatial filter and adds the weighted values. The result is a measure of how closely the image matches a signed pattern in the receptive field. A subsequent nonlinear function turns that score into a predicted firing rate. An energy calculation for a complex cell combines the responses of filters that prefer the same orientation and spatial frequency but differ in phase. Phase describes where the bright and dark parts of an oscillating pattern fall. Pooling the filters’ squared responses preserves information about the strength of the pattern when a phase shift changes which filter responds most strongly.
The paper describes these accounts as reasonably successful with controlled stimuli such as gratings. Complex patterns and natural images are a more demanding test of what they explain. The authors also point to a functional question raised by earlier research. If the main contribution of V1 were simply to replace retinal center–surround filtering with oriented linear filtering, the computational advantage of the change would need explanation. The question is what V1 adds when presented with the kinds of spatial structures that appear in natural scenes.
Richer filters and competing accounts of nonlinearity
Earlier work considered cascades in which the input passes through several operations before a spike rate is predicted. One approach learns subunits from neural recordings. Each subunit filters part of the image and transforms its response before a later operation combines the results. Another uses a collection of wavelets, localized filters whose scales and orientations are chosen in advance. The authors describe these cascades as an improvement over a single linear filter. They also explain why the number of parameters matters. If every neuron requires a large collection of independently learned subunits, fitting all of their weights demands more images and responses from each recording. With limited recording time, practical cascades tend to be designed around particular known properties, such as the energy computation associated with complex cells.
The paper identifies divisive normalization and overcomplete sparse coding as other candidates for explaining V1. In divisive normalization, a response depends partly on the activity of a pool of inputs that scales it. As the pool becomes more active, a given input to the neuron can have a smaller effect. This offers a way to explain gain control, where the same local signal produces different responses in different visual contexts. The authors describe work that used normalization to study interactions between the receptive field center and its surround with carefully controlled stimuli. They present learning a normalization function that predicts responses to natural images as a remaining challenge.
Sparse coding begins with a different question. It seeks a representation in which an image can be described using a small active subset of a larger collection of features. In an overcomplete representation, there are more candidate features than are needed for a basic spanning set. The paper discusses earlier work in which features learned through sparse coding resembled oriented filters associated with V1. An important next test would be to use the representation to predict the spike counts of individual neurons viewing natural images. Resemblance between learned filters and receptive fields addresses the form of the features, while spike prediction also tests how a particular neuron combines and responds to them.
Learning a representation before or during the recording analysis
Convolutional networks give the authors a way to test a wider class of image transformations. A convolution applies the same filter at successive locations in an image or feature map. Each filter can therefore respond to its preferred pattern at different positions using the same weights. The output records the strength of the feature at each position. A nonlinear transformation acts on those values, and further layers can combine the transformed outputs. The paper places this approach in the development of large-scale image classification, including the work on ImageNet classification by Krizhevsky and colleagues. ImageNet Classification with Deep Convolutional Neural Networks
The approach the authors call goal-driven takes a network trained for an external task and asks whether its intermediate features can help predict neural activity. In computer vision, using learned features for a different task is called transfer learning. The previous work discussed in the paper had used internal activity from object-recognition networks to predict responses in higher areas of the visual pathway, including V4 and IT. Other work had compared deep-network representations with measurements from earlier visual areas using functional magnetic resonance imaging, or fMRI. The authors wanted to test the approach on a different measurement in early cortex, the spikes of individual V1 neurons as they viewed natural images. The computer-vision precedent for reusing a classification representation included DeCAF. DeCAF
The approach they call data-driven learns the visual features from the spikes themselves. It makes use of two properties that the authors identify in local neural populations. The neurons receive input from common earlier stages of the pathway, and neurons at different positions can perform similar operations on their local inputs. A convolutional feature extractor can capture an operation once and apply it across positions. Neuron-specific weights can then determine which operations and positions matter for each cell. Earlier work discussed in the paper had used related ideas for mouse V1 and for retinal responses. Applying both routes to the same macaque recordings gave the authors a way to compare a representation learned under an object-recognition objective with one learned expressly to predict this population’s responses.
The method, step by step
Constructing the images and recording the responses
The experiment linked each visual stimulus to a count of spikes from each recorded neuron. The authors began with 1450 ImageNet photographs, converted them to grayscale and resized them to 256 × 256 pixels. They used grayscale to focus on spatial structure while keeping color out of the comparison. For each photograph, they made four textures that preserved different sets of statistics from the original. The complete set contained 7250 images, including the photographs and the synthesized textures. ImageNet supplied the photographs, while the texture procedure produced a graded set of stimuli for testing how much spatial structure the predictors needed during fitting. ImageNet Large Scale Visual Recognition Challenge
The texture procedure began with a white-noise image and iteratively changed its pixels to match statistics measured in the source photograph. The statistics summarized feature activations in VGG-19. The texture type called conv1 used statistics from conv1_1 alone. Conv2 used conv1_1 and conv2_1, and the higher texture types extended the set through their corresponding groups. At a shallow layer, the activation statistics reflect features sampled over relatively small areas. Deeper layers incorporate the results of more transformations and can bring together patterns over a wider area. Matching progressively deeper statistics thus changed the scale and complexity of the structure in the synthesized images. The procedure matched summaries of the activations, so it could retain aspects of local appearance while changing the layout of the photograph.
Before presenting the images, the authors mapped where the recorded population was most responsive. The monkeys fixated while a small black or white dot appeared at varying positions on a gray background. The researchers related the positions and timing of those dots to the spikes from each channel. They combined the responses across channels and fitted a spatial Gaussian at the lag where the signal was clearest. Its center estimated the population receptive field location for the session. Centering the image there brought the stimulus into roughly the same part of visual space for neurons recorded together. The individual readouts could still learn where each cell was most sensitive within that region.
The displayed image was the central 140-pixel crop, spanning 2 degrees of visual angle. The authors matched the mean and standard deviation of the pixel intensities within the central 1˚ of each image. They set the mean to 128, the level of the surrounding gray, and used the average standard deviation across images for the contrast adjustment. Values outside [0, 255] were clipped. The circular mask left the middle of the stimulus at full strength and tapered the contrast towards the gray background. The taper began at a diameter of 1 degree and reached the edge of the aperture at 2 degrees.
m(r) = {
1 if 0 < r < 0.5
0.5 cos(π(2r − 1)) + 0.5 if 0.5 ≤ r < 1
0 otherwise
}
Here, m is the mask value and r is radial distance from the center in units of the aperture radius. A mask value of 1 preserves the image contrast, and a value of 0 leaves the gray background. The cosine function, written cos, creates the transition over the outer band. π is the circle constant. The equation writes the inner band with a strict lower bound, while the stimulus description identifies the central area as unmasked.
Each fixation trial contained 29 images, with each image on screen for 60 ms and no blank between successive images. The authors randomized the order so that neighboring images differed in type and did not come from the same source photograph. A full pass through the stimuli took 250 successful trials. For another pass, they randomized the order again. This arrangement made it possible to sample a large set of images during a recording session and use repeated presentations to estimate how much a neuron’s spike count varied for the same image.
A 32-channel probe recorded electrical activity across cortical depth. The authors used waveform characteristics to assign individual spikes to neurons, tracked changes in waveform shape during the session, and checked the resulting units for features such as a refractory period, the short interval after a spike in which another spike is unlikely. The spike responses typically began about 40 ms after image onset. To make a response target for fitting, the authors counted each neuron’s spikes from 40–100 ms after onset. The target was the count in that window, so the fit concerned how strongly the neuron fired during its early response to the image. The experiments also recorded the timing of the spikes, which the authors used to characterize the response and choose the window.
Establishing which responses could be predicted
Repetition was essential to interpreting prediction errors. If a neuron can give different counts when the same image is shown again, even a predictor with the correct mean response will miss individual counts. The authors estimated that component of variability separately for each neuron. First they found how the counts varied across repeats of each image. They then averaged those within-image variances across the stimulus set.
σ²noise = Eⱼ[Varᵢ(yᵢ | xⱼ)]
Here, σ²noise is the estimated observation-noise variance. xⱼ is the image indexed by j, and yᵢ is the spike count indexed by repetition i for that image. The vertical bar indicates that the variance is calculated with the image held fixed. Varᵢ is the variance over repetitions, and Eⱼ averages the resulting variances over images. The estimate captures the variability present under repeated stimulation in this experiment.
The authors subtracted the estimated noise from the total response variance. The resulting quantity is the explainable variance, the variation in the response that the analysis attributes to changes in the image. To decide which neurons to include, they expressed it as a fraction of the total variance.
(Var[y] − σ²noise) / Var[y]
Here, y denotes the observed spike counts and Var[y] is their total variance. σ²noise is the within-image noise estimate, so the numerator gives the estimated stimulus-driven variance. The denominator expresses that quantity relative to the total variability for the neuron. The authors kept neurons with a fraction of at least 0.15. They also required enough successful trials in a session to obtain at least two repeats for each image. Together, these criteria made it possible to estimate the noise and focus the comparison on responses with a measurable image-dependent component.
Preparing the input and choosing what to learn
The input to the predictors was another crop of the stimulus. The authors took the central 80 pixels of the displayed image, corresponding to 1.1˚. For most analyses they reduced this crop to 40 × 40 and standardized the pixel values by centering them and scaling their variation. Hence, the input was a standardized central view of the stimulus, while the recorded spikes were elicited by the full displayed aperture. The authors also prepared other input sizes for a control on the relationship between receptive field size and the depth of the best VGG-19 layer.
The main approaches shared a computational outline. An image went through a set of filters and nonlinear transformations, producing a collection of feature maps. A readout assigned weights to locations and channels in those maps for an individual neuron. The weighted values were added with a bias, and an output function converted the sum to a non-negative predicted rate. Training used measured spike counts to determine the adjustable quantities. The two approaches differed mainly in whether the filters that generated the features were learned beforehand from labeled images or during fitting to spikes.
From a visual stimulus to a spike prediction
The steps in order.
Reading out a pretrained image representation
The goal-driven approach used VGG-19 because its organization allowed relatively fine comparisons across layers as receptive field sizes increased, and because it had performed well at image classification. VGG-19 was trained to take a color image and identify the dominant object among 1000 classes. In the neural prediction experiment, the authors took the maps from a convolutional layer as the image representation. Each channel supplied a spatial array of feature activations. The categorization output had already served its purpose in training the network. For spikes, the authors fitted a new output using the internal maps. VGG-19
The network has 16 convolutional layers organized into groups labeled conv1 through conv5. Within a layer, convolution is followed by a rectification, which retains positive activation and sets negative activation to zero. After each group, max pooling takes the largest activation from a small spatial neighborhood, reducing the resolution of the feature maps. As convolutions and pooling accumulate, a point in a deeper map can depend on a larger region of the input. Its value also reflects more successive nonlinear operations. These changes occur together, which is why comparing layers alone leaves several possible explanations for a difference in prediction accuracy.
The authors fitted a separate generalized linear readout for each neuron at each candidate layer. The word linear refers to the weighted sum of the supplied feature values. Those values can already depend nonlinearly on the image. With the fixed exponential output, the pretrained approach made the following prediction.
r(x) = exp(wᵀF(x) + b)
Here, x is the input image and F(x) is the collection of feature values extracted from the chosen layer. w is the vector of readout weights for the neuron, and the superscript ᵀ indicates a transpose so that wᵀF(x) is a dot product. b is a neuron-specific bias. The function exp is the exponential, which maps the pooled score to a positive value. r(x) is the predicted rate for the image, used as the mean of the Poisson distribution for the response count.
The authors also give the readout in a form that makes the positions and channels explicit and allows different output functions.
r(x) = f(Σᵢⱼₖ Fᵢⱼₖ(x) wᵢⱼₖ + b)
Here, i and j index the two spatial dimensions of the map, and k identifies the feature channel. Fᵢⱼₖ(x) is the activation at that position and channel for image x, and wᵢⱼₖ is the corresponding readout weight. Σᵢⱼₖ adds the products across all positions and channels. b is the bias, f is the output function, and r(x) is the resulting prediction. The exponential is one choice of f. The data-driven network and the Gabor bank use different choices.
Before the selected layer’s rectification, the authors used batch normalization to place the channels on a comparable scale. This matters because a large-valued feature can make the same contribution to the weighted sum with a smaller weight than a low-valued feature. A penalty on the weight would then treat those contributions differently. Normalizing the activations makes the weight penalty more comparable across channels. The authors learned the normalization parameters while using the original convolutional features.
Constraining the readout
A dense readout from a VGG-19 layer can attach a separate weight to every position on every map. Many of those positions are far from any given neuron’s receptive field. Some maps may also respond to features that have little bearing on that cell’s spikes. The authors added penalties to fitting so that the readout would favor a localized set of positions and a limited set of feature channels. The first penalty encouraged individual weights to vanish.
Lₛ = λₛ Σᵢⱼₖ |wᵢⱼₖ|
Here, Lₛ is the sparsity penalty, λₛ controls its strength, and wᵢⱼₖ is the weight at spatial position i, j and channel k. The vertical bars denote absolute value, and Σᵢⱼₖ sums those values over the readout. This is the L1 penalty. A set of weights can reduce its cost by concentrating the readout on the inputs that make the largest contribution to predicting the spikes.
The second penalty measured how abruptly the weights changed across nearby positions on a feature map. It applied a discrete Laplacian to the spatial weights. This operation compares the weight at a position with its immediate neighbors.
K = [[0, 1, 0],
[1, −4, 1],
[0, 1, 0]]
Here, K is the spatial kernel used to compute the Laplacian. Its negative central coefficient and positive neighboring coefficients form the local comparison, and the zero coefficients leave out diagonal neighbors. Reversing all of the kernel’s signs would leave the squared penalty unchanged.
Lᴸ = λᴸ √(Σᵢⱼₖ [(w:,:,k ∗ K)ᵢⱼ]²)
Here, Lᴸ is the smoothness penalty and λᴸ sets its weight in the loss. w:,:,k is the entire spatial weight map for channel k. The symbol ∗ denotes convolution with the Laplacian kernel K. The subscript i, j selects one position in the resulting array. Σᵢⱼₖ sums the squared responses over positions and channels, and √ is the square root. The penalty favors spatially continuous changes in the readout. Together with sparsity, it allows a localized patch of neighboring weights to be preferable to a widely scattered set.
The third penalty treated each feature map as a group. A feature channel with appreciable weights anywhere on its map incurs a cost, while a channel whose weights are all zero contributes nothing.
Lɢ = λɢ Σₖ √(Σᵢⱼ wᵢⱼₖ²)
Here, Lɢ is the group sparsity penalty, and λɢ sets its strength. For channel k, Σᵢⱼ sums the squared weights over spatial positions i and j. Taking √ gives the size of the spatial weight vector for that channel. Σₖ adds those sizes over channels. The individual sparsity term acts on single weights, and the group term allows the fit to select a smaller collection of feature maps as a whole.
The loss combined the penalties with a Poisson negative log-likelihood. In terms of the fit, the likelihood measures how compatible a measured integer count is with the predicted mean count. Once terms that depend only on the observations are omitted, the loss can be written as follows.
L = Σ₍ₓ,ᵧ₎ [r(x) − y log(r(x))] + Lₛ + Lᴸ + Lɢ
Here, L is the objective to minimize, and Σ₍ₓ,ᵧ₎ sums across training pairs for the neuron. x is the image, y is its measured spike count, and r(x) is the predicted mean count. log is the natural logarithm. Lₛ, Lᴸ and Lɢ are the individual sparsity, spatial smoothness and group sparsity terms, respectively. The rate term penalizes large predicted counts, while the logarithmic term makes a very small predicted rate costly when the observed count is high.
The authors assigned 80% of the data to training and held out the remaining 20% for test evaluation. They used 20% of the training portion for validation. For the pretrained readouts, the validation search examined four logarithmically spaced values for each of the penalty strengths, carrying out the search separately for each neuron. The authors report λᴸ = 0.1 for spatial smoothness, λₛ = 0.01 for individual sparsity and λɢ = 0.001 for group sparsity as the optimal values obtained on validation. The train, validation and test assignments were shared across approaches, so differences in which images were held out could not account for differences in performance.
Learning a convolutional core from spikes
The data-driven approach learned its convolutional filters using the stimulus and spike-count pairs. The same image passed through a common feature extractor for the recorded population, so errors from different neurons could inform the weights of the same filters. Each neuron still received its own rate prediction. The distinction between a shared core and individual readouts is important here. The shared computation learns how to describe an image, while the readout learns where and to which features a particular neuron responds.
The authors examined networks with one to five convolutional layers. The input layer used 13 × 13 filters. Subsequent layers used 3 × 3 filters, and every layer produced 32 maps. Batch normalization was used in the convolutional stack, and the nonlinearities were exponential linear units, or ELUs. The first layer’s filters were encouraged to vary smoothly in space. The later layers used group sparsity. In the three-layer architecture used for the main comparison, the first convolution had no padding, and the subsequent convolutions used zero padding. Its output had dimensions of 28 × 28 × 32 for the 40 × 40 input. Exponential linear units
ELU(z) = {
z if z > 0
exp(z) − 1 if z ≤ 0
}
Here, ELU is the activation function and z is a value entering it from the preceding operation. exp denotes the exponential. Positive values pass through as they are, and the nonpositive branch approaches a lower bound as z decreases. The change in behavior across the branches allows the next convolution to combine transformed activations.
Each neuron’s readout separated the weights for spatial location from the weights for feature channel. That gives the neuron a spatial region from which to pool and a set of feature preferences that applies over that region.
wᵢⱼₖ = uᵢⱼ vₖ
Here, wᵢⱼₖ is the effective readout weight at position i, j in channel k. uᵢⱼ is the spatial mask at that position, and vₖ is the feature pooling weight. Their product determines the influence of the activation. A single spatial mask serves all feature channels for a neuron, which reduces the number of free readout weights and allows each channel to have a different overall influence.
The data-driven readout also used an adaptable final function. The authors describe it as a base curve multiplied by a learned positive adjustment. This allows the relation between the pooled score and the predicted rate to vary from neuron to neuron.
f(z) = h(z) g(z)
Here, z is the pooled scalar score including the bias, f is the output function that predicts the rate, and g is the fixed base curve. h is a positive multiplier learned from the spike data. The product changes the shape of the rate curve while preserving its non-negative output.
g(z) = ELU(z − 1) + 1
Here, g is the base curve and z is the pooled score. ELU is the exponential linear unit defined above. The subtraction inside its argument shifts the curve to the right, and the addition outside shifts the curve up so that its values can serve as non-negative rate predictions.
h(z) = exp(Σᵢ₌₁ⁿ αᵢ tᵢ(z))
Here, h is the adjustment multiplier at score z, exp ensures positivity, and the sum runs from coefficient index i = 1 to the last index n. αᵢ is a learned coefficient and tᵢ is its local tent basis function. A tent basis has a peak at an interpolation point and slopes down on each side. The weighted sum interpolates the adjustments on the log scale, and the exponential turns the interpolation into a multiplier.
tᵢ(z) = min(max(0, (z − zᵢ₋₁) / Δz), max(0, (zᵢ₊₁ − z) / Δz))
Here, tᵢ is the basis function centered at interpolation point zᵢ. z is the pooled score, and zᵢ₋₁ and zᵢ₊₁ are the adjacent interpolation points on either side. Δz is their grid spacing, which the authors set to 0.18. They give the interpolation points as −3, −2.82, . . ., 6. The function max clips each of the rising and falling terms at 0, and min selects the lower of those terms, giving the tent its local shape.
Lₒᵤₜ = λₒᵤₜ [Σᵢ₌₂ⁿ (αᵢ − αᵢ₋₁)² + Σᵢ₌₂ⁿ⁻¹ (2αᵢ − αᵢ₋₁ − αᵢ₊₁)²]
Here, Lₒᵤₜ is the penalty on the output curve and λₒᵤₜ determines its strength. αᵢ is the interpolation coefficient at index i, with αᵢ₋₁ and αᵢ₊₁ denoting its neighbors. n is the last coefficient index. The first sum penalizes changes between adjacent coefficients, and the second penalizes changes in those differences. The authors used these constraints to favor a smoothly varying function close to the base curve. Adjusting the output function helped the data-driven approach, while trying the same procedure with the pretrained features did not improve its predictions.
Fitting the classical alternatives
The first baseline was a linear–nonlinear Poisson predictor, abbreviated LNP. It fitted one spatial filter per neuron directly to the input pixels. The dot product with the image became a non-negative rate through an exponential function. In the notation of the fitting objective, the Poisson term is evaluated on that rate. The authors regularized the pixel filter with sparsity and spatial smoothness.
Lᴸᴺᴾ = Σᵢ₌₁ᴹ [r(xᵢ) − yᵢ log(r(xᵢ))] + Lₛ(w) + Lᴸ(w)
Here, Lᴸᴺᴾ is the fitting loss for the linear–nonlinear Poisson baseline. M is the number of training pairs and i indexes those pairs. xᵢ is an image, yᵢ is its measured spike count, and r(xᵢ) is the exponential rate obtained from the linear filter w. log is the natural logarithm. Lₛ(w) and Lᴸ(w) are the sparsity and smoothness costs on that filter. Since the input is a single image channel, the weights can be viewed directly as a spatial receptive field in pixel coordinates.
The second baseline used a Gabor filter bank, abbreviated GFB. A Gabor filter consists of an oscillating pattern inside a Gaussian envelope. The envelope localizes the filter, and the oscillation determines which repeating pattern it responds to within that area. A bank gives the readout access to many combinations of locations, orientations and spatial frequencies. The authors used a pair of filters for each such combination, with phases offset so that one captured the symmetric component and the other captured the antisymmetric component.
gσ,f,γ,θ,φ(x′, y′) = exp(−(x′² + γ²y′²) / (2σ²)) cos(2πfx′ + φ)
Here, g is the filter value at rotated spatial coordinates x′ and y′. σ is the standard deviation controlling the size of the Gaussian envelope, and γ is the aspect ratio controlling its shape. f is the spatial frequency, θ is the rotation angle that determines the primed coordinates, and φ is the phase of the oscillation. exp defines the Gaussian envelope, while cos supplies the oscillation and π converts cycles to angular units. In this expression, x′ determines position along the axis of oscillation.
[x′, y′]ᵀ = [[cos(θ), sin(θ)], [−sin(θ), cos(θ)]] [x, y]ᵀ
Here, x and y are the original spatial coordinates, and x′ and y′ are their values after the rotation used to define the filter. θ is the orientation parameter. cos and sin are the cosine and sine of that angle. The superscript ᵀ presents each coordinate pair as a column, so multiplying by the middle matrix rotates it.
The filter bank ties the available spatial frequencies to the size of the Gaussian envelope. This allows the bank to sample specified numbers of cycles across an aperture of a given width.
fₙ = n / (4σ)
Here, fₙ is the spatial frequency indexed by n, the number of cycles over the aperture, and σ sets the Gaussian scale. The denominator 4σ is the aperture width used to specify these frequencies. The filter kernel was limited by the input image size, using the nearest integer to 4σ/γ for its nominal dimensions, with γ the aspect ratio.
Eσ,f,γ,θ = I ∗ₛ gσ,f,γ,θ,φ=0
Here, E is the even feature map for scale σ, spatial frequency f, aspect ratio γ and orientation θ. I is the input image, and ∗ₛ is convolution evaluated at stride s, the spacing between sampled positions. g is the Gabor filter with its phase φ set to 0.
Oσ,f,γ,θ = I ∗ₛ gσ,f,γ,θ,φ=π/2
Here, O is the odd feature map for the same scale σ, frequency f, aspect ratio γ and orientation θ. I again denotes the input image, ∗ₛ is the strided convolution, and g now has its phase φ set to π/2. π is the circle constant. The phase offset makes the odd filter sensitive to the complementary alignment of bright and dark regions within the envelope.
Aσ,f,γ,θ = √(Eσ,f,γ,θ² + Oσ,f,γ,θ²)
Here, A is the energy feature as computed in the paper’s equation. E and O are the even and odd map values at the corresponding location for the same σ, f, γ and θ. Their squares are added and √ takes the square root. The combined magnitude can stay large when a change in phase transfers the response from one member of the pair to the other.
The readout received the even, odd and energy maps together. It could thus express phase-sensitive behavior through the even and odd maps, and more phase-tolerant behavior through the magnitude maps. The selected bank used filter sizes of 6 px, 11 px and 21 px, Nᶠ = 3 frequencies per size, Nᶿ = 8 orientations and γ = 1 for the aspect ratio. The stride was 6, and the L1 penalty coefficient chosen for the readout was 0.05. The readout had a shifted ELU output and was fitted with the Poisson loss. The validation search included banks with multiple aspect ratios, which did not improve performance.
Training and scoring the predictions
The authors implemented the approaches in TensorFlow and optimized them with Adam using mini-batches of size 256. They checked validation performance every 100 training steps. After ten checks showed no improvement, they cut the learning rate to one-third of its previous value and applied this reduction three times in total. They selected the initial learning rate for the goal-driven fits using validation and used 1e-4 for the other fits. They made the recordings available through GIN and released the fitting code in the Cadena2019PlosCB repository. TensorFlow · Adam
The metric was the fraction of explainable variance explained, abbreviated FEV. Its purpose was to compare the prediction error with the response variability available to be explained after accounting for repeated-trial noise. The authors subtracted the same noise estimate from both the residual mean squared error and the total variance used to scale it.
FEV = 1 − [(1/N) Σᵢ (yᵢ − ŷᵢ)² − σ²noise] / [Var[y] − σ²noise]
Here, FEV is the score for a neuron, N is the number of observations entering the evaluation, and Σᵢ sums over those observations. yᵢ is the observed spike count on observation i, and ŷᵢ is the predicted mean count for its image. Squaring their difference and averaging gives the mean squared error. σ²noise is the estimate obtained from repeated presentations of the same image. Var[y] is the total variance of the counts. The denominator is the explainable variance, and subtracting the normalized residual from 1 expresses the part of it that the predictor accounts for. The Poisson likelihood guided fitting, while FEV assessed how well the fitted predictions captured stimulus-related variation on held-out images.
Experiments and results
The recorded population
The authors initially recorded 307 neurons over 23 sessions. After excluding sessions with insufficient repeats, the Results section describes 262 isolated neurons from 17 sessions. Applying the reliability threshold left 166 neurons for the main comparisons, with 51 from monkey A and 115 from monkey B. Monkey A contributed sessions with two repetitions per image and monkey B contributed sessions with four. The Methods report an average explainable share of total response variance of 0.285 for the retained population. The benchmark scores therefore refer to the fraction of that stimulus-related component explained for each neuron and averaged across the population.
The retained neurons came from different cortical depths and had a range of receptive field shapes and firing behavior. In the recordings described before the reliability screen, the mean firing rate during stimulation was 21.1 ± 20.8 spikes/s, where the second value is the standard deviation across cells. The reported depth distribution included 55% in granular layers, 18% in supragranular layers and 27% in infragranular layers. These properties supplied a varied population for comparing predictions, with the stimulus centered on the population receptive field in each session.
Comparing the predictors on held-out images
The main benchmark kept the training and test assignments fixed across approaches. The linear–nonlinear Poisson baseline reached 16.3% mean test FEV. The Gabor filter bank reached 45.6%, showing that the classical comparison was stronger when the readout could draw on a variety of orientations, positions and energy features. The directly trained convolutional network reached 49.8%, and the pretrained VGG-19 readout reached 51.6%. Those population means describe the same held-out task, using spike counts measured in the 40–100 ms window and correcting the error for estimated trial-to-trial noise.
Mean FEV on held-out macaque V1 stimulus images
The pretrained VGG readout led the comparison, with the network trained on spikes close behind.
The numbers
| System or setting | FEV % |
|---|---|
| Linear–nonlinear Poisson | 16.3 |
| Gabor filter bank | 45.6 |
| Convolutional network trained on spikes | 49.8 |
| Pretrained VGG conv3_1 readout (this paper) | 51.6 |
The paper also compared scores neuron by neuron. The convolutional approaches generally performed better than the classical alternatives across the population. Comparing paired scores preserves information about how each approach did on the same neuron, whose response reliability and stimulus sensitivity might differ markedly from those of another neuron. The authors found all pairwise differences statistically significant using a Wilcoxon signed-rank test with n = 166 and a family-wise error rate of α = 0.05, corrected through the Holm–Bonferroni method. They plotted 95% confidence intervals for the population means. The statistical comparison distinguishes the scores within the recorded sample, while the close means of the two convolutional approaches put the size of their separation in context.
The Gabor result also clarifies what the convolutional approaches improved on. A single-filter baseline can miss responses that depend on multiple orientations, locations or phases. The Gabor bank already supplied those inputs and gave the readout access to a phase-tolerant measure of their strength. The convolutional gain over this bank therefore concerns response structure beyond what that rich set of fixed filters and its fitted readout captured. The gain over the single-filter baseline includes capabilities that the Gabor bank also provided.
Selecting a layer and an architecture
For VGG-19, the authors fitted readouts across all 16 convolutional layers and compared their test scores. The first layer reached 31% mean FEV. Scores rose through conv3_1, the fifth convolutional layer, which reached 51.6%. Farther into the network the scores declined. The earliest features were less predictive under the main input scale, and the most advanced convolutional representation was also less predictive. The pattern favors the intermediate representation within this network and display calibration.
For the network trained on spikes, the authors compared depths on validation data and selected the three-layer architecture for the main benchmark. Networks with three or more convolutional layers performed better than the shallower choices. The single-layer architecture, which had a structure similar to an earlier learned convolutional-subunit approach, gave a mean FEV of 34.5% in the depth comparison. The authors used the three-layer version because it achieved high validation performance with the fewest convolutional layers among the strong candidates. Its test result in the main benchmark includes the separately fitted nonlinear function that transforms the pooled score into a rate.
The authors emphasize that the two convolutional routes achieved similar predictive performance while learning different parts of the mapping from spikes. The pretrained representation was fixed apart from the normalization at its output, and its dense readouts had a large nominal parameter count. The paper gives 25,601 readout parameters per neuron for conv3_1 and 512 shared normalization parameters. For the network trained on spikes, the Methods give 867 readout parameters per neuron, including the output curve. Its convolutional core was also learned. These figures help explain why counting every fitted weight alone gives an incomplete picture of the amount of neural data each route needs. The organization of the weights and the constraints on their use matter as well.
Training and testing across image types
The photographs and textures allowed an experiment on generalization across stimulus statistics. The authors fitted the pretrained conv3_1 readout and the directly trained network using the entire mixture and using each image type separately. They then evaluated predictions on the mixture and on each type individually. These comparisons distinguished a change in performance due to the choice of training images from a change due to the type of image on which a prediction was tested.
For each architecture, training on a specific type gave broadly similar results across the tested types. In particular, training on conv1 textures transferred to natural photographs about as well as training on photographs did in the corresponding comparison. Those textures match localized statistics and look much less like natural scenes. Their performance shows that, within this stimulus family and response window, a training image could be effective even if it lacked the perceptually recognizable organization of the photograph it came from.
Training on an individual stimulus type also reduced the amount of available data. The VGG-based readout maintained its performance with 20% of the training images in this analysis. The directly trained network showed a marked reduction when fitted on a single type and reached its best result with the full training set. For the recording paradigm in the paper, pretraining therefore gave a practical data advantage even though the scores with the full dataset were close. The authors interpret the reduction for the directly trained network as evidence that learning a shared feature space from spikes was the harder part of fitting with fewer observations.
What the ablations show
Separating receptive field size from layer depth
Since VGG-19 receptive fields grow with layer depth, conv3_1 could have benefited in part because its units saw about the right part of the visual field. At the main input scale, the authors estimated that its units covered roughly 0.68 degrees of visual angle. This was roughly consistent with the expected receptive field sizes of the neurons at the eccentricities sampled. An input pixel corresponds to a chosen width in visual space, however. By resampling the same crop, the authors could change the angular size of a network unit’s receptive field while leaving its depth and learned filters fixed.
They repeated the layer comparison after resampling the central crop to 27 × 27, 40 × 40 and 60 × 60. The relative scales were 0.67, 1 and 1.5. The paper gives an effective field of view of 6.4 degrees for the unscaled VGG-19 calibration and gives 9.55 and 4.25 degrees for the smaller and larger input resolutions, respectively. These field-of-view values describe the scale of the network’s image coordinates. The monkey’s displayed image aperture remained 2 degrees.
The layer with the best predictions shifted with image resolution in the direction expected from receptive field size. At lower resolution, conv2_2 came close to the best performance of conv3_1 at the main scale. Among the combinations compared, the original scale with conv3_1 still gave the highest performance. The control shows that a layer’s predictive value reflects the spatial scale of its features as well as their position in the processing hierarchy. It also gives the result a more precise scope. Conv3_1 was the strongest combination within the tested layers and input scales.
Removing and changing readout constraints
The authors refitted the conv3_1 readout after dropping individual penalties and after dropping all of them. They also fitted a version with the spatial and feature weights factorized, as in the directly trained architecture. Thus, they could test the effect of restricting the readout while working from the same pretrained representation. The paper reports these scores as FEV fractions in its ablation table.
Test FEV for conv3_1 readout constraints on the macaque V1 images
Combining the readout penalties gave the highest score, and removing them together caused the largest drop.
The numbers
| System or setting | FEV |
|---|---|
| Full readout with all penalties (this paper) | 0.52 |
| Without spatial smoothness | 0.51 |
| Without individual sparsity | 0.49 |
| Without group sparsity | 0.51 |
| Without regularization | 0.33 |
| Factorized spatial and feature readout | 0.45 |
The largest decline came when the fit could freely assign weights throughout the feature maps. Of the individual omissions, removing the penalty on individual weights produced the lowest test FEV. Omitting spatial smoothness or group sparsity produced scores close to the full readout on this metric. The factorized readout also gave up predictive performance. The authors give 45.5% FEV for the best factorized fit in the prose. One explanation they offer is that features from the fixed image network were never trained to support a readout with just one spatial mask per neuron. A dense readout can give different feature channels different patterns of spatial weights, which is useful if relevant features are expressed at different locations in the pretrained maps.
The authors inspected the fitted weights as well as their predictions. Without individual sparsity, the spatial maps could remain smooth while spreading over a larger area. Without smoothness, they could contain isolated weights and lose the continuous spatial structure visible in the full fit. When all penalties were absent, the weights looked noisy and gave little indication of where the neuron was sensitive. The full readout produced smoother, more localized patterns. Across neurons, 20 feature maps out of the 256 in conv3_1 contained an average of 82% of the readout energy. The weight analysis shows how a dense set of available inputs could yield a fit concentrated on a small part of that set.
Testing whether classical tuning explains the gain
The authors examined whether the convolutional advantage could be traced to familiar differences in V1 tuning. They presented Gabor patterns to the data-driven network and treated its predicted responses as tuning measurements. The patterns varied in orientation, spatial frequency and phase, with the same size as the image stimulus. For each neuron, they found the best spatial frequency and used it to examine orientation tuning and phase tuning. They fitted a von Mises curve, a smooth curve for angular data, to the orientation responses and used its full width at half maximum to summarize the width of the tuning. Narrower widths indicated that the predicted response fell more quickly as the angle moved away from the preferred one.
To summarize phase sensitivity, they fitted a cosine with an amplitude and an offset to the phase response at the preferred orientation. The amplitude describes how much the predicted response varies as phase changes, and the offset is the level around which it varies.
linearity index = amplitude / offset
Here, amplitude is the size of the fitted cosine modulation, and offset is the fitted baseline level of that tuning curve. Values near 1 indicate the strong phase dependence associated with simple cells. Values near 0 indicate the more phase-tolerant behavior associated with complex cells. These were estimates from the simulated responses to Gabors, derived from the fitted network’s predictions for each neuron.
The Gabor bank’s improvement over the LNP baseline tended to be greater for more complex cells. The convolutional approaches also showed this pattern when compared with the LNP baseline. This is consistent with what an energy feature can do. It carries a measure of oriented contrast even when phase changes which linear filter responds most strongly. The extra gain of the convolutional approaches over the Gabor bank showed no systematic dependence on the linearity index. The authors therefore interpret the convolutional advantage as capturing response structure present across the simple-to-complex range represented in the sample.
Orientation tuning gave a similar comparison. Sharply tuned cells tended to show larger improvements when the Gabor bank or either convolutional approach was compared with the single-filter baseline. Tuning width did not predict the added gain of the convolutional approaches over the Gabor bank. The result places a constraint on explanations of the gain. An account tied only to phase tolerance or only to sharp orientation tuning would need to explain why these properties tracked the improvement over the simpler baseline but did not track the improvement beyond the already rich filter bank.
Limitations
Limits the authors state
The authors emphasize that the best predictions leave nearly half of the explainable response variance unaccounted for. They attribute part of the remaining error of the pretrained approach to a possible mismatch between VGG-19 features and V1 computations. The evidence for that interpretation comes from its reduced-data performance. Adding more of the same training images gave little further gain once the pretrained readout had enough examples. The paper suggests that a representation learned from a wider range of behaviorally relevant tasks might capture properties that object categorization alone leaves out. That proposal remains a hypothesis about the source of the residual errors.
The directly trained network was more sensitive to the amount of neural data. The authors infer that estimating the shared convolutional features was a bottleneck and suggest that longer recordings or responses from more neurons might help. The reduced-data experiment observes performance within the range of available images. It leaves open the size of any gain from a larger dataset and whether the same architecture would continue to be the best choice with more recordings.
The authors also distinguish predictive performance from identifying the computation that produced the spikes. Several operations in V1 could help account for the improvement over the Gabor bank. Divisive normalization is one candidate, with earlier work pointing to multiple possible pools that can differ in their feature tuning and spatial reach. The paper did not fit the full normalization function to these natural-image responses. It also did not evaluate a convolutional sparse-coding representation as a competing feature space. The comparison establishes a gain over the implementations that were tested and leaves those mechanistic alternatives unresolved.
The authors describe the short presentations as favoring early, mainly feedforward responses. They discuss adding recurrent lateral interactions and feedback as future work. The predictors mapping an image to a response count do not estimate separate contributions from those pathways. The authors also note that accurate predictions may be compatible with several circuit mechanisms, so studying what objective the visual system serves could complement attempts to infer its individual components.
Limits evident from the experiment
The predictive benchmark concerns a selected set of 166 neurons from two fixating rhesus macaques. The reliability threshold made noise correction more informative and focused the study on cells with detectable stimulus-driven variance in this paradigm. It also conditions the comparison on the retained neurons. Cells whose counts were less reliable across repeats, or whose strongest responses might require other stimuli, are outside that benchmark. The different numbers of presentations in the two animals also mean that the within-image variance was estimated from different amounts of repeated data.
The targets were early spike counts for images presented in rapid succession. A different presentation duration, an isolated image or a task requiring the animal to act on the image could yield a different balance of response components. The analysis discarded the exact timing of spikes within its chosen window, along with activity outside it. Grayscale and contrast matching narrowed the input variation. Furthermore, the predictors received a central 1.1˚ crop of a stimulus displayed through a 2-degree aperture. The success of a predictor under these conditions concerns spatial information available in that crop, with any influence of the rest of the display left to the effects it has on the recorded count.
The transfer across stimulus types is informative within the construction of the experiment. The textures share source photographs, and their generation uses statistics drawn from the VGG-19 hierarchy. Both the VGG readout and the independently trained convolutional network transferred across these image types. The tested range still consists of one collection of photographs and related synthetic images, all with the same stimulus preparation. The result leaves open how training on other families of textures would generalize, or how these predictors would respond to stimuli designed to isolate a particular surround interaction or temporal effect.
The layer and depth comparisons change several aspects of the predictors at once. Successive VGG-19 layers differ in the transformations already applied, in how large a region a unit can see, and in the spatial organization and number of available features. The resolution control addressed one part of this issue and showed that scale can shift the preferred layer. The depth comparison in the directly trained network also changes what the shared feature extractor can represent. Together these experiments support using successive nonlinear operations for the prediction task. They do not establish a minimum count of biological stages or assign the successful operations to particular layers of cortex.
Finally, the data-efficiency comparison contrasts a combination of choices. The VGG approach reuses features learned on ImageNet and works with a regularized dense readout. The directly trained network learns its core from spikes and uses a factorized readout with an adjustable output function. The observed reduction in recording needs applies to those systems under the same stimulus protocol. The experiment leaves open how much of the benefit a different pretraining task, architecture or readout would retain. Similarly, the tuning analysis links predictive gains to properties inferred from simulated Gabor responses. Direct measurements of tuning under the same recording conditions would give a separate way to test those relationships.
What came after
From Language to Cognition: How LLMs Outgrow the Human Language Network (2025) cites Cadena and colleagues in a study whose title places the focus on language and cognition. The citation establishes that the V1 study entered a discussion of how networks trained on a task relate to biological brain responses beyond the visual setting. The citing work’s specific use of Cadena and colleagues’ method or findings is unspecified. The point of contact is the question the V1 experiment made concrete in vision. A network trained for an external objective can supply internal representations to compare with measurements from the brain, and the strength of that comparison can depend on which representation is examined.
Cite
Cite as Santiago A. Cadena, George H. Denfield, Edgar Y. Walker, Leon A. Gatys, Andreas Savas Tolias, Matthias Bethge and Alexander S. Ecker. 2019. Deep convolutional models improve predictions of macaque V1 responses to natural images. PLoS Computational Biology.
@inproceedings{cadena2019deep,
title = {{Deep convolutional models improve predictions of macaque V1 responses to natural images}},
author = {Santiago A. Cadena, George H. Denfield, Edgar Y. Walker, Leon A. Gatys, Andreas Savas Tolias, Matthias Bethge and Alexander S. Ecker},
booktitle = {PLoS Computational Biology},
year = {2019},
doi = {10.1371/journal.pcbi.1006897},
url = {https://doi.org/10.1371/journal.pcbi.1006897}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/cadena-2019-deep-convolutional-models-improve-predictions/