Block-Operations: Using Modular Routing to Improve Compositional Generalization
Florian Dietz, Dietrich Klakow
TL;DR
Neural networks struggle with compositional generalization because routing of information across subnetworks is biased or static. The authors introduce block-operations that split activation tensors into uniformly sized blocks of width $b$ and enforce Modular Representation-Preserving Mappings ($MRPM$) to enable dynamic, object-like routing; and build the SMFR architecture as a stack of MFNNR modules comprising a Multiplexer and FNNR. Empirical results on synthetic tasks (e.g., addition/multiplication, double-addition, algorithmic tasks) and BPMNIST show SMFRs achieve superior compositional generalization, including perfect or near-perfect OOD generalization on several tasks where FNNs and Transformers struggle. This work suggests block-operations as a versatile inductive bias that can be integrated into existing architectures to improve modular routing and generalization, with potential applicability to broader neural architectures.
Abstract
We explore the hypothesis that poor compositional generalization in neural networks is caused by difficulties with learning effective routing. To solve this problem, we propose the concept of block-operations, which is based on splitting all activation tensors in the network into uniformly sized blocks and using an inductive bias to encourage modular routing and modification of these blocks. Based on this concept we introduce the Multiplexer, a new architectural component that enhances the Feed Forward Neural Network (FNN). We experimentally confirm that Multiplexers exhibit strong compositional generalization. On both a synthetic and a realistic task our model was able to learn the underlying process behind the task, whereas both FNNs and Transformers were only able to learn heuristic approximations. We propose as future work to use the principles of block-operations to improve other existing architectures.
