Word Embedding
- 22Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
Which of the following best describes a major drawback of using 1-of-N encoding to represent words?
Which of the following best describes a major drawback of using 1-of-N encoding to represent words?
22 questions
- 1
Which of the following best describes a major drawback of using 1-of-N encoding to represent words?
- A
It requires unsupervised learning to generate the encoding.
- B
It results in vectors that are too low-dimensional to capture meaning.
- C
It encodes word order information, making it complex.
- D
It produces vectors that are independent and fail to show relationships between words.
Correct answer
DIt produces vectors that are independent and fail to show relationships between words.
Explanation
1-of-N encoding assigns each word a unique dimension, so all vectors are orthogonal and independent, providing no information about semantic or syntactic similarities between words.
- A
- 2
What is the key limitation of using Word Class (clustering) to represent words?
- A
It fails to capture relationships between different classes (e.g., animals and actions).
- B
It produces vectors of too high dimension.
- C
It requires supervised labeling of word classes.
- D
It cannot handle large vocabularies.
Correct answer
AIt fails to capture relationships between different classes (e.g., animals and actions).
Explanation
Word Class groups similar words into clusters but does not encode how classes relate to each other, such as animals and their typical actions.
- A
- 3
In Word Embedding, the resulting vector space typically has dimensionality:
- A
Much lower than the vocabulary size (e.g., 50–100 dimensions).
- B
Equal to the number of documents in the corpus.
- C
Equal to the vocabulary size.
- D
Exactly half of the vocabulary size.
Correct answer
AMuch lower than the vocabulary size (e.g., 50–100 dimensions).
Explanation
Word Embedding projects words into a high-dimensional space that is still much lower than the 1-of-N encoding dimension, typically 50–100 dimensions.
- A
- 4
Which of the following correctly characterizes the learning of Word Embedding?
- A
It is a supervised learning problem because we need labeled word vectors.
- B
It is a reinforcement learning problem where words are agents.
- C
It is a semi-supervised problem using a small labeled dataset.
- D
It is an unsupervised learning problem because we only have input words and no target outputs.
Correct answer
DIt is an unsupervised learning problem because we only have input words and no target outputs.
Explanation
Word Embedding is unsupervised: we have a large text corpus with only input words, and we learn a neural network without explicit output labels for each word's embedding.
- A
- 5
Why can't Auto-encoder be directly applied to learn Word Embedding from 1-of-N encoding?
- A
Since each word's 1-of-N encoding is independent (orthogonal), the auto-encoder cannot learn meaningful lower-dimensional features.
- B
Auto-encoder requires a large amount of labeled data.
- C
Auto-encoder cannot handle high-dimensional input.
- D
The 1-of-N encoding vectors are too sparse for the auto-encoder to reconstruct.
Correct answer
ASince each word's 1-of-N encoding is independent (orthogonal), the auto-encoder cannot learn meaningful lower-dimensional features.
Explanation
With 1-of-N encoding, each word is represented by a unique binary vector. An auto-encoder would learn to reconstruct these independent patterns without capturing semantic similarity, resulting in uninformative embeddings.
- A
- 6
What is the fundamental principle behind learning Word Embedding?
- A
Each word has a unique fixed vector based on its length.
- B
Word embedding vectors are pre-defined by linguistic experts.
- C
The meaning of a word is determined by its context (surrounding words).
- D
Words that appear frequently together in the same sentence always have similar meanings.
Correct answer
CThe meaning of a word is determined by its context (surrounding words).
Explanation
The core idea is that words occurring in similar contexts tend to have similar meanings. By analyzing large amounts of text, the model learns embeddings that reflect contextual similarity.
- A
- 7
In Count-based methods like GloVe, what relationship is used to learn word vectors?
- A
The sum of word vectors should represent the document vector.
- B
The Euclidean distance between word vectors should be minimized for words appearing in the same sentence.
- C
The cosine similarity between word vectors should equal the frequency of the words.
- D
The inner product of two word vectors should approximate the number of times they co-occur in documents.
Correct answer
DThe inner product of two word vectors should approximate the number of times they co-occur in documents.
Explanation
GloVe learns word vectors such that the inner product (or dot product) of two vectors approximates the logarithm of their co-occurrence count, similar to matrix factorization in LSA.
- A
- 8
Which of the following is true about Count-based methods and Prediction-based methods for Word Embedding?
- A
Count-based methods require less computational resources than Prediction-based methods.
- B
No definitive winner has been established; performance depends on the task.
- C
Prediction-based methods are always superior to Count-based methods.
- D
Both approaches have been thoroughly compared and Prediction-based is clearly better.
Correct answer
BNo definitive winner has been established; performance depends on the task.
Explanation
According to the lecture, no rigorous comparison has been made to determine which approach is universally better; performance varies across tasks.
- A
- 9
In a Prediction-based Word Embedding model using one previous word to predict the next word, what is the output of the neural network?
- A
A probability distribution over all possible next words.
- B
The 1-of-N encoding of the predicted word.
- C
The hidden layer activation values.
- D
A word embedding vector of dimension 50–100.
Correct answer
AA probability distribution over all possible next words.
Explanation
The output layer has a softmax activation producing a probability distribution over the vocabulary for the next word, matching the size of the vocabulary.
- A
- 10
In a Prediction-based model, how is the word embedding for a given word obtained?
- A
It is the activation of the first hidden layer when the word's 1-of-N encoding is input.
- B
It is the output of the output layer after training.
- C
It is the 1-of-N encoding of the word.
- D
It is the weight matrix connecting the input to the hidden layer.
Correct answer
AIt is the activation of the first hidden layer when the word's 1-of-N encoding is input.
Explanation
After training, the activation of the first hidden layer for a given input word is used as that word's embedding vector.
- A
- 11
Why does the Prediction-based model cause words with similar contexts to have similar embeddings?
- A
Because the output layer forces all word vectors to be orthogonal.
- B
Because if two different input words (e.g., 'Ma Ying-jeou' and 'Tsai Ing-wen') should predict a similar next word ('sworn in'), the hidden layer must map them to similar representations.
- C
Because the hidden layer weights are shared across all input positions.
- D
Because the model is trained to minimize the distance between word vectors.
Correct answer
BBecause if two different input words (e.g., 'Ma Ying-jeou' and 'Tsai Ing-wen') should predict a similar next word ('sworn in'), the hidden layer must map them to similar representations.
Explanation
When different input words are followed by the same target word in the training data, the network must produce similar hidden representations for those input words to yield similar output probabilities, leading to contextually similar embeddings.
- A
- 12
When using multiple context words (e.g., two previous words) to predict the next word, what technique is used to reduce the number of parameters?
- A
Using a recurrent neural network instead.
- B
Reducing the vocabulary size.
- C
Sharing the weight matrices across all context positions.
- D
Using dropout regularization.
Correct answer
CSharing the weight matrices across all context positions.
Explanation
The weight matrices connecting each context word's 1-of-N encoding to the hidden layer are forced to be identical, so the model does not need separate parameters for each position. This reduces parameters and ensures the same word gets the same embedding regardless of position.
- A
- 13
In a Prediction-based model with two context words, if the weight matrices W1 and W2 are tied (forced equal), how is the hidden layer input z computed?
- A
z = x_{i-2} * x_{i-1} * W
- B
z = x_{i-2} * W1 + x_{i-1} * W2
- C
z = (x_{i-2} + x_{i-1}) * W
- D
z = max(x_{i-2} * W, x_{i-1} * W)
Correct answer
Cz = (x_{i-2} + x_{i-1}) * W
Explanation
With W1 = W2 = W, we have z = x_{i-2} * W + x_{i-1} * W = (x_{i-2} + x_{i-1}) * W.
- A
- 14
To ensure that two weight matrices in a Prediction-based model remain identical during training, which of the following steps is necessary?
- A
Do not update them after initialization.
- B
Initialize them with the same values and update each using the other's gradient as well.
- C
Initialize them with different random values and use different learning rates.
- D
Initialize them with the same values and update each using the sum of their gradients.
Correct answer
BInitialize them with the same values and update each using the other's gradient as well.
Explanation
They must start with the same initialization. Then during each update, both weights are updated by the same amount, e.g., each weight uses the average of both gradients, so they remain equal.
- A
- 15
What is the Continuous Bag of Words (CBOW) model?
- A
A model that generates word sequences using bag-of-words features.
- B
A model that predicts the next word using a continuous representation of the entire sentence.
- C
A model that predicts a target word using its surrounding context (words before and after).
- D
A model that predicts a target word using the words that appear before it.
Correct answer
CA model that predicts a target word using its surrounding context (words before and after).
Explanation
CBOW predicts the current word based on the context words both before and after it (e.g., w_{i-1} and w_{i+1} to predict w_i).
- A
- 16
What is the Skip-gram model?
- A
A model that predicts a word from its character n-grams.
- B
A model that predicts the surrounding context words given a target word.
- C
A model that predicts the next word from the previous word.
- D
A model that skips rare words during training.
Correct answer
BA model that predicts the surrounding context words given a target word.
Explanation
Skip-gram takes the target word as input and predicts its context words (both left and right), e.g., given w_i, predict w_{i-1} and w_{i+1}.
- A
- 17
Why are Prediction-based Word Embedding models often shallow (only one hidden layer) rather than deep?
- A
Deep networks cannot be trained for this task due to vanishing gradients.
- B
Shallow models are sufficient and computationally efficient for large-scale data.
- C
Only linear layers can produce word embeddings with additive properties.
- D
The original paper proved that deep networks perform worse.
Correct answer
BShallow models are sufficient and computationally efficient for large-scale data.
Explanation
According to Tomas Mikolov, using a shallow model reduces computation, allowing training on very large corpora. Previous deep models were too slow, but shallow ones achieved good results efficiently.
- A
- 18
Which of the following analogies can be captured by word vector arithmetic?
- A
All of the above.
- B
Rome is to Italy as Berlin is to Germany.
- C
Hot is to hotter as big is to bigger.
- D
King is to queen as uncle is to aunt.
Correct answer
AAll of the above.
Explanation
Word vectors exhibit linear relationships: v(Rome) - v(Italy) ≈ v(Berlin) - v(Germany); v(hotter) - v(hot) ≈ v(bigger) - v(big); v(king) - v(queen) ≈ v(uncle) - v(aunt).
- A
- 19
To answer the question 'Rome is to Italy as Berlin is to ?', what vector arithmetic can be used?
- A
v(Berlin) - v(Italy) + v(Rome)
- B
v(Italy) - v(Rome) + v(Berlin)
- C
v(Rome) - v(Berlin) + v(Italy)
- D
v(Berlin) - v(Rome) + v(Italy)
Correct answer
Dv(Berlin) - v(Rome) + v(Italy)
Explanation
We want the word w such that v(w) ≈ v(Berlin) - v(Rome) + v(Italy). The closest vector in the vocabulary to this sum is typically v(Germany).
- A
- 20
How can word embeddings for different languages be aligned?
- A
By using character-level embeddings that are language-independent.
- B
By training a single multilingual model on mixed-language data.
- C
By using a small dictionary of known word translations to learn a projection between the embedding spaces.
- D
By taking the average of embeddings for each language.
Correct answer
CBy using a small dictionary of known word translations to learn a projection between the embedding spaces.
Explanation
Given some known translation pairs (e.g., 'enlarge' for '加大'), a linear projection is learned to map one language's embedding space to the other, enabling translation-like tasks.
- A
- 21
In the image embedding approach described, what is the main advantage over traditional image classification?
- A
It can recognize unseen object classes by projecting images into a pre-trained word vector space.
- B
It can classify images into an unlimited number of categories without retraining.
- C
It requires less training data than traditional supervised methods.
- D
It always achieves higher accuracy on standard benchmarks.
Correct answer
AIt can recognize unseen object classes by projecting images into a pre-trained word vector space.
Explanation
By mapping images to the same space as word vectors, even if a class (e.g., 'cat') was not seen during image training, its projection may land near the word vector for 'cat', allowing zero-shot recognition.
- A
- 22
Why is bag-of-words representation insufficient for document embedding?
- A
It loses word order, which can completely change meaning (e.g., 'white blood cells destroying an infection' vs 'an infection destroying white blood cells').
- B
It is too high-dimensional and sparse.
- C
It ignores word frequency information.
- D
It only works for single-word documents.
Correct answer
AIt loses word order, which can completely change meaning (e.g., 'white blood cells destroying an infection' vs 'an infection destroying white blood cells').
Explanation
Bag-of-words treats documents as sets of words, ignoring order. The example shows two sentences with same words but opposite meanings, which bag-of-words cannot distinguish.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.