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

Neuro-Symbolic Hierarchical Rule Induction

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

Abstract

Hierarchical Rule Induction (HRI) is a neuro-symbolic framework designed to induce interpretable logic rules from data. By combining neural embeddings with a hierarchical structure of generic "proto-rules," HRI overcomes the scalability and task-specificity limitations of traditional Inductive Logic Programming (ILP). Evaluations across classic ILP benchmarks, visual scene graphs, and reinforcement learning environments demonstrate that HRI achieves state-of-the-art performance with significant speedups—up to two orders of magnitude—while maintaining robust generalization across object scales.

Introduction

Inductive Logic Programming (ILP) represents a significant goal in artificial intelligence: the ability for machines to induce human-readable logic programs from a set of facts and examples. While traditional symbolic methods offer perfect interpretability, they are often computationally intractable due to the combinatorial explosion of the rule search space. Conversely, recent differentiable neural approaches attempt to mitigate this through continuous relaxation but frequently suffer from a lack of genericity—requiring hand-crafted templates for each task—and poor scalability on complex or recursive datasets.

This paper introduces Hierarchical Rule Induction (HRI), a model designed to be both generic and scalable. HRI utilizes a fixed set of "proto-rules" organized within a hierarchical architecture to efficiently learn logic programs from diverse data sources.

Methodology

The HRI framework is built upon three primary pillars: hierarchical organization, generic proto-rules, and soft unification via embeddings.

Hierarchical Architecture

HRI organizes auxiliary predicates into distinct layers. Lower layers define fundamental concepts, which serve as building blocks for higher layers to construct increasingly complex logic. This hierarchical approach significantly constrains the search space compared to flat architectures.

The HRI architecture illustrating the flow from initial predicates through layers of auxiliary predicates to the target.

Proto-rules

Instead of task-specific templates, HRI employs a minimal set of generic "proto-rules" (or meta-rules). These high-level templates can be instantiated into various specific rules. The authors demonstrate that this minimal set is sufficient to represent any function-free definite Horn clause with up to two body atoms.

The set of generic proto-rules (meta-rules) used to instantiate specific logic clauses.

Soft Unification and Interpretability

Predicates are represented as learnable vector embeddings. The model employs cosine similarity to perform "soft unification," matching predicates to slots within the proto-rules. To ensure the resulting rules are symbolic and interpretable, HRI utilizes Gumbel-softmax noise and regularization during training, encouraging the model to converge on binary (0 or 1) logic selections.

Experimental Evaluation

The authors evaluated HRI across three domains: classic ILP benchmarks (e.g., Predecessor, Connectedness), Visual Genome (GQA) scene graphs, and Reinforcement Learning (Blocksworld).

Key Results

  • Efficiency: HRI demonstrates remarkable training speed. On the Adjacent to Red task, HRI trained in 62 seconds, compared to 920 seconds for Differentiable Logic Machines (DLM). For the Grandparent task, it was approximately 25 times faster than DLM.
  • Accuracy and Scalability: HRI achieved 100% success on nearly all classic ILP tasks. On the Visual Genome dataset, it outperformed the NLIL baseline in object classification (R@5 of 0.60 vs 0.52).
  • Generalization: The model exhibits "combinatorial generalization," maintaining performance when moving from small training examples (e.g., 5-item lists) to much larger test cases (e.g., 50-item lists).

Discussion and Conclusion

HRI represents a significant step toward general-purpose logic learners. By utilizing semantic bootstrapping—initializing embeddings with "common sense" from models like GPT-2—HRI can leverage prior knowledge to improve performance on visual tasks. While the model currently faces challenges with deep recursion and lacks support for negation, its efficiency and interpretability make it a promising candidate for safety-critical applications like autonomous driving.

Summary updated

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