1/46
Flashcards covering core machine learning concepts from CSE 353 Quiz 5, including generalization theory, ensemble methods, representation learning, dimensionality reduction, vision models, and neural network mechanics.
Generalization
The property of a predictive model performing well on new, unseen data rather than just the training data, achieved by balancing performance and complexity, fitting patterns without memorizing noise, and maintaining robustness to small variations.
Empirical Risk
The average loss evaluated on the training sample: LS(f)=m1∑i=1mℓ(f(xi),yi).
Expected Risk
The average loss of a model evaluated over the entire underlying data distribution: LD(f)=E(x,y)∼D[ℓ(f(x),y)].
Generalization Gap
The difference between expected risk and empirical risk, linking true error to training error via: true error=training error+generalization gap, or LD=LS+(LD−LS).
Overfitting
A condition characterized by low training error but high test error, occurring when a model is overly complex and memorizes noise in the training set (e.g., a deep decision tree that isolates individual points).
Underfitting
A condition characterized by high error on both training and test data, occurring when a model is too simple to capture the underlying pattern (e.g., fitting a straight line through curved data).
Bias (in Machine Learning)
Systematic error arising from a model that is too simple, causing it to make the same errors consistently even when averaged over multiple training datasets.
Variance (in Machine Learning)
A measure of the sensitivity of a model indicating how much its predictions or parameters change when trained on a different sample from the data distribution.
Bias-Variance Decomposition
The mathematical formulation for squared error separating expected error into systematic error, sample sensitivity, and irreducible noise: E[(f(x)−f^S(x))2]=(f(x)−E[f^S(x)])2+(E[f^S(x)2]−E[f^S(x)]2)+noise.
Regularization
The addition of a parameter penalty to the training loss objective (minθm1∑iℓ(hθ(xi),yi)+ρR(θ)) to constrain parameter magnitudes, lower variance, and prevent overfitting.
L2 Regularization
A penalty method using R(θ)=∥θ∥22 that continuously shrinks all weights toward zero without driving them to exactly zero because its gradient 2ρθj weakens as θj shrinks.
L1 Regularization
A penalty method using R(θ)=∥θ∥1 whose constant push ρsign(θj) drives many weights to exactly zero, resulting in a sparse model and performing feature selection.
Early Stopping
A regularization method that tracks validation error during training and halts optimization the moment validation error begins to rise, stopping before noise is fully memorized.
Hyperparameter
A structural or training parameter that defines the model but is chosen before training rather than learned from data (e.g., tree depth, regularization strength ρ, iteration count, architecture).
Grid Search
A model selection strategy that exhaustively evaluates all combinations across specified candidate hyperparameter values (typically on a log scale), scaling exponentially with the number of hyperparameters.
K-fold Cross-Validation
A validation technique that splits non-test data into K folds, trains on K−1 folds, evaluates on the held-out fold, and averages the K errors to estimate generalization performance without tuning on the test set.
Parametric Model
A model with a fixed, predetermined number of parameters regardless of the dataset size (e.g., linear regression).
Nonparametric Model
A model whose complexity and number of effective parameters grow as the dataset size increases (e.g., k-NN which stores every point, or an unconstrained decision tree that grows leaves).
Ensemble Learning
A technique that combines multiple diverse and independent models into a single predictor so that their individual errors tend to cancel out, outperforming any individual model.
Weak Learner
A base predictor that performs only slightly better than random guessing, typically possessing low variance.
Decision Stump
A single-split decision tree with a depth of 1, commonly used as a classic weak learner.
Bootstrapping
A statistical procedure of resampling observed data with replacement to produce multiple new datasets of the same size, using the spread of the recomputed statistics to estimate variability and uncertainty.
Bagging (Bootstrap Aggregating)
An ensemble technique that trains independent models in parallel on bootstrap samples (D1,…,DB) and combines them by averaging for regression or majority voting for classification to reduce variance.
Random Forest
An ensemble method combining bagging on decision trees with random feature subsampling at each split, decorrelating the individual trees to reduce ensemble variance further.
AdaBoost
A sequential ensemble method that adds weak learners one at a time, increasing the sample weights of misclassified instances after each round so subsequent learners focus on prior mistakes.
Gradient Boosting
A sequential boosting algorithm executing gradient descent in function space, wherein each consecutive learner is trained to fit the residuals (the negative gradient of the loss at the current prediction: −∂y^∂L).
Mixture of Experts (MoE)
An ensemble model that combines N expert models via a gating network that outputs input-dependent weights: y^(x)=∑igi(x)fi(x) with ∑igi(x)=1.
Expert Collapse
A failure mode in Mixture of Experts models where the gating network perpetually routes all inputs to only one expert, mitigated by using a load-balancing loss.
Collaborative Filtering
A recommendation approach that recommends items by finding patterns across all user ratings without relying on item features, operating on the premise that users with similar rating histories share similar preferences.
Matrix Factorization (Recommender Systems)
A technique approximating an observed rating matrix as a product of low-rank user and item latent matrices (R≈UVT) by minimizing 21∑i,jSij(Rij−uiTvj)2 over observed entries (Sij=1).
Latent Dimension (d)
The number of hidden traits in matrix factorization; constraining d≪min(m,n) forces users and items to share structure, cuts parameters from mn to d(m+n), and enables the prediction of unobserved ratings.
De-biasing Ratings
Subtracting the global average rating along with individual user and movie baseline offsets prior to matrix factorization so that latent vectors capture pure preference rather than rating bias.
Pointwise Mutual Information (PMI)
A measure used to reweight word co-occurrence matrices so that highly frequent words do not dominate: PMIij=log(freq(i)freq(j)N⋅#(i,j)), commonly thresholded as PPMI=max(PMI,0).
Eckart–Young–Mirsky Theorem
A theorem stating that truncating the singular value decomposition (SVD) to the top r singular vectors produces the optimal rank-r matrix approximation X^ with minimal Frobenius reconstruction error ∑i>rσi2.
Johnson–Lindenstrauss Projection
A dimension-reduction guarantee stating that multiplying m points by a random Gaussian matrix A∈Rr×n with r=ϵ28log(m) approximately preserves all pairwise Euclidean distances within (1±ϵ) without training.
t-SNE (t-Distributed Stochastic Neighbor Embedding)
A non-linear dimensionality reduction algorithm that models neighbor probabilities as Gaussians in high dimensions and Student-t distributions in low dimensions, minimizing KL(P∥Q) while using heavy tails to prevent 2-D crowding.
Autoencoder
An unsupervised neural network consisting of an encoder that compresses an input into a bottleneck code and a decoder that reconstructs the original input by minimizing reconstruction error ∥Xin−Xout∥22.
Variational Autoencoder (VAE)
A generative model whose encoder outputs distribution parameters (mean μ and variance σ2) from which latent codes are sampled (z=μ+σ⊙ε,ε∼N(0,I)), regularized with a KL divergence penalty to keep latents close to standard normals.
Weight Sharing
The convolutional property of applying the identical filter across an entire image, dramatically reducing parameter count compared to fully connected layers while enabling feature detection regardless of position.
Max Pooling
A downsampling operation that takes the maximum value in local spatial windows, preserving the most prominent activations, providing translation invariance, and reducing computational load.
Residual Connection
A skip connection in a neural block (H(x)=x+F(x)) allowing signals and gradients to flow directly across layers, mitigating the vanishing gradient problem and permitting the training of very deep networks.
Gradient Saliency Map
A visualization computed by taking the absolute value of the gradient of a class score with respect to the input pixels (∂x∂scorec), highlighting pixels that most influence the predicted class.
Grad-CAM (Gradient-Weighted Class Activation Mapping)
A visual explanation method that computes channel weights αkc by spatially averaging the gradients of class score with respect to feature maps in the final conv layer, followed by a weighted sum and ReLU to produce a coarse localization map.
Transfer Learning
A technique where a network pretrained on a large dataset has its final classification layer replaced and retrained on a new domain with base layers frozen, followed optionally by full fine-tuning.
Few-Shot Learning
A machine learning paradigm that trains a model to recognize novel classes using only 1 to 10 labeled examples per class, often using pretrained embeddings and simple classifiers.
Zero-Shot Learning
A classification paradigm that identifies unseen classes with zero labeled training examples by leveraging auxiliary side information such as natural language descriptions (e.g., CLIP).
Wasserstein GAN (WGAN)
A generative adversarial network variant that optimizes the Earth Mover's (Wasserstein) distance (W=infγE(x,y)∼γ[∥x−y∥]) instead of Jensen-Shannon divergence, providing stable gradients even when distributions have disjoint supports.