Dynamic Chunking and Selection for Reading Comprehension of Ultra-Long Context in Large Language Models

Boheng Sheng, Jiacheng Yao, Meicong Zhang, Guoxiu He
6/1/2025
cs.CL

Official code: ECNU-Text-Computing/DCS (8 stars, last commit 2025-06-11).

Abstract

Large language models (LLMs) often struggle to accurately read and comprehend extremely long texts. Current methods for improvement typically rely on splitting long contexts into fixed-length chunks. However, fixed truncation risks separating semantically relevant content, leading to ambiguity and compromising accurate understanding. To overcome this limitation, we propose a straightforward approach for dynamically separating and selecting chunks of long context, facilitating a more streamlined input for LLMs. In particular, we compute semantic similarities between adjacent sentences, using lower similarities to adaptively divide long contexts into variable-length chunks. We further train a question-aware classifier to select sensitive chunks that are critical for answering specific questions. Experimental results on both single-hop and multi-hop question-answering benchmarks show that the proposed approach consistently outperforms strong baselines. Notably, it maintains robustness across a wide range of input lengths, handling sequences of up to 256k tokens. Our datasets and code are available at the following link: https://github.com/ECNU-Text-Computing/DCS

View on arXivView PDF

Code Implementations(1)

Dynamic Chunking and Selection for Reading Comprehension of Ultra-Long Context in Large Language Models

80Shell, PythonMay 16, 20251 years ago

Similar Papers

Cite this paper

@article{sheng2025dynamic,
  title  = {Dynamic Chunking and Selection for Reading Comprehension of Ultra-Long Context in Large Language Models},
  author = {Boheng Sheng and Jiacheng Yao and Meicong Zhang and Guoxiu He},
  year   = {2025},
  eprint = {2506.00773},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2506.00773v2}
}

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

Discussion