Sentence-level heuristic tree search for long text generation
Authors:
Open Access
- 29 September 2023
- journal article
- research article
- Published by Springer Nature in Complex & Intelligent Systems
- Vol. 10 (2) , 3153-3167
Abstract
In this study, we primarily aim to address the exposure bias issue in long text generation intrinsic to statistical language models. We propose a sentence-level heuristic tree search algorithm, specially tailored for long text generation, to mitigate the problem by managing generated texts in a tree structure and curbing the compounding of biases. Our algorithm utilizes two pre-trained language models, an auto-regressive model for generating new sentences and an auto-encoder model for evaluating sentence quality. These models work in tandem to perform four critical operations: expanding the text tree with new sentences, evaluating the quality of the additions, sampling potential unfinished text fragments for further generation, and pruning leaf nodes deemed unpromising. This iterative process continues until a pre-defined number of [EOS] tokens are produced, at which point we select the highest-scoring completed text as our final output. Moreover, we pioneer two novel token-level decoding techniques—nucleus sampling with temperature and diverse beam search with sampling. These methods, integrated with our sentence-level search algorithm, aim to improve the consistency and diversity of text generation. Experimental results, both automated measures (including Jaccard similarity, Word2vec similarity, and unique word ratio) and human evaluations (assessing consistency, fluency, and rhetorical skills), conclusively demonstrate that our approach considerably enhances the quality of machine-generated long-form text. Through this research, we aim to inspire further innovations in sentence-level search-based text generation algorithms.Keywords
Funding Information
- Natural Science Foundation of Sichuan Province (2022NSFSC0503)
- Sichuan Provincial Science and Technology Support Program (2022ZHCG0007)
This publication has 31 references indexed in Scilit:
- Plan-and-Write: Towards Better Automatic StorytellingProceedings of the AAAI Conference on Artificial Intelligence, 2019
- Enhancing Topic-to-Essay Generation with External Commonsense Knowledge2019
- Transformer-XL: Attentive Language Models beyond a Fixed-Length Context2019
- Topic-to-Essay Generation with Neural Networks2018
- Learning to Write with Cooperative Discriminators2018
- Analogical Reasoning on Chinese Morphological and Semantic Relations2018
- Hierarchical Neural Story Generation2018
- When to Finish? Optimal Beam Search for Neural Text Generation (modulo beam size)2017
- Information Set Monte Carlo Tree SearchIEEE Transactions on Computational Intelligence and AI in Games, 2012
- BLEU2001