Automated Predicate Invention

39 concepts28 papers1 proposal

When humans solve complex problems, we rarely do so by jumping straight from raw inputs to a final conclusion. Instead, we define intermediate concepts—helper functions, abstractions, and mental models—that break the problem down into manageable pieces.

In symbolic machine learning, particularly Inductive Logic Programming (ILP), systems learn rules from data using a pre-defined vocabulary called background knowledge. However, if the initial vocabulary is missing a crucial concept, traditional learners hit an expressivity wall or suffer a combinatorial explosion in their search space.

Automated Predicate Invention (API) is the mechanism that allows a learning system to autonomously generate its own intermediate concepts, symbols, or sub-routines. By expanding its own logical vocabulary, a system can compress its representations, simplify complex reasoning chains, and learn structures that were previously impossible to capture.


The Vocabulary Bottleneck

To understand why predicate invention is necessary, consider a system tasked with learning how to sort a list of numbers from raw examples, but without being given a pre-defined concept for "greater than" or "insert." As Kijsirikul et al. demonstrated in Discrimination-Based Constructive Induction of Logic Programs, traditional inductive systems fail on such tasks because they cannot bridge the gap between incomplete background knowledge and the target program.

When existing features fail to distinguish between positive and negative examples, Russo et al. (Reduction of ILP Search Space with Bottom-Up Propositionalisation) showed that a system must introduce new auxiliary predicates to expand its expressive capacity. Without this ability, the learner is trapped within the limits of its initial language bias. As summarized by Bratko et al. in ILP turns 20 - Biography and future challenges, modern relational learning requires shifting away from fixed vocabularies toward systems that introduce new symbols to capture unobserved patterns.


Why It Works: Compression and Search Space Reduction

Intuitively, allowing a system to invent any new symbol should make the learning problem harder by expanding the search space to infinity. However, predicate invention acts as a powerful constraint and compression mechanism. It works for three primary reasons:

1. Collapsing Multi-Hop Reasoning Chains

In complex tasks like multi-document reading comprehension or graph reasoning, finding a direct logical path from a premise to a conclusion requires searching through a massive combination of relations. By composing basic relations into intermediate predicates, the system can collapse multiple logical hops into a single synthesized relation.

As shown by Pan et al. in Deep Inductive Logic Reasoning for Multi-Hop Reading Comprehension, this recursive rule generation simplifies the final inference step. Instead of searching for one giant, deeply nested rule, the system solves independent, shallower sub-problems.

Without Predicate Invention (Deep, complex search):
Goal(X, Y) :- Relation1(X, A), Relation2(A, B), Relation3(B, C), Relation4(C, Y).

With Predicate Invention (Shallow, modular search):
Invented_Helper(X, C) :- Relation1(X, A), Relation2(A, B), Relation3(B, C).
Goal(X, Y)            :- Invented_Helper(X, C), Relation4(C, Y).

2. Eliminating Redundancy via Refactoring

In software engineering, refactoring code into reusable functions makes a program smaller and easier to maintain. Predicate invention performs the exact same operation on an agent's knowledge base.

Dumancic (Knowledge Refactoring for Inductive Program Synthesis) demonstrated that identifying recurring sub-structures within primitive logic to create reusable helper functions drastically reduces the depth of the search tree for subsequent learning tasks. This structural compression also directly benefits human users; Zeller et al. (Ultra-Strong Machine Learning: comprehensibility of programs learned with ILP) found that creating a hierarchy of abstractions reduces the textual complexity of learned rules, making the final logic far more compact and comprehensible to humans.

3. Higher-Order Functional Templates

To scale algorithm discovery, researchers leverage higher-order logic—using abstract functional templates like map, filter, or until. The core challenge is that these higher-order templates require auxiliary functions as arguments, which are rarely present in the initial background knowledge.

Cropper et al. solved this in Learning Higher-Order Programs through Predicate Invention by enabling the system to autonomously invent the missing sub-programs required to satisfy these functional arguments. This allows the learner to separate the high-level control flow (the template) from the low-level transformation logic (the invented predicate), drastically accelerating the learning process.


Paradigms for Inventing Predicates

How do these systems actually discover what concepts to invent? The literature highlights three dominant paradigms:

