paper-with-me

홈 › Papers

How to Leverage Digit Embeddings to Represent Numbers?

2024-07-01 · Jasivan Alex Sivakumar, Nafise Sadat Moosavi

Within numerical reasoning, understanding numbers themselves is still a challenge for existing language models. Simple generalisations, such as solving 100+200 instead of 1+2, can substantially affect model performance (Sivakumar and Moosavi, 2023). Among various techniques, character-level embeddings of numbers have emerged as a promising approach to improve number representation. However, this method has limitations as it leaves the task of aggregating digit representations to the model, which lacks direct supervision for this process. In this paper, we explore the use of mathematical priors to compute aggregated digit embeddings and explicitly incorporate these aggregates into transformer models. This can be achieved either by adding a special token to the input embeddings or by introducing an additional loss function to enhance correct predictions. We evaluate the effectiveness of incorporating this explicit aggregation, analysing its strengths and shortcomings, and discuss future directions to better benefit from this approach. Our methods, while simple, are compatible with any pretrained model, easy to implement, and have been made publicly available.

📄 PDF Abstract BibTeX arXiv:2407.00894

Code (1)

jasivan/Number-Embeddings 공식 구현 pytorch

Similar Papers 제목 키워드 기반

Language Models Encode Numbers Using Digit Representations in Base 10

2024-10-15 · Amit Arnold Levy, Mor Geva

Large language models (LLMs) frequently make errors when handling even simple numerical problems, such as comparing two small numbers. A natural hypothesis is that these errors stem from how LLMs represent numbers, and s…

Human Behavioral Benchmarking: Numeric Magnitude Comparison Effects in Large Language Models

2023-05-18 · Raj Sanjay Shah, Vijay Marupudi, Reba Koenen, Khushi Bhardwaj 외

Large Language Models (LLMs) do not differentially represent numbers, which are pervasive in text. In contrast, neuroscience research has identified distinct neural representations for numbers and words. In this work, we…

Benchmarking

Transformers Can Do Arithmetic with the Right Embeddings

2024-05-27 · Sean McLeish, Arpit Bansal, Alex Stein, Neel Jain 외

The poor performance of transformers on arithmetic tasks seems to stem in large part from their inability to keep track of the exact position of each digit inside of a large span of digits. We mend this problem by adding…

GPUPosition

Positional Description Matters for Transformers Arithmetic

2023-11-22 · Ruoqi Shen, Sébastien Bubeck, Ronen Eldan, Yin Tat Lee 외

Transformers, central to the successes in modern Natural Language Processing, often falter on arithmetic tasks despite their vast capabilities --which paradoxically include remarkable coding abilities. We observe that a …

Memorization

Have You Seen That Number? Investigating Extrapolation in Question Answering Models

2021-11-01 · EMNLP 2021 11 · Jeonghwan Kim, Giwon Hong, Kyung-Min Kim, Junmo Kang 외

Numerical reasoning in machine reading comprehension (MRC) has shown drastic improvements over the past few years. While the previous models for numerical MRC are able to interpolate the learned numerical reasoning capab…

Machine Reading ComprehensionQuestion AnsweringReading Comprehension