A Foundation Model for Zero-Shot Logical Rule Induction

Yin Jun Phua
5/6/2026
2 citations
cs.AIcs.LGcs.SC

Official code: phuayj/neural-rule-inducer (3 stars, Python, MIT, last commit 2026-05-07).

Abstract

Inductive Logic Programming (ILP) learns interpretable logical rules from data. Existing methods are transductive: their learned parameters are bound to specific predicates and require retraining for each new task.

Show full abstract

We introduce Neural Rule Inducer (NRI), a pretrained model for zero-shot rule induction. Rather than encoding literal identities, NRI represents literals using domain-agnostic statistical properties such as class-conditional rates, entropy, and co-occurrence, which generalize across variable identities and counts without retraining. The model consists of a statistical encoder and a parallel slot-based decoder. Parallel decoding preserves the permutation invariance of logical disjunction; an autoregressive decoder would instead impose an arbitrary clause order. Product T-norm relaxation makes rule execution differentiable, allowing end-to-end training on prediction accuracy alone. We evaluate NRI on rule recovery, robustness to label noise and spurious correlations, and zero-shot transfer to real-world benchmarks, and we believe this work opens up the possibility of foundation models for symbolic reasoning. Code and the reference checkpoint are available at https://github.com/phuayj/neural-rule-inducer.

View on arXivView PDF

Code Implementations(1)

MIT

Official implementation of NRI from the paper "A Foundation Model for Zero-Shot Logical Rule Induction"

30PythonMay 6, 20266 months agoMIT

Similar Papers

Cite this paper

@article{phua2026foundation,
  title  = {A Foundation Model for Zero-Shot Logical Rule Induction},
  author = {Yin Jun Phua},
  year   = {2026},
  eprint = {2605.04916},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.04916v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.04916.svg)](https://codeofpaper.com/paper/2605.04916)

Discussion