Deep Neural Networks: Key Concepts
July 2025
Deep Neural Networks: Key Concepts July 2025 1/6
Forward/Backward Propagation and Gradient Descent
Forward Propagation: Computes output by passing input through
layers (weights, biases, activations).
Backward Propagation: Computes gradients of loss w.r.t.
parameters using chain rule for updates.
Gradient Descent: Optimizes parameters by minimizing loss.
SGD: Updates with single example gradients.
Pros: Fast, escapes local minima. Cons: Noisy, unstable.
Adam: Combines momentum and adaptive learning rates.
Pros: Robust, fast convergence. Cons: Sensitive to hyperparameters.
Deep Neural Networks: Key Concepts July 2025 2/6
Regularization Techniques
L1 Regularization: Adds absolute weight penalty, promotes sparsity.
Pros: Feature selection. Cons: Non-differentiable at zero.
L2 Regularization: Adds squared weight penalty, penalizes large
weights.
Pros: Stable gradients. Cons: No sparsity.
Dropout: Randomly drops neurons during training.
Pros: Prevents overfitting, improves generalization. Cons: Slows
training.
Data Augmentation: Generates synthetic data (e.g., rotations).
Pros: Increases dataset size, robust. Cons: Domain-specific.
Deep Neural Networks: Key Concepts July 2025 3/6
Convolutional Neural Networks (CNNs)
Layers:
Convolution: Extracts features (e.g., edges) using filters. Output size:
O = ⌊ W −FS +2P ⌋ + 1.
Pooling : Downsamples features (e.g., max pooling). Pros: Reduces
computation. Cons: Loses spatial info.
Fully Connected: Combines features for classification. Cons: High
parameters.
Architectures:
LeNet: Early CNN for digits. Pros: Simple. Cons: Limited to small
tasks.
AlexNet: Deep CNN with ReLU, dropout. Pros: Scalable. Cons: High
compute.
ResNet: Residual connections for deep networks. Pros: Mitigates
vanishing gradients. Cons: Complex.
Deep Neural Networks: Key Concepts July 2025 4/6
Transfer Learning
Definition: Fine-tunes pre-trained models (e.g., ImageNet) for
specific tasks.
Pros:
Reduces training time.
Effective for small datasets.
Leverages learned features.
Cons:
Limited to similar domains.
Fine-tuning requires care.
Deep Neural Networks: Key Concepts July 2025 5/6
Recurrent Neural Networks (RNNs)
RNN: Processes sequences with hidden states. Cons:
Vanishing/exploding gradients.
LSTM: Uses gates to model long-term dependencies.
Pros: Handles long sequences. Cons: Complex, slow.
GRU: Simplified LSTM with fewer gates.
Pros: Faster, similar performance. Cons: Less expressive.
Attention Model: Weights relevant sequence parts dynamically.
Pros: Handles long sequences, interpretable. Cons: Compute-heavy.
Deep Neural Networks: Key Concepts July 2025 6/6