Docsity

Deep Learning CS-7643 Quiz 4 Study Guide: CNNs, RNNs, Optimization, Exams of Nursing

Toggle sidebar
bg1
CS-7643 โ€“ Deep Learning Quiz 4 EXAM 2026
Description:
Complete study guide for CS-7643 Quiz 4. Covers essential deep learning topics including
convolutional neural networks (CNNs), recurrent neural networks (RNNs), optimization
algorithms, regularization methods, loss functions, and model evaluation techniques. Notes are
organized with clear explanations, formulas, and example problems to make studying simple and
effective.
Tags: CS-7643, Deep Learning, Quiz 4, Machine Learning, Neural Networks, Study Guide,
College Notes, Exam Preparation
Recurrent Neural Network (RNN) - CORRECT โœ”โœ”โœ”โœ”โœ” A RNN
models sequential interactions through a hidden state, or memory. It
can take up to N inputs and produce up to N outputs. For example, an
input sequence may be a sentence with the outputs being the part-of-
speech tag for each word (N-to-N). An input could be a sentence, and
the output a sentiment classification of the sentence (N-to-1). An input
could be a single image, and the output could be a sequence of words
corresponding to the description of an image (1-to-N). At each time
step, an RNN calculates a new hidden state ("memory") based on the
current input and the previous hidden state. The "recurrent" stems
from the facts that at each step the same parameters are used and the
network performs the same calculations based on different inputs
LSTM (Long Short-Term Memory) - CORRECT โœ”โœ”โœ”โœ”โœ” the network
was invented to prevent the vanishing gradient problem in Recurrent
Neural Networks by using a memory gating mechanism. Using LSTM
units to calculate the hidden state in an RNN we help to the network
to efficiently propagate gradients and learn long-range dependencies
how do RNN and LSTM update rules differ? - CORRECT โœ”โœ”โœ”โœ”โœ”
LSTM networks update rule is cell state is updated in an additive way
by adding something to its previous value C_t-1, this differs from the
multiplicative update Rule of RNN.
pf3
pf4
pf5

Partial preview of the text

Download Deep Learning CS-7643 Quiz 4 Study Guide: CNNs, RNNs, Optimization and more Exams Nursing in PDF only on Docsity!

CS- 7643 โ€“ Deep Learning Quiz 4 EXAM 202 6

Description: Complete study guide for CS-7643 Quiz 4. Covers essential deep learning topics including convolutional neural networks (CNNs), recurrent neural networks (RNNs), optimization algorithms, regularization methods, loss functions, and model evaluation techniques. Notes are organized with clear explanations, formulas, and example problems to make studying simple and effective. Tags: CS-7643, Deep Learning, Quiz 4, Machine Learning, Neural Networks, Study Guide, College Notes, Exam Preparation Recurrent Neural Network (RNN) - CORRECT โœ”โœ”โœ”โœ”โœ” A RNN models sequential interactions through a hidden state, or memory. It can take up to N inputs and produce up to N outputs. For example, an input sequence may be a sentence with the outputs being the part-of- speech tag for each word (N-to-N). An input could be a sentence, and the output a sentiment classification of the sentence (N-to-1). An input could be a single image, and the output could be a sequence of words corresponding to the description of an image (1-to-N). At each time step, an RNN calculates a new hidden state ("memory") based on the current input and the previous hidden state. The "recurrent" stems from the facts that at each step the same parameters are used and the network performs the same calculations based on different inputs LSTM (Long Short-Term Memory) - CORRECT โœ”โœ”โœ”โœ”โœ” the network was invented to prevent the vanishing gradient problem in Recurrent Neural Networks by using a memory gating mechanism. Using LSTM units to calculate the hidden state in an RNN we help to the network to efficiently propagate gradients and learn long-range dependencies how do RNN and LSTM update rules differ? - CORRECT โœ”โœ”โœ”โœ”โœ” LSTM networks update rule is cell state is updated in an additive way by adding something to its previous value C_t-1, this differs from the multiplicative update Rule of RNN.

