Intent-Driven Dynamic Chunking: Segmenting Documents to Reflect Predicted Information Needs
Organizations: Dept. of Computer Science & Information Systems University of Limerick, Ireland · Cloud ERP - UX Foundation SAP P&E
Abstract
Breaking long documents into smaller segments is a fundamental challenge in information retrieval. Whether for search engines, question-answering systems, or retrieval-augmented generation (RAG), effective segmentation determines how well systems can locate and return relevant information. However, traditional methods, such as fixed-length or coherence-based segmentation, ignore user intent, leading to chunks that split answers or contain irrelevant noise. We introduce Intent-Driven Dynamic Chunking (IDC), a novel approach that uses predicted user queries to guide document segmentation. IDC leverages a Large Language Model to generate likely user intents for a document and then employs a dynamic programming algorithm to find the globally optimal chunk boundaries. This represents a novel application of DP to intent-aware segmentation that avoids greedy pitfalls. We evaluated IDC on six diverse question-answering datasets, including news articles, Wikipedia, academic papers, and technical documentation. IDC outperformed traditional chunking strategies on five datasets, improving top-1 retrieval accuracy by 5% to 67%, and matched the best baseline on the sixth. Additionally, IDC produced 40-60% fewer chunks than baseline methods while achieving 93-100% answer coverage. These results demonstrate that aligning document structure with anticipated information needs significantly boosts retrieval performance, particularly for long and heterogeneous documents.
Figures & tables
| Dataset | Domain | Docs | QA Pairs |
|---|---|---|---|
| NewsQA | News | 1 | 15 |
| SQuAD 1-doc | Wikipedia | 1 | 12 |
| SQuAD 2-doc | Wikipedia | 2 | 293 |
| arXiv | Academic | 1 | 15 |
| Qasper | Academic | 10 | 10 |
| Fiori | Technical | 1 | 15 |
| Dataset / Method | R@1 | R@5 | MRR |
|---|---|---|---|
| NewsQA | |||
| IDC | 0.933 | 1.000 | 0.956 |
| Best Baseline | 0.867 | 0.867 | 0.867 |
| SQuAD 1-doc | |||
| IDC | 0.917 | 1.000 | 0.958 |
| Best Baseline | 0.917 | 0.917 | 0.917 |
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