Knowledge Crosswords: Geometric Reasoning over Structured Knowledge with Large Language Models

Wenxuan Ding, Shangbin Feng, Yuhan Liu, Zhaoxuan Tan, Vidhisha Balachandran, Tianxing He, Yulia Tsvetkov · DOI

Introduction

Large Language Models (LLMs) have demonstrated remarkable capabilities in retrieving individual facts and following linear reasoning chains. However, real-world knowledge is rarely structured as a simple list or a straight line; it exists as a complex web of interconnected factual constraints. This paper identifies a significant gap in current LLM capabilities termed geometric reasoning—the ability to solve networks of overlapping factual constraints. To address this, the authors introduce the KNOWLEDGE CROSSWORDS benchmark and propose novel prompting strategies, including VERIFY-ALL, to improve performance on these non-linear tasks.

The Geometric Reasoning Gap

Most existing evaluations for LLMs focus on "atomic" knowledge (single-hop retrieval) or "linear" multi-hop reasoning (sequential chains). Geometric reasoning, by contrast, requires satisfying multiple intersections simultaneously, much like a crossword puzzle.

Comparison of atomic, linear, and geometric reasoning tasks.

Current LLMs often struggle with these tasks because they typically reason in a "left-to-right" fashion. If a model makes a plausible but incorrect choice early in its reasoning process, it often lacks the internal mechanism to backtrack when that choice contradicts a later constraint in the network.

The KNOWLEDGE CROSSWORDS Benchmark

To evaluate this capability, the researchers developed the KNOWLEDGE CROSSWORDS benchmark using the YAGO encyclopedic knowledge graph.

  • Scale: The benchmark includes 2,101 problems categorized into Easy, Medium, and Hard difficulty levels.
  • Structure: Each problem presents an incomplete fact network (a "question graph") where the model must fill in missing nodes from a set of multiple-choice options.
  • Evaluation Settings: Models are tested both with and without external knowledge. The "w/ knowledge" setting provides a noisy text snippet containing the relevant facts, isolating the model's reasoning ability from its internal knowledge storage.

To increase difficulty, the benchmark employs Negative Sampling. Distractors are designed as "near-misses" that might satisfy one constraint (like entity type) but fail the global network requirements.

Proposed Methods: Staged Prompting and Verify-All

The paper evaluates standard techniques like Chain-of-Thought (CoT) and Least-to-Most (LTM) prompting, finding them insufficient for geometric tasks. Consequently, they introduce two new instruction-based methods:

  1. STAGED PROMPTING: This method mimics human problem-solving by filling one blank at a time, updating the status of remaining constraints, and performing a verification step. Crucially, it instructs the model to backtrack if a contradiction is detected.
  2. VERIFY-ALL: Instead of a step-by-step approach, the model proposes candidates for all blanks simultaneously and then performs a comprehensive verification of every factual triplet in the network.
Procedural comparison of Staged Prompting and Verify-All strategies.

Key Results and Insights

The study reveals several critical insights into how LLMs handle complex knowledge structures:

  • The Linearity Trap: Traditional reasoning boosters like CoT showed little improvement. Their inherent sequential nature is ill-suited for the non-linear dependencies found in geometric constraints.
  • Superiority of Global Verification: VERIFY-ALL emerged as the top-performing method, outperforming the best baseline by 7.2% in Full-Credit (FC) score on the hard subset (with knowledge). This suggests that LLMs are more effective at verifying a complete solution against a set of constraints than building that solution step-by-step.
  • Reasoning vs. Knowledge Bottlenecks: Even when provided with the correct facts in text form, models struggled with the "Hard" subset. This indicates that the primary challenge is the coordination of multiple constraints rather than a lack of factual knowledge.
  • Model Scaling: While GPT-3.5 struggled with the complex logic of STAGED PROMPTING, GPT-4 handled it much more effectively, demonstrating that advanced models are better equipped for the backtracking required in geometric reasoning.

Limitations and Future Directions

While KNOWLEDGE CROSSWORDS provides a robust new evaluation framework, the authors note several areas for future research. The benchmark is currently focused on general world knowledge from YAGO; expanding to specialized domains like medicine or law would further test these models. Additionally, while STAGED PROMPTING introduces backtracking, it is computationally intensive. Developing more efficient ways for models to "look ahead" or perform non-linear reasoning remains a key challenge for the field.

Summary updated

BibTeX
@inproceedings{ding2024knowledge,
  author = {Wenxuan Ding and Shangbin Feng and Yuhan Liu and Zhaoxuan Tan and Vidhisha Balachandran and Tianxing He and Yulia Tsvetkov},
  title = {{Knowledge Crosswords: Geometric Reasoning over Structured Knowledge with Large Language Models}},
  booktitle = {Annual Meeting of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-acl.154},
}
Figure