Intelligence, Agency & Consciousness · Paper 0097

When every rule becomes a weighted feature

Matthew Richardson and Pedro Domingos make first-order formulas into templates for a Markov network: logic supplies reusable relational structure, while weights make violations costly rather than impossible.

Intelligence, Agency & Consciousness · Paper 0097

When every rule becomes a weighted feature

Rajesh Ranjan Mahapatra

Matthew Richardson and Pedro Domingos make first-order formulas into templates for a Markov network: logic supplies reusable relational structure, while weights make violations costly rather than impossible.

© 2026 Rajesh Ranjan Mahapatra. 28 min read

When every rule becomes a weighted featureAll AI Research Library

TLDR

Five-point orientation
  1. An MLN is a weighted first-order knowledge base. A finite domain turns every ground atom into a binary node and every grounded formula into a feature.
  2. Weights soften universal rules. A world earns score from the number of true groundings; higher weight makes violations less probable without declaring them impossible.
  3. Grounding is a template expansion. One formula shares a parameter across many objects, producing a large but regular undirected network.
  4. Inference and learning are hard. The paper constructs a query-relevant subnetwork, uses MaxWalkSat plus Gibbs sampling, and trains weights with penalised pseudo-likelihood.
  5. The experiment is promising, not final. MLNs lead on one university link-prediction task, but finite-domain assumptions, incomplete data and expensive grounding remain important boundaries.
01 · The seam between two traditions

First-order logic can state one rule for every person, course or publication. Probabilistic graphical models can combine uncertain evidence coherently. Richardson and Domingos propose a compact interface that keeps both advantages.

The paper opens from a genuine division in artificial intelligence. A first-order formula can describe recurring relational structure without naming every object: friends tend to resemble one another, advisers co-author with students, or records with matching fields may denote the same entity. Classical logic, however, treats a universal formula as inviolable. One exception can make a knowledge base inconsistent, after which ordinary entailment becomes useless.

A propositional Markov network handles uncertainty and cycles, but it normally requires the modeller to enumerate variables and features for one fixed domain. Relational applications contain repeated patterns across thousands or millions of possible tuples. Flattening all of that structure by hand destroys the economy that logic provides.

A Markov logic network, or MLN, is a set of pairs: a first-order formula and a real-valued weight. The formula is a template; a finite set of constants expands it into grounded features. Every grounding shares the formula’s weight. The resulting object is an ordinary log-linear Markov network over truth values of ground atoms.

From the probability side, the language compactly specifies enormous networks and allows domain knowledge to be added modularly. From the logic side, the weights tolerate exceptions and contradictions. A violated formula lowers a world’s probability according to its weight and how often it is violated; it need not erase the world.

The simplicity is easy to underestimate. Markov logic does not add a special probability operator to first-order syntax. It uses standard formulas to construct binary features. The probabilistic semantics then lives in the distribution over complete possible worlds. This clean division makes the framework expressive, while immediately exposing computational cost.

Markov logic joins relational structure to uncertain worldsFirst-order formulas flow from the left and Markov-network weights from the right into an MLN template. Grounding produces a finite network and a distribution over possible worlds.FIRST-ORDER LOGICobjects · relations · reuseMARKOV NETWORKSweights · cycles · uncertaintyMLN TEMPLATEpairs (formula, weight)GROUND NETWORKdistribution over worlds
The interface is deliberately spare: standard formulas provide reusable relational templates, and ordinary log-linear semantics assigns probability after grounding.Original reconstruction after Richardson and Domingos 2006, §§1–4.

Worked example 1 · the rule with one exception

Suppose “students are not professors” is usually right, but one person temporarily has both roles. As a hard axiom, that record conflicts with the database. As a positively weighted formula, the exceptional world remains possible but loses score for the violated grounding. Other regularities can still influence every query.

Causal probe 1 · send the weight towards infinity

As an equal positive weight grows without bound, worlds violating any rule lose all limiting probability relative to worlds satisfying the knowledge base. Soft preference becomes hard logical constraint. The intervention reveals that classical logic is a limiting case, not a separate add-on.

02 · The probabilistic engine

A world is scored by feature satisfaction

The grounded MLN is a Markov network: an undirected graph whose cliques carry non-negative potentials, equivalently a log-linear model whose weighted features score complete assignments.

Let X collect binary variables and x denote one complete state. A Markov network assigns probability proportional to the product of clique potentials. In log-linear form, it assigns probability proportional to the exponential of a weighted feature sum. The partition function Z adds the scores of every possible state so that probabilities total one.

The paper focuses on binary features. A grounded formula contributes one when it is true in world x and zero when false. Because every grounding of formula Fᵢ has weight wᵢ, their contributions can be collected as wᵢnᵢ(x), where nᵢ(x) is the number of true groundings in that world.

