arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.06204cs.CLcs.AI
收藏

无需回归的数字估计

Estimating Numbers without Regression

Univ of Southern California(南加州大学);Information Sciences Institute(信息科学研究所)

Avijit Thawani, Jay Pujara, Ashwin Kalyan

AI总结:

针对语言模型数字表示不足的问题,本文发现修改词表(如为特定范围数字引入新词元)比修改架构更简单且性能相当,并在费米问题数值估计任务上验证了该趋势。

摘要:

尽管语言模型近期取得了成功,但其表示数字的能力仍显不足。人类基于数量级来概念化数字,有效地将其投射到数轴上;而子词分词通过将数字拆分为任意片段,未能明确捕获数量级。为缓解这一缺陷,已有研究提出了在语言建模流程的不同阶段修改数字的替代方法。这些方法要么改变数字的书写表示(如科学计数法与十进制),要么改变用于表示数字的词表,或者改变底层语言模型的整体架构,以直接回归到目标数字。先前的工作表明,架构上的改变有助于在数字估计任务上达到最先进水平,但我们发现了一个有洞察力的消融实验:改为修改模型的词表(例如为10-100范围内的数字引入新词元)是远为更优的权衡。在掩码数字预测的背景下,精心设计的分词方案既是最易实现的,也是足够的,即其性能与需要重大架构改变的最先进方法相当。最后,我们报告了在下游任务(费米问题中的数值事实估计)上的类似趋势,并讨论了我们的发现背后的原因。

英文摘要:

Despite recent successes in language models, their ability to represent numbers is insufficient. Humans conceptualize numbers based on their magnitudes, effectively projecting them on a number line; whereas subword tokenization fails to explicitly capture magnitude by splitting numbers into arbitrary chunks. To alleviate this shortcoming, alternative approaches have been proposed that modify numbers at various stages of the language modeling pipeline. These methods change either the (1) notation in which numbers are written (\eg scientific vs decimal), the (2) vocabulary used to represent numbers or the entire (3) architecture of the underlying language model, to directly regress to a desired number. Previous work suggests that architectural change helps achieve state-of-the-art on number estimation but we find an insightful ablation: changing the model's vocabulary instead (\eg introduce a new token for numbers in range 10-100) is a far better trade-off. In the context of masked number prediction, a carefully designed tokenization scheme is both the simplest to implement and sufficient, \ie with similar performance to the state-of-the-art approach that requires making significant architectural changes. Finally, we report similar trends on the downstream task of numerical fact estimation (for Fermi Problems) and discuss reasons behind our findings.

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

↑