DeepLLM Quiz
Neural Network Architectures

Visual cortex and what convolutional filters learn

10 questions on simple and complex cells, Gabor filters, learned first-layer filters, the hierarchy of features and how to visualise what a unit detects.

  • 10 questions
  • Stopwatch
  • Instant feedback

Shown publicly with your score. Don’t use your full real name.

How it works

  • One question per screen. An answer is final once sent.
  • You see right away whether you were right, with a short explanation.
  • The stopwatch runs: on equal scores, the faster player ranks first.
  • Only your best attempt counts, so replaying is never risky.

About this quiz

Long before anyone trained a network on millions of photographs, neuroscientists slid bars of light in front of a cat's eye and listened to single neurons in its brain. Some neurons fired for a bar at one angle in one place and stayed quiet for everything else. These findings gave the designers of convolutional networks their blueprint. Decades later, researchers opened up trained networks and looked at their first-layer filters, and found patterns startlingly like the ones the neuroscientists had measured. This quiz tells that story and asks what can, and cannot, be concluded from it.

You will meet the two main kinds of cell found in the early visual system, one that detects oriented edges at a fixed position, and one that combines such detectors and tolerates small shifts, and see which parts of a convolutional network they resemble. You will see the mathematical model of the first kind, a wave under a localised envelope, and the early network that tried to copy the whole arrangement but lacked the training method needed to make it competitive. You will think carefully about the resemblance between learned filters and biological ones, and about why it does not prove that the network works like a brain.

The second half is about looking inside a trained network. First-layer filters can be shown directly as little pictures. Deeper units cannot, since their inputs are not pixels but responses of other filters, so other methods are used: showing the image patches that excite a unit most, and constructing an image that maximises a unit's activation. The questions ask what these reveal about the progression from edges to textures, parts and objects, why one should maximise the raw score of a class rather than its probability, and why unconstrained maximisation produces unreadable results.

A few misunderstandings are worth clearing away. Resemblance to biology is not evidence that artificial networks are brains. First-layer filters look similar across many methods because they reflect the statistics of natural images. And a hierarchy of features is not hand-coded: it emerges from training. The topic also matters for practice. Looking at learned filters is a quick sanity check on a vision model: first-layer filters that look like clean edges and colour blobs show that the model has picked up sensible low-level structure from the images. And methods that reveal what a unit responds to are the first step towards explaining a model's behaviour to the people who depend on it, which is increasingly expected of systems used in medicine, transport and other sensitive areas.

The quiz suits learners curious about the biological roots of the field and about interpretability, and it needs no mathematics. There are 10 questions, each with an explanation, and it takes about four minutes.

Questions and answers

›How long does the quiz take?

About 3 to 4 minutes for 10 questions, at roughly 20 seconds each. An explanation follows each answer, so the quiz works as a short tour of the topic.

›Do I need to know neuroscience?

No. The questions describe the few facts they need about the visual system in plain words. What matters is the analogy with the parts of a convolutional network, which is explained as the quiz goes along.

›What are simple and complex cells?

Simple cells are neurons that respond strongly to an edge of a particular orientation at a particular position in the visual field, and weakly to anything else. Complex cells respond to more elaborate stimuli and seem to be built by combining the outputs of simple cells. They show some invariance to small changes of position, which is the property that pooling units give a convolutional network.

›What is a Gabor filter?

It is a two-dimensional function made of a sinusoidal wave, with a chosen orientation, frequency and phase, multiplied by a decaying envelope that localises it around a point. It is a good model of the responses of simple cells. Pictures of Gabor filters look like small patches of stripes that fade out towards the edges.

›What did the early network called the neocognitron contribute?

It was a forerunner of convolutional networks, with several layers of local receptive fields with shared weights, followed by local averaging or max pooling to confer positional invariance. But it predated backpropagation, so it lacked an end-to-end training procedure, and was trained layer by layer with an unsupervised clustering method.

›Why do learned filters resemble the ones in the brain?

Learned first-layer filters look remarkably like Gabor filters. This does not mean that a convolutional network is a good model of how the brain works, because very similar filters come out of a wide variety of statistical methods. The filters reflect general properties of the statistics of natural images, which are useful for image understanding in both natural and artificial systems.

›How can we find out what a deep unit detects?

One way is to show the network many image patches and keep those that activate the unit most. Another is to start from an image and change its pixels to raise the unit's activation as much as possible. Both show a progression with depth, from edges in the first layer to textures, parts of objects and finally whole objects in the later layers.

›Why is regularisation needed when generating images that maximise a unit?

Without constraints, maximising a unit's activation drives individual pixel values towards extreme values and produces fine-grained patterns that are hard to interpret. Adding a penalty on the pixel values, together with steps that blur the image and set small contributions to zero, yields pictures that look closer to natural images.

More quizzes