Only score differences matter before normalisation. If two worlds differ by one satisfied grounding of a weight-w formula and agree on everything else, their probability ratio is eʷ. This is the local intuition behind a weight. In a full MLN, formulas overlap, so changing one truth value usually changes several features. A single weight is therefore not generally the marginal probability of its formula.

The graph records direct dependence. Two ground atoms share an edge exactly when they occur together in at least one grounded formula. All atoms within a ground formula form a clique, though not necessarily a maximal one. Conditional independence follows from this undirected structure.

Exact probabilistic inference is already #P-complete for Markov networks. The logical layer adds an exponential grounding space and finite-domain satisfiability. Expressiveness does not repeal hardness; it gives the modeller regularities that approximate algorithms can exploit.

P(X = x) = (1 / Z) exp( Σᵢ wᵢ nᵢ(x) ) Z = Σₓ exp( Σᵢ wᵢ nᵢ(x) ) nᵢ(x) = number of true groundings of formula Fᵢ in world x
Weighted feature counts turn world scores into probabilitiesThree possible worlds contain different numbers of true groundings. Their weighted sums pass through an exponential and a shared normaliser, producing high, medium and low probabilities.WORLD x₁WORLD x₂WORLD x₃5 true groundingsscore = e⁵ʷ3 true groundingsscore = e³ʷ1 true groundingscore = eʷDIVIDE EACH BY Znormalised probabilities sum to 1
The count nᵢ(x) rewards every true grounding. Normalisation couples all worlds, so a formula’s weight is a log-score contribution rather than a stand-alone probability.Original schematic after Richardson and Domingos 2006, Eqs. 1–3.

Worked example 2 · one implication, four worlds

With one constant A and one formula R(x) ⇒ S(x), there are four assignments to R(A) and S(A). Three satisfy the implication and receive score eʷ; the world R(A)=true, S(A)=false receives score 1. Given R(A), the probability of S(A) becomes 1/(1+e⁻ʷ), the logistic transformation of the weight.

Causal probe 2 · add one satisfied grounding everywhere

If every world gains the same weighted feature contribution, all unnormalised scores receive the same multiplier. Z receives it too, and every probability is unchanged. Only differences in grounded satisfaction can influence the distribution.

03 · The first-order template

Constants turn predicates into binary nodes

An MLN L becomes a concrete network only when paired with a finite constant set C. Grounding replaces variables by constants, creating nodes, features and shared parameters.

For every possible grounding of every predicate appearing in L, the ground network contains one binary node. Friends(Anna,Bob), Smokes(Anna) and Cancer(Bob) are distinct variables. A node is one when its atom is true in the possible world and zero otherwise.

For every possible grounding of formula Fᵢ, the network contains a binary feature with weight wᵢ. If Fᵢ is Friends(x,y) ⇒ (Smokes(x) ⇔ Smokes(y)), every ordered pair of people yields a feature. The common weight ties these instances together statistically.

The same MLN can generate differently sized networks for different constant sets while preserving formula structure and parameter sharing. This is the key relational economy. The model does not learn an unrelated coefficient for Anna–Bob, Bob–Chris and Chris–Dana; it represents one regularity about friendship and smoking.

Clausal conversion may split a formula. The paper divides the original weight equally among resulting clauses before grounding them. Existential quantifiers are replaced by disjunctions over the finite constant set. Free variables are treated as universally quantified at the outermost level.

The procedure can still explode. A predicate of arity a admits O(|C|ᵃ) ground atoms before evidence or typing prunes anything. A three-variable formula may generate cubic numbers of features. The template is compact; its full propositional expansion need not be.

One first-order formula expands into shared weighted ground featuresA formula about friends and smoking sits above constants Anna, Bob and Chris. Grounding produces three features with the same weight, connected to binary ground-atom nodes.Friends(x,y) → same smoking stateshared weight wF(Anna, Bob)weight wF(Bob, Chris)weight wF(Anna, Chris)weight wSmokes(Anna)Smokes(Bob)Smokes(Chris)
Grounding copies structure but not parameters: each feature instance reuses w. This is how one relational statement becomes a regular family of dependencies.Original reconstruction after Richardson and Domingos 2006, Definition 4.1.

Worked example 3 · three people, one relation

With Anna, Bob and Chris, the unary predicate Smokes produces three nodes. A directed binary predicate Friends produces nine possible ground nodes, including self-pairs unless rules or evidence remove them. A two-variable formula generates nine features. The compact sentence hides a concrete network whose size depends on the domain.

Causal probe 3 · double the constant set

Unary ground atoms double, binary ones quadruple and a three-variable formula’s groundings grow eightfold. The formula file has not changed, yet memory and inference cost can change dramatically. Domain size is therefore part of the model’s operational meaning.

