arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2601.09706cs.CLcs.AIcs.LG
收藏

具有价值意识的数值表示用于Transformer语言模型

Value-Aware Numerical Representations for Transformer Language Models

National University of Science and Technology(科学技术大学)

Andreea Dutulescu, Stefan Ruseti, Mihai Dascalu

AI总结:

本文提出一种价值意识的数值表示方法,通过在Transformer语言模型输入中加入前缀标记以显式编码数值,从而提升模型在算术任务中的表现。

摘要:

基于Transformer的语言模型在数学推理基准测试中常常取得优异成绩,但在基本数值理解和算术运算上却显得脆弱。核心限制在于数字被处理为符号标记,其嵌入不明确编码数值,导致系统性错误。我们引入了一种价值意识的数值表示,通过在标准标记输入中添加专用前缀标记,其嵌入明确条件于底层数值。这种机制将幅度信息直接注入模型的输入空间,同时与现有标记器和解码器-only Transformer架构保持兼容。在算术任务上的评估表明,所提出的方法在数值格式、任务和操作数长度上均优于基线。这些结果表明,显式编码数值是提高语言模型基本数值鲁棒性的有效且高效的方法。

英文摘要:

Transformer-based language models often achieve strong results on mathematical reasoning benchmarks while remaining fragile on basic numerical understanding and arithmetic operations. A central limitation is that numbers are processed as symbolic tokens whose embeddings do not explicitly encode numerical value, leading to systematic errors. We introduce a value-aware numerical representation that augments standard tokenized inputs with a dedicated prefix token whose embedding is explicitly conditioned on the underlying numerical value. This mechanism injects magnitude information directly into the model's input space while remaining compatible with existing tokenizers and decoder-only Transformer architectures. Evaluation on arithmetic tasks shows that the proposed approach outperforms baselines across numerical formats, tasks, and operand lengths. These results indicate that explicitly encoding numerical value is an effective and efficient way to improve fundamental numerical robustness in language models.

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

↑