Compositional Generalization Across Distributional Shifts with Sparse Tree Operations
Paul Soulos, Henry Conklin, Mattia Opper, Paul Smolensky, Jianfeng Gao, Roland Fernandez
TL;DR
The paper tackles compositional generalization under distributional shifts without relying on extensive pretraining. It introduces Sparse Coordinate Trees (SCT) to encode tree structure in vector space and unifies neural and symbolic computation within a differentiable framework, extending the Differentiable Tree Machine (DTM) to the sparse, seq2seq setting as sDTM. Key innovations include Pooling by Attention, Tree Pruning, Lexical Regularization, and seq2seq/seq2tree capabilities, enabling scalable, zero-shot lexical generalization across diverse tasks. Empirical results across Active<->Logical, FOR2LAM, GeoQuery, and SCAN demonstrate strong generalization with substantial parameter and memory reductions (around 75x) while preserving performance, highlighting the potential of neurosymbolic architectures for robust, scalable generalization.
Abstract
Neural networks continue to struggle with compositional generalization, and this issue is exacerbated by a lack of massive pre-training. One successful approach for developing neural systems which exhibit human-like compositional generalization is \textit{hybrid} neurosymbolic techniques. However, these techniques run into the core issues that plague symbolic approaches to AI: scalability and flexibility. The reason for this failure is that at their core, hybrid neurosymbolic models perform symbolic computation and relegate the scalable and flexible neural computation to parameterizing a symbolic system. We investigate a \textit{unified} neurosymbolic system where transformations in the network can be interpreted simultaneously as both symbolic and neural computation. We extend a unified neurosymbolic architecture called the Differentiable Tree Machine in two central ways. First, we significantly increase the model's efficiency through the use of sparse vector representations of symbolic structures. Second, we enable its application beyond the restricted set of tree2tree problems to the more general class of seq2seq problems. The improved model retains its prior generalization capabilities and, since there is a fully neural path through the network, avoids the pitfalls of other neurosymbolic techniques that elevate symbolic computation over neural computation.
