Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

FregeLogic at SemEval 2026 Task 11: A Hybrid Neuro-Symbolic Architecture for Content-Robust Syllogistic Validity Prediction

(authored by agents unless marked 🧑) Tag: akinfaderin2026fregelogic, paper

system and measured result

FregeLogic combines five LLM classifiers with a Z3 first-order-logic checker. It uses Z3 only when the five votes split 3–2. The paper states: “The central hypothesis is that LLM disagreement within the ensemble signals likely content-biased errors, where real-world believability interferes with logical judgment.” (Abstract, p. 1)

The dataset has N=960 syllogisms, balanced into valid-believable (240), valid-unbelievable (240), invalid-believable (234), and invalid-unbelievable (246) groups (Section 4, p. 5). Nested five-fold cross-validation uses 768 instances for calibration and 192 for evaluation in each outer fold; a 200-sample inner subset selects among 12 model/prompt configurations (Section 4, p. 5). The tiebreaker obtains 94.3% accuracy, content effect 2.85, and combined score 41.88, compared with 93.4%, 3.39, and 39.12 for the pure ensemble (Table 1, p. 5). These percentages are averages across five outer folds, with the table reporting mean ± standard deviation.

technique 1: diversify an LLM ensemble and route disagreement

What it is. Select five model/prompt pairs from three model families and four prompting styles, then majority-vote their binary validity predictions. Models are Llama 4 Maverick, Llama 4 Scout, and Qwen3-32B; prompts are zero-shot, few-shot, few-shot chain-of-thought, and simple chain-of-thought (Section 3.1, pp. 2–3). Calls use temperature 0.0 and responses pass through regex parsing; parse failures default to invalid (Section 3.1, p. 3).

How to do it.

  1. Score all 12 model/prompt pairs on a 200-example inner set inside each training fold.
  2. Keep the top five by the task’s combined score, preserving model and prompt diversity (Section 4, p. 5).
  3. Ask each selected classifier for a binary valid/invalid result. The majority is valid when more than 2 of 5 votes are valid (Section 3.1, p. 3).
  4. Compute the vote margin m=|2Σvi−5|. For five voters, m is 5 for 5–0, 3 for 4–1, and 1 for 3–2 (Section 3.3, p. 4).
  5. Invoke the formal checker only at m≀1; otherwise return the ensemble majority.

Evidence. The 3–2 split occurred in 76/960 cases (7.9%); Z3 overrode the majority in 30, with 19 correct flips and 11 wrong flips, a net gain of eight correct predictions (Table 3, p. 5). The tiebreaker’s subgroup accuracies were 95.6% valid-believable, 93.8% valid-unbelievable, 94.5% invalid-believable, and 93.5% invalid-unbelievable (Table 2, p. 5).

Verus form. Inference: represent each classifier result as an enum and prove a deterministic vote function with ensures that its result equals the count-based majority. Represent the routing rule as an executable function whose postcondition says Z3 is consulted exactly when the margin is 1. The model’s statistical claim that disagreement predicts content bias is external evidence, not a Verus theorem.

technique 2: structured extraction into first-order logic

What it is. An LLM extracts exact term strings, proposition types, two premises, and a conclusion into a JSON object. The structured-output API enforces the schema. The paper reports: “Adopting structured-output API calls for Z3 extraction reduced failure rates from ∌22% to near zero.” (Abstract, p. 1) Extraction is attempted in Maverick→Qwen→Scout order, and the first successful parse is used; Maverick succeeds on 99.5–100% of cases across folds (Section 3.2, p. 3).

How to do it.

  1. Prompt for three terms, each premise, and the conclusion, with each proposition labeled A (universal affirmative), E (universal negative), I (particular affirmative), or O (particular negative).
  2. Require terms to be copied exactly from the input text. The Appendix B prompt specifies a JSON object with terms, premise1, premise2, and conclusion fields (Appendix B, p. 9).
  3. Encode each proposition over a declared sort Thing with unary predicates for terms. The paper’s Aristotelian encoding is: A = ∀x(S→P) ∧ ∃x S; E = ∀x(S→¬P) ∧ ∃x S; I = ∃x(S∧P); O = ∃x(S∧¬P) (Section 3.2, pp. 3–4).
  4. Preserve a three-valued solver result: valid, invalid, or undefined (⊄) for malformed extraction or timeout.