04 · Assumptions that close the world

Finite semantics requires names, objects and functions to be controlled

The 2006 definition is intentionally practical. Three assumptions ensure a finite, unique ground distribution: distinct names, domain closure and known function values.

The unique-names assumption says different constants denote different objects. Anna and Bob cannot secretly refer to one person. Remove it, and equality becomes an uncertain predicate linked by reflexivity, symmetry, transitivity and substitution axioms. The framework can then infer whether two records identify the same entity.

Domain closure says the only objects are those represented by available constants and function values. If the number of unknown objects is known, arbitrary new constants can be added. If the number is unknown but finite, the paper sketches a distribution over possible counts. Truly infinite domains are left as future work.

Known functions say every function applied to a possible argument tuple has a known value that is already a constant. This prevents nested terms from generating an infinite Herbrand universe. Removing the assumption requires treating terms as additional constants and reasoning about equality; bounding nesting keeps the result finite.

These are semantic commitments, not housekeeping details. A different constant set changes the node set, feature counts, partition function and probabilities. An MLN is therefore not just L; it is evaluated with a domain C and an interpretation regime.

Later work did extend Markov logic to infinite domains through Gibbs measures under locality conditions. That result should not be read backwards into the 2006 paper, whose propositions and algorithms explicitly operate over finite C.

Three assumptions keep the grounded world finiteUnique names, domain closure and known functions form three gates before a finite ground network. Removing each gate introduces equality, unknown objects or nested terms.UNIQUE NAMESdifferent constantsdifferent objectsDOMAIN CLOSUREconstants enumerateall objectsKNOWN FUNCTIONSevery term resolvesto a constantFINITE GROUND NETWORKwell-defined normalised distribution
The assumptions bound what grounding must enumerate. Relaxing them is possible only by adding further representational and probabilistic machinery.Original synthesis after Richardson and Domingos 2006, Assumptions 1–3.

Worked example 4 · duplicate author names

Two citation records use “P. Domingos” and “Pedro Domingos”. Under unique names they denote different people. Replacing that assumption with a weighted Equals predicate allows matching fields, co-authors and transitive identity to support a probabilistic same-person judgement.

Causal probe 4 · admit an unnamed object

A new object creates new ground atoms and features. Existing probabilities can shift because Z and feature counts change. Domain closure is not merely a database convenience; breaking it changes the population over which the model is normalised.

05 · Soft logic and its hard limit

Violations lower probability one grounding at a time

In classical first-order logic, a universal rule excludes every violating world. In an MLN, a finite weight grades worlds by how many grounded instances hold. This is the formal source of robustness.

Consider “smoking causes cancer”. As a universal axiom, one cancer-free smoker falsifies the sentence. As a positive-weight MLN feature, each person contributes separately. A world with one exception is penalised less than a world with ten, all else equal. Statistical frequency and logical structure meet at the grounding count.

A negative weight rewards falsity rather than truth. The paper notes that any negatively weighted formula can be replaced by its negation with a positive weight, so analysis may assume non-negative weights without losing generality.

When the unsigned formulas are jointly satisfiable and weights are non-negative, satisfying assignments are modes: they maximise the weighted sum by making every ground feature true. With finite weights, nonsatisfying worlds still retain mass. Contradictory formula sets can also define useful distributions because the model balances weighted satisfaction instead of exploding.

The logical limit is precise for a satisfiable knowledge base given equal weights w. As w tends to infinity, probability becomes uniform over worlds satisfying the knowledge base and zero elsewhere. A formula is entailed exactly when its limiting probability is one. Unequal diverging weights or inconsistent bases require more care and are not covered by that proposition.

Hard constraints can also be represented directly with infinite weight in the product-of-potentials view, assigning zero probability to violating worlds. Mixing hard and soft formulas lets a model distinguish inviolable structural conditions from noisy empirical regularities.

Finite weights soften logic and infinite weights recover entailmentA weight dial moves from zero through a finite value towards infinity. At zero, satisfying and violating worlds are equal; at a finite value, violations survive with less mass; at infinity, only satisfying worlds remain.w = 0formula has no effectsatisfy = violateFINITE wsoft constraintviolations retain massw → ∞hard logical limitviolations vanishSATISFIABLE KB + EQUAL WEIGHTS
Classical entailment is recovered under stated conditions. The finite middle is the distinctive MLN regime: rules guide probability without becoming exceptionless.Original reconstruction after Richardson and Domingos 2006, Proposition 4.3.

Worked example 5 · three exceptions versus one

If a weight-1.5 rule has ten groundings, a world satisfying nine receives e¹² more unnormalised score from that rule than a world satisfying one, because their true-count difference is eight. The comparison holds before overlapping formulas and Z are considered.

