TL;DR: a brain dump on a dilemma I had today about the similarities between CNNs and the ventral stream, and how that all relates to philosophy of mind.
A standard CNN (Convolutional Neural Network) is a surprisingly great model of the first ~100 milliseconds of human ventral stream processing. You can think of a CNN as an MLP that exploits some fundamental facts about images to reduce its number of parameters by orders of magnitude, potentially to less than 0.1%.
For those who are curious, here are some of those fundamental facts about images:
Locality: Images are local, meaning that a pixel is often only relevant to the surrounding pixels in its neighborhood. This means that early-layer feature detectors can take in a small portion of the image as input rather than the entire image.
Translation Invariance: An early-stage neuron checking for vertical bars will be searching for the same type of vertical bar whether it is positioned to look at the top left of the image or the bottom right. This means we can do weight sharing, which enables CNNs to reuse the same weights of a feature detector many times in many locations across the pixel grid of the image.
But why is a CNN a great model of the ventral stream?
In short, because both networks are trained to recognize objects in a world where nearby pixels form local patterns and an object stays the same no matter where it moves.
By stacking local receptive fields on top of each other that gradually pool information as it flows down the layers, a CNN naturally converges, with zero human intervention, on the exact same hierarchical solution for understanding images that your brain uses in its ventral stream. Early layers of neurons search the image with Gabor filters, which recognize vertical/horizontal/diagonal edges. The next layer builds on top of the previous layer to combine specific patterns of edges into features like circles and squares. This hierarchical pattern continues through the layers until final-stage neurons detect very complicated, specific features like a coffee mug.
Here is what some Gabor filters look like, the lowest-level feature neurons in your ventral stream:
You’re telling me the visual system in my brain needs to use hierarchical features to know that the coffee mug in front of me is a coffee mug? Why can’t I just “see” the raw image of the coffee cup myself and decide from there? After all, I am not a classifier. I am not a CNN. I know the coffee cup is a coffee cup because I am looking at it right now with my eyes and it looks like a coffee cup, not because some coffee cup output logit in my head is firing to signify that there is a high probability that the input image to the CNN had a coffee cup in it.
I perfectly understand why a CNN in a computer would need hierarchical edge detectors to recognize a coffee cup. It’s an input-output machine. You feed in a vector of numbers that encodes a photo, and it tells you yes/no, is there a coffee cup in that image. How could that be further from me! I have a conscious experience of seeing the cup. An opportunity to actually “see” what I am looking at. A conscious experience of the redness of the red text written on the cup, the smoothness of the ceramic. A CNN can’t see colors! These are not just feature detectors firing electrical signals in my head!? They are a real, tangible, human experience. It feels like something to be me looking at a coffee cup. It does not feel like something to be a CNN doing addition and multiplication to output a number that means yes, the coffee cup feature is on.
So why can’t I just see the raw image? That is what I want. Let me decide for myself if there is a coffee cup in front of me. You may tell me that that would never work, as the raw images coming into your eyes are two upside-down blurs of electrical signals, with blind spots where the optic nerve sits where neurons could be. I would say that this poses a perfect solution, as now we can give the ventral stream CNN in my head a solid task: turn the messy blur of electrical signals into a nice crisp image, so I can perceive the nice crisp ground-truth image in my head and then decide from there, by examining the image, whether it contains a coffee cup or not.
So clearly my thought process has some flaws
Now that I have a crisp image of the real world in my head, who’s going to look at it? And even if there was a tiny person in my head, that person would still need to translate that image into their own head, and so on…
So now it finally makes sense that the process of getting that outside image into my mind needs some way to turn the electrical signals of the image into the electrical signals of me consciously perceiving the image.
And how do we do that? Well, mainly a hierarchical system of neurons that turns an image vector of electrical signals into a feature vector of electrical signals that encodes where vertical and horizontal lines exist in the image, which then turns into a feature vector of electrical signals that encodes where and what shapes exist in the image, and then, a few layers later, a feature vector of electrical signals that encodes very very very very high-level features and is also my conscious experience of “seeing” the image.
Yes. In that last part I literally mean that the feature vector, i.e. a list of electrical signals where each individual signal signifies whether the specific feature it is looking for is present in the image, is not only what you are seeing when you look at the image, it is also your conscious experience of “seeing.”
This very much seems to be running straight into the wall of David Chalmers’s Hard Problem of Consciousness. However, it can actually give a slightly intuitive explanation of why I need hierarchical Gabor filter neurons to see something: the process of “seeing” something doesn’t really exist. It is merely a conscious experience tied to a list of high-level features that mostly correspond to a ground truth somewhere out in the real world, and to calculate what those high-level features are, you need hierarchical Gabor filters.
Take a look at this picture of a square:
How do you know that you are looking at a square? My intuition wants me to say that I can look at the object, make some measurements (counting sides), and then quantitatively determine that what I am looking at is a square.
But… this does not prove that whatever is actually out there in the real world is a square; it only confirms that my brain has included a square in its construction of my conscious experience of vision. That is it. Okay, I actually just finally got it right there.
The CNN in your ventral stream took in a mix of jumbled electrical signals and constructed them into a conscious experience of what looks to you like a square, and the only way the CNN saw those jumbled electrical signals and knew to include a square was because of low-level GABOR FILTERS. Now you can look at what your brain generated for you and conclude it is a square, but the only reason that square exists is because your brain used hierarchical CNN layers to already conclude that it was a square and then present that to you.
Here is another example. Take a look at this shape:
Let me ask you this: how many sides does this shape have? You count the sides and hopefully determine the answer to be 9. But your ventral stream figured this out way before you did. The only reason you are even looking at a shape with 9 sides is that your brain interpreted the visual signals coming in through your eyes to be a shape with 9 sides, and from there it presented you a very nice representation of what it already figured out, which is a shape with 9 sides.
What you are seeing is not the true reality; it is something that your brain has carefully constructed for you to give you a sense of what is out there. The idea of “seeing” something, in the sense that you are directly accessing the raw light or ground truth of the outside world, is not real, because your sense of vision doesn’t exist anywhere outside of your mind. Vision as a concept, or the idea that the arrangement of atoms and photons that is the universe would inherently “look like something,” is also not real. It is made up by your brain.
Color is a perfect example. Check out this picture of a red square.
Wow, it’s even stronger than I thought. Looking at this gives you such a powerful, tangible conscious experience of the “redness” of red, even though the “redness” you see and feel inside your mind cannot be found anywhere outside your head. What is really out there is just different wavelengths of light that have no inherent color. Yet that redness is just so incredibly powerful. There is such a powerful experience even with it sitting in my peripheral vision above as I write this paragraph. It is not a color, it is a feeling.
Here is another, completely different conscious experience/feeling:
This one feels a little bit less strong, as my brain has generated such a vastly different experience than it did from looking at the red square. I honestly cannot decide which feeling I like better. I think I would say this one is a lot more smooth and calming, while the last one felt much more powerful.
It gets crazier
In the first paragraph I mentioned that a CNN is a surprisingly great model of the first ~100 milliseconds of human ventral stream processing. But why only the first 100 milliseconds?
Unlike a standard “bottom-up” CNN that only pushes signals forward, your ventral stream actually operates like this:
Your ventral stream is not simply a CNN that constructs visual experiences; it is a predictive machine. Your brain generates your visual experience from the top down, meaning that your brain actually predicts that final high-level feature vector first, sends that guess all the way down the layers, and only sends the error back up when reality doesn’t match.
Earlier, when I told you to look at the picture of a square, this is what really happened:
Obviously, if you’ve never seen that square before, your brain doesn’t just magically predict a square out of nowhere. Instead, it predicts whatever was there a millisecond ago, which is basically just more blank white screen mixed with a tiny bit of context (since you literally just read the words “picture of a square,” your brain is already slightly primed for a shape).
Here is what plays out in your head, millisecond by millisecond, the instant you look at it:
0 ms: Your brain is predicting that it will still be looking at the blank white screen that you were looking at while scrolling down to the square.
50 ms: Suddenly, sharp dark edges hit your eyes. Those early edge-detecting neurons compare the incoming electrical signals to the current “blank white screen” prediction and immediately flag a mismatch: prediction error.
100–150 ms: That error shoots up the layers of the ventral stream. Your higher-level neurons scramble to explain what just happened and update their guess.
200 ms+: Your brain sends that new “square” feature vector back down the layers. Now the top-down prediction matches the bottom-up signals coming from your eyes, the error drops to zero, and for every millisecond you keep staring at it, your brain is actively predicting that square into your conscious experience.
Think about how wild this is. Before, while I realized that my conscious experience was fabricated by my brain, I at least still thought it was based on bottom-up visual signals from my eyes. Now it’s not only a generated experience, but an experience generated top-down, where your brain is literally guessing reality first and just letting the error nudge it into place.
I’ll keep this short and leave you with something to think about. Up until now we haven’t really acknowledged the difference between the conscious experience generated by the output feature vector and the neural circuits that use that feature vector to transmit information to the rest of the brain and make reactionary decisions (if they are even different things).
The blindsight studies gave humanity a window into exactly this. They focused on subjects who had experienced damage to their primary visual cortex and reported being completely blind, meaning that they had absolutely zero conscious experience of seeing anything. However, they could achieve very high success rates on visual tasks, from catching a ball thrown at them to identifying the orientation of a vertical or horizontal bar shown in front of them.
From the subjects’ perspective, they felt stupid even trying. After all, they couldn’t see anything. But if they were prompted to just try, they could do things as wild as catching a moving ball out of thin air.
What does this mean?
Even though the part of their visual system that is responsible for generating a conscious experience of sight has been completely destroyed, there still remains some circuitry that encodes the meaning of what the eyes are seeing, makes a decision, and accordingly sends the perfect pattern of electrical signals down the nerves to the arms and fingers to catch the ball. All of this is done completely unaccompanied by conscious experience.
So I guess your brain generates a feature vector from a top-down prediction of what it knows about the world, sends that signal down the layers all the way to simple Gabor filters to check if it matches reality, and then updates itself. That reaffirmed feature vector can be both your conscious experience of sight and a circuit that triggers unconscious, informed decisions.
I honestly think the blindsight experiment makes a lot of sense. It shows that at least part of the brain is still a circuit like a CNN that can do all sorts of complicated actions without the presence of conscious experience, and this includes some visual circuits.
I don’t know why specific patterns of electrical signals generate the tangible experience of being you. That is a very hard problem, which is why it is called the Hard Problem. If I had to guess, I would assume that there is some fundamental property of the universe where large, complex systems of aligned electrical signals, or information flowing through them, have some innate form of consciousness.
Am I a panpsychist now?