Reproduce “Neural Logic Machines” on OpenResearch
Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Honghua Dong, Jiayuan Mao, Tian Lin, Chong Wang, Lihong Li, Denny Zhou
Neural Logic Machines (NLMs) learn rules that can transfer from small instances to larger ones. They represent object properties and relations as predicates, then apply neural operations across objects, including operations that add or quantify over variables. In sorting, trained on arrays of at most 12 elements, NLMs completed 100% of test tasks at 50 elements, given pairwise comparisons.
Key insights
- Complex symbolic operations like predicate grounding, Boolean logic, and quantification can be effectively approximated and embedded within a fully differentiable neural network framework.
- Weight sharing across all object groundings enables lifted rule learning, allowing for systematic generalization to problem instances with an arbitrary number of objects.
- Combining inter-group (arity-changing) and intra-group (Boolean logic) computations within a layered architecture allows NLMs to perform complex, multi-step logical inferences.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.