Velocer › Flashcards › University of Illinois Urbana-Champaign › CS 444: Deep Learning for Computer Vision · UIUC
CS 444: Deep Learning for Computer Vision · UIUC
Cards from the CS 444 lectures. · par orange_and_blue_notes · 139 cartes
- What is the goal of vision?To extract meaning from pixels — geometric facts, semantic labels, and actions.
- Why is vision hard due to the nature of images?An image is a lossy 2D projection of a 3D world, so geometry and appearance information are lost.
- What world-related factors make vision hard?The world is diverse: shape variation, clutter, occlusion, and camouflage.
- Why can't vision be solved with hand-written priors?Interpretation requires priors that we cannot write down by hand.
- What was the "good old-fashioned AI" approach to vision?It tried to program expertise in by hand, but it never worked in general.
- What is the learning view of solving vision?Give the system the ability to improve from training data and hope it generalizes.
- What is supervised learning?From labeled pairs {(x_i, y_i)}, learn a predictor f; at test time output y = f(x).
- What is deep learning?It models the predictor f as a composition of simple layers.
- What was Rosenblatt's 1958 milestone?The perceptron.
- What was Minsky & Papert's 1969 contribution?Their critique of the perceptron.
- What was Fukushima's Neocognitron (1980)?An early hierarchical model inspired by Hubel & Wiesel's hierarchical visual cortex.
- Who popularized backpropagation in 1986?Rumelhart, Hinton & Williams.
- What were LeNet CNNs (1989–1998)?Early convolutional neural networks, a milestone in deep learning for vision.
- When did the deep learning explosion begin?From 2012.
- What is image classification?Assigning one label from a fixed set to an entire image.
- What is object detection?Predicting a bounding box for each object instance in an image.
- What is semantic segmentation?Assigning a class label to every pixel in an image.
- What is instance segmentation?Assigning pixels to individual object instances, separating distinct objects of the same class.
- What are the three main output types in recognition problems?Classification, regression (arbitrary scalar), and structured prediction (e.g., a parse tree).
- How do many structured vision problems get solved?They reduce to classification plus simple post-processing.
- What is semi-supervised learning?Learning where labels are available for only some of the data.
- What is weakly supervised learning?Learning from noisy labels or labels for a different task, such as image tags when you want segmentation.
- What is unsupervised learning?Learning with no labels, e.g., clustering, dimensionality reduction, or density estimation.
- What is self-supervised learning?A form of learning where supervision is derived from the data itself rather than manual labels.
- What is reinforcement learning?Learning by interacting with an environment and receiving rewards, rather than from labeled examples.
- What are the key facts about the MNIST dataset?10 digit classes, 28×28 grayscale images, 50k train / 10k test; results there often fail to transfer to other tasks.
- What are the key facts about ImageNet?About 1.3M training images over 1,000 classes, evaluated with top-5 accuracy, with images often resized to 256×256.
- What does the COCO dataset contain?80 object classes with instance masks, used for tasks like instance segmentation.
- What is keypoint prediction?Detecting specific landmark points on objects, such as joints or facial features.
- What is depth prediction?Estimating the distance from the camera to each point or pixel in a scene.
- What is 6-DoF pose estimation?Predicting an object's full 3D position and orientation (six degrees of freedom).
- What is image captioning?Generating a natural-language description of an image.
- Why does 1-NN produce jagged, outlier-sensitive decision boundaries?Because it relies on a single nearest neighbor, so individual outliers directly shape the boundary; a majority vote over K neighbors smooths it (ties must be broken).
- Why is kNN on raw pixels rarely used?It is slow and pixel distances are uninformative.
- When does kNN work well as a classifier?When applied to CNN features, where it works well and can transfer more than labels (e.g., captions).
- How should K and the distance metric be tuned?Tune them on a validation split, never on the test set.
- What happens to kNN decision boundaries as K increases from 1?A majority vote over K neighbors smooths the jagged, outlier-sensitive boundaries of 1-NN.
- What must be handled when using a majority vote over K neighbors?Ties must be broken.
- What is empirical risk minimization (ERM)?Given i.i.d. training data, choose a hypothesis class and a loss, then find the hypothesis that minimizes the average training loss as a stand-in for expected test loss.
- What are the steps in the ERM training recipe?Collect data and labels, specify the model (hypothesis class plus loss), and train by minimizing the empirical loss.
- What is the form of a linear classifier?f(x) = sgn(w^T x + b); the bias b can be folded into w by appending a constant 1 to x.
- Why do linear classifiers use surrogate losses instead of directly minimizing mistakes?Directly minimizing classification mistakes is NP-hard, so convex surrogate losses are used instead.
- What does least squares minimize, and what is its closed-form solution?It minimizes ||Xw - Y||^2 and has the closed form w = (X^T X)^{-1} X^T Y.
- What are the main drawbacks of least squares for classification?It ignores that labels are ±1 and is very sensitive to outliers.
- What model does logistic regression use for P(y=1|x)?P(y=1|x) = σ(w^T x) = 1/(1 + e^{-w^T x}), trained by minimizing negative log-likelihood.
- How is logistic regression optimized?It has no closed form but is convex, so gradient descent is used: w ← w - η∇L(w).
- What loss does the perceptron use, and what is its SGD update?Loss max(0, -y_i w^T x_i); SGD gives 'if misclassified, w ← w + η y_i x_i'. The solution depends on initialization.
- What does an SVM maximize, and what are support vectors?An SVM chooses the separating hyperplane with the largest margin; the support vectors are the nearest examples that determine the margin.
- How does margin size relate to ||w||?The margin scales like 1/||w||, so maximizing the margin means shrinking ||w|| while keeping points correctly classified outside the margin zone (y_i w^T x_i ≥ 1).
- What is the soft-margin SVM objective?Minimize (λ/2)||w||^2 + (1/n)Σ max(0, 1 - y_i w^T x_i).
- What is the Pegasos SGD update for the SVM?If y_i w^T x_i < 1, w ← w + η(y_i x_i - λw); otherwise just shrink w.
- What is the general recipe for regularized linear models?Data loss plus a regularization term, e.g., R(w) = ||w||_2^2 or ||w||_1.
- How does softmax handle multi-class classification?It turns C score functions into probabilities, generalizing the sigmoid, and is trained with negative log-likelihood, equivalently cross-entropy between the one-hot label and predicted distribution.
- What are three broad approaches to handling data that is not linearly separable?Hand-design features for a linear classifier; use a fixed nonlinear map followed by a linear classifier (e.g., kernels or random projections); or use a deep stack of learned linear layers with nonlinearities.
- Why is a linear classifier applied to h = ReLU(Wx + b) nonlinear in the original input x?Because the ReLU nonlinearity transforms x before the linear classifier is applied, so the overall decision boundary is nonlinear in x.
- What happens if you stack multiple linear layers without any nonlinearities?The stack collapses into a single linear map, so it has no more expressive power than one linear layer.
- What is the expressive power of two-layer (one-hidden-layer) neural networks?They are universal approximators, but the hidden layer may need to be extremely large to approximate some functions.
- What advantage do deep networks have over shallow networks with one huge hidden layer?Deep networks learn a hierarchy of features with all layers trained jointly, rather than relying on a single very wide layer.
- What is a kernel SVM an example of in the taxonomy of nonlinear classifiers?A fixed (shallow) nonlinear map followed by a linear classifier.
- What is an example of a fixed nonlinear map using random weights?Rectified random projections such as ReLU(w_i^T x + b_i) with randomly chosen, fixed w_i.
- Why have hand-designed features for linear classifiers been largely abandoned?Learned representations from deep networks typically outperform manually engineered features.
- What role does a nonlinearity such as ReLU play in a neural network?It prevents stacked layers from collapsing into a single linear map and lets the network form nonlinear decision boundaries.
- What does the hidden layer of a two-layer network represent?A learned nonlinear feature map of the input on which a linear classifier operates.
- What is the difference between a shallow fixed nonlinear map and a deep learned stack?In the shallow approach the nonlinear features are fixed (e.g., kernels or random projections); in the deep approach all layers, including the feature representations, are learned jointly.
- What is backpropagation and what does it compute?Backpropagation applies the chain rule from the loss backward through the network, reusing intermediate results so that a single backward pass yields every gradient. It is reverse-mode automatic differentiation.
- Why is backpropagation described as reverse-mode automatic differentiation?Because it propagates derivatives from the output (loss) back to the inputs, computing all parameter gradients efficiently in one reverse pass.
- When is forward-mode automatic differentiation preferred over reverse mode?Forward mode suits cases with low-dimensional inputs and high-dimensional outputs, whereas reverse mode (backprop) suits many parameters and a scalar loss.
- How are gradients handled at a node in a computation graph that has multiple outgoing branches?Gradients arriving at the node from the several branches are summed.
- In vector calculus for backprop, what is a local derivative and how is it represented?It is a Jacobian matrix whose rows correspond to outputs and columns to inputs.
- How does backprop avoid forming huge Jacobians for vector operations?It computes vector–Jacobian products directly, propagating gradient vectors through each operation instead of materializing full Jacobians.
- How does the backward pass of a ReLU work?It passes the gradient only where the input was positive and blocks it where the input was negative or zero.
- What is a dead ReLU?A ReLU unit whose input is always negative, so it never receives gradient and never updates its weights.
- For a linear layer y = Wx, what is the gradient with respect to the input x?∂L/∂x = Wᵀ (∂L/∂y).
- For a linear layer y = Wx, what is the gradient with respect to the weights W?∂L/∂W = (∂L/∂y) xᵀ.
- Why can't neural network training use a closed-form solution?The composed loss is generally non-convex with no closed form, so training uses stochastic gradient descent and accepts local minima as usually fine.
- What practical tips help when deriving gradients by hand?Write one Jacobian element first, check dimensions, keep indexing consistent, and compare results against numerical gradients.
- What is mini-batch SGD and how does it update weights?For each epoch, split data into batches of size b, average the gradient over each batch, and update w ← w − η∇L, then check convergence and decay the learning rate.
- What happens if the learning rate is too high versus too low?Too high causes divergence; too low makes training crawl (very slow progress).
- What is step decay in learning rate scheduling?Reducing the learning rate by a fixed factor at set intervals, e.g., ×0.5 every 5 epochs.
- What is learning rate warmup?Starting with a low learning rate and gradually ramping it up during early training.
- What do NaNs in the loss during training suggest?A bug in the code or a learning rate that is too high.
- What does a cyclic loss pattern during training suggest?Unshuffled data.
- What does a widening gap between training and validation loss indicate?Overfitting.
- Why is early stopping on validation error considered regularization?It limits how long the model trains, preventing it from fitting noise and thus reducing overfitting.
- What are the tradeoffs of small versus large batch sizes?Small batches use less memory and add gradient noise (which can regularize) but are less parallel; large batches have lower variance and more parallelism but need careful learning rate tuning.
- How should input data be preprocessed for a neural network?Zero-center by subtracting the mean (image or per-channel), optionally scale, apply the same training statistics at test time, and match any pretrained model's expected preprocessing.
- Why should weights not be initialized to identical values?Identical weights make all units in a layer learn the same thing (symmetry is not broken), so they stay identical.
- What is Xavier initialization?Initializing weights with variance σ² = 1/n_in or 2/(n_in + n_out) to keep signal scale stable across layers.
- What is Kaiming initialization and when is it used?Initialization for ReLU networks with variance σ² = 2/n_in.
- What does batch normalization do?It standardizes each layer's activations using mini-batch statistics, then applies a learned scale and shift, easing training of deep networks.
- How does momentum optimization help training?It accumulates past gradients to amplify steps along low-curvature (consistent-gradient) directions, speeding convergence.
- How do Adagrad and RMSProp differ from plain SGD?They use per-parameter adaptive learning rates derived from squared gradients.
- What is Adam and what does it combine?An optimizer combining momentum and RMSProp with bias correction.
- What is the weight decay update rule and when does it equal L2 regularization?w_{t+1} = (1 − ηλ)w_t − ηs_t; for plain SGD it equals L2 regularization, but for adaptive optimizers decoupling them (AdamW) matters.
- How does dropout work during training and testing?During training, randomly turn off neurons with probability p; at test time, scale outputs so behavior is deterministic.
- What are image priors in the context of convolutional networks?Local patterns that can appear anywhere in an image. Classic hand-designed features exploited gradients, invariance to small deformations, spatial pooling, and coarse binning.
- Why use convolution instead of a fully connected first layer on images?A fully connected layer on a 224×224 RGB image with 4096 units would need about 600M parameters. Convolution restricts receptive fields and shares weights, drastically reducing parameters.
- What is a convolution operation?A linear operation that slides a learned filter over the input and takes dot products at each position.
- How many weights does a conv layer with L filters of size F×F×K have (no bias)?L·F²·K weights, where K is the number of input channels.
- What is the output size of a valid convolution on an H×W input with F×F filters?(H−F+1) × (W−F+1).
- What is the general output size formula for convolution with padding P and stride S?(H−F+2P)/S + 1, where H is the input size and F the filter size.
- What operation computes the backward pass of a convolution with respect to its input?A transposed convolution.
- What does max pooling do and how does its gradient behave?Max pooling (e.g., 2×2, stride 2) adds invariance to exact feature location. Its gradient flows only to the max unit in each pooling window.
- What is the receptive field of a unit?The region of the input that affects that unit's value.
- What receptive field do L stacked 3×3 stride-1 convolutions produce?A (2L+1)×(2L+1) receptive field.
- How does striding affect the receptive field in deep networks?Striding multiplies the effective stride, so deep strided networks see large input regions.
- What was AlexNet's top-5 error on ILSVRC 2012, and roughly how many parameters did it have?15.3% top-5 error, with about 60 million parameters.
- What key techniques did AlexNet introduce or popularize compared to LeNet?ReLU, max pooling, dropout, more training data, a larger model, and GPU training (two GPUs for a week).
- In AlexNet, where is most of the memory, most of the parameters, and most of the compute located?Most memory is in early conv layers, most parameters in the fully connected layers, and most compute in the conv layers.
- Why are ImageNet-trained CNN features useful for other tasks?Features from ImageNet-trained CNNs transfer well to other tasks (e.g., DeCAF), and pretrained weights serve as excellent initializations.
- What does visualizing CNN layers reveal about learned features?Layers show increasingly complex patterns, from simple features in layer 1 to more complex ones by layer 5.
- What is the regular design pattern of VGG?All convs are 3×3 stride 1 pad 1, all pools are 2×2 stride 2, channels double after each pool, and there are five stages.
- Why use two 3×3 convolutions instead of one 5×5 convolution?They have the same receptive field but use fewer parameters, less compute, and add an extra nonlinearity.
- How does VGG-16's compute compare to AlexNet?VGG-16 needs about 19× AlexNet's compute.
- What design choices make GoogLeNet efficient?An aggressive stem that downsamples early, Inception modules with 1×1 bottleneck convs to cut channels, global average pooling instead of big FC layers, and auxiliary classifiers.
- What is the purpose of 1×1 bottleneck convolutions in Inception modules?They reduce the number of channels, cutting computation before larger convolutions.
- What replaced the large fully connected layers in GoogLeNet?Global average pooling.
- Were GoogLeNet's auxiliary classifiers necessary after BatchNorm?No, they became unnecessary after BatchNorm.
- What problem did deeper plain networks have in the ResNet work, and what did it indicate?They did worse even on training data, indicating an optimization problem rather than overfitting.
- How does a residual block work?It adds the block's input back to its output, making identity mappings easy to learn.
- How do ResNet stages change resolution and channels?Stages halve resolution with stride-2 convs and double the number of channels.
- What block design is used in very deep ResNet versions?Bottleneck blocks.
- How can you tell a model is underfitting from its training and test errors?Both training and test error are high, indicating the model is too simple to capture the underlying pattern.
- How can you tell a model is overfitting from its training and test errors?Training error is low but test error is high, meaning the model fits training data but fails to generalize.
- With a fixed model, what happens to training and test error as you add more data?Training error rises slightly, but test error decreases and the gap between them shrinks.
- What does an object detection model output for each category in a known set?A bounding box (x, y, w, h) around every instance of that category.
- What is the difference between a modal and an amodal bounding box?Modal boxes cover only the visible part of an object; amodal boxes cover its full extent, including occluded parts.
- What does IoU (intersection over union) measure, and what values indicate decent, good, and near-perfect boxes?IoU is the Jaccard similarity between two boxes. Roughly 0.5 is decent, 0.7 is pretty good, and 0.9 is almost perfect.
- Why are sliding windows infeasible for object detection?The number of possible boxes is enormous—about 58 million for a moderate image—so evaluating all of them is too expensive.
- What are region proposals, and what is a common method for generating them?Heuristic candidate boxes likely to contain objects; Selective Search is a common method, producing about 2,000 boxes in a few CPU seconds.
- How does R-CNN process each region proposal?It warps each proposal to 224×224, runs a CNN on it, and predicts a class plus a box transform.
- In R-CNN training, how are proposals labeled positive, negative, or neutral?Positive if IoU > 0.5 with a ground-truth box, negative if IoU < 0.3 with all ground-truth boxes, and neutral (ignored) in between.
- How does non-maximum suppression work?Take the highest-scoring box, remove lower-scoring boxes overlapping it above a threshold (e.g., 0.7), and repeat until no boxes remain.
- What is a failure mode of non-maximum suppression?It can wrongly suppress heavily overlapping true objects, such as two objects of the same class close together.
- What is the key efficiency improvement of Fast R-CNN over R-CNN?Fast R-CNN runs the backbone once on the whole image and crops features per region (RoI pooling), instead of running the CNN separately on each region.
- What does Faster R-CNN add to Fast R-CNN?A Region Proposal Network that predicts proposals directly from the feature map using anchor boxes at each feature location.
- What are anchor boxes in Faster R-CNN?Predefined boxes at each feature-map location that the Region Proposal Network uses to predict object proposals.
- How is Average Precision (AP) computed for a category in object detection evaluation?Run the detector with NMS on all test images, then compute the area under the precision–recall curve for that category.
- What is mAP in object detection evaluation?Mean Average Precision: the average of AP across all categories.
Velocer est gratuit : répétition espacée et vos propres cartes à partir de n'importe quel document.
PDF to flashcards · Lecture to flashcards · Practice exam · Syllabus study plan · Anki import
Plus de paquets de University of Illinois Urbana-Champaign
- CS 580: Algorithmic Game Theory · UIUC
- CS 445: Computational Photography · UIUC
- CS 441: Applied Machine Learning · UIUC
- CS 440: Artificial Intelligence · UIUC
- CS 425: Distributed Systems · UIUC
- CS 421: Programming Languages and Compilers · UIUC
- CS 374: Intro to Algorithms and Models of Computation · UIUC
- CS 357: Numerical Methods I · UIUC
- CS 341: System Programming · UIUC
- CS 225: Data Structures · UIUC
- CS 173: Discrete Structures · UIUC