CNN, RNN and Transformer: Three Architectures, Three Eras
The names CNN, RNN, LSTM, and Transformer are familiar, but the through-line that connects them often goes unspoken. Each one emerged because the previous one hit a structural ceiling, and the ceiling is most visible when you read the paper that broke through it. This tutorial walks that arc in three movements: convolution replacing parameter explosion, recurrence handling variable-length sequences, and attention replacing recurrence itself. Every chapter leaves you with a sharper version of the question the next one answers. AlexNet
Why does convolution replace the fully connected layer?
The motivation is a parameter-explosion problem that the lecture makes concrete with a single number. A 1000×1000 image flowing into a fully connected layer with one million hidden units costs roughly 10¹² parameters, a figure that is "crossed out" in red on the lecture's overview slide because the cost is unsupportable. The fix comes from two observations stacked together.
The first is local connectivity. Spatial correlation in natural images is local: a pixel's color is mostly determined by its neighbors, not by pixels ten thousand positions away. So each output unit only needs to look at a small patch of the input, called its receptive field. The second is parameter sharing: the same small kernel slides across every position of the input, producing one scalar per position. Stacking many such kernels gives a multi-channel feature map whose depth equals the number of kernels.
To see how the sliding window turns into an output size, take a 7×7 input, a 3×3 filter, and stride 1. The output feature map is 5×5 — computed as floor((7 − 3) / 1) + 1. With padding of 1 added around the input, the same 7×7 input becomes 9×9 effective, and a 3×3 filter at stride 1 now produces a 7×7 output — the spatial size is preserved. The general formula is:
output_size = floor((N + 2·pad − F) / stride) + 1
The intuition: the feature map records where the kernel "matched" the input, and each entry is a single weighted sum.

Figure 1: A side-by-side comparison. On the left, a fully connected layer mapping every pixel of a 1000×1000 image into one million hidden units incurs ~10¹² parameters (struck through in red). On the right, each output unit only connects to a small local patch, dropping the cost dramatically. The two-line caption at the bottom states the case: spatial correlation is local, so parameter budget should be spent elsewhere.
Once the operation is defined, the convolution itself can be written out. For a 5×5 input and a 3×3 kernel at stride 1, the output is a 3×3 feature map whose top-left entry is the element-wise product of the yellow 3×3 receptive field and the kernel, summed up:
1·1 + 1·0 + 1·1 + 0·0 + 1·1 + 1·0 + 0·1 + 0·0 + 1·1 = 4
The remaining eight entries follow the same recipe at the eight shifted positions. (Deep-learning "convolution" is technically cross-correlation, since the kernel is not flipped — but the distinction is bookkeeping, not algorithmic.)
The other two building blocks round out a standard CNN. Pooling (max or average) downsamples a feature map by taking the maximum or mean over each small window, preserving the strongest activations while shrinking the spatial size. Dropout randomly zeros out a fraction of units during each training step, which prevents co-adaptation and acts as an implicit model ensemble. A fully connected (FC) head at the end of the network flattens the final feature map into a vector and produces class scores through one or two large dense layers.
This is the moment to anchor the four canonical CNNs that the rest of the tutorial will revisit:
| Architecture | Year | Headline contribution |
|---|---|---|
| AlexNet | 2012 | depth + ReLU + Dropout + GPU training |
| VGG | 2014 | deeper stacks of small 3×3 convs |
| GoogLeNet | 2014 | parameter-efficient multi-scale Inception modules |
| ResNet | 2015 | residual identity skip enables 152 layers |
Each generation solves a different barrier to going deeper. The next chapter walks them in chronological order, anchoring each to the paper that published it.

Figure 2: The original AlexNet 8-layer architecture (Krizhevsky, Sutskever, Hinton 2012). Two parallel GPU streams carry the conv kernels (224 → 55 → 27 → 13 spatial sizes, with 48/128/192 channels per stream), cross-communicating at certain layers, then feeding into three dense FC layers of size 2048, 2048, and 1000 (the ILSVRC class count). This is the canonical visualization of the dual-GPU split that made ImageNet-scale training feasible on 2012 hardware. AlexNet
How did four CNNs divide the 2012–2015 ImageNet era?
Each of the four architectures responds to a different ceiling. Reading them in order gives you the field's pressure map: depth, then parameter efficiency, then depth-without-degradation.
AlexNet (2012). The headline result is a 10-percentage-point gap on ILSVRC-2012: 15.3% top-5 test error for an ensemble of 7 CNNs, against 26.2% for the runner-up (a SIFT + Fisher-vector pipeline). The mechanism is ReLU + Dropout + overlapping max-pooling, all trained on two GTX 580 GPUs for about five to six days. Three ingredients matter: ReLU keeps gradients in the positive range so deeper networks train, Dropout with p=0.5 on the first two FC layers prevents co-adaptation, and 3×3 max-pooling with stride 2 gives a small but consistent error reduction. The lesson is not that AlexNet is elegant — it is that the combination makes large-scale CNN training feasible on 2012 hardware, and once that combination works, everything else becomes a question of which ceiling to attack next.
VGG (2014). The Simonyan & Zisserman observation is that two stacked 3×3 convs have the same receptive field as one 5×5 conv, with fewer parameters and one extra non-linearity. So instead of one 7×7 conv per stage, VGG stacks three 3×3 convs to reach the same receptive field with three non-linearities instead of one. The configurations A through E increase depth from 11 to 19 weight layers, all sharing the same FC head and the same five max-pool blocks. VGG16 (config D) ends up at 138 million parameters; VGG19 (config E) at 144 million. On ILSVRC-2014, a 7-model ensemble reaches 7.3% top-5, and the localization task is won outright (25.3% top-5). The lesson: depth helps, but only if the spatial filter stays small and uniform. VGG

Figure 3: VGG configurations A through E, with the all-3×3-conv design rule visible in the column labels. Configurations deeper than A add layers shown in bold. The accompanying Table 2 lists parameter counts of 133 / 133 / 134 / 138 / 144 million for A-LRN / B / C / D / E. VGG16 (config D, 138M params) and VGG19 (config E, 144M) are the canonical all-3×3 designs.
GoogLeNet (2014). The Szegedy et al. observation is that depth and parameter efficiency are not the same thing. The Inception module runs 1×1, 3×3, 5×5 convolutions and a 3×3 max-pool in parallel and concatenates their outputs along the depth axis, capturing multi-scale features in one block. A 1×1 conv inserted before each expensive branch reduces the channel count, acting as a bottleneck. The full network is 22 layers deep (27 if pooling layers count) with about 100 independently organized blocks, and the parameter count is roughly one-twelfth that of AlexNet. Two auxiliary classifier heads (at the outputs of Inception blocks 4a and 4d) are added during training with weight 0.3 to combat vanishing gradients at depth. On ILSVRC-2014 the model wins classification outright at 6.67% top-5 and also wins detection at 43.9% mAP. The lesson: multi-scale features, extracted in parallel and bottleneck-compressed, are cheaper than a uniform deeper stack. GoogLeNet

Figure 4: Two versions of the Inception module side by side. The naive version on the left runs 1×1, 3×3, 5×5, and a 3×3 max-pool branch in parallel and concatenates along the depth axis. The version on the right inserts a 1×1 conv before each expensive branch — this dimension-reduction bottleneck is what makes the module parameter-efficient.

Figure 5: The full 22-layer GoogLeNet stack. Input → conv stem → 9 Inception modules (3a through 5b) interleaved with max-pool halving → 7×7 average pool → dropout → linear → softmax. Two auxiliary classifier branches extend sideways from modules 4a and 4d for use only during training. There are no fully connected layers besides the final classifier.
ResNet (2015). The He, Zhang, Ren, Sun observation is that plain very-deep networks are hard to optimize, not just hard to generalize. Error saturates at 19 layers in VGG, and stacking more plain layers actually makes training error go up. The fix is a residual block: instead of learning the desired mapping H(x) directly, learn the residual F(x) = H(x) − x and add the identity back: y = F(x) + x. The identity skip introduces no extra parameters and no extra FLOPs; it just makes the optimization landscape friendlier. This single change allows 50, 101, and 152-layer networks. ResNet-152 reaches 11.3 billion FLOPs, less than VGG-19's 19.6 billion — eight times deeper, less compute. On ILSVRC-2015 the 6-model ensemble achieves 3.57% top-5 test error. The global-average-pooling + 1000-way FC softmax head becomes the standard CNN classifier of the post-2015 era. ResNet

Figure 6: A single residual block. Input x passes through a 3×3 conv → ReLU → 3×3 conv to produce F(x). A short identity arc carries x around both conv layers and meets F(x) at a circled + node, after which a final ReLU activates the sum y = F(x) + x. The identity arc has no parameters and no FLOPs — only the two 3×3 convs contribute to the model's capacity.

Figure 7: Three architectures placed side by side. Left: VGG-19, the depth reference at 19.6 billion FLOPs. Middle: a plain 34-layer network at 3.6 billion FLOPs, more layers than VGG but plain — its error is higher than VGG's, which is the symptom ResNet was designed to fix. Right: ResNet-34 at 3.6 billion FLOPs with the same depth as the plain network, but every pair of conv layers carries a short curved shortcut. Dotted shortcuts mark dimension changes; solid shortcuts are identity. The "depth without degradation" message sits in the contrast between middle and right: same FLOPs, same depth, but the residual version trains to lower error.
By 2015 the CNN era has answered its own question. Depth can go past 100 layers, parameter count can be reduced by an order of magnitude, and residual identity skips make very-deep networks trainable. But all of these are grid processors. They take a fixed-size input, slide kernels across spatial positions, and produce a fixed-size output. They have no natural way to handle a sequence where the next input depends on what came before. That is the gap the next family of architectures is built to fill.
How does recurrence handle sequences, and where does it break?
Sequence data shows up everywhere: words in a sentence, frames of a video, audio samples of speech, nucleotide pairs in a DNA strand. The defining property is that samples are not i.i.d.; the prediction at position t depends on what came at positions 1 through t−1. A feedforward network applied independently to each position ignores this dependency. A convolutional network can see a fixed-width window but cannot naturally grow to a variable-length sequence.
The Recurrent Neural Network (RNN) addresses this by sharing parameters across time. The same set of weights is applied at every time step, and a hidden state h_t summarizes everything the network has seen up to position t. The forward pass has two equations:
h_t = tanh(W_hh · h_{t-1} + W_xh · x_t)
ŷ_t = softmax(W_hy · h_t)
At each step, the previous hidden state and the current input are combined by a linear map, squashed through tanh, and used to predict the next output. Because the same W_hh is used at every step, the architecture is naturally variable-length and parameter-efficient.

Figure 8: The RNN in two views. On the left, the folded diagram shows input x flowing into hidden state h with self-loop weight W_hh, then into output z with weight W_hz. On the right, the same network unrolled across three time steps (t-1, t, t+1), with the shared weights W_xh, W_hz, and W_hh visible on each arrow. The unrolled view is a deep network with one layer per time step, all sharing the same weights.
The unfolded graph reveals the depth. An RNN over T steps is a feedforward network of depth T, with weight sharing across layers. This framing is what makes the vanishing-gradient diagnosis so immediate: backpropagation through T steps requires multiplying Jacobians T times, and the product shrinks toward zero or blows up toward infinity.
This is the central technical problem of vanilla RNNs. The gradient of a loss L_T at the final time T with respect to an early hidden state updates as a multiplicative product of Jacobians across every intermediate step:
∂ϑ_v(t-q) / ∂ϑ_u(t) = ∏_{m=1..q} f'_l_m(net_{l_m}(t-m)) · w_{l_m, l_{m-1}}
If every term has magnitude greater than one, the product blows up exponentially; if every term has magnitude less than one, it decays exponentially. With logistic-sigmoid activations the derivative caps at 0.25, so for moderate weights the product almost always decays. This is the vanishing gradient problem, and it means that vanilla RNNs cannot reliably bridge long time horizons. The network literally cannot tell that a token 100 steps ago should influence the current prediction, because the gradient signal that would tell it to adjust its weights has decayed to noise.
For tasks where past context alone is enough, vanilla RNNs work. But for tasks where future context matters — speech recognition, where the right interpretation of a phoneme depends on the next few sounds — we need a bidirectional variant. A bidirectional RNN runs two RNNs in parallel, one forward through time and one backward, and concatenates their hidden states at each position. This lets every output position see both past and future, at the cost of needing the full input sequence upfront. The architecture was introduced by Schuster and Paliwal in 1997 and is a useful extension of the vanilla RNN for sequence labeling tasks.
The vanishing gradient is the failure mode the next chapter fixes. Vanilla RNN cannot bridge long time horizons because the gradient product collapses; the LSTM's contribution is to replace the multiplicative hidden-state update with an additive, gated cell-state pathway. LSTM
How does LSTM's gated cell state bridge the gradient collapse?
The LSTM, introduced by Hochreiter and Schmidhuber in 1997, attacks the vanishing-gradient problem at its root. Instead of letting the gradient decay exponentially across time, it builds a path through time where the gradient can flow unchanged. The mechanism is the constant-error carousel (CEC): a self-recurrent connection with weight exactly 1.0, paired with a linear activation f_j(x) = x. With these two choices the cell state updates additively, s_{c_j}(t) = s_{c_j}(t-1) + …, and the gradient along this path neither decays nor grows.
The CEC alone is not enough. Without control over what enters and leaves, the cell either receives every input indiscriminately or emits its state constantly. Two multiplicative gate units solve this: an input gate in_j that protects the cell from irrelevant inputs, and an output gate out_j that protects downstream units from irrelevant memory contents.

Figure 9: The original LSTM memory cell as drawn in the 1997 paper. The large rectangle is the memory cell c_j. Inside, the self-recurrent arrow with weight 1.0 is the constant-error carousel — the additive update that keeps the gradient from vanishing. Below the cell, the in_j and out_j multiplicative gates appear as small circles. These are the only two gates in the 1997 architecture; there is no forget gate.
The 1997 figure looks sparse by modern standards. Modern LSTMs use three gates — forget, input, and output — and the forget gate was added by Gers, Schmidhuber, and Cummins in 2000, three years after the original paper. The modern equations are:
f_t = σ(W_f · [h_{t-1}, x_t] + b_f) # forget gate
i_t = σ(W_i · [h_{t-1}, x_t] + b_i) # input gate
C̃_t = tanh(W_C · [h_{t-1}, x_t] + b_C) # candidate values
C_t = f_t · C_{t-1} + i_t · C̃_t # cell-state update
o_t = σ(W_o · [h_{t-1}, x_t] + b_o) # output gate
h_t = o_t · tanh(C_t) # hidden-state output
Each gate reads the previous hidden state h_{t-1} and the current input x_t, applies a linear map plus a sigmoid squashing, and produces a vector of numbers between 0 and 1 that element-wise scales another vector. The forget gate decides what fraction of the previous cell state to keep. The input gate combined with the candidate values decides what new information to write. The cell state updates additively, with the forget term multiplying the past and the input term adding the new. The output gate controls what fraction of the cell state to expose as the next hidden state, after a tanh squashing.
The empirical payoff is dramatic. The 1997 paper's Experiment 2c solved a 1000-step minimal-time-lag task with random distractors — a benchmark that no other recurrent algorithm of the era could handle. The same architecture, now with the forget gate, dominates sequence modeling for the next two decades, including speech recognition, machine translation, and caption generation.

Figure 10: The modern LSTM unrolled across three time steps. Each module contains three sigmoid gates (yellow rectangles) and one tanh layer, operating on the previous hidden state h_{t-1} and current input x_t. The thick horizontal line running across the top of each module is the cell-state highway — the conveyor belt on which information flows through time, gated at each step but otherwise undisturbed. Compared to the 1997 figure, the forget gate is now present (the leftmost sigmoid in the bottom row).
A simpler variant is the Gated Recurrent Unit (GRU), which merges the cell state and hidden state into one pathway and uses only two gates (an update gate z_t and a reset gate r_t). The GRU reaches comparable performance to LSTM on many tasks with fewer parameters, which is why it is a common default for practitioners. The cell-state "conveyor belt" analogy and the four-layer repeating-module view in Figure 10 come from a pedagogical redraw of the modern LSTM that has become the standard visual reference for the architecture. OLAH

Figure 11: A GRU cell. Two sigmoid gates (z_t the update gate, r_t the reset gate) and one tanh candidate layer compress the LSTM's three gates and dual pathway into a single state h_t. The GRU is structurally simpler but achieves broadly comparable accuracy on many sequence-modeling benchmarks.
The bottleneck that remains is sequential. Every time step waits for the previous one. There is no way to compute h_5 without first computing h_4, which means training cannot parallelize across time. For long sequences this matters. The Transformer replaces recurrence with attention and removes the serial dependency entirely — that is the subject of the next chapter. LSTM
Why does attention replace recurrence in the Transformer?
The bottleneck carried over from LSTM is sequential computation. The forward pass is O(n) sequential operations: time step t cannot begin before time step t−1 has finished. This makes parallelization across time impossible, which is a serious problem at modern sequence lengths.
The 2017 paper "Attention Is All You Need" by Vaswani et al. makes a recurring observation. Self-attention replaces the recurrence entirely. The architecture has O(1) sequential operations per layer, because every position's output is computed from the entire input in parallel. The per-layer compute is O(n² · d) instead of O(n · d²), but the absence of sequential dependency wins on the wall-clock training cost for any sequence length where parallel hardware can be saturated.
To see why self-attention is the right building block, it helps to think of it as a fuzzy hashtable. A real hashtable maps each query to exactly one key-value pair. Self-attention maps each query to every key to varying degrees and returns a weighted sum of all values, where the weights come from the softmax of query-key match scores. Every position attends to every other position, and the network learns which positions are worth attending to.
The recipe is four steps. For each input position i with embedding x_i:
- Project to Q, K, V: q_i = W^Q · x_i, k_i = W^K · x_i, v_i = W^V · x_i.
- Score query against every key: score(i, j) = q_i^T · k_j.
- Normalize with softmax: α_{ij} = softmax_j(score(i, j) / √d_k).
- Weighted sum of values: output_i = Σ_j α_{ij} · v_j.
The √d_k scaling matters: dot products of zero-mean unit-variance q and k have variance d_k, which would push the softmax into low-gradient regions without the correction. The four-step recipe generalizes to a vectorized form Q = X · W^Q, K = X · W^K, V = X · W^V, then output = softmax(Q · K^T / √d_k) · V.

Figure 12: The scaled dot-product attention pipeline. Q, K, V are first multiplied (MatMul), then divided by √d_k (Scale), optionally masked, then softmaxed, then multiplied again by V. The √d_k step is what keeps the softmax in a non-saturating region.

Figure 13: The same pipeline on the left, plus multi-head attention on the right. In multi-head attention, h parallel single-head attention modules run on different learned projections of Q, K, V. Their outputs are concatenated and projected once more by W^O. The figure shows h stacked boxes; the paper specifies h = 8 with d_k = d_v = d_model / h = 64 for the base model. ATTENTION
Self-attention has one major missing piece: order. A bag of word embeddings with no order information can produce any sentence permutation, so the network cannot tell "the dog bit the man" from "the man bit the dog." The Transformer injects order by adding a positional encoding vector p_i to v_i, q_i, and k_i at the input to each layer. The encoding is sinusoidal:
PE(pos, 2i) = sin(pos / 10000^(2i / d_model))
PE(pos, 2i+1) = cos(pos / 10000^(2i / d_model))
Different frequencies across dimensions give each position a unique vector. The Vaswani paper also tried learned position embeddings and found "nearly identical results" (PPL 4.92 vs 4.92, dev BLEU 25.7 vs 25.8), but kept sinusoidal because it might extrapolate to longer sequences at inference. A widely used companion walkthrough lays out the same encoder/decoder scaffold, the six-step self-attention recipe, and the per-head W^Q/W^K/W^V matrix recap in a single visual; six of the eight Vaswani co-authors reviewed it, which is why it remains the standard reference for translating the compressed formulas into a picture. ILTX

Figure 14: The full Transformer encoder-decoder stack. The encoder (left) repeats six blocks, each containing a multi-head self-attention sub-layer, an Add & Norm, a position-wise feed-forward sub-layer, and another Add & Norm. The decoder (right) also repeats six blocks, each with a masked multi-head self-attention (so positions cannot peek at the future), an encoder-decoder cross-attention that pulls keys and values from the encoder top, and the same feed-forward + Add & Norm wrap. Residual arrows around every sub-layer enforce the LayerNorm(x + Sublayer(x)) pattern. Linear and Softmax at the top convert the final decoder output to per-token probabilities.
Three training tricks make very-deep Transformer stacks trainable. Residual connections around every sub-layer let gradients flow backward without going through the sub-layer's weights. LayerNorm inside each residual branch stabilizes activations. Scaled dot-product attention keeps softmax gradients in a non-saturating region. Together they allow the base model with N = 6 and d_model = 512 to be stacked six times deep without optimization difficulty.
The headline result on machine translation is striking: WMT 2014 EN-DE big model reaches 28.4 BLEU, more than 2.0 BLEU above the best previously reported ensemble, and WMT 2014 EN-FR big model reaches 41.8 BLEU, the best single-model result on that benchmark at the time. The big Transformer model that established both numbers trained for 3.5 days on 8 P100 GPUs (§6.1 attaches this cost to the EN-DE big model; the paper does not separately report EN-FR wall-clock training time).
The same encoder block, with a different tokenizer, has now been shown to work outside NLP. That is the closing arc of the next chapter. Transformer
Why does the same Transformer block now run vision, code, and biology?
The Transformer encoder block from the previous chapter is not an NLP-specific artifact. It is a generic sequence mixer: take a sequence of vectors, mix them with attention, transform them with a position-wise MLP, repeat. What you feed into the block defines the modality. Tokenize text as subword embeddings, and you get a language model. Tokenize images as fixed-size patches, and you get a vision classifier.
The Vision Transformer (ViT) by Dosovitskiy et al. makes this concrete. An input image x ∈ R^(H×W×C) is split into N = HW / P² flattened patches of size P×P (typically 16×16). Each patch is linearly projected to D dimensions, a learnable [class] token is prepended to the sequence, 1-D learnable position embeddings are added, and the resulting sequence goes through a stack of standard Transformer encoder blocks. The classification head reads the output at the [class] token.

