Before you begin
Prerequisites
- Basic first-order logic and conditional probability.
- Understand provenance, missing information and learning signals from chapters 10–12.1.
Learning objectives
- Distinguish entity graphs from graphs of random variables.
- Explain grounding, weighted formulas and joint distributions.
- Compute and interpret a small conditional probability without treating rule weights as probabilities.
- Identify evidence, domain-size and causal assumptions.
Overview
A knowledge graph can say that a paper uses a method, that two researchers collaborated, or that one finding supports a claim. A probabilistic model asks a different question: given observations and explicit assumptions, how should uncertainty about related statements be represented and updated? Drawing connections is not enough. We must identify random variables, their possible values, the information treated as observed, and the distribution that makes a prediction meaningful.
This subchapter connects probabilistic graphical models, statistical relational learning and Markov logic. The first provides representations of joint distributions; the second addresses learning and inference when objects are related; the third uses weighted logical formulas to specify probabilistic interactions. These are overlapping ideas with different roles, not three competing database formats. [1] [2]
Our running example is a fictional scholarly catalogue. We want to estimate whether candidate paper–method relations deserve human inspection. All catalogue records, probabilities and weights below are invented for teaching. They are neither measured scientific findings nor claims about a deployed LUMINA system. A high model score would prioritize a review; it would not turn an unsupported relation into established knowledge.
Build on first-order logic, probability and calibration, and sources of supervision. The central learning objective is to expose assumptions that a compact relational rule can otherwise hide.
Historical and scientific foundations
Friedman, Getoor, Koller and Pfeffer's IJCAI 1999 paper developed learning for probabilistic relational models. Object attributes could depend on attributes of related objects, allowing a relational schema to supply structure instead of flattening every record into an isolated row. The work considered both parameter estimation and structure learning. This establishes a useful distinction: learning numerical strengths is different from learning which dependencies should exist. [2]
Kschischang, Frey and Loeliger's 2001 factor-graph paper explained how a global function can be decomposed into local factors and represented as a bipartite graph. Its sum-product treatment connected inference methods across communications, signal processing and artificial intelligence. Variable nodes and factor nodes play different roles: a factor expresses how a group of values contributes to a joint function. [3]
Richardson and Domingos's 2006 Markov logic paper combined weighted first-order formulas with finite-domain Markov networks. A formula is a reusable template; its ground instances share a weight. The contribution is a probabilistic semantics for interacting logical preferences, rather than simply attaching an independent confidence score to every stored edge. [1]
Other formalisms made different choices. De Raedt, Kimmig and Toivonen introduced ProbLog in 2007, defining query success probabilities through distributions over programs. Bach and colleagues' 2017 account of probabilistic soft logic describes hinge-loss Markov random fields and continuous-variable inference. These alternatives matter because superficially similar rule notation can encode different probability spaces and optimization problems. [4] [5]
Core explanation
Separate the two graphs
In our proposed catalogue, one graph has Paper A, Method M and Researcher R as entities. A probabilistic model might instead contain a binary variable U meaning “Paper A uses Method M,” another variable E meaning “the extractor reports that use,” and another variable D meaning “the source describes a completed experiment.” None of those variables is identical to the paper entity. Document identifiers, source passages and review timestamps remain provenance records around the model.
A directed model can express our chosen factorization as P(U,D,E)=P(U)P(D|U)P(E|U,D). This is a proposed three-variable model, not a scientific account of how papers are produced. Each conditional table must give a normalized distribution for every parent configuration. If we instead choose P(U)P(D)P(E|U,D), we have imposed independence between U and D before observing E. The two expressions are different assumptions, even though both can be drawn using three nodes.
A factor graph makes the multiplication explicit. Factors connect to their argument variables; summing a product over unwanted variables gives a marginal. Sum-product is exact on cycle-free factor graphs under the relevant message-passing construction. Applying messages on loopy graphs does not carry the same general exactness guarantee. [3]
A Bayesian network uses a directed acyclic graph to factor a joint distribution into conditional distributions. A Markov network uses an undirected graph with factors or potentials; its edges indicate probabilistic interaction rather than a temporal or causal direction. [2] [1]
Relational templates and the grounding boundary
Replace U with a predicate Uses(p,m). Given an explicit list of papers and methods, grounding substitutes those objects for p and m. A proposed catalogue with three papers and two methods has six candidate Uses atoms if every pair is permitted. That is already a modeling choice: type restrictions or a candidate-generation rule might retain fewer pairs. Our implementation should record which pairs were excluded before inference.
Probabilistic relational models reuse dependencies across related objects. For a paper with several authors, an aggregation mechanism may be needed to convert a variable-sized set of author attributes into a defined parent input. A relational template must also generate a valid directed model where that semantics is intended. [2] Link uncertainty introduces a further choice: Getoor and colleagues distinguished uncertainty about references from uncertainty about whether links exist. Treating a fixed observed graph as input does not model those same unknowns. [6]
Weighted logic specifies a joint distribution
For a finite-domain Markov logic network, P(x)=exp(Σᵢ wᵢ nᵢ(x))/Z. Here x is a complete truth assignment, nᵢ(x) counts satisfied groundings of formula i, and Z sums the numerator over permitted worlds. Finite weights express preferences; hard constraints exclude worlds. Inconsistent hard constraints can leave no normalizable distribution. The weight is not a rule's probability. [1]
Consider our invented preference ReportsUse(p,m) ⇒ Uses(p,m). When ReportsUse is fixed true, the rule favors Uses being true. When ReportsUse is false, the implication is satisfied for either value of Uses and contributes the same factor to both. This is material implication, not a command that fires a procedure. If the reporting atom itself is uncertain, inference must consider its alternatives too. The worked enumeration below shows why silently fixing an antecedent changes the question.
Inference, learning and semantic alternatives
Marginal inference asks for a variable's probability after summing over other unknowns. A most-probable complete assignment chooses one joint configuration. Learning changes parameters or structure from data. They should be separate entries in an experiment log: a successful optimizer run does not mean that marginal probabilities were computed or validated.
In ProbLog's original formulation, independent inclusion choices determine a sampled program, and a query's probability sums the probabilities of programs in which it succeeds. Shared proof components mean that proof probabilities cannot generally be added as though proofs were disjoint. [4] In probabilistic soft logic, continuous variables and hinge-loss potentials support convex MAP inference in the stated model class. A continuous truth value returned by MAP optimization is not automatically a calibrated marginal probability of a discrete fact. [5]
Worked examples
Example 1: exact enumeration of two uncertain atoms
Let A mean “a passage reports method use” and B mean “the paper uses the method.” Give the single formula A ⇒ B weight log(3), and include no other formulas. This is a deliberately incomplete toy model. The four worlds (A,B) are (0,0), (0,1), (1,0), (1,1). Their unnormalized weights are respectively 3, 3, 1 and 3, because only (1,0) violates the implication. The partition function is therefore 10.
The resulting marginal P(B=1) is (3+3)/10=0.6. After observing A=1, only two worlds remain, so P(B=1|A=1)=3/(1+3)=0.75. After observing A=0, the two allowed worlds have equal weight and P(B=1|A=0)=0.5. The rule weight log(3), approximately 1.099, is clearly not any of these probabilities.
There is another revealing result: P(A=1)=4/10=0.4. The model can avoid the unfavorable world partly by making the antecedent false. A reader who intended “reports are external evidence” should condition on the reporting variable, or design an explicit observation model. Leaving it unknown expresses a different question. This example exposes the effect directly without relying on a large inference package.
Now add a unary preference for not-B, also weighted log(3). With A=1, the B=0 world satisfies the unary preference while the B=1 world satisfies the implication; both have weight 3. The conditional probability becomes 0.5. One cannot interpret a rule's contribution without examining the other factors that mention the same variable.
Example 2: repeated reports and a shared source
Suppose two catalogue rows both transcribe one abstract. In a deliberately simplified model with B as the only unknown, let each positive report contribute a factor of 3 when B=1 and 1 when B=0. Start from equal prior weights. One report gives P(B=1)=3/4; two multiplied reports give 9/10. The second number is an exact consequence of our specified factors, not evidence that copying an abstract adds information.
For a proposed production model, the source identifier should expose that dependence. One option is to collapse identical reports before constructing factors; another is to represent a shared latent source variable. Which option is suitable depends on the extraction and observation process. This exercise does not establish that every pair of reports is dependent, or that deduplication alone solves evidence assessment.
Example 3: a probabilistic dependency is not a causal intervention
Imagine our catalogue predicts that highly cited papers are more likely to use Method M. That prediction does not show that increasing citations would cause adoption of M. A field, year or selection process could account for the association. Before interpreting a recommendation causally, write down what action would be changed, when it would occur, and which outcomes would be compared. The toy model contains none of that intervention semantics.
Practice and implementation
This dependency-free Python enumerates the four toy worlds. It checks normalization, the marginal, both evidence conditions, the competing preference and the repeated-factor arithmetic. It is not a general Markov logic engine and performs no weight learning.
import math
from itertools import product
worlds = list(product((0, 1), repeat=2))
def distribution(negative=False):
weights = {}
for a, b in worlds:
score = math.log(3) * int((not a) or b)
if negative:
score += math.log(3) * int(not b)
weights[a, b] = math.exp(score)
z = sum(weights.values())
return {x: w/z for x, w in weights.items()}
def conditional(p, a):
return p[a, 1] / (p[a, 0] + p[a, 1])
p = distribution()
assert math.isclose(sum(p.values()), 1)
assert math.isclose(sum(v for (a,b),v in p.items() if b), .6)
assert math.isclose(conditional(p, 1), .75)
assert math.isclose(conditional(p, 0), .5)
assert math.isclose(conditional(distribution(True), 1), .5)
assert math.isclose(3**2 / (1 + 3**2), .9)
print([round(p[x], 3) for x in worlds])
print(round(conditional(p, 1), 3))
The expected output is [0.3, 0.3, 0.1, 0.3] followed by 0.75. Change the competing unary weight and predict the direction of the result before running it. If the probability moves unexpectedly, inspect every world's score before changing the inference algorithm.
For a proposed scholarly-graph experiment, begin with one decision such as prioritizing candidate method relations for review. Freeze the source documents, entity mapping and annotation rubric. Define observed predicates separately from query predicates, and specify what an omitted record means. Keep a manifest of the finite domain and candidate restrictions so another researcher can reconstruct the same worlds.
Then compare a text-only baseline with a relational model under the same permitted evidence. Hold out document groups or time periods that match the intended use; keep duplicate versions together. Inspect whether relations that connect training and test records disclose labels indirectly. Tune rules and thresholds on development data, then report performance on untouched annotations. This is a proposed evaluation procedure, not an experimental result.
Record prediction quality and computational cost separately. Include grounding counts, memory, inference time, approximate-inference settings and failure cases. If an approximate solver cannot reproduce the four-world test, do not interpret its large-graph outputs. A passing toy test establishes only local implementation behavior; source validity and calibration still require representative data.
Limitations and common mistakes
First, “unknown” needs a declared treatment. If a relation is absent because no annotator inspected it, treating the absence as false teaches a different model from treating it as unobserved. Keep the extraction process separate from the target scientific relationship. The distinction follows the earlier discussion of open- and closed-world assumptions.
Second, more objects can change a model's behavior even when its written formulas and weights stay fixed. Weitkämper's 2025 analysis shows why scaling weights with domain size is not a universal repair for Markov logic, while establishing more transparent asymptotic behavior for the investigated directed relational-logistic models. The application context determines whether counts or proportions are the appropriate influence. [7]
Third, compact rules do not ensure cheap inference. A catalogue may have relatively few stored positive facts but many candidate ground atoms. In our three-paper, two-method toy setting, six Boolean atoms already admit 64 complete assignments before evidence or constraints reduce them. With twenty independent Boolean unknowns, naive enumeration would inspect 1,048,576 assignments. These counts follow directly from the binary state space; they are not a benchmark of any particular solver.
Finally, distinguish an intelligible rule from a validated explanation. A reviewer can read our implication, yet its weight may have been fitted to biased annotations. A transparent model can still encode an unsuitable assumption. For the proposed catalogue, expose the source passage, observed inputs, alternative candidate relations and review status alongside a score. Do not present the rule alone as proof of the scientific statement.
Recent advances and publications
A bounded search through 2 November 2026 identified several directly relevant developments from 2025–2026. These studies refine tractability and model semantics; they do not establish a single best system for scholarly knowledge graphs.
Weitkämper's article, published in Machine Learning on 14 February 2025, studies weight scaling and extrapolation across domain sizes. Its contribution is mathematical analysis and illustrative models, including counterexamples to a simple parameter-scaling expectation for MLNs. It motivates testing a catalogue at different sizes rather than assuming that a fitted rule transfers unchanged. That recommendation is our design inference, not a reported LUMINA result. [7]
Malhotra, Bizzaro and Serafini's 2025 Artificial Intelligence paper extends domain-liftable weighted first-order model counting with specified graph constraints, including acyclicity and connectivity, using a counting-by-splitting method. The guarantees apply to the stated logical fragments and restrictions, not arbitrary rule collections. The author manuscript was inspected because the publisher page was inaccessible; its record links the journal publication and DOI. [8]
Ge, Juba, Nilsson and Shao's UAI 2026 paper develops implicit learning to reason in first-order probabilistic logic. Rather than always constructing a complete explicit probabilistic model, it combines observations and prior constraints with semidefinite relaxations to address queries. Its tractability and logical guarantees have formal conditions; the result should not be read as unrestricted efficient inference for every MLN or as demonstrated catalogue deployment. [9]
Luttermann, Braun, Möller and Gehrke's article, published on 26 June 2026, introduces causal semantics for parametric factor graphs and lifted causal inference, including partially directed models. The contribution explicitly adds causal knowledge and intervention treatment. It reinforces the distinction between ordinary conditioning and causal questions; it does not make an observational knowledge graph causal merely by renaming its edges. [10]
Real-world applications
The 2002 link-structure study models content and relational uncertainty together and evaluates prediction of links and attributes. It supplies an empirical research precedent for jointly considering relational structure and entity properties, rather than evidence that every available edge improves a new task. [6]
The original ProbLog paper reports link-discovery experiments in biological networks. Its solver combines logical proof search with Boolean probability calculations. This is a documented research application; it should not be described as clinical validation or as evidence that probabilistic reachability establishes a biological mechanism. [4]
Probabilistic soft logic provides another route for structured prediction where a continuous relaxation and convex MAP objective suit the task. The 2017 paper develops scalable inference and parameter learning, but its evaluated comparisons do not establish universal superiority over discrete models. The choice should follow the variable semantics and query being answered. [5]
For LUMINA, a reasonable proposed application is a review queue that combines uncertain extraction with explicit relation constraints. Keep a prediction in a candidate layer until a reviewer examines the evidence. Store the model version and the evidence snapshot used for the prediction. If a source is corrected, recompute affected candidates and preserve the earlier decision trail. This is a design proposal, not a claim that such a system is currently operating.
Key lessons and practice question
A useful probabilistic graph model declares its variables, domain, evidence, factorization and inference question. A relational template shares structure across objects. Weighted logic coordinates preferences across possible worlds. None of these steps substitutes for reliable annotations, a justified observation model or evaluation on the intended task.
Practice question: Two database rows copy one abstract. A rule assigns each row a positive factor of 3 for a candidate relation, starting from equal prior weights. The model reports 0.9. Is that a justified increase from the one-row probability of 0.75, and would observing the reporting predicate to be false prove the relation false?
Suggested answer: 0.9 is correct for the stipulated multiplied factors, but the duplication does not supply a second independent observation. The model specification needs reconsideration. In the single-implication example, observing the antecedent false leaves B at 0.5, because the rule then favors neither alternative. Distinguish what the computation proves about its own specification from what the evidence supports about the world.
References
- Matthew Richardson and Pedro Domingos (2006). Markov logic networks. Machine Learning 62:107–136. published. DOI: 10.1007/s10994-006-5833-1. Accessed 2026-11-02.
- Nir Friedman, Lise Getoor, Daphne Koller and Avi Pfeffer (1999). Learning Probabilistic Relational Models. IJCAI, 1300–1308. published. Accessed 2026-11-02.
- Frank R. Kschischang, Brendan J. Frey and Hans-Andrea Loeliger (2001). Factor Graphs and the Sum-Product Algorithm. IEEE Transactions on Information Theory 47(2):498–519. published. Accessed 2026-11-02.
- Luc De Raedt, Angelika Kimmig and Hannu Toivonen (2007). ProbLog: A Probabilistic Prolog and Its Application in Link Discovery. IJCAI, 2462–2466. published. Accessed 2026-11-02.
- Stephen H. Bach, Matthias Broecheler, Bert Huang and Lise Getoor (2017). Hinge-Loss Markov Random Fields and Probabilistic Soft Logic. JMLR 18(109):1–67. published. Accessed 2026-11-02.
- Lise Getoor, Nir Friedman, Daphne Koller and Benjamin Taskar (2002). Learning Probabilistic Models of Link Structure. JMLR 3:679–707. published. Accessed 2026-11-02.
- Felix Q. Weitkämper (2025). Scaling the weight parameters in Markov logic networks and relational logistic regression models. Machine Learning 114, article 85. published. DOI: 10.1007/s10994-024-06635-7. Accessed 2026-11-02.
- Sagar Malhotra, Davide Bizzaro and Luciano Serafini (2025). Lifted Inference beyond First-Order Logic. Artificial Intelligence 342, 104310; author manuscript arXiv v5. published. DOI: 10.1016/j.artint.2025.104310. Accessed 2026-11-02.
- Luise Ge, Brendan Juba, Kris Nilsson and Alison Shao (2026). Implicit Learning for Reasoning in First-Order Probabilistic Logic. UAI, PMLR 337:1684–1694. published. Accessed 2026-11-02.
- Malte Luttermann, Tanya Braun, Ralf Möller and Marcel Gehrke (2026). Lifted causal inference. Annals of Mathematics and Artificial Intelligence; published 26 June 2026. published. DOI: 10.1007/s10472-026-10009-1. Accessed 2026-11-02.