分词的基础:统计与计算问题
The Foundations of Tokenization: Statistical and Computational Concerns
AI总结:
本文提出基于随机映射范畴的统一形式框架来分析分词器模型,建立了原则性使用分词器的一般条件及保持统计估计量一致性的充要条件,为神经语言建模的表示构建了稳健的理论基础。
摘要:
分词(tokenization)——将来自字母表的字符串转换为词汇表上的标记序列的实践——是NLP流程中的关键步骤。使用标记表示被广泛认为能提升模型性能,但同时也是许多不良行为的来源,如虚假歧义或不一致性。尽管分词作为NLP中的标准表示方法具有重要性,但其理论基础尚未被完全理解。特别是,分词对语言模型估计的影响主要通过实证手段进行研究。本文通过提出一个统一的正式框架来表示和分析分词器模型,有助于弥补这一理论空白。基于随机映射范畴,该框架使我们能够建立原则性使用分词器的一般条件,最重要的是,建立分词器模型保持统计估计量一致性的充分必要条件。此外,我们讨论了对于设计和实现分词器模型至关重要的统计和计算问题,如不一致性、歧义性、有限性和顺序性。本文提出的框架和结果有助于为神经语言建模中的表示构建稳健的理论基础,从而为未来的理论和实证研究提供指导。
英文摘要:
Tokenization - the practice of converting strings of characters from an alphabet into sequences of tokens over a vocabulary - is a critical step in the NLP pipeline. The use of token representations is widely credited with increased model performance but is also the source of many undesirable behaviors, such as spurious ambiguity or inconsistency. Despite its recognized importance as a standard representation method in NLP, the theoretical underpinnings of tokenization are not yet fully understood. In particular, the impact of tokenization on language model estimation has been investigated primarily through empirical means. The present paper contributes to addressing this theoretical gap by proposing a unified formal framework for representing and analyzing tokenizer models. Based on the category of stochastic maps, this framework enables us to establish general conditions for a principled use of tokenizers and, most importantly, the necessary and sufficient conditions for a tokenizer model to preserve the consistency of statistical estimators. In addition, we discuss statistical and computational concerns crucial for designing and implementing tokenizer models, such as inconsistency, ambiguity, finiteness, and sequentiality. The framework and results advanced in this paper contribute to building robust theoretical foundations for representations in neural language modeling that can inform future theoretical and empirical research.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。