ReFF:在不同任务中增强语言模型的格式忠实度
ReFF: Reinforcing Format Faithfulness in Language Models across Varied Tasks
AI总结:
该研究提出综合性格式基准FormatBench,发现现有大语言模型格式忠实度不足,进而提出ReFF方法,可在无标注或有标注数据场景下有效提升格式忠实度并兼顾通用质量。
摘要:
遵循格式指令生成结构规范的内容是大语言模型(LLM)的一项基础能力,但该能力往往未能达标。为研究这项我们称之为格式忠实度的能力,我们提出了FormatBench——一个综合性的格式相关基准。与以往的格式相关基准相比,FormatBench在应用场景(传统NLP任务、创意写作、自主智能体任务)、人机交互方式(单轮指令、多轮对话)和格式类型(包含性、包裹性、长度、编码)方面涵盖了更多样的任务。此外,FormatBench中的每个任务都配有格式检查程序。在该基准上开展的大量实验表明,当前最先进的开源和闭源大语言模型在格式忠实度上仍存在严重不足。借助格式的可判定特性,我们提出了Reinforce Format Faithfulness(ReFF,增强格式忠实度)方法,帮助大语言模型按照指令生成格式化输出,同时不损害通用质量。在无需任何标注数据的情况下,ReFF可大幅提升格式忠实率(例如在字幕分割任务上,从原始LLaMA3的21.6%提升至95.0%),同时保持通用质量相当(例如F1分数从47.3变为46.4)。结合标注训练数据时,ReFF可同时提升格式忠实度(例如从原始LLaMA3的21.6%提升至75.5%)和通用质量(例如F1分数从47.3提升至61.6)。我们进一步开展了可解释性分析,以说明ReFF如何同时提升格式忠实度与通用质量。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。