Manuscript Offprint

arXiv:2610.36557

QESChunker: A Single Objective Unifies Overlapping and Non-Overlapping Chunking for RAG

Yifan Zhao, Qianyang Zhao, Xinyu Guan, kai wei, Yuming Deng

ABSTRACT

Chunking is a fundamental preprocessing step in retrieval-augmented generation (RAG), yet most existing chunkers rely primarily on heuristics. We introduce the Question–Evidence-Supervised Chunker (QESChunker), to our knowledge the first method for constructing static chunk indices from question–evidence supervision. QESChunker constructs document-specific chunk indices by optimizing over human-annotated or LLM-generated question–evidence pairs, without access to held-out test queries. We formulate non-overlapping and overlapping index construction through a unified question–evidence utility-maximization objective, turning chunking into a supervised combinatorial optimization problem. Under the non-overlap constraint, the objective decomposes over chunks and can be optimized exactly in polynomial time by dynamic programming. When overlap is allowed, the objective becomes monotone submodular; exact optimization is NP-hard, but our greedy achieves a (1−1/e)(1 - 1/\sqrt{e})-approximation. Across two self-constructed and three public datasets, both variants outperform existing chunking methods in complete-evidence recall in nearly all evaluated settings, under the same overlap regime and a fixed hybrid retriever. These results recast chunking as supervised, budget-aware index construction for evidence retrieval.

1 INTRODUCTION

Retrieval-augmented generation (RAG) conditions a language model on passages retrieved from an external corpus (Lewis et al., 2020; Gao et al., 2023). Before any retrieval can occur, each document must be segmented into chunks that are embedded and indexed. Where the chunk boundaries fall largely determines whether the evidence for a question can be retrieved completely.

Despite its importance, chunking is overwhelmingly heuristic in practice. The baselines evaluated in this paper span fixed-length and fixed-overlap passages used by retrieval systems (Lewis et al., 2020; Guu et al., 2020; Karpukhin et al., 2020), natural paragraphs, lexical-cohesion segmentation with TextTiling (Hearst, 1997), embedding-based ClusterSemanticChunker (Smith & Troynikov, 2024), LLM-predicted boundaries with LumberChunker (Duarte et al., 2024), sentence-window retrieval (LlamaIndex, 2024b), and hierarchical Parent-Document and Auto-Merging retrieval (LlamaIndex, 2024a). These practical alternatives cover non-overlapping, overlapping, semantic, LLM-based, and hierarchical designs, but none optimizes an explicit question–evidence objective.

We cast chunking as an explicit optimization problem and show that a single objective, subjected to two different structural constraints, yields two algorithms with complementary guarantees. We call the resulting framework QESCHUNKER (Question–Evidence Supervised Chunker): questions and their evidence blocks supervise where boundaries should fall, and the same objective is then solved exactly or near-optimally under each constraint. Figure 1 summarizes the framework.

Our contributions are:

  1. A unified objective. We model a document as a sequence of atomic blocks and define a two-term objective comprising a coverage term and a structural term ( §3\S3).

  2. Two algorithms under different constraints. Under a non-overlap constraint—that is, a contiguous partition into multiple chunks—the objective becomes additive over chunks,

Figure

Figure 1: Overview of QESCHUNKER. A shared question–evidence objective supports exact dynamic programming for non-overlapping partitions and benefit–cost greedy selection for overlapping indices.

and an exact dynamic program returns the global optimum in polynomial time ( §4§4). Under an overlap constraint, an index budget over a candidate chunk family must be satisfied. We prove that exact optimization of the objective is NP-hard by a reduction from Grid Segment Covering ( §5§5), and give a benefit-cost greedy algorithm that attains a (1−1/e)≈0.393(1 - 1/\sqrt{e}) \approx 0.393 guarantee for budgeted monotone submodular maximization under the corrected analysis of Tang et al. (2021).

  1. Broad wins on multiple datasets. Across two self-constructed Chinese policy corpora and three public English corpora (QASPER, PeerQA, and PrivacyQA), under a fixed hybrid retriever, our non-overlap DP ranks first in 9/10 corpus×tier display cells and our overlap method in 10/10 (Tables 3 and 4).

References (24)