Knowledge Refactoring for Inductive Program Synthesis
Sebastijan Dumancic, Tias Guns, Andrew Cropper
Abstract
Humans constantly restructure knowledge to use it more efficiently. Our goal is to give a machine learning system similar abilities so that it can learn more efficiently. We introduce the knowledge refactoring problem, where the goal is to restructure a learner's knowledge base to reduce its size and to minimise redundancy in it. We focus on inductive logic programming, where the knowledge base is a logic program. We introduce Knorf, a system which solves the refactoring problem using constraint optimisation. A key feature of Knorf is that, rather than simply removing knowledge, it also introduces new knowledge through predicate invention. We evaluate our approach on two domains: building Lego structures and real-world string transformations. Our experiments show that learning from refactored knowledge can improve predictive accuracies fourfold and reduce learning times by half.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Cited by top-tier papers5
- babble: Learning Better Abstractions with E-Graphs and Anti-unificationDavid Cao, Rose Kunkel, Chandrakana Nandi, Max Willsey et al.POPL 2023 · 38 citations
- FEDT: Supporting experiment design and execution in HCI fabrication researchValkyrie Savage, Harrison Goldstein, Nóra Püsök, Jia Yi Ren et al.UIST 2025 · 2 citations
- Bayesian Program Learning by Decompiling Amortized KnowledgeAlessandro B. Palmarini, Christopher G. Lucas, N. SiddharthICML 2024 · 2 citations
- Synthesizing DSLs for Few-Shot LearningPaul Krogmeier, P. MadhusudanOOPSLA 2025 · 1 citation
- Scalable Knowledge Refactoring Using Constrained OptimisationMinghao Liu, David M. Cerna, Filipe Gouveia, Andrew CropperAAAI 2025 · 1 citation
Builds on1
Related papers
- Generalisation through Negation and Predicate InventionDavid M. Cerna, Andrew CropperAAAI 2024 · 5 citations
- Learning Logic Programs Though Divide, Constrain, and ConquerAndrew CropperAAAI 2022 · 11 citations
- Learning Logic Programs by Discovering Where Not to SearchAndrew Cropper, Céline HocquetteAAAI 2023 · 3 citations
- Rule Induction in Knowledge Graphs Using Linear ProgrammingSanjeeb Dash, Joao P. GoncalvesAAAI 2023 · 5 citations
- Self-Supervised Inductive Logic ProgrammingStassa PatsantzisAAAI 2026
