通过分治法控制大语言模型
Control Large Language Models via Divide and Conquer
AI总结:
针对大语言模型基于提示控制的词汇约束生成存在位置偏差等三大局限,提出对白盒和黑盒模型均有效的分治生成策略,在最难任务上成功率提升超90%,为定制化文本生成提供路径。
摘要:
本文研究基于提示控制的大语言模型(LLMs)可控生成,聚焦词汇约束生成(Lexically Constrained Generation, LCG)。我们系统评估了LLMs在基于提示控制下满足词汇约束的性能,以及它们在下游应用中的效果。研究得出结论:LLMs在通过基于提示的控制持续满足词汇约束方面面临显著挑战。我们明确了LLMs用于LCG的三大关键局限:(1)位置偏差,即LLMs倾向于满足输入中特定位置出现的约束;(2)对解码参数响应度低,解码参数对LLMs的控制影响极小;(3)难以处理某些约束的固有复杂性(例如复合词)。为解决这些问题,我们提出了一种分治生成策略,该策略对白盒和黑盒LLMs均有效,可提升LLMs在LCG任务中的性能,在最具挑战性的LCG任务上,成功率提升超过90%。我们的分析为理解基于提示控制下LLMs在LCG中的表现提供了宝贵见解,所提出的策略为实现更精细、更定制化的文本生成应用提供了可行路径。
英文摘要:
This paper investigates controllable generation for large language models (LLMs) with prompt-based control, focusing on Lexically Constrained Generation (LCG). We systematically evaluate the performance of LLMs on satisfying lexical constraints with prompt-based control, as well as their efficacy in downstream applications. We conclude that LLMs face significant challenges in consistently satisfying lexical constraints with prompt-based control. We identified three key limitations of LLMs for LCG, including (1) position bias, where LLMs tend to satisfy constraints that appear in specific positions within the input; (2) low responsiveness to decoding parameters, which render minimal impact on control of LLMs; and (3) struggle with handling the inherent complexity of certain constraints (e.g., compound words). To address these issues, we introduce a Divide and Conquer Generation strategy, effective for both white-box and black-box LLMs, to enhance LLMs performance in LCG tasks, which demonstrates over 90% improvement on success rate in the most challenging LCG task. Our analysis provides valuable insights into the performance of LLMs in LCG with prompt-based control, and our proposed strategy offers a pathway to more sophisticated and customized text generation applications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。