[Paper Review] Struc-Bench: Are Large Language Models Really Good at Generating Complex Structured Data?
This paper introduces Struc-Bench, a benchmark to evaluate large language models (LLMs) on generating complex structured data in raw text, HTML, and LaTeX formats. It identifies critical failures in GPT-3.5 and GPT-4—especially in formatting, content accuracy, and reasoning—then proposes a structure-aware fine-tuning method using FormatCoT to improve LLaMA-7B’s adherence to format constraints, significantly outperforming baseline LLMs on both seen and unseen data.
Despite the remarkable capabilities of Large Language Models (LLMs) like GPT-4, producing complex, structured tabular data remains challenging. Our study assesses LLMs' proficiency in structuring tables and introduces a novel fine-tuning method, cognizant of data structures, to bolster their performance. We unveil Struc-Bench, a comprehensive benchmark featuring prominent LLMs (GPT-NeoX-20B, GPT-3.5, GPT-4, and Vicuna), which spans text tables, HTML, and LaTeX formats. Our proposed FormatCoT aids in crafting format-specific instructions from the intended outputs to populate this benchmark. Addressing the gap in task-centered evaluation, we propose two innovative metrics, P-Score (Prompting Score) and H-Score (Heuristical Score), to more accurately gauge LLM performance. Our experiments show that applying our structure-aware fine-tuning to LLaMA-7B leads to substantial performance gains, outshining its LLM counterparts across most measures. In-depth error analysis and creating an ability map across six dimensions -- coverage, formatting, reasoning, comprehension, pragmatics, and hallucination -- highlight areas for future enhancements and suggest forthcoming research trajectories. Our code and models can be found at https://github.com/gersteinlab/Struc-Bench.
Motivation & Objective
- To systematically evaluate the ability of current LLMs to generate complex structured data across multiple formats, including raw text, HTML, and LaTeX.
- To identify specific failure modes in state-of-the-art LLMs such as GPT-3.5 and GPT-4, particularly in formatting, content accuracy, numerical reasoning, and long-table handling.
- To develop a comprehensive benchmark, Struc-Bench, with diverse, real-world structured data examples to enable fine-grained evaluation beyond simple content overlap metrics.
- To propose and validate a structure-aware instruction tuning method using FormatCoT to generate format instructions from target outputs, improving LLM generalization to structured formats.
- To create an ability map across six dimensions—coverage, formatting, reasoning, comprehension, pragmatics, and hallucination—to characterize LLM strengths and weaknesses in structured generation.
Proposed method
- Developed Struc-Bench, a benchmark with curated datasets spanning raw text, HTML, and LaTeX tables, designed to test complex structured output generation.
- Used GPT-3.5 to generate detailed format descriptions (FormatCoT) from target outputs, transforming human-readable format requirements into structured instructions.
- Fine-tuned LLaMA-7B using these format instructions, enabling the model to learn format-specific constraints during training.
- Employed a two-stage evaluation pipeline: automated scoring via GPT-4-based similarity prompts (content and structural similarity on 0–10 scale) and manual error analysis.
- Constructed a multi-dimensional ability map based on error analysis across content coverage, formatting, reasoning, comprehension, pragmatics, and hallucination control.
- Applied zero-shot inference with format and content descriptions as input, ensuring models generate outputs strictly following specified structural templates.

Experimental results
Research questions
- RQ1How well do current LLMs such as GPT-3.5 and GPT-4 perform in generating complex structured data across raw text, HTML, and LaTeX formats?
- RQ2What are the primary failure modes in LLM-generated structured outputs, particularly in formatting, content accuracy, numerical reasoning, and long-table handling?
- RQ3Can structure-aware instruction tuning, using FormatCoT to generate format instructions, significantly improve LLMs’ ability to generate correct structured outputs?
- RQ4How does the performance of fine-tuned LLaMA-7B compare to zero-shot inference on GPT-3.5, GPT-4, and Vicuna across seen and unseen structured data formats?
- RQ5What dimensions of model capability—such as coverage, formatting, reasoning, and hallucination control—most critically limit LLMs in structured data generation?
Key findings
- GPT-3.5 and GPT-4 exhibit significant failure rates in structured generation, with only 3% of outputs from GPT-3.5 being fully correct, primarily due to formatting errors and content inaccuracies.
- The proposed structure-aware fine-tuning method improved LLaMA-7B’s performance on structured data generation, outperforming all evaluated LLMs, including GPT-4, on both seen and unseen data.
- FormatCoT-generated instructions enabled LLaMA-7B to achieve high fidelity in format adherence, demonstrating that model performance can be significantly enhanced through targeted instruction tuning.
- The ability map revealed that LLMs struggle most with formatting reasoning, comprehension of complex inputs, and hallucination control, especially in long tables and numerical reasoning tasks.
- Content similarity scores averaged 5.2 and structural similarity scores 4.8 across GPT-3.5 and GPT-4 outputs, indicating substantial deviations from ground truth in both content and structure.
- The benchmark identified that existing evaluation metrics relying on word overlap are insufficient for structured data, as they fail to capture format-level errors and structural inconsistencies.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.