arXiv:2610.30391cs.AIOct 2026

Manuscript Offprint

arXiv:2610.30391

Soft Ontology Priors over Latent Concept Posteriors for Weakly Supervised Neuro-Symbolic Learning

Tengwei Song, Robert Hoehndorf

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Neuro-symbolic (NeSy) predictors that supervise only the task label suffer from reasoning shortcuts: distinct concept mappings achieve the same maximum likelihood, leaving the recovered concepts unidentifiable and unsafe for downstream reuse. We attack this failure by injecting a soft ontology prior over the latent concepts into the training objective and compiling it together with the task constraint into a smooth, decomposable probabilistic circuit. Under independent Bernoulli perception, the normalisers of the resulting structured concept posterior reduce to weighted model counts that are linear in the compiled circuit size, because the neural leaf weights fold into the circuit before evaluation. The soft compilation strategy places expert axioms in the circuit's weights rather than its support (task-structural axioms guaranteed by the data-generating process stay hard), so noisy expert axioms only redistribute prior mass and cannot empty the support. We characterise how the prior reweights label-restricted shortcut mass through differences in ontology violation energy, show that soft priors incur bounded log-density perturbations under bounded axiom noise, and prove that the hard-support counterpart can be made degenerate by a single corrupted axiom. We validate these predictions on an audited six-concept view of the real-world BDD-OIA driving benchmark and on controlled NeSy tasks.

Keywords: neuro-symbolic learning, reasoning shortcuts, probabilistic circuits, weighted model counting, ontology priors, identifiability

1. Introduction

Neuro-symbolic (NeSy) AI integrates neural perception with symbolic reasoning to build interpretable, constraint-aware predictors (Manhaeve et al., 2018; Xu et al., 2018; Serafini and d'Avila Garcez, 2016). Much of their appeal rests on the learned concepts being trustworthy: once the model recovers human-readable concepts, those concepts can be reused, verified and explained. Recent work, however, shows that this promise fails systematically. NeSy predictors trained on task labels alone can reach near-perfect accuracy by acquiring reasoning shortcuts (Marconato et al., 2023; van Krieken et al., 2024): concept maps that satisfy the symbolic program for the wrong reasons. Reasoning shortcuts are invisible at the label level, break out-of-distribution generalisation, and undermine the safety story that motivates NeSy in the first place.

Two recent lines of work address reasoning shortcuts from the perception side. BEARS stabilises predictions by ensembling concept extractors with a repulsive KL term (Marconato et al., 2024). NeSy-DM replaces the one-shot factorised posterior with a masked diffusion model that can express concept correlations (van Krieken et al., 2025). Both interventions

© 2026 T. Song & R. Hoehndorf.

act on the perception model while leaving the training objective unchanged, and neither offers a principled way to inject existing domain knowledge into the loss surface itself.

We take the complementary route: we leave the perception model factorised and instead modify the training objective so that it is informed by a soft, axiom-level prior over the latent concepts. A parallel line of work, the ontology-to-circuit pipeline of Lazzari et al. (2026), shows that a description-logic ontology can be compiled into a probabilistic circuit and used to guarantee that supervised multi-label classifiers respect every axiom; that work targets ontology-consistent output prediction, not the latent-concept NeSy regime in which only task labels are observed. We use this compilation idea in a different regime: the ontology defines a soft prior over hidden concepts inside the task-label likelihood, rather than a hard support constraint on observed classifier outputs. The prior is soft (axioms downweight rather than delete worlds), so the resulting objective degrades gracefully when the ontology is noisy or incomplete, in contrast to a hard support restriction that can render the joint program unsatisfiable on a single mislabelled axiom.

Contributions. We make three contributions. First, we introduce a soft ontology prior over latent concepts for NeSy predictors trained from task labels only, and incorporate it into the structured concept posterior used in the training objective. Second, we derive a normalised WMC objective that combines task constraints, neural evidence, and ontology-derived axiom weights in a compiled circuit with linear-time evaluation, and show how the prior reweights label-preserving shortcut maps before deterministic collapse. Third, we prove that soft and hard ontology priors behave differently under axiom corruption: bounded perturbations induce bounded log-density changes for soft priors, while hard-support constraints can collapse after one corrupted axiom. Experiments on real-world and controlled NeSy benchmarks support these predictions and show that gains require ontology information that resolves ambiguity left by task-label supervision.

References (28)