Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.
What is the fundamental representation of a word in a Vector Space Model (VSM)?
Not quite. Try another option.
Answer: A vector of real numbers
In Vector Space Models, words are mapped to vectors of real numbers within a continuous vector space.
Question 2 of 50
Which of the following is a primary advantage of dense word vectors over one-hot encoding?
Not quite. Try another option.
Answer: They capture semantic relationships
Dense vectors place similar words close to each other in the vector space, capturing semantic meaning, whereas one-hot vectors are orthogonal and equidistant.
Question 3 of 50
In the context of the Continuous Bag-of-Words (CBOW) model, what is the input to the neural network?
Not quite. Try another option.
Answer: The context words
CBOW predicts the current (center) word based on the surrounding context words.
Question 4 of 50
How is 'cosine similarity' calculated between two word vectors, A and B?
Not quite. Try another option.
Answer: Dot product of A and B divided by the product of their magnitudes
Cosine similarity measures the cosine of the angle between two vectors, calculated as (A . B) / (||A|| * ||B||).
Question 5 of 50
If two word vectors have a cosine similarity of 1, what does this imply?
Not quite. Try another option.
Answer: The vectors point in exactly the same direction
A cosine similarity of 1 implies the angle between the vectors is 0 degrees, meaning they are identical in orientation (highly similar).
Question 6 of 50
Which architecture predicts the surrounding words given a center word?
Not quite. Try another option.
Answer: Skip-gram
Skip-gram is the inverse of CBOW; it takes the center word as input and tries to predict the context words.
Question 7 of 50
What mathematical technique is commonly used to visualize high-dimensional word vectors in two dimensions?
Not quite. Try another option.
Answer: Principal Component Analysis (PCA)
PCA is a dimensionality reduction technique used to project high-dimensional data into lower dimensions (like 2D) while preserving variance.
Question 8 of 50
In vector arithmetic for analogies, what result is expected for vector('King') - vector('Man') + vector('Woman')?
Not quite. Try another option.
Answer: Queen
This is a classic example of semantic relationships in vector space, where arithmetic operations preserve gender and royalty relationships.
Question 9 of 50
What is the role of the 'window size' hyperparameter in CBOW?
Not quite. Try another option.
Answer: It defines how many neighbors to consider as context
The window size determines the scope of the context (e.g., 2 words to the left and 2 to the right) used to predict the center word.
Question 10 of 50
Why are vector space models useful for information retrieval/document search?
Not quite. Try another option.
Answer: They can match queries to documents based on semantic similarity
VSMs allow calculating similarity between a query vector and document vectors, retrieving relevant results even if exact keywords differ.
Question 11 of 50
When transforming word vectors from one language to another (e.g., English to French) using a linear mapping, what are we trying to learn?
Not quite. Try another option.
Answer: A rotation matrix
Cross-lingual embedding alignment often involves learning a transformation matrix (often a rotation matrix) that maps the source vector space to the target vector space.
Question 12 of 50
In PCA, the first principal component is the direction that maximizes what?
Not quite. Try another option.
Answer: The variance of the data
PCA identifies the axes (principal components) along which the data varies the most to preserve information.
Question 13 of 50
Which of the following best describes the 'bag-of-words' model assumption?
Not quite. Try another option.
Answer: Word order is ignored, only frequency counts matter
Bag-of-Words treats a text as an unordered collection of words, disregarding grammar and word order.
Question 14 of 50
In the CBOW model, how are the input context vectors usually handled before passing to the hidden layer?
Not quite. Try another option.
Answer: They are averaged or summed
In standard CBOW, the vectors of the context words are averaged or summed to create a single projection layer input.
Question 15 of 50
What does a cosine similarity of 0 indicate between two word vectors?
Not quite. Try another option.
Answer: They are orthogonal (unrelated)
A cosine similarity of 0 means the angle is 90 degrees (orthogonal), implying no correlation in the vector space.
Question 16 of 50
Which loss function is typically minimized when aligning two vector spaces (X and Y) via a transformation matrix R?
Not quite. Try another option.
Answer: Frobenius norm of (XR - Y)
The goal is to minimize the distance between the transformed source vectors (XR) and the target vectors (Y), often using the Frobenius norm (Euclidean distance equivalent for matrices).
Question 17 of 50
Deep Learning vector models like Word2Vec are often referred to as:
Not quite. Try another option.
Answer: Prediction-based embeddings
Word2Vec models learn embeddings by training a network to predict words (or context) rather than counting co-occurrences directly.
Question 18 of 50
If 'Apple' and 'Pear' are close in vector space, this indicates:
Not quite. Try another option.
Answer: Semantic similarity
Proximity in vector space usually implies that words share similar contexts and meanings (semantics).
Question 19 of 50
When visualizing word vectors, why can't we simply plot the 300-dimensional vectors directly?
Not quite. Try another option.
Answer: Human visual perception is limited to 2 or 3 dimensions
We need dimensionality reduction like PCA because humans cannot visually conceptualize spaces higher than 3 dimensions.
Question 20 of 50
Which of the following is NOT a benefit of using Vector Space Models in Machine Translation?
While VSMs help with word alignment and meaning transfer, they do not inherently guarantee the grammatical correctness of the generated sentence.
Question 21 of 50
In a Word2Vec model, the dimension of the hidden layer corresponds to:
Not quite. Try another option.
Answer: The size of the word embedding vector
The weights between the input and the hidden layer (or the hidden layer size itself) constitute the actual word embeddings.
Question 22 of 50
To perform document search using word vectors, how might one represent a whole document?
Not quite. Try another option.
Answer: By taking the average (centroid) of all word vectors in the document
A common baseline approach is to average the word vectors of all words in the document to get a single document vector.
Question 23 of 50
What is the 'Curse of Dimensionality' in the context of NLP?
Not quite. Try another option.
Answer: Data becoming sparse and distance metrics becoming less meaningful in very high dimensions
In extremely high-dimensional spaces (like raw vocabulary size), data points are sparse, and traditional distance metrics can behave counterintuitively.
Question 24 of 50
Which algebraic structure is used to transform word vectors from a source language space to a target language space?
Not quite. Try another option.
Answer: A transformation matrix
A matrix multiplication (W * R) maps vectors from space W to space V.
Question 25 of 50
In PCA, what are 'eigenvalues' used for?
Not quite. Try another option.
Answer: To quantify the variance explained by each principal component
Eigenvalues indicate the magnitude of variance captured by their corresponding eigenvectors (principal components).
Question 26 of 50
Which word pair would likely have the highest Euclidean distance in a well-trained vector space?
Not quite. Try another option.
Answer: Computer - Sandwich
'Computer' and 'Sandwich' are semantically unrelated, so they would be far apart in the vector space compared to synonyms.
Question 27 of 50
The output layer of a standard CBOW model typically uses which activation function to generate probabilities?
Not quite. Try another option.
Answer: Softmax
Softmax is used to convert the raw output scores into a probability distribution over the vocabulary.
Question 28 of 50
What is the main limitation of using Euclidean distance for word vectors compared to Cosine similarity?
Not quite. Try another option.
Answer: It is sensitive to the magnitude (length) of the vectors
Euclidean distance is affected by vector length (frequency of words), while Cosine similarity focuses on the angle (orientation/meaning), making Cosine often preferred.
Question 29 of 50
Which concept explains why 'Paris' is to 'France' as 'Tokyo' is to 'Japan' in vector space?
Not quite. Try another option.
Answer: Linear substructures / Parallelism
The relationship vectors (Country -> Capital) tend to be parallel and of similar length, allowing for linear algebraic analogies.
Question 30 of 50
How does PCA reduce dimensions?
Not quite. Try another option.
Answer: By projecting data onto new axes that minimize information loss
PCA constructs new orthogonal axes (principal components) and projects data onto the top k axes that retain the most variance.
Question 31 of 50
In the context of relationships between words, 'distributional semantics' suggests that:
Not quite. Try another option.
Answer: Words that appear in similar contexts have similar meanings
This is the core hypothesis behind VSMs: 'You shall know a word by the company it keeps'.
Question 32 of 50
When training CBOW, what is the 'target'?
Not quite. Try another option.
Answer: The center word
The objective of CBOW is to correctly predict the center word given the context words.
Question 33 of 50
What happens to the vectors of synonyms (e.g., 'huge' and 'enormous') during training?
Not quite. Try another option.
Answer: They move closer together
Since synonyms appear in similar contexts, the training process adjusts their vectors to be spatially proximal.
Question 34 of 50
If you want to visualize a 1000-word subset of your vocabulary using PCA, what is the shape of the input matrix?
Not quite. Try another option.
Answer: 1000 x Dimension_of_Embedding
The input data matrix for PCA consists of N samples (1000 words) by D features (the embedding dimension).
Question 35 of 50
In cross-lingual information retrieval, query translation can be achieved by:
Not quite. Try another option.
Answer: Multiplying the query vector by a transformation matrix
The query vector in the source language is projected into the target language space using the learned transformation matrix.
Question 36 of 50
What is a 'context window'?
Not quite. Try another option.
Answer: The number of words before and after a target word
The context window defines the span of text surrounding a target word used to learn dependencies.
Question 37 of 50
Which of the following is NOT a step in performing PCA?
Not quite. Try another option.
Answer: Applying a Softmax function
Softmax is an activation function for neural networks; PCA involves covariance, eigenvectors, and projection.
Question 38 of 50
If a word vector has a magnitude of 1, it is called:
Not quite. Try another option.
Answer: A normalized vector
A vector with a length (L2 norm) of 1 is normalized (unit vector).
Question 39 of 50
Which approach is generally faster to train: CBOW or Skip-gram?
Not quite. Try another option.
Answer: CBOW
CBOW is generally faster to train than Skip-gram because it treats the entire context as one observation, whereas Skip-gram treats each context-target pair as a new observation.
Question 40 of 50
To capture dependencies between words that are far apart in a sentence, one should:
Not quite. Try another option.
Answer: Increase the window size
A larger window size captures broader context and longer-range dependencies, though it may introduce more noise.
Question 41 of 50
The 'Manifold Hypothesis' in NLP suggests that:
Not quite. Try another option.
Answer: High-dimensional language data lies on a lower-dimensional manifold
This hypothesis justifies dimensionality reduction, suggesting that real-world data points cluster on a lower-dimensional surface embedded in the high-dimensional space.
Question 42 of 50
When performing vector arithmetic for 'Paris - France + Italy', the result is likely closest to:
Not quite. Try another option.
Answer: Rome
This operation transfers the relationship 'Capital of' from France to Italy.
Question 43 of 50
What is the dimensionality of the transformation matrix R used to map a source space of dimension D to a target space of dimension D?
Not quite. Try another option.
Answer: D x D
To map a D-dimensional vector to another D-dimensional vector via linear transformation, a D x D matrix is required.
Question 44 of 50
Which vector operation is primarily used to measure the relevance of a document to a search query in VSM?
Not quite. Try another option.
Answer: Cosine Similarity
Relevance is usually determined by how close (similar) the document vector is to the query vector.
Question 45 of 50
Sparse vectors (like Bag-of-Words) are characterized by:
Not quite. Try another option.
Answer: Mostly zero values
In a large vocabulary, a single document contains only a few unique words, resulting in vectors with mostly zeros.
Question 46 of 50
Word embeddings capture which type of relationships?
Not quite. Try another option.
Answer: Both syntactic and semantic
Good embeddings capture semantic meanings (King-Queen) and syntactic rules (walk-walking, swim-swimming).
Question 47 of 50
Before applying PCA, it is standard practice to:
Not quite. Try another option.
Answer: Mean-center the data
PCA is sensitive to the scaling of the data; mean-centering ensures the first principal component passes through the center of the cloud.
Question 48 of 50
In the analogy 'A is to B as C is to D', which equation represents the relationship in vector space?
Not quite. Try another option.
Answer: B - A = D - C
The difference vector (relationship) between B and A should be roughly the same as the difference between D and C.
Question 49 of 50
Why might we use PCA on word vectors before performing clustering?
Not quite. Try another option.
Answer: To remove noise and reduce computational cost
Reducing dimensions helps remove variance that may be noise and speeds up clustering algorithms (like K-Means).
Question 50 of 50
Which technique allows checking if the transformation matrix between two languages is accurate?
Not quite. Try another option.
Answer: Checking the accuracy of translation on a hold-out dictionary
Evaluation involves applying the transformation to known words (not in the training set) and checking if the nearest neighbor in the target space is the correct translation.
That's unit 2
Answer a few questions and your score shows up here.
Nearly through. Did unit 2 of INT344 save you a night before the exam?
LPU Notes is free. A student pays for the servers.
Did unit 2 of INT344 save you a night before the exam?
Then you can help keep it free for the next batch. Ads cover part of the server bill;
the rest comes out of a student's own pocket: the domain, the storage, and keeping
the site up through the weeks everyone needs it at once.
The payment button didn't load. An ad blocker or a filtered network is the usual reason.
to try again.