Machine Learning and Vision Models Study Guide

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/46

flashcard set

Earn XP

Description and Tags

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.

47 Terms

1
New cards

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.

2
New cards

Empirical Risk

The average loss evaluated on the training sample: LS(f)=1m∑i=1mℓ(f(xi),yi)L_S(f) = \frac{1}{m} \sum_{i=1}^m \ell(f(x_i), y_i).

3
New cards

Expected Risk

The average loss of a model evaluated over the entire underlying data distribution: LD(f)=E(x,y)∼D[ℓ(f(x),y)]L_D(f) = \mathbb{E}_{(x,y)\sim D}[\ell(f(x), y)].

4
New cards

Generalization Gap

The difference between expected risk and empirical risk, linking true error to training error via: true error=training error+generalization gap\text{true error} = \text{training error} + \text{generalization gap}, or LD=LS+(LD−LS)L_D = L_S + (L_D - L_S).

5
New cards

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).

6
New cards

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).

7
New cards

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.

8
New cards

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.

9
New cards

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\mathbb{E}[(f(x) - \hat{f}_S(x))^2] = (f(x) - \mathbb{E}[\hat{f}_S(x)])^2 + (\mathbb{E}[\hat{f}_S(x)^2] - \mathbb{E}[\hat{f}_S(x)]^2) + \text{noise}.

10
New cards

Regularization

The addition of a parameter penalty to the training loss objective (min⁡θ1m∑iℓ(hθ(xi),yi)+ρR(θ)\min_\theta \frac{1}{m} \sum_i \ell(h_\theta(x_i), y_i) + \rho R(\theta)) to constrain parameter magnitudes, lower variance, and prevent overfitting.

11
New cards

L2 Regularization

A penalty method using R(θ)=∥θ∥22R(\theta) = \|\theta\|_2^2 that continuously shrinks all weights toward zero without driving them to exactly zero because its gradient 2ρθj2\rho\theta_j weakens as θj\theta_j shrinks.

12
New cards

L1 Regularization

A penalty method using R(θ)=∥θ∥1R(\theta) = \|\theta\|_1 whose constant push ρsign⁡(θj)\rho\operatorname{sign}(\theta_j) drives many weights to exactly zero, resulting in a sparse model and performing feature selection.

13
New cards

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.

14
New cards

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 ρ\rho, iteration count, architecture).

15
New cards

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.

16
New cards

K-fold Cross-Validation

A validation technique that splits non-test data into KK folds, trains on K−1K - 1 folds, evaluates on the held-out fold, and averages the KK errors to estimate generalization performance without tuning on the test set.

17
New cards

Parametric Model

A model with a fixed, predetermined number of parameters regardless of the dataset size (e.g., linear regression).

18
New cards

Nonparametric Model

A model whose complexity and number of effective parameters grow as the dataset size increases (e.g., kk-NN which stores every point, or an unconstrained decision tree that grows leaves).

19
New cards

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.

20
New cards

Weak Learner

A base predictor that performs only slightly better than random guessing, typically possessing low variance.

21
New cards

Decision Stump

A single-split decision tree with a depth of 11, commonly used as a classic weak learner.

22
New cards

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.

23
New cards

Bagging (Bootstrap Aggregating)

An ensemble technique that trains independent models in parallel on bootstrap samples (D1,…,DBD_1, \dots, D_B) and combines them by averaging for regression or majority voting for classification to reduce variance.

24
New cards

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.

25
New cards

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.

26
New cards

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: −∂L∂y^-\frac{\partial L}{\partial \hat{y}}).

27
New cards

Mixture of Experts (MoE)

An ensemble model that combines NN expert models via a gating network that outputs input-dependent weights: y^(x)=∑igi(x)fi(x)\hat{y}(x) = \sum_i g_i(x) f_i(x) with ∑igi(x)=1\sum_i g_i(x) = 1.

28
New cards

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.

29
New cards

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.

30
New cards

Matrix Factorization (Recommender Systems)

