Docsity

Deep Learning CS7643 Quiz 4 Study Guide (2026), Exams of Nursing

Toggle sidebar
bg1
CS7643 – Deep Learning Quiz 4 (2026) Study Guide
Description:
Comprehensive study guide for CS7643 Quiz 4 (2026). Covers key deep learning concepts
including convolutional neural networks (CNNs), recurrent networks (RNNs), optimization
techniques, regularization, and model evaluation. Organized notes with clear explanations,
formulas, and example problems to help you review efficiently and prepare confidently for the
quiz.
Tags: CS7643, Deep Learning, Quiz 4, Study Guide, Neural Networks, Machine Learning,
College Notes, Exam Prep
Embedding - C OR RE CT ✔✔✔✔✔ A learned map from entities to vectors that
encodes similarity
Graph Embedding - C OR RE CT ✔✔✔✔✔ Optimize the ob jective that
connected nodes have more si milar embeddings than unconnected nodes.
Task: convert nodes to vectors
- effectively unsupervised learning w here nearest neighbors are similar
- these le arned vectors are useful for downstream tasks
Multi-layer Perceptron (MLP) pain points for NLP - C OR RE CT ✔✔✔✔✔ -
Cannot easily support variable-sized sequences as inputs or outputs
- No inherent temporal structure
- No practical way of holding state
- The si ze of the network grows with the maximum allowed size of the input or
output s equences
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download Deep Learning CS7643 Quiz 4 Study Guide (2026) and more Exams Nursing in PDF only on Docsity!

CS7643 – Deep Learning Quiz 4 (2026) Study Guide

Description: Comprehensive study guide for CS7643 Quiz 4 (2026). Covers key deep learning concepts including convolutional neural networks (CNNs), recurrent networks (RNNs), optimization techniques, regularization, and model evaluation. Organized notes with clear explanations, formulas, and example problems to help you review efficiently and prepare confidently for the quiz. Tags: CS7643, Deep Learning, Quiz 4, Study Guide, Neural Networks, Machine Learning, College Notes, Exam Prep Embedding - CORRECT ✔✔✔✔✔ A learned map from entities to vectors that encodes similarity Graph Embedding - CORRECT ✔✔✔✔✔ Optimize the objective that connected nodes have more similar embeddings than unconnected nodes. Task: convert nodes to vectors

  • effectively unsupervised learning where nearest neighbors are similar
  • these learned vectors are useful for downstream tasks Multi-layer Perceptron (MLP) pain points for NLP - CORRECT ✔✔✔✔✔ - Cannot easily support variable-sized sequences as inputs or outputs
  • No inherent temporal structure
  • No practical way of holding state
  • The size of the network grows with the maximum allowed size of the input or output sequences

