mlsanityData to 7 Oct 2026

LatentMD: Benchmarking Markdown Boundary Failures in LLM-Generated Text

arXiv 2609.06993 ↗First posted 7 Sep 2026cs.SE cs.CL cs.LGcited by 0

Not on the map. Why?

Abstract (arXiv)

Large language models (LLMs) increasingly generate Markdown that is consumed by renderers, agents, code extractors, and structured downstream pipelines. Yet existing evaluations often conflate content quality with format adherence, leaving Markdown boundary failures under-measured. We introduce LatentMD, a benchmark and evaluation protocol for diagnosing CommonMark-level fence-boundary failures in LLM-generated Markdown. LatentMD separates content correctness from boundary correctness, enabling detection of outputs that are content-correct but boundary-broken. The benchmark contains 4,179 prompts and a CLI for scoring arbitrary model outputs. Across 9 LLMs and roughly 37,600 generations, we find that Markdown boundary failures are widespread: 38.0% of valid main-grid outputs are content-correct but boundary-broken, with substantial boundary breakage under unspecified prompts and in a small human-authored validation set. Ablations show that failures are driven primarily by same-family symmetric-delimiter collisions rather than nesting alone, are only partially mitigated by prompt hints, and generalize to Python triple-quote docstrings while JSON remains robust as an asymmetric-delimiter control. LatentMD provides a reproducible diagnostic target for parser-sensitive LLM evaluation.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 14 of its 24 references that are in the map. First posted on arXiv 7 Sep 2026.

Builds on

14 of 24 references.

References · 14

  1. 2023Instruction-Following Evaluation for Large Language Modelscited by 1,143
  2. 2024WildChat: 1M ChatGPT Interaction Logs in the Wildcited by 598
  3. 2023LMSYS-Chat-1M: A Large-Scale Real-World LLM Conversation Datasetcited by 449
  4. 2022Neural Networks and the Chomsky Hierarchycited by 214
  5. 2023FollowBench: A Multi-level Fine-grained Constraints Following Benchmark for Large Language Modelscited by 112
  6. 2022Can Large Language Models Truly Understand Prompts? A Case Study with Negated Promptscited by 56
  7. 2024McEval: Massively Multilingual Code Evaluationcited by 42
  8. 2024HtmlRAG: HTML is Better Than Plain Text for Modeling Retrieved Knowledge in RAG Systemscited by 37
  9. 2024LLMs Are Biased Towards Output Formats! Systematically Evaluating and Mitigating Output Format Bias of LLMscited by 24
  10. 2025StructEval: Benchmarking LLMs' Capabilities to Generate Structural Outputscited by 23
  11. 2025MDEval: Evaluating and Enhancing Markdown Awareness in Large Language Modelscited by 7
  12. 2025STED and Consistency Scoring: A Framework for Evaluating LLM Structured Output Reliabilitycited by 5
2 more
  1. 2024StructTest: Benchmarking LLMs' Reasoning through Compositional Structured Outputscited by 3
  2. 2026FMBench: Adaptive Large Language Model Output Formattingcited by 1

Built on by

Not cited yet.