Symbolic Search and Grammar Operators

Early and purely symbolic approaches treat predicate invention as a search over a restricted space of logical definitions. For instance, Khardon (Learning to Take Actions) framed this as searching for recursive relationships consistent with a teacher's actions.

Alternatively, systems can derive higher-level concepts from basic primitives using a structured grammar of operators. Kaelbling et al. (Learning Symbolic Models of Stochastic Domains) used this method to automatically invent complex properties like transitive closures or counting functions, allowing planning agents to represent world states compactly. From a theoretical standpoint, Pagnucco et al. (Inverse Resolution as Belief Change) modeled this constructive induction by treating the logical language as pre-equipped with latent symbols that are dynamically activated to explain novel data.

Statistical and Neuro-Symbolic Optimization

A major modern frontier is the integration of symbolic predicate invention with deep learning. Lifted Relational Neural Networks (LRNNs), pioneered by Šourek et al. (Lifted Relational Neural Networks; Lifted Relational Neural Networks: Efficient Learning of Latent Relational Structures), use first-order logic rules as templates to unfold example-specific neural network architectures. By optimizing these networks via standard gradient descent, the system performs statistical predicate invention, discovering hidden relational structures (such as predictive chemical motifs in molecules) without human intervention.

[Logic Template] ---> Unfolds into ---> [Neural Network Layers] ---> Gradient Descent Optimizes Latent Predicates

This neuro-symbolic synthesis allows systems to bridge the gap between raw perception and logic. For example, the authors of Neural-Symbolic Predicate Invention: Learning Relational Concepts from Visual Scenes demonstrated how high-level relational concepts can be extracted directly from raw visual data by iteratively generating and refining logical clauses.

In reinforcement learning on graphs, Lu et al. (R5: Rule Discovery with Reinforced and Recurrent Relational Reasoning) showed that inventing "placeholder" relations acts as an intermediate buffer during training. This allows an agent to learn the underlying multi-step structure of a domain before the final relations are explicitly identified.

Unsupervised Play and Continual Learning

Instead of inventing predicates reactively when a task fails, systems can discover concepts proactively. Cropper (Playgol: Learning Programs Through Play) introduced an unsupervised "play phase" where a system discovers highly reusable sub-programs on its own, which are later composed to solve complex tasks.

This forms the basis for lifelong learning. As Crespo-Fernandez et al. (Continual learning and refinement of causal models through dynamic predicate invention) demonstrated, dynamically inventing and hierarchically organizing abstract predicates allows agents to continuously refine causal world models online, leading to massive improvements in sample efficiency and scalability.


Conclusion

Automated predicate invention transforms machine learning from a process of static mapping into a process of vocabulary expansion. By creating, naming, and reusing intermediate concepts, systems escape the constraints of their initial background knowledge. Whether implemented via symbolic search, higher-order templates, or neuro-symbolic gradient descent, inventing predicates allows AI to decompose complex problems, compress its knowledge, and reason hierarchically.

Key Foundational Work

Learning to Take Actions (1996) — contributed 2 concept elements to this direction.
Discrimination-Based Constructive Induction of Logic Programs (1992) — contributed 2 concept elements to this direction.
History & citationVersion 1 · 2026-10-04

Current · Permanent link

View frozen version 1

Cite this direction

Latest version (a living page):

@misc{lacuna_automated_predicate_invention_4974fe73,
  title = {automated predicate invention},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-predicate-invention/rdr_4974fe737bf24d44afd7019c8e37dad4},
  note = {Latest version of a living research direction; cite a version for a fixed text. Accessed 2026-11-26},
}

This exact version (version 1, frozen text):

@misc{lacuna_automated_predicate_invention_4974fe73_v1,
  title = {automated predicate invention},
  author = {{Lacuna}},
  howpublished = {Lacuna research direction},
  year = {2026},
  url = {https://lacuna.tiptreesystems.com/direction/automated-predicate-invention/rdr_4974fe737bf24d44afd7019c8e37dad4/v/1},
  note = {Version 1, frozen 2026-10-04. Accessed 2026-11-26},
}
About

These directions overlap with this one through shared papers.

See something wrong? Report a mistake