Causal probe 5 · duplicate a formula

Adding an identical copy with the same weight doubles its contribution and changes the distribution. Logical equivalence alone does not preserve an MLN: syntax determines which features are counted. Model review must therefore catch redundant clauses and accidental ground multiplicity.

06 · Query-directed inference

Construct only the network the question can reach

Directly summing over all worlds is intractable. The paper narrows practical queries to conjunctions of ground literals, constructs a relevant subnetwork and performs approximate inference there.

The general query asks for P(F₁|F₂,L,C): sum the probabilities of worlds satisfying query and evidence, then divide by the probability of the evidence. The form is exact but computationally prohibitive for all but tiny domains.

For ground-literal queries and evidence, network construction begins from the unknown query atoms. It repeatedly adds each atom’s Markov blanket: all ground atoms that co-occur with it in a grounded formula. Evidence nodes stop expansion because their truth values are clamped. Ground formulas made true by evidence can be removed along with their irrelevant arcs.

The second phase uses Gibbs sampling. Each ground atom is sampled conditioned on its Markov blanket, with probability computed from the weights of features containing it under the two candidate truth values. Marginals become sample frequencies after convergence. Blocks can update mutually exclusive values together.

Multi-modal distributions make naive burn-in slow. The implementation runs several chains and initialises each near a mode found by MaxWalkSat, a local search procedure for weighted satisfiability. Hard clauses constrain the search to regions that satisfy them; Gibbs sampling then explores within and among probable regions.

This is not lifted inference. Variables have been grounded before sampling, even if only a relevant portion is constructed. The authors explicitly name inference without grounding as future work. Later lifted methods exploit symmetry more directly, but those developments must remain outside the primary paper’s claims.

Inference expands a query through Markov blankets and then samplesA query node grows a highlighted relevant subnetwork until clamped evidence blocks further expansion. MaxWalkSat finds starting modes and Gibbs sampling estimates the query marginal.QUERYblanketblanketblanketevidenceblanketoutsideMAXWALKSAT STARTSGIBBS FREQUENCIES
Evidence can shield the query from distant nodes. The relevant ground network is then sampled, with local weighted satisfiability providing high-probability starting states.Original reconstruction after Richardson and Domingos 2006, §5 and Table 3.

Worked example 6 · cancer given smoking

Clamp Smokes(Anna)=true and query Cancer(Anna). The relevant subnetwork contains formulas joining those atoms and any neighbours introduced by overlapping rules. A distant course-enrolment component is excluded if no grounded formula connects it to the query before evidence blocks expansion.

Causal probe 6 · unclamp a bridge atom

An evidence atom that once stopped expansion becomes unknown. Its Markov blanket must now be added, which may connect a much larger component. The query is identical, but removing one observed value can increase inference cost sharply.

07 · Learning weights without the full partition function

Match grounded counts locally when global likelihood stalls

In principle, maximum-likelihood learning adjusts each weight until the model’s expected true-grounding count matches the observed count. In the experiment, the required full-network sampling did not converge in practical time.

A relational database becomes one observed possible world under a closed-world assumption: a ground atom absent from the database is treated as false. For formula Fᵢ, the log-likelihood gradient equals its observed number of true groundings minus the model’s expected number. This is the familiar exponential-family moment-matching form.

Both sides are difficult. Counting true groundings of a first-order clause is #P-complete in clause length. Estimating the expectation requires inference over the current ground network, and evaluating likelihood requires the partition function. Monte Carlo maximum likelihood therefore nests slow sampling inside repeated optimisation.

The authors tried ten Gibbs chains on their university network. Even after roughly two million steps per chain over 24 hours, the convergence statistic remained poor. They estimated that training could take tens to hundreds of days. Models trained from unconverged samples performed badly.

The practical substitute is pseudo-likelihood: multiply each ground atom’s probability conditioned on its observed Markov blanket. This avoids the global partition function and allows exact local calculations. Limited-memory BFGS optimises the pseudo-log-likelihood, with independent Gaussian weight priors discouraging overfitting.

Several savings matter. Ignore predicates absent from a formula; cache grounding counts that do not depend on weights; and skip ground clauses whose truth value cannot change when one literal is flipped. The approximation trades global calibration for tractability, a boundary the paper reports candidly.

Structure learning is treated more lightly. CLAUDIEN induces arbitrary first-order clauses or refines volunteer rules under a language bias. A tighter integration between clause search and weighted objective is left for future work.

