ASPER: Answer Set Programming Enhanced Neural Network Models for Joint Entity-Relation Extraction

Huiping Cao, Trung Hoang Le, Tran Cao Son · DOI

Abstract

Joint Entity-Relation (ER) extraction is a fundamental task in Natural Language Processing, yet deep learning models often struggle with data scarcity and the "confirmation bias" inherent in semi-supervised learning. This paper introduces ASPER, a framework that integrates the pattern-recognition capabilities of neural networks with the rigorous logical constraints of Answer Set Programming (ASP). By utilizing symbolic domain knowledge to refine and expand noisy predictions on unlabeled data, ASPER demonstrates significant performance improvements, particularly in low-resource settings.

Introduction

Identifying named entities and the relationships between them—such as recognizing "Port Arthur" as a location and its "locatedIn" relationship to a larger region—is essential for building structured knowledge from text. While neural networks (NNs) excel at capturing linguistic nuances, they are notoriously data-hungry. Semi-supervised learning (SSL) attempts to mitigate this by using a small labeled dataset to generate "pseudo-labels" for larger unlabeled corpora. However, NNs often suffer from confirmation bias: they treat their own erroneous predictions as ground truth, reinforcing mistakes during retraining.

ASPER addresses this challenge by introducing a symbolic "sanity check" layer. By applying real-world logic and domain constraints to neural predictions, the framework filters out noise and derives hidden information, ensuring that the data used for retraining is both consistent and high-quality.

The ASPER Framework

ASPER operates through an iterative, three-stage pipeline designed to bridge the gap between neural intuition and symbolic reasoning.

1. Neural Prediction

The process begins with a base neural model—specifically the SpERT architecture—trained on a limited set of labeled data. This model generates initial predictions for entities and relations within an unlabeled dataset, assigning a confidence score to each potential label.

2. Symbolic Refinement via ASP

The core innovation of ASPER is the Answer Set Programming (ASP) layer. ASP is a declarative logic language capable of handling complex reasoning tasks. The neural predictions are fed into an ASP solver, which evaluates them against a Knowledge Base (KB) containing:

  • Type Constraints: For example, a "livedIn" relation must connect a "Person" entity to a "Location" entity.
  • Inference Rules: Logical deductions such as transitivity (if A is "locatedIn" B and B is "locatedIn" C, then A is "locatedIn" C).
  • Conflict Resolution: Identifying and resolving physical impossibilities, such as a single span of text being labeled as two incompatible entity types.

The solver generates "Answer Sets"—sets of labels that are logically consistent with the KB. ASPER then uses a preference score to select the most probable, logically sound set of labels to serve as refined pseudo-labels.

3. Curriculum Retraining

To prevent the model from being overwhelmed by complex or potentially incorrect data early on, ASPER employs a curriculum learning approach. The model is retrained using the original labeled data and the highest-confidence, logically vetted pseudo-labels. As the model's performance improves across iterations, the threshold for including pseudo-labels is gradually lowered.

Experimental Evaluation

The authors evaluated ASPER on two benchmark datasets: CoNLL04 (general news) and SciERC (scientific abstracts).

Key Results

  • Data Efficiency: ASPER shows its greatest strength when labeled data is scarce. On the CoNLL04 dataset using only 10% of available labeled data, ASPER achieved a micro F1 score of 52.47% for relations, significantly outperforming standard self-training (41.76%).
  • The Power of Logic: Ablation studies highlighted the importance of specific logical rules. The relation_exists rule, which posits that sentences are likely to contain at least one valid relation, was instrumental in boosting relation F1 scores from approximately 31% to over 52%.
  • Computational Efficiency: Despite the complexity of symbolic reasoning, the ASP layer added minimal overhead. Generating refined pseudo-labels took roughly 30 seconds per iteration, a negligible fraction of the total training time.

Discussion and Insights

ASPER functions effectively as a "denoising filter." While neural networks lack "common sense," the ASP layer provides a framework for abductive learning—finding the best logical explanation for the observed text. Furthermore, ASP is non-monotonic, meaning it can handle defaults and exceptions gracefully, making the system highly "elaboration tolerant."

However, the framework's performance is intrinsically linked to the quality of the human-written ASP rules. In the SciERC dataset, where scientific domain knowledge is more difficult to formalize than general news, the performance gains were less pronounced. This suggests that while symbolic logic is a powerful tool for cleaning neural noise, the manual construction of knowledge bases remains a primary bottleneck.

Conclusion

ASPER demonstrates that combining deep learning with symbolic reasoning can effectively combat confirmation bias in semi-supervised learning. By enforcing logical consistency, ASPER allows models to learn more accurately from unlabeled data. Future research will focus on automating the discovery of logical rules to reduce the dependency on manual knowledge engineering, potentially allowing ASPER to scale across increasingly complex and diverse domains.

Summary updated

BibTeX
@article{cao2023asper,
  author = {Huiping Cao and Trung Hoang Le and Tran Cao Son},
  title = {{ASPER: Answer Set Programming Enhanced Neural Network Models for Joint Entity-Relation Extraction}},
  journal = {Theory Pract. Log. Program.},
  year = {2023},
  doi = {10.1017/s1471068423000297},
}
Figure