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. 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. |