Theory ofIntelligence
menu_bookFIRST PRINCIPLES • KNOWLEDGE BASE

Concept Library & Book Index

An alphabetical, first-principles index of definitions, theorems, and building blocks across STEM. Explore why concepts work, their analogies to higher math and computing, and direct links to syllabus chapters.

menu_bookFIRST PRINCIPLES • BOOK INDEX

AI & Machine Learning Concept Library

The canonical A–Z reference index of mathematical concepts, definitions, and theorems. Each entry connects theoretical building blocks to syllabus textbook chapters and real-world applications.

9
Indexed Concepts
search
Domain:
A(1 entry)

Activation Functions in Neural Networks: The Engine of Non-Linearity

Deep Learning Foundations

Why neural networks require non-linear activations, how stacking linear layers collapses without them, and in-depth comparisons between ReLU, Sigmoid, Tanh, Softmax, and GELU.

Key Formula:
f(z)=max⁡(0,z),σ(z)=11+e−z,Softmax(zi)=ezi∑ezj,GELU(z)=z⋅Φ(z)f(z) = \max(0, z), \quad \sigma(z) = \frac{1}{1 + e^{-z}}, \quad \text{Softmax}(z_i) = \frac{e^{z_i}}{\sum e^{z_j}}, \quad \text{GELU}(z) = z \cdot \Phi(z)
open_in_new
B(1 entry)

The Complete Guide to Backpropagation: From Multivariable Chain Rule Trees to Vectorized Matrix Calculus

Deep Learning Foundations

Master backpropagation from foundational multivariable calculus to production matrix operations: Multivariable Chain Rule trees, gradient descent dynamics, Confusion Matrix diagnostics, Binary Cross-Entropy vs. Squared Error, Stanford CS229 vectorized calculus, and raw Python implementations.

Key Formula:
∂L∂W[l]=δ[l](a[l−1])T\frac{\partial \mathcal{L}}{\partial W^{[l]}} = \delta^{[l]} (a^{[l-1]})^T
open_in_new
L(1 entry)

Loss Functions & Gradient Descent: How Networks Learn

Optimization & Training

Understanding how loss functions quantify prediction error and how gradient descent navigates high-dimensional weight landscapes to minimize loss.

Key Formula:
w(t+1)=w(t)−η ∇wL(w)\mathbf{w}^{(t+1)} = \mathbf{w}^{(t)} - \eta \, \nabla_{\mathbf{w}} \mathcal{L}(\mathbf{w})
open_in_new
M(1 entry)

Mean Centering & Variance Normalization: The Geometry of Feature Scaling

Data Preprocessing & Foundations

Understand why subtracting the mean moves the centroid to the origin and why dividing by standard deviation scales variance to 1. Complete geometric intuition, algebraic proofs, 2D matrix mechanics, PCA connections, and raw NumPy implementations.

Key Formula:
x~=x−μσ\tilde{\mathbf{x}} = \frac{\mathbf{x} - \boldsymbol{\mu}}{\boldsymbol{\sigma}}
open_in_new
R(1 entry)

The Rectified Linear Unit (ReLU): From Non-Linear Hinging to Dying Neurons

Deep Learning Foundations

Master the mechanics of ReLU ($f(x) = \max(0, x)$): piecewise linear definition, subgradients, cat-ear feature detection, preventing vanishing gradients, folding the graph to learn complex shapes, the dying ReLU problem, and modern variants (Leaky ReLU, PReLU, ELU, GELU).

Key Formula:
f(x)=max⁡(0,x),f′(x)={1x>00x<0f(x) = \max(0, x), \quad f'(x) = \begin{cases} 1 & x > 0 \\ 0 & x < 0 \end{cases}
open_in_new
S(3 entries)

Self-Attention: The Foundation of Modern Transformers

Transformer Architecture & LLMs

How scaled dot-product attention allows every token to dynamically query and weight all other tokens in a sequence, eliminating the sequential bottlenecks of RNNs.

Key Formula:
Attention(Q,K,V)=softmax(QK⊤dk)V\text{Attention}(Q, K, V) = \text{softmax}\left(\frac{QK^\top}{\sqrt{d_k}}\right)V
open_in_new

The Sigmoid Activation Function: The S-Curve, The Steepness Parameter k, and the Universal Algebra of Horizontal Scaling

Deep Learning Foundations

Master the mechanics of the Sigmoid (logistic) activation function σ(x) = 1 / (1 + e^(-kx)): behavior at center and infinity, Spam classification numerical walkthrough, derivative proof σ'(x) = k σ(x)(1 - σ(x)), vanishing gradients in hidden layers, why it survives in output layers and gates (LSTMs, GRUs), and an intuitive masterclass on the steepness parameter k vs vertical scaling with the fast-forward video clock analogy and neural network weight connections.

Key Formula:
σ(x)=11+e−kx,σ′(x)=k⋅σ(x)(1−σ(x))\sigma(x) = \frac{1}{1 + e^{-kx}}, \quad \sigma'(x) = k \cdot \sigma(x)(1 - \sigma(x))
open_in_new

The Structure of a Neural Network: From Neuron to Network

Deep Learning & LLM Foundations

A ground-up conceptual guide to artificial neurons, weights, biases, activations, matrix layer propagation, and the architecture of modern LLMs.

Key Formula:
y=f(∑i=1nwixi+b)andZ=XW+by = f\left(\sum_{i=1}^{n} w_i x_i + b\right) \quad \text{and} \quad \mathbf{Z} = \mathbf{X}\mathbf{W} + \mathbf{b}
open_in_new
V(1 entry)

Vanishing & Exploding Gradients: From Audio Amplifiers to Xavier & He Initialization

Deep Learning Foundations

Understand why deep neural networks suffer from vanishing and exploding activations and gradients: the audio amplifier analogy, repeated matrix multiplication, chain-rule calculus derivations, and the mathematical variance proofs behind Xavier and He weight initialization.

Key Formula:
∂L∂W[1]∝W[2]W[3]⋯W[L]\frac{\partial L}{\partial W^{[1]}} \propto W^{[2]} W^{[3]} \cdots W^{[L]}
open_in_new