paper-with-me

Papers

Goat: Fine-tuned LLaMA Outperforms GPT-4 on Arithmetic Tasks

2023-05-23 · Tiedong Liu, Bryan Kian Hsiang Low

We introduce Goat, a fine-tuned LLaMA model that significantly outperforms GPT-4 on a range of arithmetic tasks. Fine-tuned on a synthetically generated dataset, Goat achieves state-of-the-art performance on BIG-bench arithmetic sub-task. In particular, the zero-shot Goat-7B matches or even surpasses the accuracy achieved by the few-shot PaLM-540B. Surprisingly, Goat can achieve near-perfect accuracy on large-number addition and subtraction through supervised fine-tuning only, which is almost impossible with previous pretrained language models, such as Bloom, OPT, GPT-NeoX, etc. We attribute Goat's exceptional performance to LLaMA's consistent tokenization of numbers. To tackle more challenging tasks like large-number multiplication and division, we propose an approach that classifies tasks based on their learnability, and subsequently decomposes unlearnable tasks, such as multi-digit multiplication and division, into a series of learnable tasks by leveraging basic arithmetic principles. We thoroughly examine the performance of our model, offering a comprehensive evaluation of the effectiveness of our proposed decomposition steps. Additionally, Goat-7B can be easily trained using LoRA on a 24GB VRAM GPU, facilitating reproducibility for other researchers. We release our model, dataset, and the Python script for dataset generation.

📄 PDF Abstract BibTeX arXiv:2305.14201

Code (1)

liutiedong/goat 공식 구현 pytorch

Tasks

AttributeDataset GenerationGPU

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Softmax The Softmax output function transforms a previous layer's output into a vector of probabilities. It is commonly used for multiclass classification. Given an input vector $x$…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…
BPE Byte Pair Encoding, or BPE, is a subword segmentation algorithm that encodes rare and unknown words as sequences of subword units. The intuition is that various word…
Dropout Dropout is a regularization technique for neural networks that drops a unit (along with connections) at training time with a specified probability $p$ (a common value is…
Linear Layer A Linear Layer is a projection $\mathbf{XW + b}$.

Similar Papers 제목 키워드 기반

Reliable Extraction of Clinical Follow-Up Instructions: A Hybrid Neural-Symbolic Pipeline

2026-05-26 · Michal Laufer, Yehudit Aperstein, Alexander Apartsin arxiv

Objective. Outpatient notes carry follow-up instructions pairing actions with future times ("MRI brain in two weeks"). Extracting (action, date) pairs supports scheduling and audit, but generative extractors miss the dat…

Graph of Attacks: Improved Black-Box and Interpretable Jailbreaks for LLMs

2025-04-26 · Mohammad Akbar-Tajari, Mohammad Taher Pilehvar, Mohammad Mahmoody

The challenge of ensuring Large Language Models (LLMs) align with societal standards is of increasing interest, as these models are still prone to adversarial jailbreaks that bypass their safety mechanisms. Identifying t…

OccamLLM: Fast and Exact Language Model Arithmetic in a Single Step

2024-06-04 · Owen Dugan, Donato Manuel Jimenez Beneto, Charlotte Loh, Zhuo Chen 외

Despite significant advancements in text generation and reasoning, Large Language Models (LLMs) still face challenges in accurately performing complex arithmetic operations. Language model systems often enable LLMs to ge…

Language ModelingLanguage ModellingMathematical Problem-SolvingText Generation

Generative Parameter-Efficient Fine-Tuning

2023-12-01 · Chinmay Savadikar, Xi Song, Tianfu Wu

We present Generative Parameter-Efficient Fine-Tuning (GIFT) for adapting pretrained Transformer backbones on downstream tasks. GIFT learns to generate the fine-tuned weights for a layer directly from its pretrained weig…

Arithmetic ReasoningFine-Grained Image ClassificationInstruction Followingparameter-efficient fine-tuning+1

Interpreting the Latent Structure of Operator Precedence in Language Models

2025-10-14 · Dharunish Yugeswardeenoo, Harshil Nukala, Ved Shah, Cole Blondin 외 arxiv

Large Language Models (LLMs) have demonstrated impressive reasoning capabilities but continue to struggle with arithmetic tasks. Prior works largely focus on outputs or prompting strategies, leaving the open question of …