Skip to main content
QUICK REVIEW

[Paper Review] Scalable Neural Methods for Reasoning With a Symbolic Knowledge Base

William W. Cohen, Haitian Sun|arXiv (Cornell University)|Feb 14, 2020
Topic ModelingComputer Science34 references17 citations
TL;DR

This paper introduces a sparse-matrix reified knowledge base (KB) representation that enables fully differentiable, scalable, and faithful neural reasoning over large symbolic KBs. By encoding relations as sparse matrices distributable across GPUs, the method achieves up to 10,000x speedup over naive sparse-matrix implementations and supports end-to-end training for neural semantic parsing and KB completion on KBs with over 13 million entities and 44 million facts.

ABSTRACT

We describe a novel way of representing a symbolic knowledge base (KB) called a sparse-matrix reified KB. This representation enables neural modules that are fully differentiable, faithful to the original semantics of the KB, expressive enough to model multi-hop inferences, and scalable enough to use with realistically large KBs. The sparse-matrix reified KB can be distributed across multiple GPUs, can scale to tens of millions of entities and facts, and is orders of magnitude faster than naive sparse-matrix implementations. The reified KB enables very simple end-to-end architectures to obtain competitive performance on several benchmarks representing two families of tasks: KB completion, and learning semantic parsers from denotations.

Motivation & Objective

  • Address the challenge of integrating large symbolic knowledge bases into differentiable neural architectures for end-to-end learning.
  • Overcome limitations of prior neural KB methods that lack scalability, faithfulness to original KB semantics, or support for multi-hop reasoning.
  • Enable efficient, scalable, and differentiable reasoning over massive KBs (e.g., tens of millions of entities and facts) using GPU-optimized sparse matrix representations.
  • Simplify neural semantic parsing from denotations by eliminating cascaded retrieval and neural modules, enabling fully end-to-end training.
  • Demonstrate scalability and performance on both real-world benchmarks and synthetic long-chain reasoning tasks.

Proposed method

  • Represent a symbolic KB as a reified KB using three sparse matrices: one for subject, one for object, and one for relation indices, mapping each triple to its component IDs.
  • Encode entity and relation sets as dense vectors using indicator vectors, enabling set operations (union, intersection, complement) via vector arithmetic (sum, Hadamard product, 1 - x).
  • Define 'follow' operation as a bilinear transformation: follow(x, r) = M_r x, where M_r is the sparse matrix for relation r, enabling differentiable path following over relations.
  • Use weighted sums of relation matrices (M_R = Σ w_r M_r) to model complex queries involving multiple relations with learned weights.
  • Distribute the reified KB across multiple GPUs by partitioning the sparse matrices, enabling training on KBs with over 13 million entities and 44 million facts.
  • Integrate the reified KB as a differentiable module within neural networks, allowing backpropagation through reasoning steps for end-to-end learning from denotations or KB completion targets.

Experimental results

Research questions

  • RQ1Can a symbolic KB be represented in a way that enables fully differentiable, scalable, and faithful neural reasoning over large-scale KBs?
  • RQ2How can multi-hop reasoning be efficiently and accurately modeled within a differentiable neural framework for large KBs?
  • RQ3Can the proposed method achieve significant speedups over naive sparse-matrix implementations while maintaining semantic fidelity?
  • RQ4Can end-to-end neural semantic parsing from denotations be achieved without heuristic retrieval or reinforcement learning, using only differentiable reasoning?
  • RQ5How well does the method scale to long reasoning chains and large KBs in both synthetic and real-world benchmarks?

Key findings

  • The sparse-matrix reified KB representation enables neural reasoning that is fully differentiable, faithful to the original KB semantics, and expressive enough for multi-hop inference.
  • The method achieves over 10,000x speedup compared to naive sparse-matrix implementations on synthetic data, even with many relations.
  • The architecture scales to KBs with over 13 million entities and nearly 44 million facts, demonstrating feasibility for real-world large-scale KBs.
  • Simple end-to-end neural architectures using the reified KB module achieve competitive performance on both KB completion and semantic parsing from denotations benchmarks.
  • The approach enables fully end-to-end training for neural semantic parsing from denotations—previously difficult due to non-differentiable KB reasoning—without cascaded retrieval or reinforcement learning.
  • The method supports long-chain reasoning on synthetic tasks, showing robustness and scalability in complex inference scenarios.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.