Quantified Boolean Bayesian Networks
- QBBN is a probabilistic graphical model that integrates Boolean logic and statistical inference using factor graphs with deterministic and parametric gates.
- It employs message passing and loopy belief propagation to achieve reliable, tractable inference with convergence in under 20 iterations.
- The system uses deterministic slot grammar for zero-ambiguity parsing, enabling verifiable, explainable inference in natural language and formal semantics.
A Quantified Boolean Bayesian Network (QBBN) is a probabilistic graphical model designed to unify logical and statistical reasoning by representing Boolean-propositional and first-order inference as factor graphs with alternating deterministic and parametric gates. QBBNs provide principled support for quantification, logical conjunction/disjunction, negation, and exact or approximate tractable inference, enabling application to natural language inference, information retrieval, and formal semantics with verifiable and interpretable proof traces (Coppola, 12 Feb 2026, Coppola, 2024).
1. Graphical Structure and Formal Specification
At its foundation, a QBBN is a factor graph whose nodes represent Boolean random variables—propositions—and whose factors encode logical connectives and quantifiers. Consider Boolean proposition nodes and a set of factors binding subsets of these nodes. The joint distribution is given by
where is the normalization constant and factor functions may be deterministic (AND/OR/NEG) or parametric (weighted Noisy-OR).
Variable and factor types include:
- Proposition nodes: Individual Boolean variables.
- Group nodes: Boolean variables representing conjunctions of premises.
- AND factor: Implements deterministic conjunction; if , else $0$.
- OR factor: Implements (noisy) disjunction; for supported by groups with weights 0:
1
- NEG factor: Couples 2 and 3 to enforce 4.
Quantified rules (e.g., universally quantified Horn clauses) are grounded over all compatible entities, with modal weights for rules mapped to disjunctive factor strengths (e.g., always 5, usually 6). Quantifiers use parameter-sharing plates: a template 7 [premise 8 conclusion] gives rise to grounded instances over the entity domain (Coppola, 12 Feb 2026, Coppola, 2024).
2. Inference Procedures and Message Passing
Inference in QBBN is query-driven and bidirectional, constructing finite proposition graphs around the query by backward and forward chaining:
- Start from query node, backward-expand to premises via AND nodes and register noisy-OR edges from group to query proposition.
- Forward-expand: for any new proposition, add all rules where it is a premise and link conclusions.
- Add NEG factors for contrapositive reasoning.
- Clamp evidence nodes to observed truth.
- Message-passing iteratively:
- AND 9: premises 0 group
- OR 1: group 2 conclusion
- OR 3: conclusion 4 group
- AND 5: group 6 premise
- Belief update: 7
- Damping: 8
- Convergence: 9
NEG factors enforce logical consistency and support backward (contrapositive) reasoning: negative evidence on a conclusion propagates backward through OR and AND layers, suppressing the corresponding premise's probability (modus tollens). Loopy belief propagation (LBP) is adopted for tractable approximate inference, with empirical convergence in 0 iterations and per-pass cost 1 for 2 nodes, maximum indegree 3 (Coppola, 12 Feb 2026, Coppola, 2024).
3. Logical Semantics and Expressivity
QBBN semantics are defined by a typed logical language with three expressiveness tiers:
- Tier 1: First-order quantification (Horn clauses, negation).
- Example: always 4 sparrow(theme:5) 6 bird(theme:7)
- Tier 2: Propositions as arguments (sentential type 8).
- Example: should(content: apologize(agent:9))
- Tier 3: Predicate quantification, 0-abstraction (second-order, not yet empirically tested).
- Example: 1
Predicates have explicit role labels (e.g., man{theme:e}, trust{agent:e, patient:e}) and are grounded into the model for inference. Quantified rules use modalifiers (always, usually, sometimes, never) that directly map to probabilistic weights on OR factors, yielding fine-grained control over logical uncertainty (Coppola, 12 Feb 2026).
4. Syntactic Parsing and Compilation
QBBN incorporates a deterministic, type-driven slot grammar to map natural language input into logical form with zero ambiguity. Parsing proceeds as:
- Input is preprocessed and disambiguated by an LLM (lemmatization, sense disambiguation, type assignment).
- Typed slot grammar rules deterministically compile each sentence to a single logical form; ambiguity is eliminated on tested suites (33/33 accuracy).
- LLM-based reranking is used where multiple parse candidates exist, but direct dependency parsing by LLMs attains low accuracy (UAS 12.4%).
Sample patterns include:
- Fact: "Jack trusts Jill" 2 trust(agent:jack, patient:jill)
- Rule: "All men are mortal" 3 always[4] man(theme:5) 6 mortal(theme:7) (Coppola, 12 Feb 2026).
5. System Architecture and End-to-End Pipeline
The system architecture supports hallucination-free, explainable natural language inference via the following pipeline:
8
Components:
- LLM handles preprocessing (disambiguation, POS tagging).
- Type-driven slot grammar deterministically parses text.
- LLM reranks multiple parses (if needed).
- QBBN grounds rules, constructs factor graph around the query, clamps evidence, and runs belief propagation to compute 8.
This architecture enables exact, explanation-bearing inference and supports integration with large pretrained LLMs, leveraging their annotation capabilities while reserving structured, logical deduction for the QBBN (Coppola, 12 Feb 2026).
6. Experimental Findings and Evaluations
QBBN systems demonstrate:
- 44/44 inference test cases solved (covering 22 distinct reasoning patterns: conjunction, disjunction, contrapositive, causation, conditionals, etc.).
- Convergence achieved within 9 iterations (typically 2–3).
- Deterministic slot grammar parsing evaluated at 33/33 with zero ambiguity.
- Negation and contrapositive reasoning operational via the NEG factor.
- LLM preprocessing and reranking achieve high POS tagging and PP-attachment accuracy (95%, GPT-4 zero-shot); full dependency parse (UAS) is low, underscoring grammar necessity.
- Example: Given "All men are mortal" and "Zeus is not mortal," a query on man(theme:zeus) triggers backward reasoning, yielding 0 (contraposition).
Synthetic experiments confirm theoretical runtime: per-pass 1 (tiny 2), stable convergence in 3 iterations on graphs of size 4; empirical runtimes outperform MCMC and traditional Markov logic inference, while preserving logical soundness and traceability (Coppola, 12 Feb 2026, Coppola, 2024).
7. Logical Completeness and Theoretical Properties
QBBN’s AND/OR alternating bipartite architecture implements the forward and backward fragments of natural deduction (Prawitz, 1965), supporting implication-introduction, 5/6-elimination, and contrapositive reasoning. Completeness is sketched by reduction to message-passing over bipartite graphs that mirror inference rules, guaranteeing that all valid entailments in first-order logic can be reproduced by the network. Consistency is enforced structurally: NEG factors guarantee 7 at all times. This construction provides a formal bridge between standard logical deduction and statistical graphical models (Coppola, 12 Feb 2026, Coppola, 2024).