Full likelihood stalls while pseudo-likelihood uses local blanketsThe full-likelihood path requires a partition function and model-wide expectations, leading to unconverged chains. A second path conditions each atom on its observed Markov blanket and reaches L-BFGS weight updates.FULL LIKELIHOODpartition function + globalexpected grounding counts24 HOURSchains still unconvergedPSEUDO-LIKELIHOODeach atom conditioned onits observed blanketL-BFGSlocal objective + Gaussian priorTRACTABILITY FOR GLOBAL FIDELITYan explicit approximation
The unsuccessful MC-MLE attempt is evidence, not an omitted footnote. Pseudo-likelihood makes training practical by replacing a global objective with local conditionals.Original reconstruction after Richardson and Domingos 2006, §§6–7.2.

Worked example 7 · observed minus expected

A friendship formula has 80 true groundings in data but only 55 expected under the current model. Its positive gradient pushes the weight upward. If the model expects 92, the gradient pushes downward. Pseudo-likelihood approximates this pressure through per-atom conditional changes rather than global world samples.

Causal probe 7 · treat every missing tuple as false

In an incomplete database, closed-world labelling turns unknown links into negative examples. Learned weights may then reflect data collection as well as the domain. Changing the missingness treatment can alter both counts and evaluation, even when the formulas remain fixed.

Executable artefact

Exact tiny-world MLN laboratory

Choose a grounded relational pattern and a shared formula weight. The laboratory enumerates every unknown Boolean world, counts satisfied ground features, normalises exact scores and reports the query marginal.

Query marginal
Ground feature account
Normaliser

Worked example 8 · logistic probability appears

Choose “Smoking and cancer”. Smokes(A) is evidence and Cancer(A) is unknown. The rule’s one grounding is true when Cancer(A) is true and false otherwise. The exact conditional probability is eʷ/(eʷ+1), matching the laboratory’s enumeration.

Causal probe 8 · set the weight to zero

Every world receives the same score regardless of formula truth. The unknown query marginal becomes 0.5. Formula syntax without non-zero weight has no probabilistic force, although the nodes and feature still exist.

08 · The university experiment

The empirical study predicts adviser relationships in a scraped University of Washington computer-science database. Its scale is substantial for 2006, but its evidential scope is one domain and one principal task.

The domain contains twelve ordinary predicates, ten equality predicates and 2,707 constants across ten types. Typed grounding still permits 4,106,841 possible atoms, while the database contains only 3,380 true tuples. Four department volunteers, without seeing the tuple database, contribute formulas that merge into a 96-formula knowledge base.

The data is divided into five areas: artificial intelligence, graphics, programming languages, systems and theory. Training uses four areas and testing uses the held-out fifth. Cross-area tuples are discarded to reduce contamination. The target predicate is AdvisedBy(x,y).

Two evidence conditions are reported. “All Info” supplies every other predicate. “Partial Info” withholds Student(x) and Professor(x), forcing systems to infer intermediate predicates. Performance uses average conditional log-likelihood and area under the precision–recall curve.

The comparison spans the volunteer knowledge base, CLAUDIEN-induced and refined variants, MLNs formed from them, naive Bayes and a learned Bayesian network over engineered propositional features. This is not a clean comparison of identical information: different systems receive different representational machinery and some receive manually designed attributes.

The basic MLN built from the volunteer knowledge base performs best in AUC and conditional log-likelihood across both evidence settings in the aggregate table. Adding induced clauses does not reliably help; one refined MLN variant performs particularly poorly. The experiment therefore supports weighted relational knowledge, not the stronger claim that any automatic clause learning improves it.

Incomplete adviser data causes a precision drop near 50 per cent recall, and historical changes in advisers create smaller anomalies. The authors present the results as illustrative promise rather than universal dominance. That calibration should be preserved.

The UW-CSE experiment flows from relational data to held-out adviser predictionA pipeline shows constants, sparse tuples and volunteer formulas divided into five research areas. Four areas train a model and one tests AdvisedBy under all-information and partial-information conditions.UW-CSE DATA2,707 constants3,380 true tuplesKNOWLEDGE BASE96 formulasfrom four volunteersFIVE AREAStrain on fourtest on oneALL INFOother predicates observedPARTIAL INFOroles withheld
The leave-one-area-out design tests relational transfer within one department. Sparse observations and discarded cross-area tuples shape what the reported numbers can establish.Original reconstruction after Richardson and Domingos 2006, §7 and Table 4.

Worked example 9 · why intermediate predicates matter

If Student(Matt) and Professor(Pedro) are withheld, a propositional classifier cannot simply consume those attributes. An MLN may infer them jointly from authorship, courses and other relations while also scoring AdvisedBy(Matt,Pedro). The same network propagates uncertainty across the chain.

Causal probe 9 · restore cross-area tuples

Relations between training and held-out areas could leak direct evidence about test pairs and raise measured performance. The authors discard them to reduce this route. The intervention clarifies why relational cross-validation must split edges as well as rows.

