用于在不访问 Logit 的情况下提升黑盒大型语言模型的草图引导约束解码
Sketch-Guided Constrained Decoding for Boosting Blackbox Large Language Models without Logit Access
AI总结:
本文提出草图引导约束解码(SGCD),通过本地辅助模型精炼无约束黑盒 LLM 的初始输出,在无需访问 logits 的情况下实现约束解码,提升黑盒 LLMs 在复杂 NLP 任务中的效用与灵活性。
摘要:
约束解码是一种对语言模型输出施加约束的技术,提供了一种无需重新训练或修改架构即可控制文本生成的方法。然而,其应用通常局限于允许用户访问下一 token 分布(通常通过 softmax logits)的模型,这在黑盒大型语言模型(LLMs)场景下构成了限制。本文提出了草图引导约束解码(SGCD),一种面向黑盒 LLMs 的约束解码新方法,无需访问黑盒 LLM 的 logits 即可运行。SGCD 利用本地托管的辅助模型来精炼无约束黑盒 LLM 的输出,有效地将此初始输出视为进一步推敲的“草图”。该方法是对传统基于 logit 技术的补充,使得在缺乏完全模型透明性的环境中也能应用约束解码。我们通过在封闭信息抽取和选区解析中的实验展示了 SGCD 的有效性,表明了它如何增强黑盒 LLMs 在复杂 NLP 任务中的效用与灵活性。
英文摘要:
Constrained decoding, a technique for enforcing constraints on language model outputs, offers a way to control text generation without retraining or architectural modifications. Its application is, however, typically restricted to models that give users access to next-token distributions (usually via softmax logits), which poses a limitation with blackbox large language models (LLMs). This paper introduces sketch-guided constrained decoding (SGCD), a novel approach to constrained decoding for blackbox LLMs, which operates without access to the logits of the blackbox LLM. SGCD utilizes a locally hosted auxiliary model to refine the output of an unconstrained blackbox LLM, effectively treating this initial output as a "sketch" for further elaboration. This approach is complementary to traditional logit-based techniques and enables the application of constrained decoding in settings where full model transparency is unavailable. We demonstrate the efficacy of SGCD through experiments in closed information extraction and constituency parsing, showing how it enhances the utility and flexibility of blackbox LLMs for complex NLP tasks.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。