NeedleInATable: Exploring Long-Context Capability of Large Language Models towards Long-Structured Tables

Lan-Rui Wang, Ming-Yu Zheng, Hong-Yin Tang, Zheng Lin, Ya-Nan Cao +3 more
4/1/2025

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Processing structured tabular data, particularly large and lengthy tables, constitutes a fundamental yet challenging task for large language models (LLMs). However, existing long-context benchmarks like Needle-in-a-Haystack primarily focus on unstructured text, neglecting the challenge of diverse structured tables.

Show full abstract

Meanwhile, previous tabular benchmarks mainly consider downstream tasks that require high-level reasoning abilities, and overlook models'underlying fine-grained perception of individual table cells, which is crucial for practical and robust LLM-based table applications. To address this gap, we introduce \textsc{NeedleInATable} (NIAT), a new long-context tabular benchmark that treats each table cell as a ``needle''and requires models to extract the target cell based on cell locations or lookup questions. Our comprehensive evaluation of various LLMs and multimodal LLMs reveals a substantial performance gap between popular downstream tabular tasks and the simpler NIAT task, suggesting that they may rely on dataset-specific correlations or shortcuts to obtain better benchmark results but lack truly robust long-context understanding towards structured tables. Furthermore, we demonstrate that using synthesized NIAT training data can effectively improve performance on both NIAT task and downstream tabular tasks, which validates the importance of NIAT capability for LLMs'genuine table understanding ability.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 2 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{wang2025needleinatable,
  title  = {NeedleInATable: Exploring Long-Context Capability of Large Language Models towards Long-Structured Tables},
  author = {Lan-Rui Wang and Ming-Yu Zheng and Hong-Yin Tang and Zheng Lin and Ya-Nan Cao and Jin-Gang Wang and Xun-Liang Cai and Wei-Ping Wang},
  year   = {2025},
  eprint = {2504.06560},
  archivePrefix = {arXiv},
  doi    = {10.48550/arXiv.2504.06560},
  url    = {https://doi.org/10.48550/arXiv.2504.06560},
  journal = {Neural Information Processing Systems}
}

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/2504.06560.svg)](https://codeofpaper.com/paper/2504.06560)

Discussion