09 · One language, several relational tasks

Change the query, latent predicates and evidence: not the formalism

The paper shows how five tasks can be expressed in MLNs: collective classification, link prediction, link-based clustering, social-network modelling and object identification.

Collective classification predicts an object’s class using both its attributes and the uncertain classes of related objects. Class predicates remain mutually dependent after conditioning on observed attributes. Ordinary independent classification is a special case in which those dependencies disappear.

Link prediction makes a relation itself the query. The UW-CSE adviser task asks whether a link exists between a student and a professor, using properties and other links. The mathematical machinery is unchanged.

Link-based clustering introduces an unobserved cluster predicate. Weighted formulas connect membership to observed attributes and relations. Conditional cluster probabilities provide degrees of membership after weight learning.

Social-network models state mutual influence directly. Friendship may correlate with similar smoking habits, while shared attributes may also influence friendship. Undirected cycles are natural rather than a structural violation, which is one reason Markov networks fit relational domains.

Object identification removes unique names and reasons about Equals(x,y). Field matches support record matches; inferred equivalences propagate to new comparisons; transitivity becomes another weighted or hard formula. This collective coupling differs from scoring record pairs independently.

The unification is representational, not computationally free. Each application chooses predicates, domain assumptions, formulas, evidence and query types. Ground-network size and inference difficulty can vary by orders of magnitude even when the surface language stays the same.

Five statistical relational tasks share one Markov logic coreA central weighted-formula template connects to collective classification, link prediction, clustering, social network modelling and object identification.WEIGHTEDFORMULASone joint distributionCOLLECTIVE CLASSIFICATIONLINK PREDICTIONLINK-BASED CLUSTERINGOBJECTIDENTIFICATIONSOCIAL NETWORKS
The same semantics supports different tasks by changing which predicates are observed, queried or latent. Unification does not eliminate application-specific modelling.Original synthesis after Richardson and Domingos 2006, §8.

Worked example 10 · collective deduplication

Matching “ICML” to “International Conference on Machine Learning” can increase the probability that two citations describe one paper. That paper match then supplies evidence for a second abbreviation. A joint MLN lets identity decisions support one another instead of freezing each pairwise score.

Causal probe 10 · remove transitivity

The model may favour A=B and B=C while leaving A=C unlikely. Adding a high-weight or hard equality-transitivity formula couples the decisions. The intervention demonstrates how structural consistency enters as an explicit feature rather than post-processing.

10 · Comparisons and boundaries

Generality is bought with grounding and normalisation

Richardson and Domingos position MLNs against probabilistic logic programs, knowledge-based model construction, probabilistic relational models, relational Markov networks, structural logistic regression and BLOG.

Knowledge-based model construction uses Horn clauses to build Bayesian networks for a query. MLNs accept arbitrary formulas, allow inference in any direction and avoid the requirement that every grounded directed graph remain acyclic. The cost is an undirected normaliser and difficult inference.

Probabilistic relational models attach Bayesian-network structure to classes and attributes. Their directed semantics can be compact when causal ordering is natural, but cycles and complete conditional tables are burdensome. An MLN can specify whichever first-order features are useful without providing a complete local model for every attribute.

Relational Markov networks already use database queries as clique templates. MLNs generalise the template language from conjunctive queries to first-order formulas and allow uncertainty over arbitrary relations. That expressiveness can also create large cliques and costly grounding.

BLOG tackles unknown objects and avoids domain closure through a generative possible-world language. The 2006 comparison notes that MLNs can relax their assumptions with additional machinery, but this is not the same as having native open-universe semantics.

Three later results sharpen boundaries. Singla and Domingos extend Markov logic to infinite domains using Gibbs measures when every ground atom has finitely many neighbours. Niu and colleagues’ Tuffy system shows that grounding can dominate runtime and uses relational-database optimisation plus in-memory search. Mittal and colleagues show that weights learned on one domain size can yield extreme probabilities on another and propose connection-aware scaling.

These developments confirm the original paper’s importance while refusing timelessness. “One formula, one weight” creates parameter sharing, but repeated groundings make population size causally significant. Query relevance reduces work, but large groundings remain a systems problem. Later context belongs in the boundary ledger, not inside the 2006 contribution.

