arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.02591cs.CL
收藏

CharBench:评估字符级任务中分词作用

CharBench: Evaluating the Role of Tokenization in Character-Level Tasks

Omri Uzan, Yuval Pinter

AI总结:

CharBench通过大规模字符级任务评估,揭示了分词对字符级任务性能的影响,发现tokenization与正确性弱相关,而词长和字符数更关键,且长token会掩盖字符位置信息。

摘要:

需要字符级推理的任务,如计数或定位字符,仍然是当代语言模型的挑战。一种常见推测是语言模型依赖子词单元而非字符导致其在字符级任务中的困难,但最近研究对分词作用存在矛盾结论。为填补这一空白,我们引入CharBench,一个规模比现有方法大两个数量级的字符级任务基准。我们评估了多种领先的开源和专有模型,并发现CharBench对现代LLM构成显著挑战,平均准确率为43.6%和32.3%。我们深入分析了词的内在属性及其分词后的表现。对于计数任务,发现分词属性与正确性弱相关,而词长和实际字符数起更大作用。相比之下,需要词内位置理解的任务中,性能与包含查询字符的token长度呈负相关,表明较长的token会掩盖字符位置信息。我们鼓励未来的工作基于此处引入的基准和评估方法,作为改进此类任务模型性能的工具。

英文摘要:

Tasks that require character-level reasoning, such as counting or locating characters within words, remain challenging for contemporary language models. A common conjecture is that language models' reliance on subword units, rather than characters, contributes to their struggles with character-level tasks, yet recent studies offer conflicting conclusions about the role of tokenization, leaving its impact unclear. To address this gap, we introduce CharBench, a comprehensive benchmark of character-level tasks that is two orders of magnitude larger than existing alternatives. We evaluate a diverse range of leading open-weight and proprietary models on CharBench and find that it presents a significant challenge to modern LLMs, with an average accuracy of 43.6% and 32.3% on some tasks. We present an in-depth analysis of how intrinsic properties of words and their segmentations into tokens correspond to model performance. For counting tasks, we find that tokenization properties are weakly correlated with correctness, while the length of the queried word and the actual character count play a more significant part. In contrast, for tasks requiring intra-word positional understanding, performance is negatively correlated with the length of the token containing the queried character, suggesting that longer tokens obscure character position information for LLMs. We encourage future work to build on the benchmark and evaluation methodology introduced here as tools for improving model performance on such tasks.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