atlas

Research map / Large language models / Agents, code and math

Improving Neural Logic Machines via Failure Reflection

ICML 2024 · Large language models › Agents, code and math · approach: Inductive and abstract reasoning evaluation

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Failure Reflection Guided Regularizer (FRGR), which mines root-cause subprograms from repeated errors in neural logic machines and penalizes them during training to improve performance, generalization, and efficiency.

Problem

Neural logic machines (NLM and DLM) repeat similar mistakes during training, causing oscillation around ill-performing local optima and sub-optimal performance on inductive logic programming and reasoning tasks.

Approach

Extracts the induced program from the NLM at each erroneous training step, uses Apriori frequent-itemset mining over a history queue of erroneous programs to identify the recurring root-cause subprogram, and adds an L1 repetition regularizer that penalizes that subprogram in future iterations.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Add FRGR to NLMNLM · IsUncle (data-rich)# Epochs: 143.70 -> 78.40Helped
Add FRGR to NLMNLM · IsUncle (data-rich)success rate (%) on n=100: 82.60 -> 100.00Helped
Add FRGR to NLMNLM · IsMGUncle (data-rich)success rate (%) on n=100: 10.04 -> 60.44Helped
Add FRGR to DLMDLM · 6-Connectivity (data-rich)success rate (%) on n=20: 53.28 -> 90.10Helped
Add FRGR to NLMNLM · IsUncle (data-scarce)success rate (%) on n=100: 62.53 -> 81.50Helped
Add FRGR to DLMDLM · IsUncle (data-scarce)success rate (%) on n=100: 40.00 -> 80.00Helped
Add FRGR to NLMNLM · Path (data-scarce; n=50)success rate (%): 93.65 -> 99.80Helped
Add FRGR to NLMNLM · BlocksWorld (data-scarce; n=50)success rate (%): 45.93 -> 52.60Helped
Add FRGR to NLMNLM · 1-OutDegree (data-rich; n=10)success rate (%): 100.00 -> 100.00No clear effect
Add FRGR to NLMNLM · HasFather (data-rich)# Epochs: 5.90 -> 6.00Hurt
Add FRGR to NLMNLM · BlocksWorld (data-scarce)# Epochs: 414.00 -> 442.00Hurt

Surprising findings

Limitations

Experimental setup

Datasets: Family Tree reasoning tasks General Graph reasoning tasks Sorting Path BlocksWorld

Benchmarks: Family Tree reasoning (IsUncle, IsMGUncle, HasSister, HasFather, IsGrandparent) Graph reasoning (k-OutDegree, k-Connectivity) Sorting Path BlocksWorld

Metrics: success rate (performance) generalization success rate graduation ratio epochs to convergence unary atom ratio

Baselines: NLM DLM

Builds on: Neural Logic Machines Differentiable Logic Machines Apriori algorithm REINFORCE

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy