Machine Learning

CNN Architecture Families

CNN architecture families are a sequence of design motifs for local features, depth, multi-scale computation, residual optimization, feature reuse, and modern ConvNet blocks.

status: reviewimportance: importantdifficulty 4/5math: graduateread: 20mlive demo

Concept Structure

CNN Architecture Families

01Intuition

Start with the picture, metaphor, or geometric mechanism.

02Math

Make the objects explicit and connect them with notation.

03Code

Mirror the equations with runnable implementation details.

04Interactive Demo

Manipulate the mechanism and watch the idea respond.

2prerequisites
5next concepts
4related links

Learner Contract

What this page should let you do.

You are here becauseCNN architecture families are a sequence of design motifs for local features, depth, multi-scale computation, residual optimization, feature reuse, and modern ConvNet blocks.

This Machine Learning concept is the current idea: keep the same invariant visible across Intuition, Math, Code, Interactive Demo.

By the end4/4 sections ready | runnable code expected | live demo

Explain the mechanism, trace the main notation, and test one prediction in the live demo.

Do this firstIntuition

Read the intuition before the notation; the math should name a mechanism you already felt.

Test the linkManipulate one control and predict the visible change.Then continue to Data Augmentation and Transfer Learning (review)

Claim/source review status

Substantive review recorded

2/2 claims have bounded review metadata; still check caveats and source scope.Metadata-derived; review may be AI-assisted. Not a human certification.
Claims2/2 reviewed
Sources8 cited
Codeattached
Demolive
Reviewed2026-07-03
Updatedpage 2026-07-03

Learning item flow

4/4 sections readyAsk about thisResearch room
ConceptCNN Architecture FamiliesMachine Learning
6 sources attachedLocal snapshot ready
concept:machine-learning/cnn-architectures
01

01

Intuition

Build the mental picture first so the rest of the page has something to attach to.

Section prompt

You are here because CNN names can blur into a model zoo: LeNet, AlexNet, VGG, GoogLeNet, ResNet, DenseNet, ConvNeXt. The useful question is not "which name came next?" It is: what bottleneck was the architecture trying to repair, and what reusable motif did it introduce?

A convolution layer already gives the core idea: local filters share parameters across spatial positions. Architecture families decide how to compose those local filters. Should the network get depth from many small filters, spend compute on several receptive-field sizes at once, add an identity route through a block, concatenate old features instead of overwriting them, or modernize the ConvNet block with depthwise spatial mixing and wider channel mixing?

Treat the history as a route through mechanisms:

  • LeNet: make local convolution and subsampling practical for document recognition.
  • AlexNet: scale deep ReLU CNNs to large natural-image classification with data augmentation, dropout, and GPU-era training.
  • VGG: make depth easy to reason about by repeating small 3×33\times3 filters.
  • Inception/GoogLeNet: compute several spatial scales in parallel, using 1×11\times1 convolutions to reduce channel cost.
  • ResNet: make very deep networks trainable by adding an identity shortcut around a residual function.
  • DenseNet: reuse earlier features by concatenating them into later layers.
  • ConvNeXt: revisit ConvNets with modern block design, large depthwise kernels, normalization, activation placement, and training conventions.

That route matters because architecture choices are not cosmetic. They decide which paths information and gradients can take, where parameters are spent, how many channels flow into a block, and which inductive bias remains after scaling. This page is a mechanism map for supervised vision backbones. It is not a leaderboard, an exact reproduction guide, a detection or segmentation survey, or a claim that one family dominates every vision workload.

02

02

Math

Translate the story into symbols, assumptions, and a derivation you can inspect.

Section prompt

Start with a plain stack of blocks. Let xlRCl×Hl×Wlx_l\in\mathbb R^{C_l\times H_l\times W_l} be the activation entering layer or block ll. A plain CNN block can be written as

xl+1=Hl(xl),x_{l+1}=H_l(x_l),

where HlH_l may include convolution, normalization, activation, pooling, or downsampling. The architecture question is the shape of HlH_l and whether the block has extra routes around or into it.

Small Kernel Depth

VGG's central move is to replace one large spatial filter with repeated small filters. In the stride-1, no-dilation, appropriate-padding simplification, two 3×33\times3 filters have the same nominal receptive-field width as one 5×55\times5 filter. If input and output channel counts are both CC, one 5×55\times5 convolution uses

25C225C^2

weights. Two 3×33\times3 convolutions have an effective 5×55\times5 receptive field and use

29C2=18C22\cdot9C^2=18C^2

