Skip to content

ALBI Swaps Popper's ASP Generator for an LLM Across 30 ILP Benchmarks

THE ARGUMENT

ALBI shows an LLM can stand in for ASP generation on these 30 noise-free ILP tasks without losing success rate, but its real contribution is the anonymization protocol that measures how much a model leans on predicate names rather than logical structure.

On this page

A team you know is holding a purchase order: should they rip out the search solver inside their rule-learning pipeline and let an LLM write candidate Prolog clauses instead? The vendor's pitch is that the model just writes the rules, fast and correct. Your instinct is to check it on a batch of public tasks and see whether it gets everything right. That check may not mean much. If the model's attention lands on predicate names — words like parent or tail already hint at what the answer should look like — it is not doing induction, it is doing reading. ALBI is a paper that covers up the names first and then runs the exam again [1].

Which part of the loop ALBI actually replaces

ILP, inductive logic programming, is the task of recovering a set of rules from positive examples, negative examples, and a body of background knowledge. What it returns is not a weight matrix but a Prolog program a human can read and a machine can check. Popper is the reference system on this line: it generates a candidate hypothesis, tests it against the examples, and prunes the search space based on how the test failed. That loop is called Learning from Failures, and its generator is an ASP solver — an engine that writes the search problem as a set of logical constraints and enumerates solutions. The bottleneck the paper names is simple: as background knowledge grows, that search space explodes combinatorially [1].

ALBI changes exactly one thing. Generation goes to an LLM; testing and constraining stay with SWI-Prolog, the formal referee that decides whether a clause actually holds on the examples. The paper states the trade itself: ASP is complete over the hypothesis space, and the LLM gives up completeness for speed and semantic intuition [1]. That sentence is the premise for every number below and the source of every limitation.

There is a fairness detail that is easy to miss. ALBI takes only the mode declarations from bias.pl — head_pred for the target predicate, body_pred for what may appear in the body, plus argument directions. It ignores Popper's max_vars, max_body, max_clauses, and type signatures entirely. ALBI therefore searches a strictly weaker-constrained space than its baseline, which makes the comparison conservative rather than flattering.

How one generate-test-constrain turn actually runs

The first prompt carries five blocks: a system role fixing the model as a deterministic Prolog hypothesis generator; the bias constraints; the full background knowledge from bk.pl; every positive and negative example from exs.pl; and a beam request for k=3 candidates ordered as simplest, more specific, and alternative structure — a hedge against mode collapse in generation.

Candidates go to SWI-Prolog and are evaluated example by example under a timeout guard. The scoring function (Eq. 1) has two regimes: zero false positives earns 100 plus the floored recall percentage; any false positive collapses the score to F1 divided by (1 + false positives). Ties break toward the fewest clauses, an MDL-style rule. Consistency is deliberately ranked above completeness.

  • Failures are classified as TOO_GENERAL (covers negatives), TOO_SPECIFIC (misses positives), or SYNTAX_ERROR, and the feedback prompt carries different counterexamples and accumulated constraints per class.
  • Locked clauses: a clause covering at least one positive with zero false positives is locked, its covered positives are removed from E+, background knowledge is filtered, and a fresh round targets the residuals. Multi-clause theories get assembled piece by piece this way.
  • Optimization: once a complete hypothesis exists, clauses are grouped by head predicate and the LLM is asked for simpler equivalents, three rounds, each verified by Prolog, keeping the simplest correct one.
  • The loop caps at T=20 iterations with beam width fixed at k=3; the paper notes that larger k raises latency with diminishing returns on this benchmark.

The locking mechanism is not native to the Learning-from-Failures loop. It is engineering added to compensate for an LLM producing one good clause at a time.

Head to head on 30 tasks: success, iterations, wall clock

The suite is 30 standard ILP tasks from the Popper benchmark collection, spanning five domains: program synthesis (10), IGGP game playing (9), Zendo spatial reasoning (3), robots (3), and other (5). All use noise-free examples in the standard bias.pl / bk.pl / exs.pl format, and every task exists in both a semantic and an anonymized variant. The Popper baseline gets a 1200-second timeout per task.

