Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Models

Mosh Levy, Alon Jacoby, Yoav Goldberg
2/19/2024
cs.CLcs.AI

No official code found. Best implementation: alonj/Same-Task-More-Tokens (57 stars, Apache-2.0, last commit 2025-10-24).

Abstract

This paper explores the impact of extending input lengths on the capabilities of Large Language Models (LLMs). Despite LLMs advancements in recent times, their performance consistency across different input lengths is not well understood. We investigate this aspect by introducing a novel QA reasoning framework, specifically designed to assess the impact of input length. We isolate the effect of input length using multiple versions of the same sample, each being extended with padding of different lengths, types and locations. Our findings show a notable degradation in LLMs' reasoning performance at much shorter input lengths than their technical maximum. We show that the degradation trend appears in every version of our dataset, although at different intensities. Additionally, our study reveals that the traditional metric of next word prediction correlates negatively with performance of LLMs' on our reasoning dataset. We analyse our results and identify failure modes that can serve as useful guides for future research, potentially informing strategies to address the limitations observed in LLMs.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

The code for the paper: "Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Models"

573Jupyter NotebookFeb 19, 202412 months agoApache-2.0

Similar Papers

Cite this paper

@article{levy2024same,
  title  = {Same Task, More Tokens: the Impact of Input Length on the Reasoning Performance of Large Language Models},
  author = {Mosh Levy and Alon Jacoby and Yoav Goldberg},
  year   = {2024},
  eprint = {2402.14848},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2402.14848v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2402.14848.svg)](https://codeofpaper.com/paper/2402.14848)

Discussion