All jobs / Data science / ML / AI / NLP
Data science / ML / AI interview question · 0–1 years
Why do modern language models split text into subword pieces rather than whole words or single characters?
The strongest answer
Whole words leave rare and new words unknown and need a huge vocabulary; characters make sequences long and slow to learn; subwords (BPE, WordPiece) keep common words whole and build rare ones from pieces
Why it works
Right — a fixed vocabulary with no unknown-word problem, and a sequence length between the two extremes.
What a good answer covers
- Words: unknown-word problem.
- Characters: long, slow sequences.
- Subwords: coverage with a fixed vocabulary.
- BPE and WordPiece are the usual methods.
Answers that fall short
- Close, but not the strongest: Subwords make the vocabulary smaller, which saves memory in the embedding table
True, but the main win is coverage: no “unknown” token for a word the tokeniser never saw. - Weak: Subwords are used because most languages do not put spaces between words
Spacing varies across languages, but subwords help English just as much; the issue is rare words and vocabulary size. - Red flag: Tokenisation is just splitting on spaces; the model handles the rest
Space-splitting fails on rare words, numbers, code and most scripts; not knowing that tokenisation shapes model input is a gap.
Who gets asked this
More NLP questions
- What is a large language model trained to do, and how does a raw pretrained model become an assistant?
- How do you know a prompt change helped?
- The policy PDF changes monthly. Do you fine-tune or retrieve?
- Your LLM eval questions were copied from a popular GitHub gist. Why is that a problem in 2026?
- Before transformers, why did people use recurrent networks for text instead of a bag-of-words model, and what…
- You use an LLM to grade another LLM. What makes that acceptable?
- A RAG answer has no supporting chunk. What should the product do?
- Your search matches queries to documents by averaging word2vec vectors of the words. Users searching “river…