An Empirical Study of Neurosymbolic Depth Generalisation

Mansouri, Alireza (2026) An Empirical Study of Neurosymbolic Depth Generalisation. [Laurea magistrale], Università di Bologna, Corso di Studio in Automation engineering / ingegneria dell’automazione [LM-DM270], Documento ad accesso riservato.
Documenti full-text disponibili:
[thumbnail of Thesis] Documento PDF (Thesis)
Full-text accessibile solo agli utenti istituzionali dell'Ateneo
Disponibile con Licenza: Salvo eventuali più ampie autorizzazioni dell'autore, la tesi può essere liberamente consultata e può essere effettuato il salvataggio e la stampa di una copia per fini strettamente personali di studio, di ricerca e di insegnamento, con espresso divieto di qualunque utilizzo direttamente o indirettamente commerciale. Ogni altro diritto sul materiale è riservato

Download (2MB) | Contatta l'autore

Abstract

Neural networks trained on structured, compositional inputs often fail to generalise beyond the structural complexity seen during training. This thesis investigates whether a neurosymbolic architecture, combining a tree-structured encoder with semantic supervision and hand-written fuzzy rules, improves compositional depth generalisation relative to purely neural alternatives. The task is predicting the sign of arithmetic expressions built from addition, subtraction, and multiplication. Models train only on depth one to three and are evaluated on depth four and five, with no out-of-distribution examples during training. The architecture combines a Tree-LSTM encoder, a perception module projecting the root representation onto a latent symbolic space aligned with nineteen arithmetic properties (thirteen supervised), a fuzzy rule pathway applying five hand-written rules over this space, and a parallel neural classifier. Predictions are combined via a mixing coefficient, studied in heuristic and learned variants. Six configurations, including a bidirectional LSTM baseline, are compared across three seeds in a fully ablated design. The tree-structured encoder drives depth generalisation, accounting for roughly 87% of the accuracy gain over the sequence baseline. Semantic supervision produces an interpretable latent representation, with near-perfect alignment between learned symbols and supervised properties, but adds negligible accuracy gain. The fuzzy rules do not improve generalisation: precision falls sharply under depth shift, and the learned mixing coefficient confirms this is a failure of the rules, not the fusion mechanism. Contributions: a controlled ablation study with a strict no-OOD-during-training protocol; a demonstration that structural bias dominates neurosymbolic supervision here; a dissociation between interpretability and generalisation; and an analysis of mixing-coefficient behaviour under distribution shift.

Abstract
Tipologia del documento
Tesi di laurea (Laurea magistrale)
Autore della tesi
Mansouri, Alireza
Relatore della tesi
Scuola
Corso di studio
Indirizzo
AUTOMATION ENGINEERING
Ordinamento Cds
DM270
Parole chiave
neurosymbolic learning, compositional generalisation, tree-structured neural networks, fuzzy logic, semantic supervision, out-of-distribution generalisation
Data di discussione della Tesi
20 Luglio 2026
URI

Altri metadati

Statistica sui download

Gestione del documento: Visualizza il documento

^