arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2604.14862cs.CLcs.AI
收藏

模式键作为在受限解码下的指令通道在结构生成中的应用

Schema-Key Wording as an Instruction Channel in Structured Generation under Constrained Decoding

Zhejiang University(浙江大学)

Yifan Le

AI总结:

本文探讨了在受限解码中模式键作为隐式指令通道的作用,提出结构生成是多通道指令问题,并通过实验展示模式键词汇对准确性的影响,揭示了不同模型对不同通道的依赖性。

摘要:

受限解码被广泛用于使大语言模型生成满足如JSON等模式的结构化输出。现有研究主要将模式视为结构性约束,忽视了模式键标记也进入自回归上下文并可能引导生成。本文首次系统研究了在受限解码下模式键作为隐式指令通道的问题。我们将结构生成视为多通道指令问题,其中任务信号可以放置在提示、模式键或两者。我们进一步提供了一种投影感知分析:一种CoT风格的键只有在语义增益超过由语法约束投影引起的失真时才有效,为模型依赖的键效应提供了理论解释。在数学推理基准上的实验表明,仅改变模式键词汇可以显著影响准确性,同时保持提示、模型、输出结构和解码设置不变。Qwen模型更受益于模式级指令,而LLaMA模型更依赖于提示级指导,且两个通道非加性交互。我们的发现表明,模式设计不仅仅是输出格式,而是结构生成中指令规范的一部分。

英文摘要:

Constrained decoding is widely used to make large language models produce structured outputs that satisfy schemas such as JSON. Existing work mainly treats schemas as structural constraints, overlooking that schema-key tokens also enter the autoregressive context and may guide generation. To the best of our knowledge, we present the first systematic study of schema keys as an implicit instruction channel under constrained decoding. We formulate structured generation as a multi-channel instruction problem, where task signals can be placed in prompts, schema keys, or both. We further provide a projection-aware analysis that gives a sufficient condition under which an unconstrained expected-score advantage of an instructional key is preserved after grammar projection. Experiments on GSM8K and Math500 across seven language models show that changing only schema-key wording can substantially affect accuracy, with both positive and negative effects across models. Prompt-level and schema-level instructions also interact non-additively. The evidence is substantially stronger on GSM8K than on Math500. Our findings show that schema design is not merely output formatting, but part of instruction specification in structured generation.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