NeuroComparatives: Neuro-Symbolic Distillation of Comparative Knowledge

Phillip Howard, Junlin Wang, Vasudev Lal, Gadi Singer, Yejin Choi, Swabha Swayamdipta · DOI

Introduction

Comparative knowledge—the ability to understand the relative properties of entities (e.g., "steel is stronger than styrofoam")—is a fundamental component of human reasoning and physical intuition. While Large Language Models (LLMs) demonstrate impressive capabilities, their internal world knowledge is often opaque and susceptible to hallucinations. Existing structured knowledge bases (KBs), such as WebChild, frequently lack the scale, diversity, and precision required for robust downstream reasoning. To bridge this gap, we present NeuroComparatives, a neuro-symbolic framework designed to distill high-quality comparative knowledge from LLMs at an unprecedented scale.

Methodology: The Overgenerate-and-Filter Pipeline

The NeuroComparatives framework employs a three-stage pipeline to harvest and refine comparative assertions.

1. Entity Collection and Expansion

The process begins by retrieving physical object entity sets from Wikidata. To ensure broad coverage, the authors utilize CategoryBuilder to expand these initial seeds into a comprehensive list of 15,476 entities across 568 distinct classes, such as "kitchen appliances" or "transportation vehicles."

2. Constrained Overgeneration

The core of the framework lies in its generation strategy, which balances the creative potential of LLMs with symbolic control.

  • Proprietary LLMs: High-quality, few-shot generation is performed using models like GPT-4.
  • Open-Source Neuro-Symbolic Core: Smaller models (GPT-2 XL and Llama-2) are paired with NeuroLogic, a constrained decoding algorithm. This allows for the enforcement of "positive constraints" (e.g., requiring auxiliary verbs like "typically" or "often") and "negative constraints" (e.g., forbidding pronouns or specific punctuation) to minimize hallucinations and ensure structural consistency.

3. Multi-Stage Filtering

To maintain high data quality, the generated assertions undergo rigorous filtering:

  • Deduplication: T5 embeddings are used to cluster and remove redundant sentences.
  • Contradiction Filtering: A RoBERTa-based classifier identifies and discards assertions that conflict with other generated data.
  • Knowledge Discrimination: A final "knowledge discriminator," trained on human-annotated data, selects the most valid and useful comparisons.
Overview of the NeuroComparatives pipeline, illustrating the three stages: entity collection, overgeneration with constraints, and multi-stage filtering.

Key Results and Evaluation

The resulting NeuroComparatives (NC) dataset contains 8.8 million comparisons across 1.74 million entity pairs, making it ten times larger than previous resources like WebChild.

Quality and Diversity

Human evaluation confirms the high fidelity of the distilled knowledge. The "NC-S" subset (the top 20% of filtered data) achieved a 90.1% human acceptance rate, representing a 32% absolute improvement over WebChild. Furthermore, the dataset is 30% more diverse in its relational attributes, capturing specific properties such as "operating costs" or "flight stability" rather than generic "better/worse" comparisons.

Impact of Filtering

The effectiveness of the multi-stage filtering process is evident in the correlation between filtering intensity and human acceptance. As the knowledge discriminator filters out lower-confidence generations, the precision of the remaining dataset increases significantly.

Human acceptance rate as a function of the percentage of generations filtered by the knowledge discriminator, demonstrating the effectiveness of the final filtering stage.

Downstream Reasoning

The utility of NeuroComparatives was tested on ComparativeQA, a new benchmark of 656 human-verified questions. Finetuning a Llama-2-7b model on NC data resulted in a dramatic performance leap, increasing accuracy from 60.7% to 91.0%. The dataset also showed state-of-the-art performance on existing benchmarks like Elephant (size comparisons) and Verb Physics.

Conclusion

NeuroComparatives demonstrates that neuro-symbolic distillation can transform the latent knowledge of LLMs into a massive, high-quality structured resource. A key insight is that smaller models, when guided by symbolic constraints, can produce data that rivals or exceeds the quality of much larger, unconstrained models. Future work will explore expanding this framework to include non-physical entities and multi-step reasoning tasks.

Summary updated

BibTeX
@inproceedings{howard2024neurocomparatives,
  author = {Phillip Howard and Junlin Wang and Vasudev Lal and Gadi Singer and Yejin Choi and Swabha Swayamdipta},
  title = {{NeuroComparatives: Neuro-Symbolic Distillation of Comparative Knowledge}},
  booktitle = {Conference of the North American Chapter of the Association for Computational Linguistics},
  year = {2024},
  doi = {10.18653/v1/2024.findings-naacl.281},
}
Figure