Splitting Documents at Lower Cost: Multi-Split Boundary Decisions for LLM-Based Page Stream Segmentation

Nikhil Reddy Pottanigari, Sepideh Kharaghani, Saverio Vadacchino, Alejandro Posada, Ying ZhangarXiv 2026

TL;DR

Standard zero-shot LLM approaches for splitting long page streams into individual documents require a separate API call for every single page or page-pair, leading to prohibitive inference costs. This paper introduces Multi-Split Boundary Decision (MSBD), a window-based prompting strategy that predicts multiple document boundaries in a single LLM call. MSBD drastically reduces API requests and costs (up to 49x fewer calls) while maintaining high segmentation accuracy within a model-specific optimal window size.

What Problem Does This Paper Address?

When organizations process incoming document streams—like a single massive PDF containing scanned mail, invoices, and receipts bundled together—they must first slice them into individual, distinct documents. This task is known as Page Stream Segmentation (PSS). Getting a boundary wrong means either accidentally merging unrelated files or fragmenting a single document, both of which break downstream automation workflows like data extraction or routing.

While large language models (LLMs) can perform PSS "zero-shot" (without needing expensive, task-specific training data), existing methods are highly inefficient:

  • Page Classification (PC): Looks at one page at a time to decide if it's a "first page."
  • Boundary Decision (BD): Looks at a pair of adjacent pages to decide if there is a "cut" between them.

Both approaches require $O(N)$ API calls for a stream of $N$ pages. If you are processing thousands of pages daily, the financial cost and latency of making one LLM call per page quickly becomes a bottleneck.

Methods

The authors propose Multi-Split Boundary Decision (MSBD) to amortize API costs. Instead of evaluating one boundary at a time, MSBD feeds a sliding window of $K$ consecutive pages into the LLM in a single prompt.

Overview of zero-shot PSS formulations: PC, BD, and the proposed MSBD approach.

The model is instructed to return a structured JSON object containing $K-1$ binary decisions (either cut_page or continuous_page) for every page transition within that window. To cover the entire document stream without missing any boundaries, the windows are tiled across the page stream with a stride of $K-1$, meaning consecutive windows overlap by exactly one page.

Datasets

The approach was evaluated using both text and vision inputs across two distinct datasets:

  • TABME++: A collection of ~6.2k pages arranged in synthetic streams of concatenated business documents, paired with high-quality commercial OCR text.
  • VRDU (Visually-Rich Document Understanding): A form-heavy dataset consisting of registration and advertising-buy forms (~1.1k pages). The authors constructed streams by concatenating complete documents, creating visually distinct transitions.

Key Insights and Ideas

The "Knee" Effect

Enlarging the window size ($K$) creates a fundamental trade-off: fewer API calls vs. a harder multi-page prediction problem. The authors discovered that accuracy doesn't degrade linearly. Instead, it remains remarkably stable for small-to-medium windows before hitting a sharp drop-off point, which they term "the knee."

Context vs. Load

In typical batch prompting, packing more instances into a single prompt degrades performance because the tasks are independent. In MSBD, however, expanding the window adds both prediction load and sequential context. This extra context actually helps the model understand the document flow, explaining why performance plateaus positively before hitting the "knee."

Model-Specific Failure Modes

When pushed past their optimal window size, different LLMs fail in fascinatingly distinct ways:

  • Over-segmentation vs. Under-segmentation: At large window sizes, Claude and Gemini become "trigger-happy," predicting too many cuts and fragmenting documents. Conversely, GPT-5.4-mini under-segments, missing genuine boundaries and merging separate documents together.
  • Silent Degradation: Claude signals its failure structurally by outputting malformed JSON schemas (missing or extra fields). GPT-5.4-mini exhibits "silent degradation"—its JSON output remains perfectly well-formed, but the actual boundary predictions become highly inaccurate.
MSBD behavior across window sizes, illustrating the accuracy 'knee' and model-specific over/under-segmentation trends.

Key Results

  • Massive Call Reductions: On the TABME++ dataset, increasing the window size $K$ from 2 (equivalent to the baseline BD method) to 50 reduced the number of LLM calls from 6,236 down to just 127—a 49x reduction.
  • Cost Efficiency: For gemini-3.1-flash-lite using text input on TABME++, a window size of $K=10$ reduced total test-set costs from $2.79 to $1.00, while maintaining a Boundary F1 score remarkably close to the single-pair baseline (0.861 vs. 0.883).
  • The Winning Configuration: Overall, gemini-3.1-flash-lite with text input provided the strongest accuracy-efficiency trade-off, showing the widest stable operating range ($K=5$ to $K=10$).
  • Text vs. Vision: While vision inputs occasionally improved performance for single-page classification, text-based inputs were more cost-effective and stable once adjacent-page context was factored in.

Limitations and Future Work

  • Scope of Evaluation: The study was restricted to English-language documents and evaluated on three specific commercial models (gemini-3.1-flash-lite, gpt-5.4-mini, and claude-haiku-4.5).
  • Prompt and Schema Rigidity: The authors used a single, un-tuned prompt and JSON schema across all models. They note that per-model prompt engineering or schema tweaks could potentially push "the knee" further out, allowing for even larger efficient window sizes.
  • Lack of Variance Analysis: All experiments were run using a single decoding pass at temperature 0 to control costs, leaving the impact of prompt variations or random seeds unmeasured.

Summary updated

BibTeX
@misc{pottanigari2026splitting,
  author = {Nikhil Reddy Pottanigari and Sepideh Kharaghani and Saverio Vadacchino and Alejandro Posada and Ying Zhang},
  title = {{Splitting Documents at Lower Cost: Multi-Split Boundary Decisions for LLM-Based Page Stream Segmentation}},
  year = {2026},
  eprint = {2609.22620},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2609.22620},
}
Figure