SuperAPI AI Directory

StructEval

StructEval is a framework for evaluating the ability of language models to generate structured output, supporting rendering and evaluation of generated code. The framework provides a command-line interface that can execute inference, rendering, and evaluation processes, and includes helper scripts to run complete experiments. Its paper was published in Transactions on Machine Learning Research (January 2026).

Open website

About this tool

StructEval is a framework for evaluating the structured output capabilities of language models. Its main purpose is to test how well models generate structured content (such as JSON, Angular, etc.) and to support rendering and evaluation of generated code.

Main capabilities: The framework provides a command-line interface covering three stages: inference, rendering, and evaluation. The inference stage calls a specified language model to generate output; the rendering stage converts renderable output (such as web page code) into images; the evaluation stage uses a vision-language model for visual question answering scoring, or performs key-value validation and raw output metric checks on non-renderable output. Evaluation results include rendering scores, VQA scores, key-value validation scores, raw output evaluation, and a final composite score.

Usage: Install via conda; system dependencies (ghostscript, poppler, nodejs, graphviz, imagemagick) are installed automatically, or can be installed manually. Command-line arguments include --llm_model_name, --llm_engine, --input_path, --output_path, etc. for inference; --img_output_path, --non_renderable_output_dir for rendering; --vlm_model_name, --vlm_engine, --img_path, etc. for evaluation. The repository provides helper scripts run_inference.py and run_evaluation.py, in which the model list and file paths can be edited to configure experiments. The input JSON is an array of task objects, containing fields such as task_id, query, task_name, input_type, output_type, VQA, raw_output_metric, rendering, etc.

Applicable scenarios: Suitable for researchers and developers evaluating the performance of different language models on structured output tasks, especially scenarios that require rendering visual results and performing multi-dimensional scoring.

Limitations: The materials do not provide a specific list of supported models, performance data, or pricing information; before use, the environment and input data format must be configured according to the documentation.