← Back to CoursesTensorFlow & AI Programming: PhD Level

Neuroanatomy Explorer

Drag to rotate · scroll to zoom · click regions to explore

View
Loading 3D model…

Click a region
to explore it

Memory Deck

Flip each card and rate whether you knew it. Your score is saved.

Term
Definition

Deck complete — score saved.

Match the Pairs

Match each term to its definition. Finish the board to earn your score.

All matched — score saved.

Concept Constellation

Every key idea in this course, mapped as an explorable 3D constellation. Drag to rotate, scroll to zoom, click a node.

Click a node to read its definition.

Training Deep Networks: Initialization, Regularization, and Generalization

Manual: General · Subject: TensorFlow & AI Programming

Study the mechanics of stable optimization and the empirical principles that govern generalization.

Training dynamics

Why training fails

Training instability often comes from poor initialization, mismatched learning rates, exploding or vanishing gradients, bad normalization, inadequate regularization, or dataset shift. TensorFlow enables custom control over these factors through initializers, optimizers, constraints, and callbacks.

Regularization toolkit

Weight decay
Penalizes large weights via an ℓ2\ell_2-style term
Dropout
Randomly masks activations during training
Early stopping
Stops training when validation performance degrades
Data augmentation
Creates effective invariances from transformed samples
Label smoothing
Reduces overconfident predictions

Which practice most directly helps prevent overfitting when training on limited data?

Initialization and signal propagation

Initialization should keep activations and gradients within a reasonable scale. Techniques such as Xavier/Glorot and He initialization are designed to preserve variance across layers, thereby reducing pathological signal collapse or explosion.

What is the purpose of batch normalization or layer normalization?

Bias-variance and regularization intuition

Low regularization

  • Can fit training data tightly
  • May overfit noisy data
  • Useful when data are abundant

High regularization

  • Encourages simpler solutions
  • May underfit if too strong
  • Often improves robustness
⚠️

Generalization caution

A lower training loss does not guarantee a better model; validation and test performance remain the decisive criteria for scientific claims.

A practical training checklist

  1. 1

    Choose an optimizer and a learning-rate schedule.

  2. 2

    Verify that gradients are finite and not collapsing to zero.

  3. 3

    Monitor training and validation curves separately.

  4. 4

    Add regularization only after confirming the baseline is stable.

  5. 5

    Run multiple seeds to estimate variance in reported metrics.

Why is running multiple random seeds important in research evaluations?

Name one common symptom of an excessively large learning rate.