Natural Language Processing (NLP) & LLMs — Solved PYQ & Mock Arena
Topic-wise Natural Language Processing (NLP) & LLMs previous-year GATE & UGC NET questions with step-by-step LaTeX solutions
Which of the following statements about Transformer Self-Attention and Modern LLMs are TRUE?
A Multi-Head Self-Attention layer has model dimension and attention heads with . What is the per-head key dimension ?
How does GPT (Decoder-Only) prevent token position from attending to future tokens during parallelized training?
An HMM Part-of-Speech tagger has distinct POS tags and processes a sentence of tokens. What is the asymptotic order of operations required by the Viterbi algorithm vs naive exhaustive tag enumeration?
For an input sequence of length and model hidden dimension (where ), what is the time complexity of computing global Scaled Dot-Product Self-Attention for one Transformer layer?
Which embedding architecture represents each word as a bag of character -grams, enabling it to generate meaningful vectors for unseen Out-of-Vocabulary (OOV) words at inference time?
In a collection of documents, the word "the" appears at least once in every single document (). Using standard without smoothing, what is the TF-IDF weight of "the" in document ?
A language model achieves a per-token Cross-Entropy of (base- log) on a held-out evaluation corpus. What is the Perplexity () of the language model?
A corpus has vocabulary size . The unigram data occurs times, and the bigram data science occurs times. Under Laplace (Add-1) Smoothing, what is ?