βˆ‘GateAndNet
PlannerSign Up
πŸ—£οΈGATE DAWeightage: 12–16 Marks3 Study Chapters9 Solved PYQs

Natural Language Processing (NLP) & LLMs

Tokenization/BPE, N-Gram smoothing & perplexity, TF-IDF/BM25, Word2Vec embeddings, HMM Viterbi, Self-Attention & Transformers.

Practice Unit PYQs (9)All GATE DA Units
Official Syllabus Micro-Topics
Text Representation & Language Models: Subword BPE Tokenization, N-Grams, Laplace/Add-k & Kneser-Ney Smoothing, Cross-Entropy & PerplexityLexical & Distributional Semantics: Bag-of-Words, TF-IDF, BM25 Ranking, Cosine Similarity, Word2Vec (CBOW, Skip-Gram, Negative Sampling) & GloVeSequence Labeling & Classic NLP: Hidden Markov Models (HMM), Viterbi Dynamic Programming, Conditional Random Fields (CRF) & CKY ParsingAttention & Transformers: Seq2Seq Bottleneck, Scaled Dot-Product & Multi-Head Self-Attention, Positional Encoding, Encoder-Only (BERT) vs Causal Decoder (GPT)

Published Study Notes & Chapters (3)

Ch 1 High Yield 4 min read 2 PYQs

N-Gram Language Models, Laplace/Kneser-Ney Smoothing & Perplexity

Markov chain N-gram MLE probabilities, Add-1 (Laplace) & Add-k smoothing formulas, Interpolation vs Backoff, Kneser-Ney continuation probability, and Cross-Entropy / Perplexity numericals.

Read Chapter
Ch 2 High Yield 4 min read 2 PYQs

Lexical & Vector Semantics: TF-IDF, BM25, Word2Vec (Skip-Gram / CBOW) & GloVe

Sparse Bag-of-Words vs TF-IDF & Okapi BM25 saturation, Cosine Similarity invariance, Word2Vec CBOW vs Skip-Gram with Negative Sampling (SGNS), and vector analogy arithmetic.

Read Chapter
Ch 3 High Yield 4 min read 5 PYQs

Sequence Labeling (HMM Viterbi) & Transformers (Self-Attention, BERT vs GPT)

HMM generative tagging & O(T * S^2) Viterbi DP decoding, Scaled Dot-Product & Multi-Head Self-Attention parameter counts, Causal Masking, Positional Encodings, and BERT vs GPT vs T5.

Read Chapter

Solved Natural Language Processing (NLP) & LLMs PYQs & Practice Questions

Launch Timed Mock (9 Qs)
Q1GATE DA NLPNatural Language Processing (NLP) & LLMsMCQEASY
+2M β€’ -0.67

A language model achieves a per-token Cross-Entropy of H(W)=5Β bits/tokenH(W) = 5\text{ bits/token} (base-22 log) on a held-out evaluation corpus. What is the Perplexity (PPL\text{PPL}) of the language model?

⚑ Click an option above to verify instantly
Q2GATE DA NLPNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M β€’ -0.67

A corpus has vocabulary size ∣V∣=1,000|V| = 1,000. The unigram data occurs C(data)=200C(\text{data}) = 200 times, and the bigram data science occurs C(data, science)=19C(\text{data, science}) = 19 times. Under Laplace (Add-1) Smoothing, what is P(science∣data)P(\text{science} \mid \text{data})?

⚑ Click an option above to verify instantly
Q3GATE DA NLPNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M β€’ -0.67

Which embedding architecture represents each word as a bag of character nn-grams, enabling it to generate meaningful vectors for unseen Out-of-Vocabulary (OOV) words at inference time?

⚑ Click an option above to verify instantly
Q4GATE DA NLPNatural Language Processing (NLP) & LLMsMCQEASY
+1M β€’ -0.33

In a collection of N=10,000N = 10,000 documents, the word "the" appears at least once in every single document (df=10,000\text{df} = 10,000). Using standard idf⁑(t)=log⁑10(N/dft)\operatorname{idf}(t) = \log_{10}(N / \text{df}_t) without smoothing, what is the TF-IDF weight of "the" in document dd?

⚑ Click an option above to verify instantly
Q5GATE DA 2027 Expected MSQNatural Language Processing (NLP) & LLMsMSQHARD
+2M β€’ 0 Neg

Which of the following statements about Transformer Self-Attention and Modern LLMs are TRUE?

β˜‘οΈ Multiple Select Question β€” pick one or more options, then click Check Answer.
Q6GATE DA Transformer NATNatural Language Processing (NLP) & LLMsNATMEDIUM
+2M β€’ 0 Neg

A Multi-Head Self-Attention layer has model dimension dmodel=512d_{\text{model}} = 512 and h=8h = 8 attention heads with dk=dv=dmodel/hd_k = d_v = d_{\text{model}} / h. What is the per-head key dimension dkd_k?

Q7GATE DA LLMsNatural Language Processing (NLP) & LLMsMCQEASY
+1M β€’ -0.33

How does GPT (Decoder-Only) prevent token position ii from attending to future tokens j>ij > i during parallelized training?

⚑ Click an option above to verify instantly
Q8GATE DA NLPNatural Language Processing (NLP) & LLMsMCQMEDIUM
+2M β€’ -0.67

An HMM Part-of-Speech tagger has ∣S∣=12|S| = 12 distinct POS tags and processes a sentence of T=20T = 20 tokens. What is the asymptotic order of operations required by the Viterbi algorithm vs naive exhaustive tag enumeration?

⚑ Click an option above to verify instantly
Solve All 9 Natural Language Processing (NLP) & LLMs Questions
Other Units in GATE Data Science & Artificial Intelligence (DA) (GATE DA)
🐍 Python Programming, Data Structures & AlgorithmsπŸ“ Linear Algebra, Calculus & OptimizationπŸ“Š Data Science, Statistics & Data WarehousingπŸ€– Machine Learning & Deep LearningπŸ—£οΈ Natural Language Processing (NLP) & LLMs🧠 Artificial Intelligence, Reasoning & RL