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

精选理由

Read this paper if you're interested in understanding how to measure and improve the structural accuracy of LLM-generated structured outputs. It introduces a new framework and a method that could lead to better AI applications.

AI 摘要

This paper introduces Structure-Content Decomposition (SCD) to independently measure structural fidelity and content accuracy in LLM-generated structured outputs. Applying SCD to six models, it finds that structural fidelity degrades earlier than content accuracy. SA-RLVR, a proposed method, improves JSON Value Placement Accuracy (VPA) from 26% to 63% and enhances multi-domain structural positioning.

原文 · arXiv: DeepSeek

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.