DeepLLM Quiz
Neural Network Architectures

Transpose convolution, fully convolutional networks and the U-net

10 questions on learned up-sampling by transpose convolution, output sizes, fully convolutional networks, and the U-shaped design with concatenated skip connections.

  • 10 questions
  • Stopwatch
  • Instant feedback

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

Sample questions

Play now ↑

Answers stay hidden. Start the quiz to play them.

  1. Sample 1

    A 2 by 2 input is up-sampled with a 3 by 3 filter and a step of 2 in the output. Each input pixel writes a 3 by 3 patch, and neighbouring patches start 2 cells apart. How large is the output?

    • 5 by 5
    • 4 by 4
    • 6 by 6

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

A network that has shrunk a photograph down to a compact summary has paid a price: much of the fine positional detail is gone. To label every pixel, it has to grow that summary back into a full-size picture, and it has to do so sensibly. Fixed rules, like copying values into blocks, are a start. A better way is to make the growing itself learnable, in the same way that shrinking by a strided convolution is learnable. This quiz covers that operation, called transpose convolution, and the architectures built around it, ending with the celebrated U-shaped design that segments medical scans and many other kinds of images.

You will first see how a learned up-sampling layer works: each input value stamps a small learned pattern onto the output, and the stamps are placed several cells apart so that the output ends up larger than the input. You will work out the size of an output from the size of the input, the filter and the step, and see what happens where stamps overlap. You will also learn the several names of the operation, one of which is best avoided because it means something different in mathematics.

Next comes the fully convolutional network, in which both shrinking and growing are done with convolutions alone, so that it accepts an image of any size and returns a label map of the same size. Finally you will meet the U-net. Its idea is to give the expanding half access to the detailed, high-resolution information that the shrinking half had before it was discarded, by copying the feature maps across and joining them to the corresponding ones on the way up. The quiz asks why this helps and how the network's last layer turns channels into class probabilities.

Common confusions include thinking that transpose convolution inverts a convolution, which it does not in the sense of recovering the original values, and assuming that all the information lost in pooling is gone for good, which the skip paths of the U-net show not to be so. Another is to forget that the fully convolutional design has no fixed input size. The U-net's central trick generalises well beyond segmentation. Whenever one stage of a network discards detail that a later stage might need, a direct path from the earlier stage to the later one lets the network keep what it would otherwise lose. The same principle, joining the early and late representations, appears in networks that sharpen images, remove noise, predict depth and generate pictures. If you recognise the pattern, a large part of modern architecture design becomes easier to read, since many diagrams are variations on this one idea of a shrinking path, an expanding path and links between them.

The quiz suits learners who know pooling and want to see how segmentation networks restore resolution, and practitioners who use segmentation tools. 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 every answer, with the size calculation worked through.

›Do I need the earlier segmentation quiz?

It helps, since it explains why segmentation networks shrink and then expand the feature maps and introduces the fixed up-sampling rules. This quiz picks up from there, and the questions recall the main points as needed.

›What is transpose convolution?

It is a learned up-sampling operation. A filter connects one pixel of the input to a patch of the output, and the architecture is arranged so that moving one step across the input moves two or more steps across the output. The output is therefore larger than the input, and the filter values are learned, as in any convolutional layer.

›How is overlap handled?

When the patches written by neighbouring input pixels overlap, each output cell receives contributions from several of them. The cell's value is found either by summing those contributions or by averaging them. Which is used is a design choice, and in either case the overlap lets neighbouring input pixels blend smoothly in the output.

›Why is it called transpose convolution?

If the down-sampling convolution is written as a matrix operation, the corresponding up-sampling is given by the transposed matrix. It is also called fractionally strided convolution, because the stride, defined as the ratio between steps in the output and steps in the input, is a fraction such as one half here. Calling it deconvolution is best avoided, since that word already means the mathematical inverse of convolution.

›What is a fully convolutional network?

It is a network with no pooling layers in which the down-sampling and up-sampling are done purely by convolutions, strided and transposed. Because it contains no layer tied to a particular image size, it can take an image of arbitrary size and output a segmentation map of the same size.

›What problem does the U-net address?

Down-sampling reduces spatial resolution and discards positional information. That is acceptable for classifying a whole image but a problem for labelling every pixel. The U-net gives the later layers access to high-resolution information by passing the feature maps of each down-sampling stage directly to the matching up-sampling stage.

›How is a U-net arranged?

It is symmetrical, with a down-sampling path and an up-sampling path forming a U shape when drawn. For each down-sampling layer there is a corresponding up-sampling layer, and the channels of the former are concatenated with the first channels of the latter. A one-by-one convolution at the end reduces the channels to the number of classes, followed by a softmax.

More quizzes