CS7643 Quiz 4 Exam LATEST 2025 UPDATE WITH
COMPLETE QUESTIONS AND CORRECTLY WELL
DEFINED ANSWERS 100%GUARANTEED PASS!!!
A learned map from entities to vectors that encodes
Embedding
similarity
Optimize the objective that connected nodes have
more similar embeddings than unconnected nodes.
Task: convert nodes to vectors
Graph Embedding
- effectively unsupervised learning where nearest
neighbors are similar
- these learned vectors are useful for downstream
tasks
- Cannot easily support variable-sized sequences as
inputs or outputs
Multi-layer Perceptron - No inherent temporal structure
(MLP) pain points for NLP - No practical way of holding state
- The size of the network grows with the maximum
allowed size of the input or output sequences
Truncated - Only backpropagate a RNN through T time steps
Backpropagation through
time
h(t) = activation(Uinput + Vh(t-1) + bias)
y(t) = activation(W*h(t) + bias)
Recurrent Neural
Networks (RNN) - activation is typically the logistic function or tanh
- outputs can also simply be h(t)
- family of NN architectures for modeling sequences
https://quizlet.com/1055945148/cs7643-quiz-4-exam-latest-2025-update-with-complete-questions-and-correctly-well-defined-answers-100guaranteed-… 1/9
, 6/21/25, 8:50 PM CS7643 Quiz 4 Exam LATEST 2025 UPDATE WITH COMPLETE QUESTIONS AND CORRECTLY WELL DEFINED ANSWERS 10…
- Vanishing gradients
Training Vanilla RNN's - Since dx(t)/dx(t-1) = w^t
difficulties - if w > 1: exploding gradients
- if w < 1: vanishing gradients
- f(t) = forget gate
- i(t) = input gate
- u(t) = candidate update gate
- o(t) = output gate
Long Short-Term Memory
Network Gates and States - 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))
= product( 1 / P(w(i) | w(i-1), ...) ) ^ (1 / N)
= b ^ (-1/N sum( log(b) (P(w(i) | w(i-1), ...) ) )
Perplexity(s) - note exponent of b is per word CE loss
- perplexity of a discrete uniform distribution over k
events is k
- estimate the probability of sequences of words
Language Model Goal
- p(s) = p(w1, w2, ..., wn)
https://quizlet.com/1055945148/cs7643-quiz-4-exam-latest-2025-update-with-complete-questions-and-correctly-well-defined-answers-100guaranteed-… 2/9