arXiv:2610.12303cs.AIOct 2026

Manuscript Offprint

arXiv:2610.12303

Learning Probabilistic Logic Programs with Functional Gradient Guided Language Models

Saurabh Mathur, Sahil Sidheekh, Bhavan Vasu, Farbod Tavakkoli, Prasad Tadepalli, Kristian Kersting, Sriraam Natarajan

Saurabh Mathur ∗1^{*1}, Sahil Sidheekh ∗,†2,3^{*,\dagger2,3}, Bhavan Vasu ∗4^{*4}, Farbod Tavakkoli 3^{3}, Prasad Tadepalli 4^{4}, Kristian Kersting 1^{1}, and Sriraam Natarajan 2^{2}

1^{1} Technische Universität Darmstadt

2^{2} The University of Texas at Dallas

3^{3} AT&T CDO

4^{4} Oregon state University

Abstract. Declarative logic programs offer a powerful and interpretable abstraction for encoding relational structure and neurosymbolic reasoning, by expressing dependencies as weighted compositional rules. However, inducing them from data remains fundamentally hard, bottlenecked by the combinatorial explosion of symbolic search spaces. LLMs have recently emerged as powerful hypothesis generators, but when used in isolation, they lack the capacity to do systematic inductive reasoning needed to reliably synthesize valid programs that fit complex relational distributions. We introduce GRASP (Gradient-boosted Synthesis of Probabilistic logic programs), a neurosymbolic framework that casts relational structure learning as functional gradient boosting in which the weak learner is a first-order rule and the intractable inner search is delegated to an LLM proposal oracle. We evaluate GRASP on four relational benchmarks spanning molecular toxicity prediction (Tox21), mutagenesis, and citation matching (Cora), and show that it improves over purely symbolic, neural, and LLM-based baselines, while producing interpretable weighted rule ensembles. By replacing combinatorial search with gradient-guided LLM hypothesis generation, GRASP retains boosting guarantees without sacrificing the transparency of symbolic outputs.

Keywords: Neurosymbolic Learning · Probabilistic Logic Programs · Gradient Boosting

1 Introduction

Relational data arises naturally in many scientific domains, including biological interaction networks, citation graphs, and pharmacological databases. Probabilistic logic programs are a natural representation for such data, expressing relational dependencies as interpretable, compositional rules with calibrated confidences. The predicates of such programs can be grounded in diverse data sources

∗^{*} These authors contributed equally to this work.

†^{\dagger} Work done in part while Sahil was an intern at AT&T CDO.

and modalities, from structured relational databases to unstructured inputs abstracted into deep neural predicates [14]. However, inducing these programs from data remains a fundamental challenge [16].

The key difficulty is that of structure learning: determining which clauses constitute the program. Traditional inductive logic programming (ILP) and statistical relational learning (SRL) methods address this challenge by searching over a hypothesis space of candidate rules. However, this space grows exponentially with rule length, predicate arity, and relational depth, making exhaustive search intractable for complex domains [4]. Functional gradient boosting [6, 19] has offered a principled decomposition of this problem, reformulating structure learning as a sequence of regression problems, each requiring a symbolic weak learner to propose the next rule [19]. While this decomposition reduces the scope of search at each step, inducing the weak learner still requires symbolic search over the relational hypothesis space, which remains the dominant computational bottleneck as relational complexity grows.

Pretrained large language models (LLMs) have emerged as effective hypothesis generators owing to their broad semantic knowledge from their vast training corpora [21, 12]. However, when used in isolation, LLMs lack a mechanism to ground rule generation in the training distribution. When prompted directly, they can produce semantically plausible but inaccurate rules [7], with no guarantees that a generated clause is valid, executable, or consistent with observed data. This tension, between powerful but ungrounded proposers on one hand and principled but search-bound learners on the other, motivates our approach.

We introduce GRASP (Gradient-boosted Synthesis of Probabilistic Logic Programs with Language Models), a neurosymbolic framework that addresses this gap by casting relational structure learning as functional gradient boosting in which the weak learner is a first-order rule and the intractable inner combinatorial search is achieved via LLM proposals. At each boosting iteration, GRASP computes pseudo-residuals over the current program ensemble, identifies the examples carrying the largest functional gradient, and conditions the LLM on local relational descriptions of those examples to propose a small candidate set of rules. Each candidate is symbolically evaluated against the data to learn their weights, and admitted to the ensemble only if it reduces the residual loss. The LLM thus serves purely as a proposal distribution while the boosting framework with symbolic verification remains the trusted estimator. This equips the framework with convergence guarantees of functional gradient boosting, while overcoming the hallucination challenges with purely LLM-based rule generation. Our key contributions are as follows:

– We introduce GRASP, a framework that uses functional gradient boosting to steer LLM-driven synthesis of probabilistic logic programs for relational structure learning.

– We show that pseudo-residual-guided example selection provides an effective signal for directing LLM rule proposal toward unexplained relational variance, replacing combinatorial symbolic search at each boosting step.

Figure

Fig. 1. GRASP Framework. GRASP frames relational learning as a neurosymbolic functional gradient boosting problem. At each iteration t, an LLM receives an example-centered relational context and proposes candidate symbolic rules. A logic solver evaluates each candidate against the relational data, assessing coverage and residual fit. The context updater computes pseudo-residuals ri=yi−σ(Ft−1(xi))r_i = y_i - \sigma(F_{t-1}(x_i)) and selects high-residual examples to steer the LLM toward patterns not yet explained by the ensemble. The accepted rule φt\varphi_t is added with step size η\eta, yielding Ft(x)=Ft−1(x)+ηφt(x)F_t(x) = F_{t-1}(x) + \eta \varphi_t(x). After T iterations, GRASP returns a weighted ensemble of interpretable probabilistic logic rules. This design replaces combinatorial symbolic search with gradient-guided LLM hypothesis generation, while retaining boosting convergence guarantees.

– We evaluate GRASP on 3 relational datasets spanning molecular toxicity prediction (Tox21), mutagenesis, and citation matching (Cora), outperforming symbolic, neural, and LLM-based baselines while producing interpretable weighted rule ensembles.

References (27)