Skip to content
Open access

Template-to-Text: Hierarchical Structure-Aware Retrieval for Controllable Document Generation

2026 · IEEE Access · Vol 14, pp. 111240-111257 · 0 citations · 67 references
Computer Science

TL;DR

This work proposes a pioneering hierarchical structure-retrieved generation framework (HS-RAG) that reconceptualizes the generation task as a systematic retrieval-alignment-fusion process from template to text, marking a fundamental paradigm shift from spontaneous generation to grounded structural anchoring.

Abstract

Despite the remarkable generative capabilities of Large Language Models (LLMs), existing long-form document generation methods frequently suffer from structural collapse and logical drift as the document length increases. We identify the root cause as a persistent structural retrieval gap, where traditional Retrieval-Augmented Generation (RAG) paradigms focus almost exclusively on fine-grained factual snippets while neglecting the macro-level organizational logic required for coherent narratives. To bridge this gap, we propose a pioneering hierarchical structure-retrieved generation framework (HS-RAG) that reconceptualizes the generation task as a systematic retrieval-alignment-fusion process from template to text, marking a fundamental paradigm shift from spontaneous generation to grounded structural anchoring. The proposed framework introduces three core methodological innovations: 1) A novel dual-stream structural indexing mechanism that extracts retrievable prototypes from historical templates, effectively closing the structural retrieval gap; 2) An adaptive query-guided alignment algorithm that maps unstructured user intents into explicit hierarchical logical constraints; 3) A reinforcement learning (RL)-driven hierarchical relevance feedback optimization strategy designed to dynamically maximize the alignment between generated content, retrieved structures, and external knowledge. Extensive experiments across four diverse datasets demonstrate that our approach significantly outperforms state-of-the-art baselines, including GPT-5.2 and advanced RAG variants. Specifically, our framework achieves an exceptional Structure Match Rate (SMR) of 0.951 and a semantic fidelity score (BERTScore) of 0.921 on AcademicPapers dataset, outperforming the strongest SOTA baseline by 5.43% and 4.19%, respectively. These compelling quantitative indicators validate that explicit structural priors are essential for mitigating long-range incoherence in controllable document generation.

Read PDF

Similar papers

Book Open access Aug 2026

Docling: Converting Complex Documents into AI-Ready Structured Representations

By bridging the gap between visually complex documents and machine-readable knowledge, Docling provides a foundation for reliable document understanding in next-generation AI systems.

P. Staar · 0 citations
Preprint Jul 2026

Hierarchical Evidence-Driven Reasoning for Long Document Understanding

HIEVI-RAG is introduced, a hierarchical, evidence-driven multimodal RAG framework for closed-domain document understanding that significantly outperforms existing open-source baselines and exceeds the strongest reported baseline by an average of 8.05% in accuracy.

Junyu Xiong, Yonghui Wang, Rongjian Gu et al. · 1 citation
Book Open access Aug 2026

Multi-Modal Hierarchical Retrieval-Augmented Generation for Document Question Answering

This work introduces MMHRAG, a novel Multi-Modal Hierarchical Retrieval-Augmented Generation framework that achieves cross-modal interaction on DocQA for the first time, and designs a Summarizing Agent to resolve logical conflicts, information redundancy, and granularity discrepancies among retrieved cross-modal evidence.

Jiayuan Wang, Jie Lian, Fu Zhao et al. · 0 citations
Preprint Jul 2026

SALT: Salience-Aware Lexical Trie for Long-Context Compression

SALT, a model-agnostic extractive framework that organizes per-sentence keywords into a trie ordered by sentence frequency (SF), a lightweight, reusable proxy for document thematic structure, reduces the prefill computation and memory cost of long-context prompts while remaining composable with KV-cache methods that target decoding-time latency and memory.

Oteo Mamo, Hyunji Yi, Joydhriti Choudhury et al. · 0 citations
Preprint Jul 2026

DocMaster: A Hierarchical Structure-Aware System for Document Analysis

This work presents DocMaster, a hierarchical structure-aware document analysis system that parses documents into hierarchical document trees preserving original layouts and constructs a structure-aware semantic index that enables accurate document filtering and in-depth analysis.

Ziqi Chen, Yingli Zhou, Fangyuan Zhang et al. · 0 citations