Splitting Documents at Lower Cost: Multi-Split Boundary Decisions for LLM-Based Page Stream Segmentation
Organizations: ServiceNow Canada
Abstract
Scanned mail, uploaded PDFs, and consolidated attachments often arrive as page streams that must be split into individual documents before downstream classification, extraction, or routing. Zero-shot large language models can detect document boundaries without task-specific training, but standard Page Classification (PC) and Boundary Decision (BD) formulations resolve only one boundary per model call. We introduce Multi-Split Boundary Decision (MSBD), which predicts multiple boundaries within a page window in a single call, reducing the number of inference requests. We evaluate MSBD across multiple language models, document collections, input modalities, and window sizes. The results reveal a model- and corpus-dependent operating range in which MSBD preserves strong segmentation accuracy while substantially improving inference efficiency, followed by a sharp decline at larger windows. MSBD provided the strongest overall accuracy--efficiency trade-off, while large windows expose distinct over- and under-segmentation behavior across models. These findings show that multi-boundary prediction can make zero-shot page stream segmentation more efficient when the window size is selected for the target corpus.
Figures & tables
| Dataset | Setting | Cut | Continue | Micro |
|---|---|---|---|---|
| TABME++ | PC | 0.637 | 0.824 | 0.757 |
| BD-Concat | 0.619 | 0.830 | 0.769 | |
| BD-LSTM | 0.623 | 0.926 | 0.817 | |
| VRDU | PC | 0.988 | 0.782 | 0.878 |
| BD-Concat | 0.992 | 0.769 | 0.872 | |
| BD-LSTM | 0.992 | 0.750 | 0.862 |
| Dataset | Feature source | Cut | Continue | Micro |
|---|---|---|---|---|
| TABME++ | Vision Classifier † | 0.688 | 0.851 | 0.792 |
| FCOS | 0.185 | 0.981 | 0.693 | |
| GUSE | 0.434 | 0.587 | 0.532 | |
| VRDU | Vision Classifier † | 0.188 | 0.863 | 0.550 |
| FCOS | 0.685 | 0.319 | 0.489 | |
| GUSE | 0.573 | 0.405 | 0.483 |
| TABME++ | VRDU | |||||||||||
| Model | Input | Method | B-F1 | Lat | Cost | Model | Input | Method | B-F1 | Lat | Cost | |
| Claude Haiku 4.5 | text | PC | 0.674 | 2.12 | 10.33 | Claude Haiku 4.5 | text | PC | 0.961 | 2.25 | 2.30 | |
| text | BD | 0.866 | 2.42 | 13.75 | text | BD | 0.969 | 2.50 | 3.26 | |||
| text | MSBD ( ) | 0.844 | 1.19 | 6.94 | text | MSBD ( ) | 0.900 | 1.06 | 1.79 | |||
| text | MSBD ( ) | 0.817 | 1.30 | 5.18 | text | MSBD ( ) | 0.795 | 1.15 | 1.39 | |||
| vision | PC | 0.711 | 2.75 | 14.22 | vision | PC | 0.955 | 2.70 | 2.91 | |||
Appendix figures & tables8 assets
Supplementary material from the paper’s appendix.
Appendix
| TABME++ | VRDU | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Cla-txt | Cla-vis | Gem-txt | Gem-vis | GPT-txt | GPT-vis | Cla-txt | Cla-vis | Gem-txt | Gem-vis | GPT-txt | GPT-vis | ||
| 2 | 0.866 | 0.837 | 0.883 | 0.882 | 0.873 | 0.876 | 0.969 | 0.969 | 0.971 | 0.931 | 0.783 | 0.962 | |
| 3 | 0.844 | 0.844 | 0.847 | 0.887 | 0.828 | 0.846 | 0.900 | 0.928 | 0.940 | 0.938 | 0.751 | 0.869 | |
| 5 | 0.817 | 0.799 | 0.870 | 0.881 | 0.793 | 0.811 | 0.795 | 0.755 | 0.943 | 0.888 | 0.609 | 0.800 | |
| 7 | 0.782 | 0.751 | 0.863 | 0.863 | 0.739 | 0.765 | 0.722 | 0.633 | 0.925 | 0.846 | 0.589 | 0.727 | |
| 10 | 0.726 | 0.713 | 0.861 | 0.800 | 0.693 | 0.716 | 0.616 | 0.619 | 0.856 | 0.872 | 0.545 | 0.618 | |
| TABME++ | VRDU | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Calls | Cla-txt | Cla-vis | Gem-txt | Gem-vis | GPT-txt | GPT-vis | Calls | Cla-txt | Cla-vis | Gem-txt | Gem-vis | GPT-txt | GPT-vis | ||
| 2 | 6236 | 13.75 | 21.25 | 2.79 | 4.74 | 7.72 | 12.39 | 1102 | 3.26 | 4.50 | 0.66 | 0.85 | 1.84 | 2.22 | |
| 3 | 3118 | 6.94 | 12.63 | 1.61 | 3.13 | 4.28 | 7.84 | 551 | 1.79 | 2.73 | 0.41 | 0.56 | 1.11 | 1.41 | |
| 5 | 1559 | 5.18 | 9.90 | 1.22 | 2.49 | 3.18 | 6.14 | 275 | 1.39 | 2.15 | 0.32 | 0.44 | 0.86 | 1.11 | |
| 7 | 1039 | 4.58 | 8.97 | 1.09 | 2.27 | 2.81 | 5.57 | 183 | 1.24 | 1.96 | 0.29 | 0.41 | 0.77 | 1.00 | |
| 10 | 692 | 4.18 | 8.35 | 1.00 | 2.13 | 2.57 | 5.19 | 122 | 1.15 | 1.84 | 0.27 | 0.38 | 0.72 | 0.94 | |
Document Chunking
Document chunking splits long or structured documents into coherent units for retrieval, question answering, and other language-model tasks.
See all 53 papers