交织约束规划与自然语言处理:不合理约束句子的生成
Intertwining CP and NLP: The Generation of Unreasonably Constrained Sentences
AI总结:
本文提出CPTextGen框架,将约束文本生成建模为离散组合优化问题,结合约束规划与语言属性,并通过LLM按困惑度筛选,成功生成了符合RADNER严格规则的新句子,展示了处理不合理约束文本生成的能力。
摘要:
约束文本生成仍然是一项具有挑战性的任务,尤其是在处理硬约束时。传统的自然语言处理方法优先考虑生成有意义且连贯的输出。此外,当前最先进的方法通常缺乏表达能力和约束满足能力,难以有效处理此类任务。最近,Bonlarron等人(2023)提出了一种在约束规划(CP)中生成约束句子的方法。然而,这种用于解决MNREAD规则下句子生成问题的专用模型在计算上和结构上被证明不适合处理其他更具约束性的问题。本文引入了一种新颖的、更具通用性的方法,以解决许多此前难以处理的问题,并在此以遵循RADNER规则的、相当难以处理的句子生成问题为例进行说明。更具体地说,本文提出了CPTextGen框架。该框架将约束文本生成问题视为离散组合优化问题,并通过约束规划方法求解,该方法将语言属性(例如n-gram或语言水平)与其他更经典的约束(例如字符数、音节数)相结合。最后,一个筛选阶段允许使用大语言模型(LLM)根据困惑度选择最佳生成的句子。通过解决一个新的、约束更为繁琐的文本生成问题——标志性的RADNER句子问题,证明了该方法的有效性。该问题旨在生成遵守一组相当严格规则的句子,这些规则由其在视觉和临床研究中的用途所定义。得益于我们基于约束规划的方法,成功生成了许多新的强约束句子。这凸显了我们的方法在处理不合理约束文本生成场景方面的潜力。
英文摘要:
Constrained text generation remains a challenging task, particularly when dealing with hard constraints. Traditional NLP approaches prioritize generating meaningful and coherent output. Also, the current state-of-the-art methods often lack the expressiveness and constraint satisfaction capabilities to handle such tasks effectively. Recently, an approach for generating constrained sentences in CP has been proposed in (Bonlarron et al, 2023). This ad-hoc model to solve the sentences generation problem under MNREAD rules proved neithertheless to be computationaly and structuraly unsuitable to deal with other more constrained problems. In this paper, a novel more generic approach is introduced to tackle many of these previously untractable problems, and illustrated here with the quite untractable sentences generation problem following RADNER rules. More precisely, this paper presents the CPTextGen Framework. This framework considers a constrained text generation problem as a discrete combinatorial optimization problem. It is solved by a constraint programming method that combines linguistic properties (e.g., n-grams or language level) with other more classical constraints (e.g., the number of characters, syllables). Eventually, a curation phase allows for selecting the best-generated sentences according to perplexity using an LLM. The effectiveness of this approach is demonstrated by tackling a new, more tediously constrained text generation problem: the iconic RADNER sentences problem. This problem aims to generate sentences respecting a set of quite strict rules defined by their use in vision and clinical research. Thanks to our CP-based approach, many new strongly constrained sentences have been successfully generated. This highlights our approach's potential to handle unreasonably constrained text generation scenarios.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。