Appendix C — The “Fur-mula” Appendix

All equations in one place

When you read a real AI research paper on ArXiv, these are the raw equations you will encounter. Use this cheat sheet to translate the Greek letters back into the concepts you learned in the Academy.

C.1 1. Loss Functions (Measuring Disappointment)

Mean Squared Error (MSE): Used for regression. L = \frac{1}{N} \sum_{i=1}^{N} (y_i - \hat{y}_i)^2

Cross-Entropy Loss: Used for classification and next-token prediction. L = -\sum_{i=1}^{C} y_i \log(\hat{y}_i)

C.2 2. Probability and Distributions (Uncertainty)

Bayes’ Theorem: Updating beliefs based on new evidence. P(A|B) = \frac{P(B|A)P(A)}{P(B)}

Kullback-Leibler (KL) Divergence: Measuring how much one distribution differs from another. D_{KL}(P || Q) = \sum_{x} P(x) \log \left( \frac{P(x)}{Q(x)} \right)

C.3 3. Optimization (Taking the Step)

Gradient Descent Update Rule: \theta_{t+1} = \theta_t - \eta \nabla L(\theta_t)

C.4 4. Neural Network Core Math (The Brain)

Softmax Function: Turns logits into a probability distribution. \mathrm{Softmax}(z_i) = \frac{e^{z_i}}{\sum_{j} e^{z_j}}

Self-Attention (Transformers): \mathrm{Attention}(Q, K, V) = \mathrm{softmax}\left(\frac{QK^T}{\sqrt{d_k}}\right)V

C.5 5. Reinforcement Learning (Treat Hunting)

Cumulative Discounted Return: G_t = \sum_{k=0}^{\infty} \gamma^k R_{t+k+1}

Bellman Optimality Equation (state value form): V^*(s) = \max_a \; \mathbb{E}_{s' \sim P(\cdot|s,a)}\left[ R(s,a,s') + \gamma V^*(s') \right]

Bellman Optimality Equation (Q-value form): Q^*(s,a) = \mathbb{E}\left[ R_{t+1} + \gamma \max_{a'} Q^*(s_{t+1}, a') \mid S_t=s, A_t=a \right]

C.6 6. Alignment and Safety (Finishing School)

DPO Implicit Reward: r_{\theta}(x, y) = \beta \log \frac{\pi_{\theta}(y|x)}{\pi_{\mathrm{ref}}(y|x)} (Where \beta controls how strongly we penalize deviation from the reference model.)