三元后缀数字分词方案用于数值推理
A Triadic Suffix Tokenization Scheme for Numerical Reasoning
AI总结:
本文提出Triadic Suffix Tokenization方案,通过三元分组和明确的量级标记,解决数字分词不一致问题,提升大语言模型在算术和科学推理中的稳定性与准确性。
摘要:
标准的子词分词方法对数字的分割不一致,导致大语言模型(LLMs)失去位置和小数结构——这在算术和科学推理中是主要的误差驱动因素。我们引入Triadic Suffix Tokenization(TST),一种确定性的方案,将数字分成三元组,并为每个三元组标注明确的量级标记。关键在于该方案定义了一个固定的一一映射,将后缀与整数部分的量级(千、百万、十亿等)联系起来,并平行地为小数深度(十分位、千分位、百万分位等)提供复制标记。与依赖位置推断的方法不同,此方法提供了一致的梯度信号,应确保稳定的收敛。提出了两种实现变体:(1)基于词汇表的方法,通过最多添加10,000个固定标记到现有词汇表中,覆盖33个量级(10^-15到10^18);(2)基于后缀标记的方法,使用少量特殊标记动态表示量级。两种变体在保持精确数字的同时,使量级关系在令牌层面透明。虽然我们专注于三元组(Triadic),但该框架本质上可扩展到任何组大小以实现精确词汇优化。此外,它允许线性词汇扩展以适应任意精度和范围。TST是架构无关的,可以作为滴入预处理步骤集成。实验验证将推迟到未来的工作。
英文摘要:
Standard subword tokenization methods fragment numbers inconsistently, causing large language models (LLMs) to lose positional and decimal structure - a primary driver of errors in arithmetic and scientific reasoning. We introduce Triadic Suffix Tokenization (TST), a deterministic scheme that partitions digits into three-digit triads and annotates each triad with an explicit magnitude marker. Critically, the scheme defines a fixed, one-to-one mapping between suffixes and orders of magnitude for the integer part (thousands, millions, billions, etc.) and a parallel system of replicated markers for fractional depth (tenths, thousandths, millionths, etc.). Unlike approaches that rely on positional inference, this method provides a consistent gradient signal, which should ensure stable convergence. Two implementation variants are proposed: (1) a vocabulary-based approach that adds at most 10,000 fixed tokens to an existing vocabulary, covering 33 orders of magnitude ($10^{-15}$ to $10^{18}$); and (2) a suffix-marker approach that uses a small set of special tokens to denote magnitude dynamically. Both variants preserve exact digits while making order-of-magnitude relationships transparent at the token level. While we focus on 3-digit groups (Triadic), the framework is inherently scalable to any group size for precise vocabulary optimization. Furthermore, it allows for linear vocabulary expansion to accommodate arbitrary precision and range. TST is architecture-agnostic and can be integrated as a drop-in preprocessing step. Experimental validation is deferred to future work.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。