以英语衡量的效率:标记器覆盖范围限制了针对印度文字的小型语言模型
Efficiency Measured in English: Tokeniser Coverage Bounds Small Language Models on Indic Scripts
AI总结:
本文发现小型语言模型的效率指标以英语为基准,其标记器对印度文字覆盖不足,导致可用上下文窗口大幅缩减,核心约束为词汇表而非参数数量。
摘要:
采用量化和参数高效适配的小型语言模型,是计算资源受限环境下实现多语言AI的常用方案,其效率几乎总是以单一内存指标衡量。本文表明该指标以英语为基准,无法迁移至其他语言。在包含11种印度文字的13.1万句语料上,TinyLlama-1.1B的标记器对每个拉丁文字词生成1.34个子词标记,对每个卡纳达文字词生成22.60个。这并非效率低下,而是标记器词汇表的缺失:其词汇表包含0%的奥里亚文字符、1%的泰卢固文字符、2%的卡纳达文字符;11种文字中有5种的标记生成率达到UTF-8字节回退上限,奥里亚文为该上限的99.6%,且93.6%的生成标记为原始字节。由于SentencePiece的字节回退不会触发未知标记(UNK)标记,该失效完全静默:TinyLlama在所有文字上的UNK率均为0.0%,包括以字节读取的文字。进一步研究显示,低标记生成率可能与效率相反:mBERT在奥里亚文上取得最佳分数(1.10标记/词),却丢弃87.9%的文本为UNK;MuRIL是词汇量仅为TinyLlama五分之一的印度文字编码器,对所有文字的标记生成率为1.23-2.26标记/词,且UNK率为0、无字节回退。核心约束是词汇表而非参数数量,具体后果为:在2048标记的上下文窗口中,同一模型为英语用户提供1528个可用字词,为卡纳达语用户提供91个可用字词。
英文摘要:
Small Language Models with quantisation and parameter-efficient adaptation are widely offered as the route to multilingual AI under compute constraints, and their efficiency is almost always reported as a single memory figure. We show that this figure is measured in English and does not transfer. Across a 131k-sentence corpus spanning eleven Indic scripts, TinyLlama-1.1B's tokeniser emits 1.34 subword tokens per Latin-script word and 22.60 per Kannada word. This is not inefficiency; it is absence. Its vocabulary contains 0% of Odia's codepoints, 1% of Telugu's and 2% of Kannada's, and for five of eleven scripts the measured fertility sits at the UTF-8 byte-fallback ceiling, on Odia at 99.6% of it, with 93.6% of emitted tokens being raw bytes. Because SentencePiece byte fallback never raises an unknown-token marker, this failure is entirely silent: TinyLlama's UNK rate is 0.0% on every script, including the one it reads as bytes. We further show that low fertility can indicate the opposite of efficiency: mBERT posts its best score anywhere (1.10 tokens/word, on Odia) while discarding 87.9% of the text as UNK. MuRIL, an Indic-vocabulary encoder with a fifth of TinyLlama's parameters, reads every script at 1.23-2.26 tokens/word with zero UNK and zero byte fallback. The binding constraint is the vocabulary, not the parameter count. The consequence is concrete: on a 2048-token context window, the same model gives an English user 1,528 words of usable context and a Kannada user 91.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。