SystemSuccess (%)Mean iterationsMean time (s)Mean clauses
Popper (ASP)100.06.881.82.7
ALBI + Gemini 3.1 Pro100.01.7333.62.8
ALBI + GPT 5.4 Pro100.01.41631.92.8
ALBI + Claude Opus 4.6100.01.5397.72.9

All three models reach 100% across all five domains, matching Popper. Iteration counts of 1.4-1.7 mean most tasks are solved on the first attempt and the feedback loop never fires. The cost sits in the time column: Popper averages 81.8 seconds, while the fastest ALBI configuration, Gemini, needs 333.6, and GPT 5.4 Pro needs 1631.9. That is not slowness paying for accuracy — GPT 5.4 Pro also posts the lowest mean literal count, 6.0 against 8.2-8.6 for Claude and Gemini, and its optimization phase reduced literals in 12 of 12 applicable tasks. The paper attributes the latency to API round trips and longer generations, and suggests the extra computation may reflect more thorough reasoning.

The configurations are on record: Gemini 3.1 Pro at temperature 0 with thinking level high; Claude Opus 4.6 at temperature 1.0 with a 112K extended-thinking budget and 128K max output; GPT 5.4 Pro at reasoning effort high with a 48K output limit. The sampling temperatures differ across models, which matters for anyone hoping to reproduce the table exactly; the paper does not pursue that point.

Strip the predicate names and run the exam again

This is the part worth copying. Semantic anonymization is a metamorphic test — a check that does not grade the answer directly but asks whether a transformation that should not change the answer leaves the answer unchanged. Here the transformation is a bijection σ over the predicate vocabulary P, renaming every predicate to p1, p2, ... p|P| across background knowledge, positive examples, negative examples, and the bias. The logical structure is untouched; only the hints carried by the names are removed [1].

The metamorphic relation is therefore one sentence: a system that solves task T should solve anonymized task T'. A large drop from T to T' means the system was matching surface names, not inducing structure. The paper calls this an ablation of predicate-name semantics.

The result: all three models still succeed at 100% under anonymization, with iteration counts rising only 1.36-1.67 times. The paper reads this as evidence of robust symbolic reasoning [1]. A more conservative reading is available: the 36% to 67% increase is not zero, and it is precisely a measurement of how much work the names were doing for free.

My read, and what this method cannot see

The boundaries need listing one by one.

  • The sample is 30 tasks, all noise-free. The paper states every task uses noise-free examples; there is no data on how noisy examples in production would affect the 100%.
  • The benchmarks are an existing Popper suite, not a newly built hard set. Zendo and robots contribute only 3 tasks each, which cannot carry a broad cross-domain claim.
  • All three models are specific API-served versions that drift with vendor updates. The temperatures, thinking budgets, and output limits in Table 1 are a snapshot, not a reproducible recipe.
  • The time gap is an order of magnitude: 81.8 seconds against 333.6 and up, with GPT 5.4 Pro at 1631.9. These are per-task means, not tail latencies.
  • The LLM has no completeness over the hypothesis space, only a T=20 iteration cap. Exhaustive ASP enumeration is what was traded away, not a gap that was overlooked.
  • Anonymization renames predicates only; it leaves built-in primitives and constants alone. The paper's own case notes point at tasks such as zendo2 that rely on built-in primitives and iggp-attrition-next-score that involve constant reasoning — semantic cues beyond names are outside this test's reach.

The qualitative section also leaves warning signs. The andersen case discusses semantic bias and the risk introduced during optimization; 1d_flip shows feedback-driven recovery. The same machinery that helps on one task is a hazard on another, which is closer to engineering reality than the 100% figure [1].

References

  1. ALBI: LLM-Guided Inductive Logic Programming via Iterative Generate-Test-Constrain Refinement

Sign in to Padda

A code in your inbox. No password to remember.

Connecting to sign-in…