arXiv:2608.25358cs.AIAug 2026

Manuscript Offprint

arXiv:2608.25358

Where vs What: Decomposing Structural and Content Failures in LLM-Generated Structured Outputs

Yiwei Zhang, Chengke Wu, Li Wang, Jianqiang Li

Abstract

Structured outputs such as JSON and tables are central to modern LLM-based systems, yet generation failures are evaluated monolithically, conflating two distinct error modes: placement errors (correct values at wrong positions) and value errors (wrong values at intended positions). We introduce Structure-Content Decomposition (SCD), a framework that independently measures structural fidelity and content accuracy. Applying SCD to nested JSON and table tasks across six models (7B to frontier), we uncover a consistent phenomenon: structural fidelity degrades earlier and more sharply than content accuracy as complexity increases. At the highest complexity, even DeepSeek-V4-Flash (with reasoning) misplaces 35% of recalled values, while Qwen2.5-7B misplaces 74%. Controlled ablations suggest that this pattern is associated with reliance on semantic shortcuts rather than topological understanding of output structure. Based on these findings, we propose SA-RLVR, converting SCD metrics into verifiable rewards for reinforcement learning via GRPO. SA-RLVR successfully optimizes structural addressing across distinct topologies: it lifts JSON Value Placement Accuracy (VPA) from 26% to 63% while generalizing to held-out schemas; moreover, it consistently drives VPA improvements in the table domain, demonstrating that structure-aware rewards can directly enhance multi-domain structural positioning.

1 Introduction

Large language models (LLMs), workflows, and autonomous agents increasingly rely on structured outputs such as JSON objects and tables, where both value correctness and structural placement are critical (Geng et al., 2025; Qin et al., 2024; Schick et al., 2023; Yao et al., 2023; Patil et al., 2024).

Consider an LLM generating a billing record: it correctly preserves the zip code 10001 and the city New York, but places the two values under

Task Input (JSON)

Model Output (JSON)

Figure

Planted Values -- Designated Paths

✓ All 4 values present

Task Input (Table)

× 3 of 4 placed at wrong paths

Model Output (Table)

✓ All 4 values present

Figure 1: An illustration of the “right value, wrong position” failure in structured generation. The LLM correctly recalls all planted values but places them at wrong structural positions. Top: JSON domain: values swap between sibling paths. Bottom: Table domain: values migrate to wrong row-column coordinates. Existing holistic metrics cannot detect this failure mode.

the wrong JSON paths. Although the required values appear in the output, the resulting structure becomes semantically invalid, potentially corrupting downstream execution. Such failures reveal that structured generation requires not only knowing what values to produce or preserve, but also understanding where they belong (Figure 1).

Despite their practical importance, existing evaluations treat structured generation failures monolithically. JSONSchemaBench evaluates schema conformance as a binary check (Geng et al., 2025); BFCL reports exact-match accuracy on function calls (Patil et al., 2025); SWE-bench measures end-to-end task success (Jimenez et al., 2024); text-to-SQL benchmarks rely on execution accuracy (Yu et al., 2018; Li et al., 2023a). When an output fails, these metrics cannot distinguish whether the model produces incorrect values or misplaces otherwise correct values. This distinction is crucial because the two failure modes imply fundamentally different underlying deficiencies and require different interventions.

We hypothesize and later show that this “correct value, wrong position” failure becomes increasingly prominent as structural complexity grows.

To address this gap, we propose Structure-Content Decomposition (SCD), a three-level evaluation framework that independently measures structural fidelity and content accuracy. Applying SCD to nested JSON (tree-structured addressing) and table tasks (grid-structured addressing) across six models ranging from 7B-scale to full-scale models, we uncover a consistent and previously undocumented phenomenon: structural fidelity degrades earlier and faster than content accuracy.

At the highest complexity level, strong frontier-scale models still misplace roughly one quarter or more of correctly recalled values, while smaller models can misplace nearly three in four. Further controlled ablations suggest that these failures are associated with models' reliance on semantic shortcuts (Geirhos et al., 2020) rather than robust topological addressing, consistent with known positional biases in long-context reasoning (Liu et al., 2024).

These findings suggest that structural addressing should be treated as an independently optimizable capability rather than a byproduct of value generation. We therefore propose SA-RLVR, which transforms SCD's decomposed metrics into verifiable reward signals for GRPO-based online reinforcement learning (Shao et al., 2024; DeepSeek-AI et al., 2025), directly optimizing structural addressing behavior.

Our contributions are as follows:

• We introduce SCD, a decomposed evaluation framework that separates structural and value-level failures in LLM-generated structured outputs, revealing failure modes collapsed by existing monolithic evaluations.

• We identify the “structure degrades first” pattern, a consistent phenomenon across two topologies, two task paradigms, and six models, and provide evidence that semantic shortcuts contribute to this failure mode through controlled ablations.

• We propose SA-RLVR, which converts SCD metrics into verifiable rewards for GRPO. It improves JSON Value Placement Accuracy from 0.26 to 0.63 with strong cross-schema generalization, versus only 0.28 for a matched SFT baseline.