A technique approximating an observed rating matrix as a product of low-rank user and item latent matrices (R≈UVTR \approx UV^T) by minimizing 12∑i,jSij(Rij−uiTvj)2\frac{1}{2} \sum_{i,j} S_{ij}(R_{ij} - u_i^T v_j)^2 over observed entries (Sij=1S_{ij} = 1).

31
New cards

Latent Dimension (dd)

The number of hidden traits in matrix factorization; constraining d≪min⁡(m,n)d \ll \min(m, n) forces users and items to share structure, cuts parameters from mnmn to d(m+n)d(m + n), and enables the prediction of unobserved ratings.

32
New cards

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.

33
New cards

Pointwise Mutual Information (PMI)

A measure used to reweight word co-occurrence matrices so that highly frequent words do not dominate: PMIij=log⁡(N⋅#(i,j)freq⁡(i)freq⁡(j))\text{PMI}_{ij} = \log\left(\frac{N \cdot \#(i, j)}{\operatorname{freq}(i)\operatorname{freq}(j)}\right), commonly thresholded as PPMI=max⁡(PMI,0)\text{PPMI} = \max(\text{PMI}, 0).

34
New cards

Eckart–Young–Mirsky Theorem

A theorem stating that truncating the singular value decomposition (SVD\text{SVD}) to the top rr singular vectors produces the optimal rank-rr matrix approximation X^\hat{X} with minimal Frobenius reconstruction error ∑i>rσi2\sum_{i > r} \sigma_i^2.

35
New cards

Johnson–Lindenstrauss Projection

A dimension-reduction guarantee stating that multiplying mm points by a random Gaussian matrix A∈Rr×nA \in \mathbb{R}^{r \times n} with r=8log⁡(m)ϵ2r = \frac{8\log(m)}{\epsilon^2} approximately preserves all pairwise Euclidean distances within (1±ϵ)(1 \pm \epsilon) without training.

36
New cards

t-SNE (t-Distributed Stochastic Neighbor Embedding)

A non-linear dimensionality reduction algorithm that models neighbor probabilities as Gaussians in high dimensions and Student-tt distributions in low dimensions, minimizing KL(P∥Q)\text{KL}(P\|Q) while using heavy tails to prevent 2-D crowding.

37
New cards

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\left\|X_{\text{in}} - X_{\text{out}}\right\|_2^2.

38
New cards

Variational Autoencoder (VAE)

A generative model whose encoder outputs distribution parameters (mean μ\mu and variance σ2\sigma^2) from which latent codes are sampled (z=μ+σ⊙ε,ε∼N(0,I)z = \mu + \sigma \odot \varepsilon, \varepsilon \sim \mathcal{N}(0, I)), regularized with a KL divergence penalty to keep latents close to standard normals.

39
New cards

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.

40
New cards

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.

41
New cards

Residual Connection

A skip connection in a neural block (H(x)=x+F(x)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.

42
New cards

Gradient Saliency Map

A visualization computed by taking the absolute value of the gradient of a class score with respect to the input pixels (∣∂scorec∂x∣\left|\frac{\partial \text{score}_c}{\partial x}\right|), highlighting pixels that most influence the predicted class.

43
New cards

Grad-CAM (Gradient-Weighted Class Activation Mapping)

A visual explanation method that computes channel weights αkc\alpha_k^c 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⁡\operatorname{ReLU} to produce a coarse localization map.

44
New cards

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.

45
New cards

Few-Shot Learning

A machine learning paradigm that trains a model to recognize novel classes using only 11 to 1010 labeled examples per class, often using pretrained embeddings and simple classifiers.

46
New cards

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).

47
New cards

Wasserstein GAN (WGAN)

A generative adversarial network variant that optimizes the Earth Mover's (Wasserstein) distance (W=inf⁡γE(x,y)∼γ[∥x−y∥]W = \inf_\gamma \mathbb{E}_{(x,y)\sim \gamma}[\|x - y\|]) instead of Jensen-Shannon divergence, providing stable gradients even when distributions have disjoint supports.