Skip to main content
QUICK REVIEW

[Paper Review] Differentiable Logic Machines

Matthieu Zimmer, Xuening Feng|arXiv (Cornell University)|Feb 23, 2021
Reinforcement Learning in RoboticsComputer Science32 references9 citations
TL;DR

This paper introduces the Differentiable Logic Machine (DLM), a novel neural-logic architecture that learns interpretable first-order logic programs through differentiable relaxation of predicates rather than rules. By enabling gradient-based training in both supervised and reinforcement learning settings—with innovations like a custom critic and incremental training—DLM achieves state-of-the-art performance in inductive logic programming and reinforcement learning while scaling better in memory and inference time than prior methods.

ABSTRACT

The integration of reasoning, learning, and decision-making is key to build more general artificial intelligence systems. As a step in this direction, we propose a novel neural-logic architecture, called differentiable logic machine (DLM), that can solve both inductive logic programming (ILP) and reinforcement learning (RL) problems, where the solution can be interpreted as a first-order logic program. Our proposition includes several innovations. Firstly, our architecture defines a restricted but expressive continuous relaxation of the space of first-order logic programs by assigning weights to predicates instead of rules, in contrast to most previous neural-logic approaches. Secondly, with this differentiable architecture, we propose several (supervised and RL) training procedures, based on gradient descent, which can recover a fully-interpretable solution (i.e., logic formula). Thirdly, to accelerate RL training, we also design a novel critic architecture that enables actor-critic algorithms. Fourthly, to solve hard problems, we propose an incremental training procedure that can learn a logic program progressively. Compared to state-of-the-art (SOTA) differentiable ILP methods, DLM successfully solves all the considered ILP problems with a higher percentage of successful seeds (up to 3.5$ imes$). On RL problems, without requiring an interpretable solution, DLM outperforms other non-interpretable neural-logic RL approaches in terms of rewards (up to 3.9%). When enforcing interpretability, DLM can solve harder RL problems (e.g., Sorting, Path) Moreover, we show that deep logic programs can be learned via incremental supervised training. In addition to this excellent performance, DLM can scale well in terms of memory and computational time, especially during the testing phase where it can deal with much more constants ($>$2$ imes$) than SOTA.

Motivation & Objective

  • To design a neural-logic architecture that balances interpretability, performance, and scalability in reasoning and learning.
  • To address the limitations of existing differentiable ILP and RL methods that either sacrifice interpretability or scalability.
  • To enable end-to-end training of fully interpretable logic programs using gradient descent in both supervised and reinforcement learning settings.
  • To improve training efficiency in reinforcement learning through a novel critic architecture and incremental training for complex tasks.
  • To scale the model effectively during inference, especially for problems with large numbers of constants.

Proposed method

  • Assigns learnable continuous weights to predicates instead of rules, enabling a continuous relaxation of the space of first-order logic programs.
  • Uses Gumbel-Softmax sampling with temperature decay to differentially sample logical rules while maintaining differentiability.
  • Employs a custom critic architecture to accelerate actor-critic reinforcement learning training, improving sample efficiency.
  • Introduces an incremental training procedure that progressively learns logic programs, enhancing scalability for hard problems.
  • Applies argmax inference after training to extract fully interpretable logic formulas from continuous weights.
  • Uses a compact representation of the learned logic program during testing to reduce memory and computational costs.

Experimental results

Research questions

  • RQ1Can a differentiable neural-logic model learn fully interpretable logic programs that generalize well across complex reasoning tasks?
  • RQ2How does the DLM architecture compare to existing differentiable ILP and RL methods in terms of success rate, training speed, and inference efficiency?
  • RQ3To what extent does enforcing interpretability through continuous relaxation of predicates improve scalability and performance?
  • RQ4Can the proposed critic architecture significantly accelerate reinforcement learning training in neuro-symbolic models?
  • RQ5Does incremental training improve the model's ability to solve hard logic problems such as Path and Blocksworld?

Key findings

  • DLM achieves a success rate of 99.8% on the Family Tree and Graph Reasoning tasks with 95% of seeds successfully learning interpretable rules.
  • In inductive logic programming, DLM outperforms SOTA differentiable ILP methods with up to 3.5× higher success rate across multiple seeds.
  • On reinforcement learning tasks, DLM achieves up to 3.9% higher rewards than non-interpretable neural-logic baselines and solves harder tasks like Path and Blocksworld.
  • During inference, DLM scales better than baselines, handling more than twice as many constants and using significantly less memory and computation time.
  • The ablation study confirms that Gumbel noise, decreasing temperature, and dropout improve the model’s ability to learn interpretable rules.
  • The proposed critic architecture accelerates training in actor-critic RL, with DLM and NLM showing faster convergence in all evaluated environments.

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.