Why Flat Token Chunking Breaks Retrieval and What Structural Chunking Fixes
Splitting by token count strips headings and table context.

For document splitting and semantic chunking APIs for RAG pipelines, the decisive criterion is whether they preserve section hierarchy, table relationships, and logical boundaries. Flat token chunking breaks retrieval when it discards those signals, even if the retrieved text contains the right words. Structural chunking fixes that failure by making document relationships part of the retrieval unit, provided the parser identifies them correctly.
How flat token chunking actually fails retrieval
Flat token chunking severs three signals that determine how a passage should be interpreted, namely header inheritance, row-column adjacency, and logical boundaries. It partitions text by token count. A section heading can therefore fall into one chunk while the data it classifies falls into another. The words survive, but their relationship does not. A retrieved row may then lack the interpretive frame that tells the model what its values describe.
The same failure occurs within tables. Row-column adjacency connects a cell value to its column header and to the surrounding rows that give it meaning. When a split separates those elements, the retriever can surface a number without the information needed to interpret it. A chunk that starts mid-paragraph may omit the opening context that establishes the topic, while one that crosses a section boundary can combine text belonging to different subjects.
Similarity search may still find a passage containing the query’s terms, but lexical overlap cannot establish which heading governs a row or which column owns a value. The failure begins before the generation stage, when the pipeline decides what belongs in a retrievable unit.
Why size-tuning alone cannot solve a structural problem
Small chunks can keep the words that match a query while cutting out the evidence needed to understand them. FloTorch’s 2026 benchmark attributed semantic chunking’s weaker answer accuracy to fragments averaging 43 tokens. A narrow passage can be easy to match and still be insufficient to answer the question.
Larger chunks create the opposite problem by embedding too many topics together. NVIDIA’s 2024 benchmark illustrated this drop-off for large chunks on financial documents, where broad passages weakened similarity to narrow queries. More text is not automatically better evidence. Nick M. Loghmani’s 2026 paper formalizes semantic entanglement through an Entanglement Index, describing how interleaved eligibility criteria, pricing schedules, and jurisdictional rules become conflated in vector space. Once preprocessing encodes that mixture, downstream tuning cannot reliably separate it.
Both small and large fixed-size chunks can orphan a heading or split a table, because size controls what fits.
What structural chunking actually preserves and why that changes retrieval
Structural chunking first finds the document elements, then chooses where to split. The parser distinguishes headers, sections, paragraphs, tables, code blocks, and list items. Those elements tell the chunker where to split. A table remains a unit, a code block is not split mid-function, and an H2 section boundary provides a meaningful place to divide the document.
Header inheritance preserves the relationship between a passage and the heading that classifies it. When a data row stays with its section heading, the embedding includes the topic label needed to interpret the row. A query about “Q3 revenue” can retrieve the value together with the heading that identifies it as revenue. The label is part of the evidence. Without it, the model must interpret a value from a less complete representation of the source.
Row-column adjacency similarly keeps column headers connected to their cell values. Logical boundaries then keep each section on one topic so its embedding reflects that topic. Together, these signals reduce the semantic entanglement introduced by indiscriminate splitting. The benefit depends on recognizable document organization. Markdown documentation, PDFs with detectable structure, HTML pages, Jupyter notebooks, technical manuals, and data dictionaries all provide structural elements that a document-aware pipeline can use.
What the benchmarks show when structure is preserved versus destroyed
FloTorch’s benchmark tested 50 real academic papers with the same embedding model and retrieval pipeline across strategies. Recursive splitting, which respects paragraph and sentence boundaries, substantially outscored semantic chunking on end-to-end answer accuracy. The comparison isolates a consequential preprocessing difference. Semantic chunking’s short fragments did not provide enough context for reliable answers, even though the method sought semantically coherent splits. The name of a strategy therefore says less than the retrieval units it actually produces.
Chroma’s evaluation found high retrieval recall for semantic chunking, which does not contradict FloTorch’s answer-accuracy result. The evaluations measure different outcomes. Recall asks whether retrieval finds the relevant text, while answer accuracy asks whether the model can use that evidence to answer correctly. The distinction is central to evaluating structural preservation because a missing heading or table relationship can leave the words intact while making their interpretation unreliable.
The ICLR 2026 SMARTCHUNK paper provides a complementary comparison between fixed-size chunking, late chunking, and its hierarchy-aware approach. Its results show that keeping the hierarchy helps beyond just changing when chunks are formed. NVIDIA’s benchmark adds evidence at a different boundary. Across five datasets, page-level chunking achieved the highest accuracy and lowest variance across document types. A page is not the same unit as a logical section, but retaining it can preserve relationships that smaller, arbitrary splits destroy.
Loghmani tested the structure-aware disentanglement pipeline on an enterprise healthcare knowledge base. Top-K retrieval accuracy rose from roughly a third with fixed-token chunking to well over four-fifths with the structure-aware pipeline. The gap persisted regardless of embedding model. That finding places the problem upstream of model selection, where preprocessing determines which topics become entangled. In a healthcare setting, retrieved evidence also needs to retain the distinctions required for dependable interpretation.
Where the "structure always wins" claim breaks down
The first objection is that a structurally coherent unit can still be too short to support an answer. FloTorch’s fragment problem makes that limitation concrete. The appropriate response is a minimum chunk-size floor within structural chunking.
Embedding alignment presents a second limitation on the claim. Preserving document relationships does not eliminate the need for an embedding model suited to the content and retrieval task. The two levers are complementary, not competing remedies. A structurally sound chunk can still perform poorly when the model does not represent it effectively. Even a well-matched model cannot bring back a heading or column relationship that preprocessing took out of the retrieval unit.
The third objection is more fundamental because structural chunking depends on the parser’s account of the document. If that account is wrong, respecting its boundaries preserves the error. The expected gain depends on adequate chunk size, embedding alignment, and reliable parsing. These conditions explain why structural methods need evaluation on the documents they will actually process, rather than acceptance on the strength of their label.
Why parsing quality upstream determines whether structural chunking delivers its gains
A parser that classifies a table header as body text removes the boundary signal the chunker needs. The resulting split can separate the header from its rows even when the chunker is designed to respect tables. Incorrect reading order creates a different corruption. If a parser scrambles text across columns, sequential chunks encode a flow that the source never intended. A formula or figure caption merged into adjacent prose can likewise contaminate an otherwise coherent structural unit.
OmniDocBench, presented at CVPR 2025, evaluates end-to-end document parsing through text recognition, table recognition, formula recognition, and reading-order metrics. It treats layout detection as a separate task-specific subset. Text recognition measures whether the words were extracted, but it does not by itself establish whether the parser assigned those words to the right elements. High extraction accuracy can coexist with incorrect table structure or reading order.
A healthcare chart combining handwritten consult notes with typed lab results requires the parser to identify and separate those modalities correctly. Structural chunking cannot repair a merged, misclassified parse merely by following its apparent boundaries. The output can remain retrievable yet unreliable. In regulated settings, that failure also has compliance implications because the evidence presented downstream no longer reliably reflects the source’s organization.
Parsing and chunking should be evaluated as a coupled system. Layout accuracy exposes structural failures that a composite OCR score can conceal, while document question-answering accuracy tests their downstream consequences. Neither view replaces the other. Domain-representative documents are needed to establish whether the parser recognizes the structures the chunker is expected to preserve. Otherwise, chunking evaluation can end up measuring the consequences of an upstream defect without identifying its cause.
How to build a document splitting and semantic chunking API pipeline without losing section hierarchy
A production pipeline should treat parsing, chunking, and retrieval as coupled stages with explicit quality gates. For teams selecting a document splitting and semantic chunking API, the first criterion is layout fidelity on their document types. The parser must correctly classify headers, table structures, and reading order before splitting begins. Table recognition deserves its own evaluation. A pipeline cannot preserve row-column adjacency if its input does not represent that relationship correctly.
The chunking stage should then use document-aware boundaries for structured content such as PDFs, Markdown, HTML, and technical manuals. Minimum chunk-size floors address the short-fragment problem without treating token count as the primary organizing principle. Tables should be kept whole. An API’s fit depends on whether its output retains usable evidence.
Structural metadata makes those relationships available during retrieval. Chunks should include section-header ancestry, document type, and structural role, including whether the element is a table, header, or paragraph. Those fields enable metadata filters to constrain results by structural position as well as embedding distance. Hierarchy becomes a retrieval signal rather than discarded formatting. This is especially important when a passage’s meaning depends on its place within a larger section.
Tests should then check whether retrieved chunks let the model answer correctly on documents that reflect the domain. Retrieval recall alone is an incomplete quality gate, as Chroma’s and FloTorch’s contrasting findings demonstrate. The evaluation must reach the answer stage.
Finally, extraction and parsing need confidence scoring that signals when structural context is unreliable. This layer helps catch parsing failures before they propagate to retrieval and agent reasoning, which is the stage where Extend, a document processing infrastructure platform whose specialized vision models parse, split, and extract from complex layouts for AI agents, sits beneath production pipelines. Confidence provides a production signal for failures that otherwise appear downstream as ordinary, searchable text. The resulting architecture treats document structure as evidence whose integrity must survive every stage, from the source page to the passage used to answer the query.