Truncated Backpropagation through time - CORRECT ✔✔✔✔✔ - Only backpropagate a RNN through T time steps Recurrent Neural Networks (RNN) - CORRECT ✔✔✔✔✔ h(t) = activation(Uinput + Vh(t-1) + bias) y(t) = activation(W*h(t) + bias)

  • activation is typically the logistic function or tanh
  • outputs can also simply be h(t)
  • family of NN architectures for modeling sequences Training Vanilla RNN's difficulties - CORRECT ✔✔✔✔✔ - Vanishing gradients
  • Since dx(t)/dx(t-1) = w^t
  • if w > 1: exploding gradients
  • if w < 1: vanishing gradients Long Short-Term Memory Network Gates and States - CORRECT ✔✔✔✔✔ - f(t) = forget gate
  • i(t) = input gate
  • u(t) = candidate update gate
  • o(t) = output gate
  • c(t) = cell state
  • c(t) = f(t) * c(t - 1) + i(t) * u(t)
  • h(t) = hidden state
  • h(t) = o(t) * tanh(c(t))
  • may work well b/c of soft predictions of teacher model
  • if we don't have enough labeled text we can still train student model to align predictions Collobert and Weston Vector Idea - CORRECT ✔✔✔✔✔ a word and its context is a positive training sample; a random word in that sample context gives a negative training sample Word2vec Overview - CORRECT ✔✔✔✔✔ Word2vec - a framework for learning word vector Idea:
  • we have a large corpus of text
  • every word in. fixed vocabulary represented by a vector
  • Go through each position t in the text, which has a center word c and context words o
  • Use the similarity of the word vectors for c and o to ca lculate the probability of o given c (or vice versa)
  • Keep adjusting the word vectors to maximize this probability Word2vec Variants - CORRECT ✔✔✔✔✔ Skip-Gram: Predict context words given center word Continuous Bag of Words: Predict center word from (bag of) context words Word2vec Objective Function - CORRECT ✔✔✔✔✔ - product over all possible center words
  • product over all words in the context window
  • P( w(t+j) | w(t); theta )
  • J(theta) = - 1 / T * log (L) Word2vec P( w(t+j) | w(t) ) - CORRECT ✔✔✔✔✔ - Two sets of vectors for each word in vocabulary
  1. u(w) for when w is the center word
  2. v(o) for when w is a context word P( w(t+j) | w(t) ) = softmax( u(wt) * v(wt+j) ) Word2vec Expensive to Compute Solutions - CORRECT ✔✔✔✔✔ 1. Hierarchical Softmax
  3. Negative Sampling Negative Sampling Intuition - CORRECT ✔✔✔✔✔ - For each (w, c) pair, sample k negative pairs (w, c')
  • maximize probability real word appears and minimize the probability ra ndom word appears Evaluating Word Embeddings Intrinsic - CORRECT ✔✔✔✔✔ - Evaluation on a specific/intermediate subtask
  • Fast to compute
  • Helps to understand the system
  • Not clear if really helpful unless correlation to real task is established Example: Evaluate word vectors by how well their cosine distance after addition captures intuitive semantic and syntactic analogy questions
  • subtract those projections from the original word Problem: Not that effective and bias pervades the word embeddin g space t-SNE things to remember - CORRECT ✔✔✔✔✔ 1. Run until it stabilizes
  1. Set perplexity b/w 2 and N
  • perplexity loosely measures # neighbors
  • balances b/w local and global aspects of nodes
  1. Re-run t-SNE multiple times to ensure we get the same shape t-SNE general concept - CORRECT ✔✔✔✔✔ - Maps inputs from high dimensional space to lower dimensions for visualization
  • recursively moves similar points closer and distance points further
  • expands dense clusters and contracts sparse cluster Teacher Forcing - CORRECT ✔✔✔✔✔ - next input to model is not predicted value, but the actual value from the training data
  • allows model to train effectively even if a mistake was made
  • if used instead of hidden-to-hidden recurrence nodes, can allow for parallelization, but model becomes less powerful
  • emerges from MLE
  • issues may arise if network is later going to be used in "closed - loop" mode where output is fed back as input Skip-Gram Model: Loss/Objective Function - CORRECT ✔✔✔✔✔ Loss - for each position t, we try to predict the context words within a fixed window size given some context word
  • multiple these probabilities to get a likelihood
  • L(theta) = product(product(P(w_(t+j) | w_(t) ; th eta))
  • Objective function: J(theta) = - 1/T log(L(theta)) Skip-Gram Model: Calculate P(w_(t+j) | w_(t) ; theta) - CORRECT ✔✔✔✔✔ - Two vectors for each word:
  1. u_w when w is center word
  2. v_o when o is a context word
  • uses inner product (u_w, v_o) to measure how likely it is that u_w appears with context word v_o
  • P(w_(t+j)) = SOFTMAX(u_(wt) * v(w_(t+1)))
  • params to optimize are thus u and w Skip-Gram Model: Main Disadvantage - CORRECT ✔✔✔✔✔ - Expensive to compute
  1. Can solve this via hierarchical Softmax
  2. Can solve this via Negative Sampling Skip-Gram Model: Negative Sampling - CORRECT ✔✔✔✔✔ - for each (w, c) pair, sample k negative pairs (w, c')
  • Maximize probability that outside word appears, minimize prob ability that random word appears
  • choose a distribution that samples less frequent words likely Word Embeddings as a graph - CORRECT ✔✔✔✔✔ - each word is a node with edge connections to context words
  • f is similarity function
  • g encodes the features of similarity Skip Gram Model: What is conditioned on what? - CORRECT ✔✔✔✔✔ - Probability of a context word given a center word RNNs and LSTMs, how their update rules differ, and what they problems each have or solve (vanishing and/or exploding gradients) - CORRECT ✔✔✔✔✔ - Solving Vanishing Gradients: The way it does so is by creating an internal memory state which is simply added to the processed input, which greatly reduces the multiplicative effect of small gradients. The time dependence and effects of previous inputs are controlled by an interesting concept called a forget gate, which determines which states are remembered or forgotten.
  • Input gate determines the extent to which the current timestamp input should be used
  • Forget gate determines the extent to which output of the previous timestamp state should be used
  • Output gate determines the output of the current timestamp. RNN Advantages - CORRECT ✔✔✔✔✔ 1. Allows generalization to varying size sequence lengths not seen in training set
  1. Model can be estimated with fewer parameters
  2. Allows sequential modeling RNN Disadvantages - CORRECT ✔✔✔✔✔ - Runtime is O(T) and cannot be reduced by parallelization since propagation is sequential
  • Thus they are expensive to Train
  • Vanishing or exploding gradients possible

Conditional language models and how to train them (teacher/stu dent forcing), language metrics (how to calculate them) - CORRECT ✔✔✔✔✔