journal article·2026-05-13Open access

SES-RAG: An Adaptive Framework with ModernBERT Segmentation and Generative-Alignment Expansion

Chaobang Gao, Hao He, Qiang Zhang

Applied Sciences· Volume 16· Issue 10

Abstract

Retrieval-augmented generation (RAG) is promising for long-document question answering, but its performance is often limited by fixed-window chunking, query-document mismatch, and static context truncation. This study proposes SES-RAG, a lightweight framework that jointly improves semantic segmentation, retrieval alignment, and context selection in long-document RAG. Specifically, SES-RAG includes a ModernBERT-based semantic segmenter for constructing semantically coherent chunks, Generative-Alignment Query Expansion (GAQE) for enhancing query-document alignment through residual fusion with a hypothetical document, and Information Density Truncation (IDT) for adaptively selecting retrieved contexts. We evaluate SES-RAG on three long-document QA benchmarks, namely NarrativeQA, QuALITY, and QASPER, against Naive RAG, HyDE-RAG, Hybrid-RAG, and CRAG. SES-RAG achieves the best overall performance on all three datasets, reaching 15.71 ROUGE, 9.61 BLEU-1, 6.16 BLEU-4, and 18.71 METEOR on NarrativeQA, 74.33 accuracy on QuALITY, and 41.06 F1-Match on QASPER. Compared with Naive RAG, SES-RAG improves ROUGE by 5.10 points on NarrativeQA, Accuracy by 3.66 points on QuALITY, and F1-Match by 3.83 points on QASPER. These results show that lightweight cross-stage optimization is an effective and practical strategy for improving long-document RAG.
Source: crossref · Quality: baseline

Research context

OpenAlex topics: Topic Modeling · Information Retrieval and Search Behavior · Natural Language Processing Techniques

SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.

Affiliations

School of Computer Science, Chengdu University, Chengdu 610106, China

References (23)