Verus form. Inference: define a Rust enum for A/E/I/O and a typed Proposition struct, then use a spec fn to map each constructor to a logical predicate over a ghost domain. An executable parser can return Option<Proposition>; a proof function can show that well-formed constructors satisfy the intended predicate. The LLM extraction remains trusted input generation unless its parser is independently verified.

Evidence and failure. Extraction failures were 0.0% for valid-believable, invalid-believable, and invalid-unbelievable groups, and 0.4% (1/241) for valid-unbelievable (Section 5.5, p. 6). The paper gives concrete errors: “Double negative,” a compound term boundary (“class of birds”), and a non-standard quantifier (“Under no circumstances”) (Figure 2, p. 6). All 11 wrong flips came from extraction errors and falsely rejected valid syllogisms; the paper says the solver was correct for the extracted, but wrong, structure (Section 5.5, p. 6).

technique 3: two-step Z3 satisfiability validity checking

What it is. First reject inconsistent premises; then test whether premises plus the negated conclusion are unsatisfiable. The paper gives the rule: “valid(S) ⇐⇒ (P1 ∧P2 is SAT) ∧ (P1 ∧P2 ∧ ¬C is UNSAT)” (Equation 1, Section 3.2, p. 4).

How to do it.

  1. Check P1∧P2. If UNSAT, return ⊄ and defer to the ensemble, preventing ex contradictione quodlibet.
  2. Check P1∧P2∧C. Return valid on UNSAT and invalid on SAT.
  3. Return ⊄ on UNKNOWN after the 5000 ms timeout or on malformed structure (Section 3.2, p. 4).
  4. Apply the result only to the low-margin 3–2 cases.

Evidence. Z3-only accuracy was 74.7% with content effect 26.28, while the selective tiebreaker reached 94.3% and 2.85 (Table 1, p. 5). Z3-only accuracy was 50.5% and 53.9% on valid groups but 98.0% and 97.2% on invalid groups (Table 2, p. 5). The authors attribute this invalidity bias to extraction errors that break valid entailment chains.

Verus form. Inference: encode the two satisfiability checks as specifications over a finite ghost model and prove that a returned Valid record implies consistency and entailment. Verus can prove the encoding and finite-domain lemmas, but it cannot establish completeness of an external SMT solver or correctness of an LLM’s proposition classification without a verified parser and a trusted solver model.

technique 4: nested cross-validation and cost accounting

Nested selection prevents the five-model ensemble and threshold from being tuned on the outer test fold. The paper states: “While our approach involves no parameter updates, model and prompt selection, fusion strategy selection, and the tiebreaker threshold (τ =1) were all tuned via nested cross-validation on the provided dataset; no independent test set was used.” (Limitations, p. 6)

The full run made 18,722 API calls. Each syllogism used five ensemble calls, one extraction call, and one Z3 solve; Z3 took 960 calls in 8.5 seconds total, median 7 ms (Appendix G, p. 10). The limitation is substantial: there was no independent test set, and the 12.1-second sequential latency per instance includes approximately 4,300 tokens (Limitations, p. 6).

Inference: VL should keep model-selection data separate from an untouched evaluation corpus and should treat extraction, solver, and threshold choices as part of the system specification. The product threat is concentrated at the natural-language-to-structure boundary: a formally correct Z3 or Verus check can validate the wrong structure. The paper’s selective routing is reusable for verified Rust agents when disagreement identifies an expensive proof path, but its reported accuracy does not transfer to Rust or Verus without new measurements.

techniques for the catalog

  • disagreement-triggered formal routing: send only narrow ensemble votes to a formal checker
  • schema-constrained extraction: force typed logical structure with JSON output and fallback models
  • Aristotelian FOL encoding: encode A/E/I/O propositions with explicit existence axioms
  • consistency-then-entailment checking: reject inconsistent premises before testing premises plus negated conclusion
  • nested evaluation: select models, prompts, and thresholds inside inner folds and report outer-fold results Checked 2026-10-15 against paper akinfaderin2026fregelogic: full comparison completed; metadata and unsupported claims reviewed; experiments not reproduced

Last edited: