Neural networks are computational models inspired by biological neurons, consisting of interconnected layers of nodes (neurons) that learn patterns through backpropagation and gradient descent. They form the foundation of modern deep learning, enabling breakthroughs in computer vision, natural language processing, sequential data modeling, and generative AI. Key to success: network depth enables feature hierarchy, proper initialization and normalization prevent gradient issues, and the right architecture family — feedforward, recurrent, or attention-based — must match the data structure. Modern training practice combines adaptive optimizers like AdamW, mixed-precision arithmetic, and learning-rate schedules to train efficiently at scale.
What This Cheat Sheet Covers
This topic spans 14 focused tables and 125 indexed concepts, 112 flashcards. Below is a complete table-by-table outline of this topic, spanning foundational concepts through advanced details.
A jump-to index of every table row in this cheat sheet.
An interactive map of every table and concept in this topic.
Table 1: Network Architectures
The architecture you reach for is the single biggest decision in any deep learning project, because it has to match the shape of your data — feedforward nets for tabular inputs, CNNs for grids of pixels, RNNs and their gated variants for sequences, and transformers when long-range relationships matter most. Knowing what each family was built to solve, and the problem that motivated the next one (skip connections rescuing very deep nets, attention replacing recurrence), makes the rest of the cheat sheet click into place.
| Type | Example | Description | |
|---|---|---|---|
input → hidden1 → hidden2 → output | • Information flows in one direction only from input to output • no cycles • simplest architecture for supervised learning. | ||
Dense(128, relu) → Dense(64, relu) → Dense(10, softmax) | • Feedforward network with one or more fully connected hidden layers • standard for tabular data and classification. | ||
Conv2D → ReLU → MaxPool → Flatten → Dense | • Specialized for spatial data (images) • uses convolutional filters to detect local patterns • dominant architecture for computer vision. | ||
h_t = tanh(W_h * h_{t-1} + W_x * x_t) | • Maintains hidden state across time steps • processes sequential data (text, time series) • suffers from vanishing gradients on long sequences. | ||
LSTM(units=128, return_sequences=True) | • RNN variant with forget, input, and output gates controlling cell state • solves vanishing gradient for long-range dependencies. | ||
GRU(units=128) | • Simplified LSTM with reset and update gates but no separate cell state • fewer parameters than LSTM • competitive performance on many tasks. | ||
y = F(x) + x (skip connection) | • Introduces skip connections adding input directly to layer output • solves vanishing gradient in very deep networks (100+ layers). | ||
input → encoder → latent → decoder → output | • Learns compressed latent representation in encoder, then reconstructs in decoder • used for dimensionality reduction, anomaly detection, generation. | ||
MultiHeadAttention → FFN → LayerNorm (×N) | • Uses self-attention to model all pairwise token relationships in parallel • no recurrence; dominant architecture for LLMs and modern NLP/vision. | ||
Generator vs. Discriminator trained adversarially | • Generator creates fake samples; Discriminator distinguishes real from fake • trained via minimax game • produces high-fidelity synthetic data. | ||
Encoder–decoder with skip connections at each level | • Encoder–decoder CNN with symmetric skip connections preserving spatial detail • designed for biomedical image segmentation • widely used for dense prediction. | ||
output = step(w · x + b) | • Single-layer binary classifier using step activation • historical foundation but limited to linearly separable problems. |