weights, while also inserting an extra nonlinearity between them. Three 3×33\times3 convolutions similarly cover a 7×77\times7 receptive field with 27C227C^2 weights instead of 49C249C^2.

This simplified count assumes equal channel width and ignores bias, normalization, and boundary effects. Its point is the design pressure: spend depth and nonlinearities more carefully than a single large dense spatial filter.

Multi-Scale Branches

An Inception-style block applies several branches to the same input and concatenates their channel outputs:

y=concat(B1(x),B3(x),B5(x),P(x)).y=\operatorname{concat}(B_1(x), B_3(x), B_5(x), P(x)).

A direct K×KK\times K convolution from CinC_{\text{in}} channels to CoutC_{\text{out}} channels costs

K2CinCoutK^2C_{\text{in}}C_{\text{out}}

weights. A 1×11\times1 reduction to CmidC_{\text{mid}} channels followed by that spatial convolution costs

CinCmid+K2CmidCout.C_{\text{in}}C_{\text{mid}}+K^2C_{\text{mid}}C_{\text{out}}.

When CmidCinC_{\text{mid}}\ll C_{\text{in}}, the branch can inspect a larger spatial scale without paying the full dense channel cost. The caveat is that branch widths, reductions, and pooling choices are design decisions, not a theorem that any multi-branch block is automatically better.

Residual And Dense Routes

A residual block writes

xl+1=xl+Fl(xl),x_{l+1}=x_l+F_l(x_l),

when the shapes match. The identity term gives the block a direct route: if FlF_l initially behaves like a small correction, the network can represent a near-identity mapping and learn changes around it. For backpropagation, the local derivative contains an identity contribution:

xl+1xl=I+Flxl.\frac{\partial x_{l+1}}{\partial x_l}=I+\frac{\partial F_l}{\partial x_l}.

This does not make all optimization easy, but it explains why the shortcut is not merely a wiring flourish. It changes the paths through which activations and gradients can move.

This is the shape-preserving identity-shortcut case. Projection shortcuts, downsampling, post-add activations, and normalization change the local Jacobian story, so the identity derivative is a useful first model rather than the whole ResNet training theory.

DenseNet makes a different choice. Each layer consumes a concatenation of earlier feature maps:

xl=Hl([x0,x1,,xl1]).x_l=H_l([x_0,x_1,\ldots,x_{l-1}]).

If every layer adds kk new channels and the initial block has C0C_0 channels, then layer ll sees roughly

C0+k(l1)C_0+k(l-1)

input channels. Counting layer ll as reading the initial state and all earlier layer outputs, the incoming dense links over LL layers sum to 1+2++L1+2+\cdots+L, so the dense directed connections among feature states grow like

L(L+1)2.\frac{L(L+1)}2.

That is the feature-reuse tradeoff: later layers can read earlier features directly, but concatenated state must be managed carefully.

ConvNeXt revisits this family with modern ConvNet blocks. A simplified depthwise K×KK\times K spatial convolution costs K2CK^2C weights because each channel has its own spatial filter, while a dense K×KK\times K convolution costs K2C2K^2C^2. Pointwise 1×11\times1 layers then mix channels. Depthwise-separable arithmetic explains one component ConvNeXt adopts; it is not a claim that depthwise convolution is ConvNeXt-specific. Again, this is a simplified parameter story; the real architecture also depends on stage widths, downsampling, normalization, activation placement, training recipes, and data scale.

03

03

Code

Keep the implementation aligned with the notation so the algorithm is legible.

Section prompt
def conv_params(k, cin, cout):
    return k * k * cin * cout

C = 64
vgg_5 = conv_params(5, C, C)
vgg_two_3 = 2 * conv_params(3, C, C)
vgg_7 = conv_params(7, C, C)
vgg_three_3 = 3 * conv_params(3, C, C)

cin = 192
naive = conv_params(3, cin, 128) + conv_params(5, cin, 32)
reduced = cin * 96 + conv_params(3, 96, 128) + cin * 16 + conv_params(5, 16, 32)

L, C0, growth = 5, 32, 12
dense_connections = L * (L + 1) // 2
channels_seen_by_layer_5 = C0 + growth * (L - 1)

C = 96
dense_7x7 = conv_params(7, C, C)
depthwise_7x7 = 7 * 7 * C
pointwise_expand_contract = C * (4 * C) + (4 * C) * C

