Logic-based approaches to Natural Language Inference (NLI)—the task of determining if a premise entails a hypothesis—are prized for their precision and ability to handle complex linguistic structures like negation and quantification. However, they have long faced a "knowledge-efficiency tradeoff": to be effective, they need massive amounts of external lexical knowledge (e.g., knowing that a "puppy" is a "dog"), but loading and searching through massive databases like WordNet during a proof is computationally expensive and slow.
In this work, researchers from the Nara Institute of Science and Technology and Ochanomizu University present a hybrid solution that combines the formal rigor of the Coq theorem prover with the speed of neural Knowledge Base Completion (KBC).
System Architecture
The system is built on a pipeline called ccg2lambda, which converts sentences into higher-order logic formulas via Combinatory Categorial Grammar (CCG) parsing.
As illustrated in the pipeline overview, the premise and hypothesis are parsed into logical forms before being passed to the Coq theorem prover. When the prover hits a wall, it traditionally searches an external database like WordNet for missing links—a process known as on-demand axiom injection or abduction.
The Abduction Tactic and KBC Integration
The authors aim to make the abduction process "seamless" and "scalable" by treating lexical knowledge as a prediction task in a continuous vector space rather than a search task in a discrete graph. They developed a custom plugin for the Coq theorem prover that implements this via a neural KBC model.
When Coq cannot complete a proof, the "abduction tactic" extracts the current predicates and sends them to a Python server running a ComplEx model. ComplEx represents entities and relations as complex-valued vectors. To check if a relation (e.g., synonym or hypernym) exists between two words, the system performs a simple dot-product calculation. This reduces the complexity of finding an axiom to $O(n)$, where $n$ is the embedding dimension, and allows the system to evaluate all possible predicate pairs simultaneously without restarting the Coq process.
Experimental Results
The system was evaluated on the SICK (Sentences Involving Compositional Knowledge) benchmark and a new dataset, LexSICK, specifically designed to test complex lexical gaps combined with linguistic phenomena like quantification.
- Speedup: On the SICK dataset, the KBC-based system processed problems in an average of 3.84 seconds, compared to 9.42 seconds for the previous search-based state-of-the-art—a 2.5x improvement.
- Accuracy: The system achieved an accuracy of 83.45% on SICK, matching the performance of search-based methods while being significantly faster.
- Latent Knowledge Discovery: On the LexSICK dataset, the KBC-based abduction correctly solved 21/58 problems, outperforming the search-based method (20/58) and a state-of-the-art neural encoder (18/58). This suggests that KBC models can "fill in the gaps" of a database by predicting relations based on surrounding vector patterns.
Conclusion
This hybrid approach demonstrates that neural networks can be effectively used for associative memory and pattern completion while keeping the actual reasoning inside a formal, verifiable logic system. By moving from graph search to vector operations, the authors have created a more efficient and scalable framework for logic-based Natural Language Inference.
Summary updated