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

Answers that fall short

Who gets asked this

More NLP questions