print("two 3x3 vs one 5x5:", vgg_two_3, vgg_5, round(vgg_two_3 / vgg_5, 2))
print("three 3x3 vs one 7x7:", vgg_three_3, vgg_7, round(vgg_three_3 / vgg_7, 2))
print("inception reduction:", reduced, "instead of", naive, round(reduced / naive, 2))
print("dense connections:", dense_connections)
print("channels into layer 5:", channels_seen_by_layer_5)
print("7x7 depthwise + pointwise:", depthwise_7x7 + pointwise_expand_contract, "vs dense", dense_7x7)

This script is not training a CNN. It checks the arithmetic that makes the architecture motifs worth studying: small-kernel depth, Inception-style channel reduction, DenseNet feature accumulation, and ConvNeXt-style separation of spatial and channel mixing.

04

04

Interactive Demo

Use direct manipulation to connect the explanation to a moving system.

Section prompt

Use the lab as an architecture diagnosis exercise. Pick the bottleneck first, then predict the motif that repairs it:

  • Regular depth: can repeated small filters get a larger receptive field with fewer weights than one large filter?
  • Multi-scale budget: can the network inspect 3×33\times3 and 5×55\times5 evidence without paying the full channel cost?
  • Very deep optimization: can a block preserve an identity route while learning a correction?
  • Feature reuse: can later layers read earlier feature maps directly instead of hoping every useful feature is rewritten forward?
  • Modern ConvNet block: can spatial mixing be separated from channel mixing to make larger kernels more affordable?

Before reveal, the selected family, parameter arithmetic, route diagram, and caveat stay locked. After reveal, compare the predicted motif with the source-backed family and the small numeric witness. The demo is a teaching map for architecture mechanisms, not a benchmark or implementation recipe.

Live Concept Demo

Explore CNN Architecture Families

The stage is code-native and interactive. Use it to test the explanation against the mechanism.

difficulty 4/5graduatecode-aligned
Demo Prediction Checkpoint

Manipulate one control and predict the visible change.

Commit to what CNN Architecture Families should make visible before reading the result.

After The First Pass

Turn the concept into an inspected object.

Once the invariant is visible in the intuition, math, code, and demo, use these panels to inspect the mechanism visually, check source support, practice the idea, and attach a grounded research question.

Mechanism Storyboard

See the idea move before the page explains it

CNN architecture families are a sequence of design motifs for local features, depth, multi-scale computation, residual optimization, feature reuse, and modern ConvNet blocks.

Prediction open01 / Intuition
Prediction lens

Start with the picture, metaphor, or geometric mechanism.

Commit first

Before reading further, choose the kind of change CNN Architecture Families should make visible.

Visual Inquiry

Make the image answer a mathematical question

CNN architecture families are a sequence of design motifs for local features, depth, multi-scale computation, residual optimization, feature reuse, and modern ConvNet blocks.

4/4 stages readyLive demo connected
Prediction

Which visible object should carry the first intuition?

Commit first

Pick the cue that should make CNN Architecture Families easier to reason about before the page gives the answer.

Source Grounding

Canonical references for the mechanism on this page.

course-notes · 2026CS231n: Convolutional Neural NetworksStanford CS231n

Source for convolutional layers, local connectivity, parameter sharing, and case-study architecture families.

Open source
paper · 1998Gradient-Based Learning Applied to Document RecognitionLeCun, Bottou, Bengio, and Haffner

Source for the LeNet-style convolution and subsampling hierarchy in document recognition.

Open source
paper · 2012ImageNet Classification with Deep Convolutional Neural NetworksKrizhevsky, Sutskever, and Hinton

Source for the AlexNet-era jump in ImageNet-scale CNN training with ReLU, dropout, data augmentation, and GPU execution.

Open source
paper · 2014Very Deep Convolutional Networks for Large-Scale Image RecognitionSimonyan and Zisserman

Source for the VGG design choice of very deep networks built from small 3x3 convolution filters.

Open source
paper · 2014Going Deeper with ConvolutionsSzegedy et al.

Source for Inception/GoogLeNet multi-scale branches and 1x1 dimensionality reduction.

Open source
paper · 2015Deep Residual Learning for Image RecognitionHe, Zhang, Ren, and Sun

Source for residual blocks, identity shortcuts, and the degradation problem in very deep networks.

Open source

Claim Review

CNN architecture families are a sequence of design motifs for local features, depth, multi-scale computation, residual optimization, feature reuse, and modern ConvNet blocks.

Status2 substantive reviews recorded

Claims without a substantive review badge still need exact source-support review.

Sources6 references

cs231n-convolutional-networks, lecun-1998-gradient-based-document-recognition, krizhevsky-2012-alexnet, simonyan-2014-vgg, szegedy-2014-inception, he-2015-resnet

Local checks4 local checks

Use equations, runnable code, and demos to check whether the source support is operational.

