liveBook · Manning

Linear layer

As explained in Sutskever's List

A linear layer is a neural-network layer that maps input features to outputs by a learned affine transformation, typically connecting each output to every input feature.

A fully connected, or dense, layer links every unit to every unit in the preceding layer. In AlexNet, these layers follow convolutional feature extraction: they flatten feature maps and combine image-wide information, giving up spatial structure to produce classification predictions. section 2.5.1

AlexNet’s first two fully connected layers contain most of its roughly 60 million parameters, increasing representational capacity while raising the risk of overfitting. The final layer produces 1,000 scores for ImageNet categories; softmax converts them into predicted probabilities. section 2.5.1

AlexNet and dropout

AlexNet’s FC6 and FC7 each have 4,096 neurons; during training, dropout disables 50% of the neurons in those layers to help limit overfitting. section 2.5.1 section 2.5.2

Figure 2.3 The AlexNet architecture (cropped in the original paper). The numbers indicate spatial dimensions and channel depth at each stage. The input image (224 × 224 × 3 RGB) passes through a series of convolutional and pooling layers that progressively reduce spatial resolution (224→55→27→13) while increasing channel depth. Early downsampling is driven by the first convolutional layer (11 × 11 filters with a stride of 4), followed by max pooling layers (3 × 3 windows with a stride of 2) that further reduce spatial dimensions. The stride determines how far a filter moves across the input at each step, controlling how densely the image is sampled and how quickly spatial resolution is reduced. Filter sizes (11, 5, 3) are depicted as cubes and define the local receptive field of each convolution. The two horizontal streams reflect the model’s original two-GPU training setup, where feature maps were split across devices (e.g., 48 + 48 = 96 channels). The fully connected layers (4096 neurons, implemented as 2048 + 2048 across GPUs) feed into a 1000-way output for ImageNet classification. Used with permission granted by the lead author (Alex Krizhevsky).
figure

Trace AlexNet’s path from convolutional feature maps through fully connected layers to its 1,000-way output. section 2.5.1

How Sutskever's List covers it

How deep it goes
Explains dense connectivity, flattening, parameter concentration, and output scoring, but gives no weight-level calculations.
Examples
Uses AlexNet’s three fully connected layers, 4,096-unit hidden layers, 1,000-way output, and 50% dropout in FC6 and FC7.
What you can do after
Understand how dense layers aggregate image features into classification scores and probabilities.
How it connects
Connects convolutional layers, feature maps, dropout, overfitting, and softmax classification.

Also explained in

Compare how 13 books explain linear layer →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Sutskever's List. The section links point to the parts of the book it draws on.