arXiv:2412.09173cs.CL2024-12中稿 · AAAI被引 8

提升大模型生成内容的格式忠实度,无需标注数据即可显著改进输出结构。

ReFF: Reinforcing Format Faithfulness in Language Models across Varied Tasks

  • 利用可判定的格式特性设计无监督强化机制,自动修正输出格式。
  • 在无标注数据下将格式正确率从21.6%提升至95.0%,保持质量稳定。
  • 适用于需精准输出结构的任务,如写作、编程、多轮交互等场景。

遵循格式指令生成结构化内容是大语言模型的基本能力,但常未能实现。为此,我们提出FormatBench,一个涵盖多种应用场景(传统NLP、创意写作、自主代理任务)、交互模式(单轮指令、多轮对话)和格式类型(包含、包裹、长度、编码)的综合性基准。每个任务配备格式检查程序。实验表明,当前主流开源与闭源模型在格式忠实度上仍存在严重缺陷。基于格式的可判定性,我们提出ReFF方法,在不依赖标注数据的情况下,显著提升格式忠实度(如原始LLaMA3在字幕分段任务中从21.6%提升至95.0%),同时保持通用质量不变(F1从47.3降至46.4)。结合标注数据时,可同时提升格式忠实度(至75.5%)和通用质量(F1达61.6)。我们进一步提供可解释性分析,揭示其双重优化机制。

原文摘要 · Abstract (English)

Following formatting instructions to generate well-structured content is a fundamental yet often unmet capability for large language models (LLMs). To study this capability, which we refer to as format faithfulness, we present FormatBench, a comprehensive format-related benchmark. Compared to previous format-related benchmarks, FormatBench involves a greater variety of tasks in terms of application scenes (traditional NLP tasks, creative works, autonomous agency tasks), human-LLM interaction styles (single-turn instruction, multi-turn chat), and format types (inclusion, wrapping, length, coding). Moreover, each task in FormatBench is attached with a format checker program. Extensive experiments on the benchmark reveal that state-of-the-art open- and closed-source LLMs still suffer from severe deficiency in format faithfulness. By virtue of the decidable nature of formats, we propose to Reinforce Format Faithfulness (ReFF) to help LLMs generate formatted output as instructed without compromising general quality. Without any annotated data, ReFF can substantially improve the format faithfulness rate (e.g., from 21.6% in original LLaMA3 to 95.0% on caption segmentation task), while keep the general quality comparable (e.g., from 47.3 to 46.4 in F1 scores). Combined with labeled training data, ReFF can simultaneously improve both format faithfulness (e.g., from 21.6% in original LLaMA3 to 75.5%) and general quality (e.g., from 47.3 to 61.6 in F1 scores). We further offer an interpretability analysis to explain how ReFF improves both format faithfulness and general quality.

格式忠实大模型无监督学习生成质量

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