NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

StructFact: Reasoning Factual Knowledge from Structured Data with Large Language Models

Sirui Huang, Yanggan Gu, Zhonghao Li, Xuming Hu, Qing Li, Guandong Xu

Abstract

While Large Language Models (LLMs) have demonstrated remarkable proficiency in processing unstructured text, their ability to reason over structured data—such as tables, lists, and knowledge graphs—remains a critical frontier. We introduce StructFact, a comprehensive benchmark comprising 13,407 factual queries designed to evaluate LLMs against the unique challenges of structured data, including heterogeneity, topological interdependencies, and order invariance. Our evaluation of ten state-of-the-art models reveals a significant "reasoning gap": models struggle with mixed data types and complex multi-hop queries, often defaulting to memorized patterns rather than robust structural reasoning.

Introduction

Most contemporary LLMs are optimized for serialized data, yet a vast portion of human knowledge is organized structurally. Structured data presents unique hurdles for standard transformer architectures:

  1. Heterogeneity: The integration of disparate data types (e.g., numerical, temporal, and categorical) within a single structure.
  2. Topological Interdependencies: The contextual meaning of data points is derived from their spatial relationships (e.g., row/column headers).
  3. Order Invariance: The factual content should remain constant regardless of row or column permutations.
  4. Sparsity: Handling missing values (N/A) requires external common-sense reasoning.
  5. Lack of Prior Knowledge: Domain-specific structured data often falls outside the model's pre-training corpus.

StructFact addresses the need for a rigorous framework to determine whether LLMs truly reason through these structures or merely recite memorized text.

The StructFact Benchmark

The StructFact benchmark consists of 13,407 queries derived from sources like Wikipedia, FEVEROUS, and TabFact, re-annotated for factual verification. To distinguish between reasoning and memorization, the authors introduced StructFact-Unseen, a subset of data crawled post-training cutoffs.

Overview of the five specialized tasks in the StructFact benchmark.

The benchmark categorizes reasoning into five specialized tasks:

  • Arithmetic Calculation: Performing mathematical operations on tabular values.
  • Geography-Time Reasoning: Aligning spatial locations with temporal data.
  • Multi-hop Reasoning: Synthesizing facts across multiple interconnected sources.
  • Composition Understanding: Navigating complex layouts and missing values.
  • Combining Structural and Unstructural: Integrating tabular data with accompanying text captions.

Key Results and Analysis

Evaluation across ten models, including GPT-4o-mini, LLaMA-3, and Qwen2, highlights several critical insights. GPT-4o-mini emerged as the top performer with an overall F1 score of 67.45%.

The Heterogeneity Hurdle and Reasoning Gap

Models performed most poorly on tasks involving mixed data types, such as Arithmetic and Geography-Time reasoning. As complexity increases, performance drops sharply; for instance, in Multi-hop tasks, a "performance cliff" is observed when queries require connecting more than five data points. Furthermore, while models handle simple numerical matching well, their performance on "Computational Analysis" (e.g., calculating averages) drops by nearly 20%.

Detailed performance analysis across arithmetic, multi-hop, and geography-time reasoning tasks.

Structural Resilience and Memorization

Interestingly, LLMs exhibit high resilience to Order Invariance. Shuffling rows and columns resulted in negligible performance decreases for top-tier models like GPT-4o-mini, suggesting an inherent ability to grasp structural relationships. However, the significant performance drop on the "Unseen" dataset for complex tasks indicates that models still rely heavily on memorized facts for multi-hop reasoning.

The Role of Instruction Tuning and Prompting

The study found that instruction tuning is a more significant predictor of structured reasoning performance than model size alone. Surprisingly, while Chain-of-Thought (CoT) prompting benefits smaller models, it can occasionally degrade performance in highly-tuned models like LLaMA-3-8B-Instruct by over-complicating straightforward look-up tasks.

Conclusion

The StructFact benchmark underscores the limitations of current LLMs in handling the "heterogeneity" of structured data. Future advancements may require the development of structure-aware modules—specialized architectural layers designed to perceive the grid-like nature of tables—and the application of reinforcement learning to mitigate reasoning distortions. Addressing these gaps is essential for deploying LLMs in domain-specific environments where structured data is the primary medium of information.

Summary updated

BibTeX
@inproceedings{huang2025structfact,
  author = {Sirui Huang and Yanggan Gu and Zhonghao Li and Xuming Hu and Qing Li and Guandong Xu},
  title = {{StructFact: Reasoning Factual Knowledge from Structured Data with Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2025},
}
Figure