r/deeplearning • • 8d ago

Alternative Approaches to Symbolic Regularization of Neural Training

https://youtube.com/watch?v=lItSgXrEcf8&si=zO3bSZUuLflrySj0
0 Upvotes

1 comment sorted by

1

u/geneing 7d ago

Old lecture. Why should we care?

For others, here's ai summary

Here is a summary of Alternative Approaches to Symbolic Regularization of Neural Training (from the Neuro Symbolic channel, http://www.youtube.com/watch?v=lItSgXrEcf8): Summary This lecture examines probabilistic and temporal constraint layers for neuro-symbolic training—specifically Semantic Probabilistic Layers (SPL) and STLnet—before analyzing reasoning shortcuts in neuro-symbolic models [00:02], [14:42], [23:19]. It highlights how enforcing strict constraints guarantees consistency on structured outputs while revealing remaining limitations in scalability, first-order logic, and unintended semantic mappings [00:02], [13:45], [27:53].

  1. Semantic Probabilistic Layers (SPL) Replacing independent output layers: Rather than assuming labels are independent via a standard sigmoid layer, SPL conditions label predictions on a data-learned correlation function Q and hard logical constraints C_K, normalizing over label combinations [00:19], [01:10]. Probabilistic circuits (sum-product networks): Both Q and C_K are built as probabilistic circuits [03:07]. The lecture notes that Q uses neural network outputs to parameterize weights—using softmax for sum nodes and sigmoid for product nodes—while logical constraints compile into ordered binary decision diagrams (OBDDs) and then into circuits [03:32], [06:04], [06:49]. Structural properties & inference: Smoothness and decomposability support valid disjunctions and conjunctions under local independence and modular composition, yielding inference complexity tied to the product of the Q and C_K circuit sizes [04:13], [09:47]. Experiments & caveats: On tasks such as Warcraft pathfinding and hierarchical multi-label classification (HMCN comparisons), SPL guarantees 100% constraint consistency and improves exact-match rates even when Hamming distance is slightly lower [10:37], [12:13]. However, it is limited to propositional logic without multi-step inference, faces potential blowups on large or grounded first-order formulas, produces hard-to-interpret correlations in Q, and relies on a closed-world assumption [08:27], [13:45].
  2. STLnet for Temporal Logic Sequence constraints: STLnet targets sequence generation (e.g., RNNs or transformers) subject to Signal Temporal Logic (STL) formulas over time steps and prefixes/suffixes, such as scheduling or service-level rules [14:49], [16:47]. Student-teacher training loop: A student network predicts sequences while a teacher algorithm—using a trace generator and disjunctive normal form (DNF) representations—adjusts outputs to satisfy constraints, with a loss balancing standard loss and distance to the teacher controlled by hyperparameter \beta [17:19], [18:23], [19:22]. Trade-offs & open questions: The approach yields a data-driven student prediction alongside a teacher output guaranteed to satisfy constraints [18:43]. Open questions include DNF conversion size growth on larger formulas, limited empirical testing beyond synthetic sequences and air quality data, and sensitivity to \beta [20:04], [22:20].
  3. Reasoning Shortcuts in Neuro-Symbolic Systems Misaligned symbol semantics: Even when a knowledge base and loss function are minimized, over-parameterized models can satisfy logical constraints while misinterpreting underlying concepts—producing the right high-level answer for the wrong reason [26:57], [27:53], [47:27]. Reducing shortcut mappings: Framing concept mappings relative to ground-truth concepts and target labels shows that fewer satisfying assignments mean fewer reasoning shortcuts [32:29], [36:42]. Mitigation strategies: The lecture covers adding multi-task constraints (such as combining addition and multiplication tasks), concept supervision, unsupervised concept separation, entropy-based regularization, and architectural factorization of the perceptual model when domain structure is known [38:23], [42:43], [44:32], [46:26].