FMBench: Adaptive Large Language Model Output Formatting
Yaoting Wang, Yun Zhou, Henghui Ding

TL;DR
FMBench introduces a benchmark and a training pipeline to improve large language models' ability to generate correctly formatted Markdown outputs, balancing semantic accuracy and structural correctness.
Contribution
This work presents FMBench, a new benchmark for evaluating Markdown formatting in language models, and a combined supervised and reinforcement learning approach to enhance output quality.
Findings
SFT improves semantic alignment across models.
Reinforcement learning enhances robustness to complex Markdown instructions.
Trade-off observed between semantic fidelity and structural correctness.
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Model-Driven Software Engineering Techniques · Scientific Computing and Data Management
