logoalt Hacker News

emaro • 04/24/2025 • 1 reply • view on HN

Kind of, but character-based tokens make it a lot harder and more expensive to learn semantics.


Replies

docmechanic • 04/24/2025

Source: Generative Deep Learning by David Foster, 2nd edition, published in 2023. From “Tokenization” on page 134.

“If you use word tokens: …. willnever be able to predict words outside of the training vocabulary.”

"If you use character tokens: The model may generate sequences of characters that form words outside the training vocabulary."