Show source-provided references
1. Survey of hallucination in natural language generation10.1145/3571730 ↗
2. Retrieval-augmented generation for knowledge-intensive nlp tasks
3. Pan, Z., Wu, Q., Jiang, H., Xia, M., Luo, X., Zhang, J., Lin, Q., Rühle, V., Yang, Y., and Lin, C.-Y. (2024). Llmlingua-2: Data distillation for efficient and faithful task-agnostic prompt compression. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand, 11–16 August 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-acl.57 ↗
4. Asai, A., Wu, Z., Wang, Y., Sil, A., and Hajishirzi, H. (2023, January 1–5). Self-rag: Learning to retrieve, generate, and critique through self-reflection. Proceedings of the Twelfth International Conference on Learning Representations, Kigali, Rwanda.
5. Warner, B., Chaffin, A., Clavié, B., Weller, O., Hallström, O., Taghadouini, S., Gallagher, A., Biswas, R., Ladhak, F., and Aarsen, T. (2025). Smarter, better, faster, longer: A modern bidirectional encoder for fast, memory efficient, and long context finetuning and inference. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Association for Computational Linguistics.10.18653/v1/2025.acl-long.127 ↗
6. Zhao, J., Ji, Z., Fan, Z., Wang, H., Niu, S., Tang, B., Xiong, F., and Li, Z. (2025). Moc: Mixtures of text chunking learners for retrieval-augmented generation system. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Association for Computational Linguistics.10.18653/v1/2025.acl-long.258 ↗
7. Duarte, A.V., Marques, J.D., Graça, M., Freire, M., Li, L., and Oliveira, A.L. (2024). Lumberchunker: Long-form narrative document segmentation. Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024, Miami, FL, USA, 12–16 November 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-emnlp.377 ↗
8. Zhong, Z., Liu, H., Cui, X., Zhang, X., and Qin, Z. (2024). Mix-of-granularity: Optimize the chunking granularity for retrieval-augmented generation. Proceedings of the 31st International Conference on Computational Linguistics, 2025, Abu Dhabi, UAE, 19–24 January 2025, Association for Computational Linguistics.
9. Chen, J., Xiao, S., Zhang, P., Luo, K., Lian, D., and Liu, Z. (2024). M3-embedding: Multi-linguality, multi-functionality, multi-granularity text embeddings through self-knowledge distillation. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand, 11–16 August 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-acl.137 ↗
10. Gao, L., Ma, X., Lin, J., and Callan, J. (2023). Precise zero-shot dense retrieval without relevance labels. Proceedings of the 61st Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Association for Computational Linguistics.10.18653/v1/2023.acl-long.99 ↗
11. Su, W., Tang, Y., Ai, Q., Wu, Z., and Liu, Y. (2024). Dragin: Dynamic retrieval augmented generation based on the real-time information needs of large language models. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Association for Computational Linguistics.10.18653/v1/2024.acl-long.702 ↗
12. Zhang, Z., Fang, M., and Chen, L. (2024). Retrievalqa: Assessing adaptive retrieval-augmented generation for short-form open-domain question answering. Proceedings of the Findings of the Association for Computational Linguistics: ACL 2024, Bangkok, Thailand, 11–16 August 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-acl.415 ↗
13. Ye, F., Li, S., Zhang, Y., and Chen, L. (2024). R2AG: Incorporating retrieval information into retrieval augmented generation. Proceedings of the Findings of the Association for Computational Linguistics: EMNLP 2024, Miami, FL, USA, 12–16 November 2024, Association for Computational Linguistics.10.18653/v1/2024.findings-emnlp.678 ↗
14. Lost in the middle: How language models use long contexts10.1162/tacl_a_00638 ↗
15. Rankrag: Unifying context ranking with retrieval-augmented generation in llms
16. Jiang, H., Wu, Q., Luo, X., Li, D., Lin, C.-Y., Yang, Y., and Qiu, L. (2024). Longllmlingua: Accelerating and enhancing llms in long context scenarios via prompt compression. Proceedings of the 62nd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), Association for Computational Linguistics.10.18653/v1/2024.acl-long.91 ↗
17. Frohmann, M., Sterner, I., Vulić, I., Minixhofer, B., and Schedl, M. (2024). Segment any text: A universal approach for robust, efficient and adaptable sentence segmentation. Proceedings of the 2024 Conference on Empirical Methods in Natural Language Processing, 2024, Miami, FL, USA, 12–16 November 2024, Association for Computational Linguistics.10.18653/v1/2024.emnlp-main.665 ↗
18. Roformer: Enhanced transformer with rotary position embedding10.1016/j.neucom.2023.127063 ↗
19. Flashattention: Fast and memory-efficient exact attention with io-awareness10.52202/068431-1189 ↗
20. The narrativeqa reading comprehension challenge10.1162/tacl_a_00023 ↗
21. Pang, R.Y., Parrish, A., Joshi, N., Nangia, N., Phang, J., Chen, A., Padmakumar, V., Ma, J., Thompson, J., and He, H. (2022). QuALITY: Question answering with long input texts, yes!. Proceedings of the 2022 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Seattle, WA, USA, 10–15 July 2022, Association for Computational Linguistics.10.18653/v1/2022.naacl-main.391 ↗
22. Dasigi, P., Lo, K., Beltagy, I., Cohan, A., Smith, N.A., and Gardner, M. (2021). A dataset of information-seeking questions and answers anchored in research papers. Proceedings of the 2021 Conference of the North American Chapter of the Association for Computational Linguistics: Human Language Technologies, Online, 6–11 June 2021, Association for Computational Linguistics.10.18653/v1/2021.naacl-main.365 ↗
23. Yan, S.-Q., Gu, J.-C., Zhu, Y., and Ling, Z.-H. (2024). Corrective retrieval augmented generation. ICLR 2025 Conference Withdrawn Submission, Available online: https://openreview.net/forum?id=JnWJbrnaUE.10.2139/ssrn.5267341 ↗