NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neuro-Symbolic Hierarchical Rule Induction

Claire Glanois, Zhaohui Jiang, Xuening Feng, Paul Weng, Matthieu Zimmer, Dong Li, Wulong Liu, Jianye Hao

TL;DR

Neuro-Symbolic Hierarchical Rule Induction (HRI) is a novel differentiable model designed to solve Inductive Logic Programming (ILP) problems by learning to "invent" first-order logic rules. By organizing learnable predicates into a hierarchical structure and utilizing adaptive "proto-rules," HRI achieves training speeds one to two orders of magnitude faster than previous state-of-the-art models. Furthermore, it remains highly interpretable and robust to noise.

The Challenge of Inductive Logic Programming

The authors tackle the longstanding challenges of Inductive Logic Programming (ILP)—the task of discovering a formal logic program that explains a set of positive and negative examples, given some background knowledge.

Traditional symbolic ILP methods (such as Progol or ILASP) are highly interpretable but struggle with scalability and noisy data because they rely on exhaustive combinatorial searches through discrete rule spaces. Conversely, deep learning models excel at handling noise and high-dimensional data but act as "black boxes" that lack transparency and often fail to generalize to larger problem instances.

Existing neuro-symbolic approaches (like $\partial$ILP or LRI) attempt to bridge this gap by relaxing the discrete search into a continuous optimization problem. However, these models often require hand-designed rule templates for every specific task, fail to scale well to many objects, or suffer from "underestimation" issues where the probability of a rule being true vanishes as the logic chain grows longer.

Methods: A Hierarchical Approach to Rule Induction

HRI introduces several key innovations to make rule induction both efficient and broadly applicable:

Hierarchical structure of HRI showing layers of auxiliary predicates building up to a target predicate.
  1. Hierarchical Prior: Instead of searching a flat space of rules, HRI organizes auxiliary (invented) predicates into successive layers. A predicate at layer $l$ can only be defined using predicates from lower layers. This drastically reduces the search space and mirrors how humans build complex concepts from simpler foundational ones.
  2. Proto-rules: The authors introduce "proto-rules"—adaptive meta-rules that encompass multiple traditional logic templates. This allows the model to be highly expressive without requiring a human to specify the exact structure of the solution beforehand.
  3. Soft Unification with Embeddings: HRI assigns learnable embeddings to every predicate. It uses cosine similarity and a renormalized softmax (utilizing Gumbel-softmax during training) to "match" these embeddings to the slots in a proto-rule. This makes the entire reasoning process differentiable.
  4. Improved Inference: To combat the "underestimation" problem (where multiplying many probabilities leads to near-zero values), HRI uses a modified soft-logic inference where "AND" is implemented as a minimum and "OR" as a maximum, keeping valuations stable across deep hierarchies.

Datasets and Evaluation

The model was rigorously evaluated across three distinct domains:

  • Classic ILP Tasks: 20 standard benchmarks including Grandparent, Member, Connectedness, and Graph Coloring.
  • Reinforcement Learning (RL): Blocks manipulation tasks (Stack, Unstack, and On) where the agent must learn a logical policy to move blocks.
  • Visual Genome (GQA): A large-scale multi-task domain where the model learns to classify 150 different objects based on their relationships in scene graphs.

Key Insights

  • Hierarchy as a Scalability Engine: By enforcing a layered structure, HRI avoids the combinatorial explosion of possible rules. This allows it to scale to datasets with 50,000+ objects, where previous models like NLM or DLM would time out or run out of memory.
  • Reasoning by Analogy: Because the model uses embeddings, it can leverage semantic priors. For example, if it learns a rule for a Car, it can quickly generalize that rule to a Truck if their embeddings are initialized close to each other (e.g., using pre-trained word vectors like GPT-2).
  • Independence from Predicate Count: Unlike many neuro-symbolic models that have fixed architectures based on the number of input relations, HRI’s embedding-based approach allows the number of predicates to vary between training and testing.
  • Noise Robustness: HRI remains successful even when up to 40% of the training labels are flipped, a threshold where traditional symbolic solvers typically fail completely.

Key Results

Table comparing training time and success rates of HRI against baselines.
  • Speed: As shown in the performance benchmarks, HRI is 10x to 100x faster to train than recent neuro-symbolic baselines like NLM and DLM.
  • Performance: On classic ILP tasks, HRI achieved 100% success on almost all benchmarks, matching or exceeding $\partial$ILP and LRI while using a generic set of rules rather than task-specific ones.
  • RL Generalization: In block-stacking tasks, HRI learned symbolic policies that generalized perfectly to test scenarios with more blocks than seen during training.
  • Visual Genome: HRI outperformed the NLIL baseline on the GQA dataset, demonstrating that it can handle "real-world" relational data effectively.

Limitations and Future Work

  • Expressivity Bounds: The current set of proto-rules is optimized for unary and binary predicates. While the paper provides a theoretical proof that these can represent any function-free definite Horn clause with at most two body atoms, tasks requiring more complex relations (like ternary predicates) would require expanding the proto-rule set.
  • Recursive Complexity: While HRI supports recursion, very deep recursive tasks (like finding the Length of a list) still pose a challenge for the default hyperparameter settings and may require increasing the number of auxiliary predicates per layer.
  • Negation and Functions: The current framework focuses on definite Horn clauses. Extending HRI to handle logical negation and function symbols remains a primary direction for future research.

Summary updated

BibTeX
@inproceedings{glanois2022neuro,
  author = {Claire Glanois and Zhaohui Jiang and Xuening Feng and Paul Weng and Matthieu Zimmer and Dong Li and Wulong Liu and Jianye Hao},
  title = {{Neuro-Symbolic Hierarchical Rule Induction}},
  booktitle = {International Conference on Machine Learning},
  year = {2022},
  url = {https://openreview.net/forum?id=0g15uc-WDmQ},
}
Figure