Skip to main content
QUICK REVIEW

[论文解读] FMBench: Adaptive Large Language Model Output Formatting

Yaoting Wang, Yun Zhou|arXiv (Cornell University)|Feb 6, 2026
Software Engineering ResearchComputer Science被引用 0
一句话总结

FMBench 引入一个以 Markdown 为焦点的基准,用于自适应输出格式,并提出一个后训练流水线(SFT 接着 RL,具可验证的奖励)以在 OpenPangu 与 Qwen 模型中共同提升语义保真度与结构合规性。

ABSTRACT

Producing outputs that satisfy both semantic intent and format constraints is essential for deploying large language models in user-facing and system-integrated workflows. In this work, we focus on Markdown formatting, which is ubiquitous in assistants, documentation, and tool-augmented pipelines but still prone to subtle, hard-to-detect errors (e.g., broken lists, malformed tables, inconsistent headings, and invalid code blocks) that can significantly degrade downstream usability. We present FMBench, a benchmark for adaptive Markdown output formatting that evaluates models under a wide range of instruction-following scenarios with diverse structural requirements. FMBench emphasizes real-world formatting behaviors such as multi-level organization, mixed content (natural language interleaved with lists/tables/code), and strict adherence to user-specified layout constraints. To improve Markdown compliance without relying on hard decoding constraints, we propose a lightweight alignment pipeline that combines supervised fine-tuning (SFT) with reinforcement learning fine-tuning. Starting from a base model, we first perform SFT on instruction-response pairs, and then optimize a composite objective that balances semantic fidelity with structural correctness. Experiments on two model families (OpenPangu and Qwen) show that SFT consistently improves semantic alignment, while reinforcement learning provides additional gains in robustness to challenging Markdown instructions when initialized from a strong SFT policy. Our results also reveal an inherent trade-off between semantic and structural objectives, highlighting the importance of carefully designed rewards for reliable formatted generation. Code is available at: https://github.com/FudanCVL/FMBench.

研究动机与目标

  • 推动对 LLM 输出中可靠 Markdown 格式的需求,并识别现有基准的空缺。
  • 创建一个以 Markdown 为中心的基准(FMBench),在现实格式约束下评估语义保真度与结构合规性。
  • 提出一个轻量级对齐流水线,结合监督微调(SFT)与强化学习微调(RLFT),在推理阶段不使用硬性约束的情况下平衡内容与格式。
  • 在模型族(OpenPangu 与 Qwen)上展示该方法并分析语义目标与结构目标之间的权衡。

提出的方法

  • 开发一个半自动化数据管道,以生成在结构难度上有所差异且保持内容的 Markdown 文档.
  • 使用两阶段训练方案:基于 LoRA 的监督微调(SFT)随后进行带有可验证奖励的 GRPO 强化学习微调(RLFT)。
  • 将语义奖励定义为生成输出与参考输出之间的 BERTScore-F1。
  • 通过比较生成文档与参考文档的概要来定义结构奖励,以鼓励话语层面的对齐。
  • 在 1,100 文档的 FMBench 划分上使用语义与结构指标进行评估(800 训练,300 测试)。
  • 在 OpenPangu(1B、7B)和 Qwen3(1.7B、8B)上进行训练,使用固定的解码设置;报告带有预训练模型与 SFT+GRPO 的结果对比。
Figure 1: Overview of a four-stage pipeline for converting raw documents into structured data. (1) Document Crawling: Documents are collected from multiple domains, including academic, official, technical, legal, business, and educational sources. (2) Document Cleaning: Documents are cleaned and sta
Figure 1: Overview of a four-stage pipeline for converting raw documents into structured data. (1) Document Crawling: Documents are collected from multiple domains, including academic, official, technical, legal, business, and educational sources. (2) Document Cleaning: Documents are cleaned and sta

实验结果

研究问题

  • RQ1一个以 Markdown 为焦点的基准是否能够单独诊断 LLM 输出中的格式相关失败?
  • RQ2结合可验证奖励的 SFT 与 RL 的后训练流水线是否能同时提升 Markdown 输出的语义保真度与结构合规性?
  • RQ3模型规模与架构如何影响格式化生成中的语义与结构目标之间的平衡?
  • RQ4SFT 与 GRPO 对不同 Markdown 结构的格式鲁棒性有什么影响?
  • RQ5在自适应格式化系统中,内容准确性与格式化刚性之间会出现怎样的权衡?

主要发现

  • SFT 在不同模型家族与规模上持续提升语义保真度。
  • 在有强大 SFT 策略的前提下,GRPO 进一步提升或保持结构合规性。
  • 较大模型(如 Qwen3-8B)在 SFT+GRPO 流水线下达到最佳的语义与结构性能。
  • 在奖励设计与模型容量的影响下,存在语义目标与结构目标之间的固有权衡。
  • 在所有模型中,SFT 是推动语义改进的主要驱动力,而 GRPO 作为互补组件增强了结构鲁棒性。
Figure 2: Distribution of key structural parameters in the FMBench dataset. The figure shows the marginal distributions of four core structural variables: section count, nested list depth, number of list items, and blockquote count, computed over the combined training and test sets. The distribution
Figure 2: Distribution of key structural parameters in the FMBench dataset. The figure shows the marginal distributions of four core structural variables: section count, nested list depth, number of list items, and blockquote count, computed over the combined training and test sets. The distribution

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。