Figure 15: The ViT model overview. An image is split into a grid of fixed-size patches (typically 16×16); each patch is flattened and linearly projected to D dimensions; a learnable
[class]token is prepended; 1-D position embeddings are added; the sequence goes through a stack of standard Transformer encoder blocks (LayerNorm → multi-head self-attention → residual → LayerNorm → MLP → residual, exactly as in the previous chapter). The output at the[class]token is the image representation, passed to a classification head. The figure deliberately shows no convolutional layers between patch extraction and encoder. ViT
Pretraining is the load-bearing ingredient. ViT does not beat ResNets on ImageNet from scratch — on the smaller ImageNet-1k and ImageNet-21k corpora, ViT-Large actually underperforms ViT-Base. With the Google-internal JFT-300M pretraining corpus (303M images, 18k classes), the picture changes. ViT-H/14 reaches 88.55% ±0.04 on ImageNet and 90.72% ±0.05 on ImageNet-ReaL, against BiT-L (ResNet152x4) at 87.54% and 90.54% respectively. The compute comparison is even sharper: ViT-H/14 needs 2.5k TPUv3-core-days to pretrain; BiT-L needs 9.9k; Noisy Student (EfficientNet-L2) needs 12.3k. The headline is roughly a quarter of the compute for better accuracy.
The inductive-bias inversion is the conceptual payoff. The ViT paper's own framing is that "Vision Transformer has much less image-specific inductive bias than CNNs. In CNNs, locality, two-dimensional neighborhood structure, and translation equivariance are baked into each layer throughout the whole model. In ViT, only MLP layers are local and translationally equivariant, while the self-attention layers are global. The two-dimensional neighborhood structure is used very sparingly: in the beginning of the model by cutting the image into patches and at fine-tuning time for adjusting the position embeddings for images of different resolution." This is the architectural opposite of LeNet, AlexNet, and ResNet — and it still wins, given enough pretraining data. The "more priors = better" arc that drove VGG, GoogLeNet, and ResNet reaches its terminus here.
The same encoder block powers models beyond vision. AlphaCode (DeepMind 2022) achieved a top 54.3% rating on Codeforces programming competitions using a Transformer-based code generation model. AlphaFold2 (Jumper et al., Nature 2021) uses an Evoformer block built on the same self-attention primitives for protein structure prediction. The block is not a one-modality tool. It is the converged residue of every architectural bottleneck this tutorial has traced: parameter explosion → local connectivity → vanishing gradient → gated cell state → sequential dependency → attention. Each generation was a response to the previous generation's bottleneck, and the Transformer encoder block is what survived the cascade, which is why it now powers vision, code, and biology at the same time. ViT
References
- ImageNet Classification with Deep Convolutional Neural Networks (Krizhevsky, Sutskever, Hinton, NeurIPS 2012) — NeurIPS PDF
- Very Deep Convolutional Networks for Large-Scale Image Recognition (Simonyan, Zisserman, ICLR 2015) — arXiv:1409.1556
- Going Deeper with Convolutions (Szegedy et al., CVPR 2015) — arXiv:1409.4842
- Deep Residual Learning for Image Recognition (He, Zhang, Ren, Sun, CVPR 2016) — arXiv:1512.03385
- Long Short-Term Memory (Hochreiter, Schmidhuber, Neural Computation 1997) — PDF mirror
- Attention Is All You Need (Vaswani et al., NeurIPS 2017) — arXiv:1706.03762
- Understanding LSTM Networks (Christopher Olah, 2015) — colah.github.io
- An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale (Dosovitskiy et al., ICLR 2021) — arXiv:2010.11929
- The Illustrated Transformer (Jay Alammar, 2018) — jalammar.github.io