arXiv:2508.02591cs.CL2025-08AAAI被引 4

构建大规模字符级任务基准,揭示分词对语言模型表现的影响

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

  • 设计了比现有数据集大100倍的字符级任务基准CharBench
  • 主流模型在部分任务上准确率仅43.6%和32.3%
  • 长词内含字符位置信息易被长分词掩盖,影响定位能力

需要字符级推理的任务(如词中字符计数或定位)对当前语言模型仍具挑战性。普遍认为模型依赖子词单元而非字符是导致其表现不佳的原因,但现有研究对此结论存在分歧。为解决这一问题,我们提出CharBench——一个规模比现有方案大两个数量级的字符级任务综合基准。我们在该基准上评估了多种主流开源与专有模型,发现现代大模型在该任务上表现显著不足,平均准确率为43.6%,部分任务低至32.3%。通过分析词的内在属性及其分词方式与模型表现的关系,我们发现:对于计数任务,分词特性与正确率弱相关,而查询词长度与实际字符数更为关键;而对于词内位置理解任务,包含目标字符的分词越长,模型表现越差,表明长分词会模糊字符位置信息。我们呼吁后续工作基于此基准与评估方法提升模型在字符级任务上的性能。

原文摘要 · Abstract (English)

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.

字符级任务分词影响模型评估语言模型

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。