Skip to content
OpenTrain AIFor AI Companies

Optimal Learning of Logical Semantics from Data

Anagha Tiwari, Alexander G. Gray, Jonathan Lenchner, Sasha Rubin, Nick Feamster +1 morePublished Nov 30, 2026
arXiv PDF
Researcher verdict
Context only
Use as context only
Benchmark evidence
Missing
Not verified yet
Time to first repro
A few days
Plan setup time
Risk flags
2
Review before use

No concrete benchmark grounding is available yet. Treat the page as context or an implementation starting point only.

Abstract

Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.

A learner that induces logic programs from a template $L$ of $N$ candidate Horn clauses is handed the $2^N$ clause-sets $S\subseteq L$, but most of them deduce the same facts. What it can actually learn is the set $Ω_L$ of realizable deductive closures, the distinct meanings (semantic contents) the template can express. Learning theory takes the hypothesis class as given; here it is not. $Ω_L$ exists only implicitly, as the image of a least-fixpoint map, and its size, its VC and Littlestone dimensions, and even a way to run the optimal learners over it become available only once it is constructed. We construct it for two recursive families. For the bandwidth-$d$ reachability template on $n$ atoms the semantic capacity $C(L)=\log_2|Ω_L|$ is $n\log_2ρ_d$ bits, with $ρ_d$ the $d$-bonacci constant, against about $dn$ syntactic bits; for nonlinear transitive closure on $m$ constants it is $\tfrac14 m^2(1+o(1))$ bits. Standard finite-class results applied to $Ω_L$ then become closed-form rates: Halving makes at most $C(L)$ mistakes, the minimax log-loss (Shtarkov) regret equals $C(L)$ once the queries separate the contents, and the agnostic $0/1$ regret is $Θ(\sqrt{C(L)\,T})$ for both families, whose Littlestone dimension is of order $C(L)$. Under random base facts, the size of a content and its semantic compression (how much of a random program its meaning makes redundant) share a sharp threshold at one base fact per constant: below it the meaning determines the program up to $O(\log m)$ bits, above it a constant fraction of the program is redundant. On real data (Padgett's Florentine families and WordNet) the $2^{40}$ clause-sets of the Florentine template collapse onto $4{,}104$ contents. Under label noise, version-space pruning loses the target in every run, while exponential weights over $Ω_L$ stays within its regret bound.

Results and benchmarks

A learner that induces logic programs from a template $L$ of $N$ candidate Horn clauses is handed the $2^N$ clause-sets $S\subseteq L$, but most of them deduce the same facts.

Implementation

No direct implementation yet

Maintained implementation evidence is not confirmed for this paper yet.

Use the implementation status and reproduction sections for the current action plan.

Implementation evidence summary
Confidence: low

Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.

Reproduction risks
  • Estimate is based on paper-only reproduction flow

Reproduction readiness

Time to first repro: days
Last checked: Dec 2, 2026

No repo

No verified implementation available

  • No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.

Hardware requirements

  • Expect multi-day setup/compute for meaningful reproduction based on current guidance.

Hugging Face artifacts

No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.

Tip: start with models, then check datasets and spaces if you need evaluation data or demos.

Research context

Tasks

None detected

Methods

None detected

Domains

Computer vision

Evaluation and human feedback data

Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.

Open in HFEPX
Explore similar papers

Jump to Paper2Code search queries derived from this paper's research context.