InterviewStack.io LogoInterviewStack.io

Natural Language Processing Fundamentals Questions

Foundational knowledge of Natural Language Processing including how text is represented and processed, common tasks, model classes, and practical tooling. Core concepts include tokenization and subword segmentation, embedding representations and word vector methods such as Word2Vec and GloVe, attention mechanisms, sequence to sequence models, recurrent neural networks, and transformer based architectures. Common tasks to understand include text classification, sentiment analysis, named entity recognition, and machine translation. Candidates should be able to explain how pretrained transformer models are used conceptually, trade offs between model types, basic training and evaluation approaches for language tasks, and practical experience or familiarity with common libraries and toolkits used in the field.

HardSystem Design
16 practiced
Design a scalable approximate nearest neighbor (ANN) pipeline for semantic search over 500 million sentence embeddings. Specify indexing approach, sharding and replication, recall vs latency trade-offs, memory/disk layout, choice of ANN library (FAISS/HNSW/ScaNN), and operational considerations for incremental updates and monitoring.
EasyTechnical
22 practiced
What problem does the attention mechanism solve compared to vanilla encoder-decoder seq2seq models with a fixed-size context vector? Provide an intuitive example (e.g., translating a long sentence) and describe how attention changes gradient flow and learning for long-range dependencies.
HardTechnical
20 practiced
Design an active learning loop for an intent classification system to minimize human labeling cost. Describe sampling strategies (uncertainty, diversity, committee), stopping criteria, annotation UI needs for fast labeling, and how to incorporate labels into retraining with minimal disruption to serving models.
MediumTechnical
19 practiced
Given token-level BIO-labelled sequences for NER, provide pseudocode for the Viterbi decoding algorithm for a linear-chain CRF. Explain time and space complexity, and how you would batch decode many sequences efficiently in production.
EasyTechnical
23 practiced
Explain masking in transformer models: describe padding masks vs. causal (autoregressive) masks, how they are applied in attention computations, and give concrete examples of where each is necessary (e.g., classification vs. autoregressive generation).

Unlock Full Question Bank

Get access to hundreds of Natural Language Processing Fundamentals interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.