arXiv:2510.03595cs.CL2025-10ACL被引 8

让大模型先解题再排版,提升复杂任务准确率

Decoupling Task-Solving and Output Formatting in LLM Generation

  • 分离解题与格式要求,由专门模块预测排版合规性
  • 在数学推理等任务上实现100%格式合规且准确率提升
  • 适合需要严格输出格式的自动化评估、数据抽取场景

大型语言模型在解决复杂问题(如数学推理和自动评估)方面能力不断增强,但当提示中混入严格的格式要求时,性能常会下降。这种耦合导致模型在任务求解与格式遵循之间产生冲突。为此,我们提出Deco-G解码框架,将格式遵守与问题求解显式解耦。Deco-G通过一个独立的格式估计模块(FEM)进行概率前瞻,预测未来格式合规率并重加权词元概率,使LLM可专注任务求解。为兼顾实用性与效率,我们引入三项关键创新:指令感知蒸馏、灵活的trie构建算法和HMM状态剪枝。在数学推理、事件论元抽取和大模型作为裁判等任务上的实验表明,Deco-G持续优于提示工程或结构化生成基线方法,且保证格式合规。代码已开源:https://github.com/haikangdeng/deco-g。

原文摘要 · Abstract (English)

Large language models (LLMs) are increasingly adept at solving complex problems, such as mathematical reasoning and automatic evaluation. However, performance often degrades when prompts intertwine task instructions with rigid formatting requirements. This entanglement creates competing goals for the model, hindering its reasoning capabilities. To address this, we introduce Deco-G, a decoding framework that explicitly decouples format adherence from problem solving. Deco-G delegates format adherence to a separate Format Estimation Module (FEM), which performs probabilistic lookahead to estimate future format compliance rate and reweighs token probabilities, allowing the LLM to focus solely on task resolution. To make this approach both practical and efficient, we introduce three key innovations: instruction-aware distillation, a flexible trie-building algorithm, and HMM state pruning. Experiments across mathematical reasoning, event argument extraction, and LLM-as-a-judge demonstrate that Deco-G constantly gains over prompting or structured generation baselines, with guaranteed format compliance. We release our code at https://github.com/haikangdeng/deco-g.

大模型解码格式合规推理增强

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。