Gradients for RNNs - CORRECT โœ”โœ”โœ”โœ”โœ” The gradient computation involves recurrent multiplication of WW. This multiplying by WW to each cell has a bad effect. Think like this: If you a scalar (number) and you multiply gradients by it over and over again for say 100 times, if that number > 1, it'll explode the gradient and if < 1, it'll vanish towards 0. What does t-SNE stand for? - CORRECT โœ”โœ”โœ”โœ”โœ” t-Distributed Stochastic Neighbor Embedding what is t-SNE? - CORRECT โœ”โœ”โœ”โœ”โœ” is an unsupervised non-linear technique primarily used for data exploration and visualization of high dimensional data. In short, it gives you a feel or intuition of how data is in high dimensional space. How does t-SNE conceptually work? - CORRECT โœ”โœ”โœ”โœ”โœ” The algorithm calculates a similarity measure between pairs of instances in the high dimensional space and in the low dimensional space. It then tries to optimize these two similarity measures using a cost function. Let's break that down into 3 basic steps: 1.) takes the Gaussian distribution around a data point on a 2D plane.

  • measure density of all points in gaussian
  • renormalize for all points
  • give probabilities proportionate to similarities Note: Gaussian is manipulated by perplexity 2.)take a student t-distribution with one degree of freedom which is also known as the Cauchy distribution. gives us a second set of probabilities (Qij) in the low dimensional space 3.)we want these set of probabilities from the low-dimensional space (Qij) to reflect those of the high dimensional space (Pij) as best as possible. We want the two map structures to be similar. We measure the difference between the probability distributions of the two- dimensional spaces using Kullback-Liebler divergence (KL). Distribution Semantics - CORRECT โœ”โœ”โœ”โœ”โœ” a word's meaning is given by words that are frequently around it.
  • maximize the probability that real outside word appears, minimize the probability that random word appear around the center word
  • makes less frequent words to be sampled more often Connection between Negative Sampling and Collobert & Weston Algorithm? - CORRECT โœ”โœ”โœ”โœ”โœ” - NS is similar to collobert and weston's algorithm by training network to distinguish "good" word context pairs from bad ones
  • Collobert & Weston uses margin loss and NS uses probabilistic optimization Uses of Word Embedding - CORRECT โœ”โœ”โœ”โœ”โœ” 1.). features in down stream ML models 2.) initialization for neural net models for NLP like RNN and SLTM Other word embeddings - CORRECT โœ”โœ”โœ”โœ”โœ” 1.) GloVe: Global Vectors 2.) fastText: sub-word embeddings 3.) contextualized embedding: elmo and bret How to evaluate word embedding? - CORRECT โœ”โœ”โœ”โœ”โœ” 1.) Intrinsic Evaluation 2.) Extrinsic Evaluation Intrinsic Evaluation for word embedding? - CORRECT โœ”โœ”โœ”โœ”โœ” e.g. Word Analogy Task 1.) evaluate specific/intermediate task 2.) fast to compute 3.) helps to understand system 4.) not clear if really helpful unless correlation to real task is established. Extrinsic Evaluation for word embedding? - CORRECT โœ”โœ”โœ”โœ”โœ” e.g. Text Classification 1.) Evaluation of real task 2.) can take long time to compute 3.) unclear is the subsystem is the problem or its interaction

4.) if replace one subsystem with another and performance improves thats a win Conditional Language Modeling - CORRECT โœ”โœ”โœ”โœ”โœ” allows you to determine the probability of a sequence of words conditioned on context c. Types of Conditional Language Models - CORRECT โœ”โœ”โœ”โœ”โœ” 1.) Topic Aware Language Model: c=The topic, s=text 2.)Text Summarization: c= a long document, s=its summary 3.)Machine Translation: c=French Text, s=English Text 4.)Image Captioning: c=an image, s=its caption 5.)Optical Character Recognition: c=image of a line, s=its content 6.)Speech Recognition: c=a recording, s=its content Knowledge Distillation - CORRECT โœ”โœ”โœ”โœ”โœ” - transfers knowledge from a large model to a smaller model without loss of validity to reduce model size

  • provides a way to maintain size without sacrificing performance.