ClaimSupported in 2006Boundary or later development
Expressive languageArbitrary first-order formulas over finite domainsInfinite-domain semantics arrived later under locality conditions
Efficient inferenceQuery-relevant grounding plus approximate samplingWorst cases remain huge; lifted and database-grounding methods developed later
Shared weightsAll groundings of a formula reuse its parameterChanging domain size changes grounding multiplicity and may distort transfer
Empirical advantageBest aggregate UW-CSE adviser results among reported systemsOne sparse university domain does not establish universal superiority
The 2006 contribution and later repairs occupy a timelineA timeline begins with finite-domain Markov logic in 2006, then marks infinite-domain Gibbs measures, database-backed grounding and domain-aware weight scaling as later context.2006 · MLNsfinite groundingMCMC + pseudo-likelihood2007/2012infinite domainsGibbs measures2011 · TuffyRDBMS groundinghybrid search2018 · DA-MLNdomain-size-awareweight scaling
Later work targets limitations visible in the original definition. The chronology preserves both the 2006 achievement and the conditions under which its first implementation strains.Primary chronology checked against Richardson and Domingos 2006; Singla and Domingos 2012; Niu et al. 2011; Mittal et al. 2018.

Worked example 11 · transfer to a larger social graph

A friendship formula learned with twenty people is deployed to a thousand. Each smoking atom now participates in far more ground features, so many small contributions accumulate into extreme marginals. Later domain-aware MLNs divide feature weights by a connection-based scaling factor; the original 2006 model does not.

Causal probe 11 · keep neighbours finite in an infinite domain

If each ground atom interacts with only finitely many neighbours, later Gibbs-measure theory can define consistent local conditionals even with infinitely many atoms. Allow unbounded neighbourhoods and existence is no longer guaranteed by that result. Locality, not merely countable naming, does the work.

11 · An engineering reading

Count groundings before celebrating compact formulas

The practical inheritance is a design discipline: separate relational templates, finite-domain commitments, ground-network costs, approximate objectives and evaluation evidence.

Start with predicate and domain design. State types, unique-name policy, closure assumptions and function treatment. A formula’s meaning is incomplete without the constant set and grounding convention that create its features.

Audit multiplicity. Estimate nodes by predicate arity and features by formula variables before implementation. Detect syntactic duplicates and logically equivalent clauses whose repeated groundings would unintentionally multiply weight.

Separate hard and soft knowledge. Reserve infinite weights for constraints that truly make a world impossible. Learn or calibrate finite weights for regularities with exceptions. Contradictory soft sources can coexist; contradictory hard constraints can empty the support.

Choose the query regime explicitly. Marginals, conditional probabilities and MAP worlds demand different algorithms. Use evidence to prune the relevant subnetwork, but report when full grounding or approximate sampling remains.

Evaluate the learner, not only the final model. Pseudo-likelihood may be fast and useful while differing from maximum likelihood. Check calibration, convergence, missing-data assumptions and transfer across domain sizes. A single AUC does not validate the probability model.

Finally, retain provenance across levels. A prediction should expose which formulas, groundings and evidence mattered, how weights were obtained and which approximation produced the number. Markov logic offers a shared language for structure and uncertainty; responsible deployment must also make its computational compromises visible.

Worked example 12 · a deployment checklist

An entity-resolution MLN records its constant universe, equality axioms, learned finite weights and one hard type constraint. Before a batch grows tenfold, engineers estimate grounding counts, test domain-size calibration, partition disconnected components and compare exact tiny cases with approximate production inference.

Causal probe 12 · hide the partition function behind a score

Unnormalised scores can rank worlds for MAP search but are not probabilities. Presenting e^(weighted count) as confidence ignores competing worlds and Z. Adding a high-scoring alternative changes the normalised probability even when the original world’s score is fixed.

Two comprehensive reviews

What survived formal, empirical and delivery challenge

Review one: primary fidelity and teaching. The reconstruction was checked across all thirty journal pages, including Markov-network preliminaries, first-order syntax, Definition 4.1, grounding assumptions and algorithm, probability equation, propositional subsumption, the infinite-weight proposition, query construction, Gibbs conditionals, MaxWalkSat initialisation, likelihood gradients, the #P counting result, pseudo-likelihood, CLAUDIEN structure learning, UW-CSE design, system comparisons, results, five application classes, related work and conclusion.

The sharpest risks were corrected. A formula weight is not generally its marginal log-odds when features overlap. The model counts true groundings, not merely violated formula types. The logical limiting result assumes a satisfiable knowledge base and equal weights tending to infinity. Query-specific construction still grounds atoms; it is not lifted inference. Pseudo-likelihood is an approximation adopted after MC-MLE failed to converge practically.

Review two: fairness, later context, AI-telltales and execution. The empirical claim is limited to the reported adviser-prediction experiment. The hand-authored knowledge base, engineered propositional baselines, sparse closed-world data and discarded cross-area tuples are visible. Later infinite-domain, database-scaling and domain-aware results are dated and labelled rather than presented as original contributions.

