NEUROSTRUCTURAL DECODING: Neural Text Generation with Structural Constraints
NEUROSTRUCTURAL DECODING: Neural Text Generation with Structural Constraints
复制标题
DOI:
10.18653/v1/2023.acl-long.528
复制
发表时间:
2023
期刊:
影响因子:
--
通讯作者:
Mohaddeseh Bastan;M. Surdeanu;Niranjan Balasubramanian
中科院分区:
文献类型:
--
作者:
Mohaddeseh Bastan;M. Surdeanu;Niranjan Balasubramanian
Text generation often involves producing coherent and grammatically correct texts that also satisfy a given set of semantic constraints. While most approaches for conditional text generation have primarily focused on lexical constraints, they often struggle to effectively incorporate syntactic constraints, which provide a richer language for approximating semantic constraints.We address this gap by introducing NeuroStructural Decoding, a new decoding algorithm that incorporates syntactic constraints to further improve the quality of the generated text. We build NeuroStructural Decoding on the NeuroLogic Decoding (Lu etal. 2021) algorithm, which enables language generation models to produce fluent text while satisfying complex lexical constraints. Our algorithm is powerful and scalable. It tracks lexico-syntactic constraints (e.g., we need to observe dog as subject and ball as object)during decoding by parsing the partial generations at each step. To this end, we adapt a dependency parser to generate parses for incomplete sentences. Our approach is evaluated on three different language generation tasks, and the results show improved performance in both lexical and syntactic metrics compared to previous methods. The results suggest this is a promising solution for integrating fine-grained controllable generation into the conventional beam search decoding.