RICoT: Recurrent Interleaved Chain-of-Thought for Page Stream Segmentation
Abstract
Large language models (LLMs) have renewed interest in Page Stream Segmentation (PSS), splitting a multi-page file into its constituent documents. Yet published LLM methods still frame the task as boundary classification over one or a few neighboring pages, and commercial document-splitting APIs do not disclose their methods. We reimagine PSS for LLMs as a sequential process over the whole stream and propose RICoT (Recurrent Interleaved Chain-of-Thought), a prompting framework that works through the pages as a reader would: within a sliding window it reasons about each page and commits its boundary decision before moving on, and across windows it carries forward a compact record of what it has read, keeping per-call cost bounded. We also introduce FinancePSS-205, a benchmark of 205 real-world, de-identified financial page streams, to be released publicly. On FinancePSS-205, RICoT matches or outperforms pairwise and windowed prompting with the same backbone for each of three open-weight LLMs; on a TABME test subset, RICoT with GLM-5 reaches document F1 0.847 and boundary F1 0.915, above published zero-shot results. A 2B-parameter student, trained on a larger teacher's decisions with and without the page-level reasoning, performs comparably in both modes and comes within 0.05 document F1 of the strongest prompted model on FinancePSS-205.
Community
This is an automated message from the Librarian Bot. I found the following papers similar to this paper.
The following papers were recommended by the Semantic Scholar API
- An Empirical Study of VLM Pipelines for Long-Document QA (2026)
- Translating KV Caches Between Hybrid-Attention Language Models: MLA Latents, Linear-Attention States and Sparse-Attention Indexers (2026)
- Instant Weight-Space Consolidation for Long-Term Memory in LLMs (2026)
- Diffusion Drafts, AR Verifies: Accelerating Document OCR with Self-Speculative Decoding (2026)
- Read Once, Answer Many: Parallel Prompting for Shared-Context LLM Inference (2026)
- RAILS: Retrieval-Augmented Incremental LLM Clustering at Scale (2026)
- Internalizer: Portable Context-to-Parameter Mapping for Very Large Language Models (2026)
Please give a thumbs up to this comment if you found it helpful!
If you want recommendations for any Paper on Hugging Face checkout this Space
You can directly ask Librarian Bot for paper recommendations by tagging it in a comment: @librarian-bot recommend
Reading the pages in order and committing to each boundary before moving on is how a person sorts a stack of submittals. A set of construction documents is the same problem: one PDF with specs, drawings, addenda and cut sheets run together, and nobody labels where one ends. Carrying a short record forward between windows is a sensible way to keep the cost flat. I'd be curious how it does on scanned sheets with title blocks.
Hello. I was interested in Appendix C of your paper, where Table 10 shows how the accuracy of RICoT depends on window size and overlap. Small windows are more accurate there than large ones, and the default window, as you write, was chosen for cost, not tuned for accuracy. You do not discuss the cause of this drop, and I would like to suggest one explanation.
It seems to me that one of the causes is the position of a decision within the model's own response. In a single response the model writes the reasoning and the decision for each page of the window in turn, so the more pages a window holds, the farther from the start of the response its last decisions stand. If the quality of decisions declines over the course of a response, a large window loses accuracy precisely on the last decisions of each response.
A comparison already present in Table 10 points to this. A window of two pages with an overlap of one and a window of four pages with an overlap of three cost the same, 8.50 calls per stream, and in both only one decision per call is counted. The difference is where this decision stands in the response. With the two-page window it is the second decision, and DocF1 without expand is 0.811. With the four-page window it is the fourth decision, coming after three decisions for the overlap pages that are then discarded, and DocF1 is 0.715. Input length does not explain such a drop: in the control in Appendix D the input is made longer while one decision per call is kept, and accuracy does not fall but rises, from 0.506 to 0.651.
This behavior is consistent with measurements under controlled load. A study of the behavior and degradation of language models under controlled load (arXiv:2611.27404) shows that the execution of simple word-replacement rules degrades over the course of the model's own response in all seven models measured, with input length varied there as a separate load.
Of course, this is only one possible explanation. The experiment uses one model and single runs, and with a large window the model also sees pages ahead, an effect that is mixed with the position of the decision. The explanation can be checked on the outputs you have already collected by computing accuracy by the position of the page in the window: if errors grow towards the end of the window, the cause is the position of the decision in the response. In that case, when choosing a window, it would be useful to keep the number of decisions in a single response small or to place the most important decisions closer to the start of the response.
Get this paper in your agent:
hf papers read 2611.22382 Don't have the latest CLI?
curl -LsSf https://hf.co/cli/install.sh | bash Models citing this paper 0
No model linking this paper
Datasets citing this paper 0
No dataset linking this paper
Spaces citing this paper 0
No Space linking this paper
Collections including this paper 0
No Collection including this paper