Integrating User Rules into Neural Text Inference

Wei Zheng,Yuqing Sun,Yexin Zhang,Bin Gong
DOI: https://doi.org/10.1109/cscwd61410.2024.10580804
2024-01-01
Abstract:Incorporating user-defined heuristic rules into neural text inference methods has the potential to align models with user intentions and domain knowledge, thereby improving interpretability. In this study, we introduce a novel rule pattern that includes both domain-specific keywords and the logical relationships between keywords, which can be defined by users. We propose an approach to integrate explicit rule-based reasoning with the semantic modeling capabilities of neural networks. Specifically, our method employs a parallel framework wherein a neural classifier is trained on labeled text data for prediction, while a Semantic-Logic Network (SLN) forms rule inference as a satisfiability problem. We use a Jensen-Shannon (JS) loss to ensure consistent predictions on both sides for mutual regularization. The experiment results show that our approach outperforms baseline methods. We also did ablation analysis on our method, it shows that the performance of both the SLN and the classifier contribute to the final results. Additionally, for the case that lacks explicit user rules, we propose a boosting method to automatically generate rules from labeled texts which is beneficial for text inference and improve the model performance.
What problem does this paper attempt to address?