Inconsistent Tokenizations Cause Language Models to be Perplexed by Japanese Grammar
Andrew Gambardella, Takeshi Kojima, Yusuke Iwasawa, Yutaka Matsuo

TL;DR
This paper investigates how inconsistent tokenization affects language models' understanding of Japanese grammar, revealing that tokenization issues can significantly impact perplexity and grammatical recognition.
Contribution
It demonstrates that tokenization inconsistencies cause perplexity variations in Japanese grammar evaluation and proposes methods to mitigate this effect, improving model understanding.
Findings
Weblab shows higher perplexity for ungrammatical sentences due to tokenization issues.
Restricting sentences to well-behaved tokenizations reduces perplexity by 28x.
Models adapt grammar patterns to overcome tokenization problems in translation tasks.
Abstract
Typical methods for evaluating the performance of language models evaluate their ability to answer questions accurately. These evaluation metrics are acceptable for determining the extent to which language models can understand and reason about text in a general sense, but fail to capture nuanced capabilities, such as the ability of language models to recognize and obey rare grammar points, particularly in languages other than English. We measure the perplexity of language models when confronted with the "first person psych predicate restriction" grammar point in Japanese. Weblab is the only tested open source model in the 7-10B parameter range which consistently assigns higher perplexity to ungrammatical psych predicate sentences than grammatical ones. We give evidence that Weblab's uniformly bad tokenization is a possible root cause for its good performance, and show that Llama 3's…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
Taxonomy
TopicsNatural Language Processing Techniques
MethodsLLaMA