All ten bespoke SVG figures have titles, descriptions, captions and source notes; animation is redundant and disabled under reduced-motion preference. The laboratory enumerates exact worlds for three patterns at four weights. Its independent checks verify normalisation, direct marginal recomputation and the e^(wΔn) score-ratio invariant in all twelve combinations.

Review verdict

Pass 1: formal, historical and empirical fidelity: passed after complete-text reading and visual inspection of equations, algorithms, tables and figures in the primary PDF. Pass 2: teaching, fairness, accessibility and execution: passed after responsive checks at 1440, 768 and 390 pixels and all laboratory combinations.

Memory studio

Twelve cards for durable recall

1 · MLNA set of first-order formulas, each paired with a real weight.
2 · DomainA finite constant set turns the template into one concrete network.
3 · NodeOne binary variable for every possible grounded predicate.
4 · FeatureOne binary indicator for every grounded formula.
5 · Shared weightAll groundings of one formula reuse the same parameter.
6 · World scoreExponentiate the sum of weights times true-grounding counts.
7 · NormaliserZ sums every world score and turns scores into probabilities.
8 · Soft ruleA violation lowers mass; an infinite-weight violation removes a world.
9 · BlanketGround atoms sharing a feature directly condition one another.
10 · InferenceConstruct a relevant ground network, initialise modes, then sample.
11 · LearningPseudo-likelihood replaces global normalisation with local conditionals.
12 · BoundaryCompact first-order syntax can still produce enormous ground models.
Place in the canon

From the knowledge level to a weighted relational implementation

Paper 0096 asked how an agent can be described by what it knows, independent of access machinery. Paper 0097 supplies one concrete representation in which logical content, shared weights, grounding and inference jointly produce uncertain action-relevant beliefs.

Newell separates knowledge from the symbol structures and processes that realise it. An MLN visibly spans the boundary. Its formulas state reusable content; its grounded graph, sampling algorithms and pseudo-likelihood optimiser determine access and computation. The distinction prevents the weight file from being mistaken for the whole intelligent system.

The neighbouring sequence also revisits non-monotonic logic. Rather than selecting fixed points or minimal models, Markov logic places a distribution over complete finite worlds. Contradictory tendencies are balanced by weighted feature satisfaction. Defeasibility emerges as probability mass shifts, not as one extension replacing another.

Canon 0098 turns to Ronald Brachman and James Schmolze’s overview of KL-ONE. That system will return the sequence to structured knowledge representation, separating concepts, roles and taxonomic inference inside a carefully engineered semantic network.

Publication brief

Primary source, companion scope and verification contract

This companion reconstructs Matthew Richardson and Pedro Domingos’s “Markov Logic Networks”, published online on 27 January 2006 in Machine Learning, volume 62, pages 107–136, DOI 10.1007/s10994-006-5833-1. The complete thirty-page Springer journal text governs definitions, equations, algorithms, experiments and claims.

Verification contract. Five orientation claims, ten accessible animated SVG figures, twelve worked examples, twelve causal probes, twelve memory cards, two comprehensive reviews and an exact possible-world laboratory with three tests across twelve combinations. Release checks cover British English, responsive presentation at 1440, 768 and 390 pixels, reduced-motion support, exact figure count, source/generated identity, DOI fidelity and explicit boundaries around later research.

Sources

Primary text and scholarly context

  1. Richardson, M., & Domingos, P. (2006). “Markov Logic Networks.” Machine Learning, 62, 107–136. Publisher DOI: 10.1007/s10994-006-5833-1.
  2. University of Washington Statistical Relational Learning Group. “Markov Logic Networks: Online Appendix.” Archived project materials described by the primary paper.
  3. Besag, J. (1975). “Statistical Analysis of Non-Lattice Data.” The Statistician, 24, 179–195. Source of pseudo-likelihood cited by the primary paper.
  4. Robinson, J. A. (1965). “A Machine-Oriented Logic Based on the Resolution Principle.” Journal of the ACM, 12, 23–41.
  5. Singla, P., & Domingos, P. (2012). “Markov Logic in Infinite Domains.” arXiv:1206.5292. Later extension through Gibbs measures.
  6. Niu, F., Ré, C., Doan, A., & Shavlik, J. (2011). “Tuffy: Scaling up Statistical Inference in Markov Logic Networks using an RDBMS.” arXiv:1104.3216. Later systems context.
  7. Mittal, H., Bhardwaj, A., Gogate, V., & Singla, P. (2018). “Domain Aware Markov Logic Networks.” arXiv:1807.01082. Later domain-size transfer analysis.
  8. Wang, W., Pu, T., Wang, Y., & Kuželka, O. (2020). “Lifted Inference in 2-Variable Markov Logic Networks with Function and Cardinality Constraints Using Discrete Fourier Transform.” arXiv:2006.03432. Later lifted-inference context.