mlsanityData to 14 Oct 2026

STED and Consistency Scoring: A Framework for Evaluating LLM Structured Output Reliability

arXiv 2512.23712 ↗First posted 27 Nov 2025cs.CL cs.AIcited by 5

Not on the map. Why?

Abstract (arXiv)

Large Language Models (LLMs) are increasingly deployed for structured data generation, yet output consistency remains critical for production applications. We introduce a comprehensive framework for evaluating and improving consistency in LLM-generated structured outputs. Our approach combines: (1) STED (Semantic Tree Edit Distance), a novel similarity metric balancing semantic flexibility with structural strictness when comparing JSON outputs, and (2) a consistency scoring framework aggregating multiple STED measurements across repeated generations to quantify reliability. Through systematic experiments on synthetic datasets with controlled schema, expression, and semantic variations, we demonstrate STED achieves superior performance (0.86-0.90 similarity for semantic equivalents, 0.0 for structural breaks) compared to existing metrics including TED, BERTScore, and DeepDiff. Applying our framework to benchmark six LLMs reveals significant variations: Claude-3.7-Sonnet demonstrates exceptional consistency, maintaining near-perfect structural reliability even at high temperatures (T=0.9), while models like Claude-3-Haiku and Nova-Pro exhibit substantial degradation requiring careful tuning. Our framework enables practical applications including targeted model selection for structured tasks, iterative prompt refinement for reproducible results, and diagnostic analysis to identify inconsistency root causes. This work provides theoretical foundations and practical tools for ensuring reliable structured output generation in LLM-based production systems.

Key facts. Cited by 5 papers in the map (data through 14 Oct 2026). Builds on 27 of its 52 references that are in the map. First posted on arXiv 27 Nov 2025.

Builds on

27 of 52 references.

References · 27

  1. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,399
  2. 2019Sentence-BERT: Sentence Embeddings using Siamese BERT-Networkscited by 9,170
  3. 2017Graph Attention Networkscited by 8,923
  4. 2017Inductive Representation Learning on Large Graphscited by 6,320
  5. 2019BERTScore: Evaluating Text Generation with BERTcited by 5,512
  6. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,592
  7. 2021SimCSE: Simple Contrastive Learning of Sentence Embeddingscited by 2,173
  8. 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,310
  9. 2020GraphCodeBERT: Pre-training Code Representations with Data Flowcited by 609
  10. 2021Measuring and Improving Consistency in Pretrained Language Modelscited by 364
  11. 2015Improved Semantic Representations From Tree-Structured Long Short-Term Memory Networkscited by 306
  12. 2024The Effect of Sampling Temperature on Problem Solving in Large Language Modelscited by 170
15 more
  1. 2021GraphFormers: GNN-nested Transformers for Representation Learning on Textual Graphcited by 143
  2. 2024Non-Determinism of "Deterministic" LLM Settingscited by 92
  3. 2022Measuring Reliability of Large Language Models through Semantic Consistencycited by 38
  4. 2025StructEval: Benchmarking LLMs' Capabilities to Generate Structural Outputscited by 25
  5. 2024StructuredRAG: JSON Response Formatting with Large Language Modelscited by 22
  6. 2025SLOT: Structuring the Output of Large Language Modelscited by 18
  7. 2025Verifiable Format Control for Large Language Model Generationscited by 17
  8. 2024Graph Edit Distance with General Costs Using Neural Set Divergencecited by 11
  9. 2020An Overview of Distance and Similarity Functions for Structured Datacited by 10
  10. 2025Prompt Stability Matters: Evaluating and Optimizing Auto-Generated Prompt in General-Purpose Systemscited by 10
  11. 2018Revisiting the tree edit distance and its backtracing: A tutorialcited by 8
  12. 2025Estimating LLM Consistency: A User Baseline vs Surrogate Metricscited by 8
  13. 2018Tree Edit Distance Learning via Adaptive Symbol Embeddingscited by 4
  14. 2025Automated Consistency Analysis of LLMscited by 4
  15. 2020The Online Min-Sum Set Cover Problemcited by 3

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 5.

5 papers.