HiFlow: Hierarchical Feedback-Driven Optimization for Constrained Long-Form Text Generation
Organizations: Beijing University of Posts and Telecommunications · Hainan University · Nanyang Technological University
Abstract
Large language models perform well in short text generation but still struggle with long text generation, particularly under complex constraints. Such tasks involve multiple tightly coupled objectives, including global structural consistency, local semantic coherence, and constraint feasibility, forming a challenging constrained optimization problem. Existing approaches mainly rely on static planning or offline supervision, limiting effective coordination between global and local objectives during generation. To address these challenges, we propose HiFlow, a hierarchical feedback-driven optimization framework for constrained long text generation. HiFlow formulates generation as a two-level optimization process, consisting of a planning layer for global structure and constraint modeling, and a generation layer for conditioned text generation. By incorporating constraint-aware plan screening and closed-loop feedback at both levels, HiFlow enables joint optimization of planning quality and generation behavior, progressively guiding the model toward high-quality, constraint-satisfying outputs. Experiments on multiple backbones confirm HiFlow's effectiveness over baseline methods.
Figures & tables
| Method | Text Quality | Constraint Accuracy | |||||||
| Narr. | Memory | Temporal | Affect. | Avg. | Once | Range | Peri. | Avg. | |
| Qwen2.5-0.5B-Instruct | 66.44 0.25 | 66.13 0.62 | 64.88 1.90 | 76.13 0.01 | 68.39 1.01 | 23.46 1.59 | 16.60 1.52 | 15.69 0.54 | 18.58 0.75 |
| + CogWriter | 74.75 0.54 | 75.13 0.82 | 72.19 0.47 | 90.38 0.91 | 78.11 0.63 | 26.61 0.98 | 19.50 0.30 | 17.70 0.24 | 20.78 0.21 |
| + LongWriter | 74.63 0.76 | 74.88 0.39 | 71.69 0.68 | 90.00 0.55 | 77.80 0.84 | 21.01 0.30 | 19.29 0.11 | 15.83 0.20 | 18.71 0.13 |
| + HiFlow (ours) | 75.13 0.42 | 74.88 0.61 | 73.19 0.35 | 90.88 0.48 | 78.52 0.27 | 28.01 0.55 | 18.53 0.10 | 15.80 0.28 | 22.11 0.31 |
| Qwen2.5-1.5B-Instruct | 70.13 0.51 | 69.50 0.92 | 67.13 0.43 | 81.50 0.78 | 72.06 0.36 | 23.30 1.43 | 22.22 0.28 | 12.12 0.60 | 19.22 0.77 |
Appendix figures & tables1 asset
Supplementary material from the paper’s appendix.
Appendix
Text Generation
Text generation studies methods for producing coherent, useful language from prompts, data, and dialogue context.
See all 422 papers