paper-with-me

Papers

Language Models Do Hard Arithmetic Tasks Easily and Hardly Do Easy Arithmetic Tasks

2024-06-04 · Andrew Gambardella, Yusuke Iwasawa, Yutaka Matsuo

The ability (and inability) of large language models (LLMs) to perform arithmetic tasks has been the subject of much theoretical and practical debate. We show that LLMs are frequently able to correctly and confidently predict the first digit of n-digit by m-digit multiplication tasks without using chain of thought reasoning, despite these tasks require compounding operations to solve. Simultaneously, LLMs in practice often fail to correctly or confidently predict the last digit of an n-digit by m-digit multiplication, a task equivalent to 1-digit by 1-digit multiplication which can be easily learned or memorized. We show that the latter task can be solved more robustly when the LLM is conditioned on all of the correct higher-order digits, which on average increases the confidence of the correct last digit on 5-digit by 5-digit multiplication tasks using Llama 2-13B by over 230% (0.13 to 0.43) and Mistral-7B by 150% (0.22 to 0.55).

📄 PDF Abstract BibTeX arXiv:2406.02356

Code (0)

등록된 구현이 없습니다.

Methods 이 논문이 사용한 방법론

LLaMA LLaMA is a collection of foundation language models ranging from 7B to 65B parameters. It is based on the transformer architecture with various improvements that were…

Similar Papers 제목 키워드 기반

Visual Learning of Arithmetic Operations

2015-06-07 · Yedid Hoshen, Shmuel Peleg

A simple Neural Network model is presented for end-to-end visual learning of arithmetic operations from pictures of numbers. The input consists of two pictures, each showing a 7-digit number. The output, also a picture, …

Investigating the Limitations of Transformers with Simple Arithmetic Tasks

2021-02-25 · Rodrigo Nogueira, Zhiying Jiang, Jimmy Lin

The ability to perform arithmetic tasks is a remarkable trait of human intelligence and might form a critical component of more complex reasoning tasks. In this work, we investigate if the surface form of a number has an…

Form

Language Models are Symbolic Learners in Arithmetic

2024-10-21 · Chunyuan Deng, Zhiqi Li, Roy Xie, Ruidi Chang 외

Large Language Models (LLMs) are thought to struggle with arithmetic learning due to the inherent differences between language modeling and numerical computation, but concrete evidence has been lacking. This work respond…

Language ModelingLanguage Modelling

MELO: Enhancing Model Editing with Neuron-Indexed Dynamic LoRA

2023-12-19 · Lang Yu, Qin Chen, Jie zhou, Liang He

Large language models (LLMs) have shown great success in various Natural Language Processing (NLP) tasks, whist they still need updates after deployment to fix errors or keep pace with the changing knowledge in the world…

Document ClassificationHallucinationModel EditingQuestion Answering

IGC: Integrating a Gated Calculator into an LLM to Solve Arithmetic Tasks Reliably and Efficiently

2025-01-01 · Florian Dietz, Dietrich Klakow

Solving arithmetic tasks is a simple and fundamental skill, yet modern Large Language Models (LLMs) have great difficulty with them. We introduce the Integrated Gated Calculator (IGC), a module that enables LLMs to perfo…

GPU