Skip to main content
QUICK REVIEW

[논문 리뷰] FMBench: Adaptive Large Language Model Output Formatting

Yaoting Wang, Yun Zhou|arXiv (Cornell University)|2026. 02. 06.
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) 간의 접근 방식 적용을 통해 의미적 목표와 구조적 목표 간의 트레이드오프를 분석한다.

제안 방법

  • 구조적 난이도가 varying한 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

실험 결과

연구 질문

  • RQ1Markdown 중심 벤치마크가 LLM 출력의 형식 관련 실패를 분리하고 진단할 수 있는가?
  • RQ2SFT와 검증 가능한 보상을 갖춘 RL이 결합된 사후 학습 파이프라인이 Markdown 출력의 의미적 충실도와 구조적 준수 모두를 개선하는가?
  • RQ3모델 규모와 아키텍처가 형식화된 생성에서 의미적 목표와 구조적 목표 간의 균형에 어떤 영향을 미치는가?
  • RQ4다양한 Markdown 구조에서 SFT와 GRPO가 형식 강건성에 미치는 영향은 무엇인가?
  • RQ5적응형 형식 시스템에서 콘텐츠 정확성과 형식 강직성 간의 트레이드오프는 어떻게 나타나는가?

주요 결과

  • SFT는 모델 계열과 규모에 걸쳐 의미적 충실도를 일관되게 향상시킨다.
  • 강화 학습 보조인 GRPO는 강력한 SFT 정책에서 시작할 때 구조적 준수를 추가로 향상시키거나 보존한다.
  • 더 큰 모델(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

이 논문 읽기

누빈트 뷰어에서 원문을 열고, 읽으면서 궁금한 곳을 바로 물어보세요.

누빈트에서 이 논문 읽기

이 리뷰는 AI가 논문 원문을 바탕으로 만들었습니다. 인용하기 전에 원문을 확인해 주세요.