Substantively reviewedEarly CNN families are better compared by mechanism than name: LeNet anchors local convolution/subsampling, AlexNet scales deep ReLU CNN training, VGG repeats small 3x3 filters, and Inception combines multi-scale branches with 1x1 reductions.Claim metadata: source checked

The sources support the page's early-family mechanism map: local convolution/subsampling, scaled ReLU CNN training, repeated 3x3 depth, and Inception branch/reduction arithmetic.

Sources: CS231n: Convolutional Neural Networks, Gradient-Based Learning Applied to Document Recognition, ImageNet Classification with Deep Convolutional Neural Networks, Very Deep Convolutional Networks for Large-Scale Image Recognition, Going Deeper with ConvolutionsThis is a teaching map, not a benchmark ranking, exact architecture reproduction, hardware recipe, or detection/segmentation survey.A bounded review summary is present; still check caveats and exact reference scope.

Checked CS231n, LeNet, AlexNet, VGG, and Inception sources for local convolution/subsampling, ImageNet-era ReLU CNN scaling, small-filter depth, and branch-plus-reduction framing. GPT Pro critique is pending.

Reviewer: codex-local-primary-source-audit; reviewed 2026-07-03
Substantively reviewedLater CNN families changed the routes through a block: ResNet adds identity shortcuts for very deep optimization, DenseNet concatenates earlier feature maps for reuse, and ConvNeXt modernizes ConvNet blocks with separated spatial and channel mixing.Claim metadata: source checked

The sources support the residual-addition, dense-concatenation, and ConvNeXt modernization claims used in the Math, Code, and demo sections.

Sources: CS231n: Convolutional Neural Networks, Deep Residual Learning for Image Recognition, huang-2016-densenet, liu-2022-convnextResiduals, dense links, and ConvNeXt blocks are mechanisms, not standalone guarantees of accuracy, trainability, memory efficiency, or transformer replacement.A bounded review summary is present; still check caveats and exact reference scope.

Checked ResNet, DenseNet, ConvNeXt, and CS231n support for identity shortcuts, dense feature concatenation, and modernized ConvNet block design. GPT Pro critique is pending.

Reviewer: codex-local-primary-source-audit; reviewed 2026-07-03

Practice Loop

Try the idea before it explains itself

CNN architecture families are a sequence of design motifs for local features, depth, multi-scale computation, residual optimization, feature reuse, and modern ConvNet blocks.

Readiness0/3 checks ready
Predict

Before touching the demo, predict one visible change that should happen in CNN Architecture Families.

Hint 1

Reveal when your model needs a nudge.

Hint 2

Reveal when your model needs a nudge.

Hint 3

Reveal when your model needs a nudge.

Grounded research drawerClose
ConceptCNN Architecture FamiliesMachine Learning

Research Room

Attach the question to a claim, equation, code, or demo

Pick the concept, equation, source, runnable code, claim, misconception, or demo state before asking for help. The handoff keeps that page item in context.
Next local actionNo local draft saved yet

Open the draft below to save one note and next action in this browser.

conceptMachine Learning

CNN Architecture Families

Attached question

What is the smallest example that makes CNN Architecture Families click without losing the math?

Local action draftNo local draft saved yetExpand only when ready to capture one local next action
Local action draft

This draft stays in this browser, attached to the selected learning item.

No local draft saved.
Evidence to inspect
  • References to inspect: attached references on this page.
  • Definition, prerequisite, and contrast concept links
  • The equation or runnable code that makes the concept operational
  • One demo state that shows the invariant instead of a slogan
What would resolve this
  • The learner can state the mechanism in their own words
  • The learner can name the prerequisite that would repair confusion
  • The learner can predict how the mechanism changes under one perturbation
Grounded AI handoff

I am working in Continuous Function's research reading room. Object: concept - CNN Architecture Families Selected item key: recorded for copy. Context: Machine Learning Page anchor: recorded for copy. Open question: What is the smallest example that makes CNN Architecture Families click without losing the math? Evidence to inspect: - References to inspect: attached references on this page. - Definition, prerequisite, and contrast concept links - The equation or runnable code that makes the concept operational - One demo state that shows the invariant instead of a slogan What would resolve this: - The learner can state the mechanism in their own words - The learner can name the prerequisite that would repair confusion - The learner can predict how the mechanism changes under one perturbation Answer as a careful research tutor: stay source-grounded, separate verified evidence from assumptions, name the relevant math objects, and end with one next action.

View it in context
concept/concept-notebook/machine-learning/cnn-architectures concept:machine-learning/cnn-architectures