[Paper Review] Modularity Matters: Learning Invariant Relational Reasoning Tasks
This paper proposes Residual Mixture Networks (ResMixNets), a modular deep learning architecture that combines mixture-of-experts with residual connections to improve invariant relational reasoning. It achieves state-of-the-art generalization on two challenging visual reasoning tasks—MNIST Parity and colorized Pentomino—outperforming non-modular CNNs with over 70x fewer parameters, demonstrating that modularity is a robust inductive bias for learning invariant, relational representations.
We focus on two supervised visual reasoning tasks whose labels encode a semantic relational rule between two or more objects in an image: the MNIST Parity task and the colorized Pentomino task. The objects in the images undergo random translation, scaling, rotation and coloring transformations. Thus these tasks involve invariant relational reasoning. We report uneven performance of various deep CNN models on these two tasks. For the MNIST Parity task, we report that the VGG19 model soundly outperforms a family of ResNet models. Moreover, the family of ResNet models exhibits a general sensitivity to random initialization for the MNIST Parity task. For the colorized Pentomino task, now both the VGG19 and ResNet models exhibit sluggish optimization and very poor test generalization, hovering around 30% test error. The CNN we tested all learn hierarchies of fully distributed features and thus encode the distributed representation prior. We are motivated by a hypothesis from cognitive neuroscience which posits that the human visual cortex is modularized, and this allows the visual cortex to learn higher order invariances. To this end, we consider a modularized variant of the ResNet model, referred to as a Residual Mixture Network (ResMixNet) which employs a mixture-of-experts architecture to interleave distributed representations with more specialized, modular representations. We show that very shallow ResMixNets are capable of learning each of the two tasks well, attaining less than 2% and 1% test error on the MNIST Parity and the colorized Pentomino tasks respectively. Most importantly, the ResMixNet models are extremely parameter efficient: generalizing better than various non-modular CNNs that have over 10x the number of parameters. These experimental results support the hypothesis that modularity is a robust prior for learning invariant relational reasoning.
Motivation & Objective
- To investigate why standard deep CNNs fail at learning invariant relational rules under diverse transformations.
- To test the hypothesis that modularity in neural architectures, inspired by the human visual cortex, enables better generalization on relational reasoning tasks.
- To design and evaluate a novel modular CNN architecture—Residual Mixture Networks (ResMixNets)—that interleaves distributed and specialized representations.
- To demonstrate that modularity leads to superior parameter efficiency and test generalization compared to fully distributed CNNs.
- To evaluate the trade-offs between modularity and distributed representations on standard object recognition benchmarks.
Proposed method
- Propose Residual Mixture Networks (ResMixNets), a hybrid architecture combining residual blocks with a mixture-of-experts mechanism to create modular, specialized representations.
- Interleave modular experts with shared, distributed features at each residual block level to allow specialized processing of object relations while preserving hierarchical feature learning.
- Train models using SGD with momentum, with learning rates tuned per task and model architecture, and apply batch normalization to stabilize training.
- Constrain the total parameter count of ResMixNets to be less than or equal to the shallowest non-modular baseline (ResNet26) to ensure fair comparison on parameter efficiency.
- Use a single routing mechanism per layer to dynamically select experts based on input, enabling sparse activation and improved invariance.
- Evaluate performance on two relational reasoning tasks: MNIST Parity and colorized Pentomino, and three standard vision benchmarks: CIFAR-10, CIFAR-100, and SVHN.
Experimental results
Research questions
- RQ1Does modularity in neural network architectures improve generalization on invariant relational reasoning tasks?
- RQ2Why do standard deep CNNs like ResNet and VGG19 fail on relational reasoning tasks with heavy data augmentation?
- RQ3Can a mixture-of-experts mechanism integrated into residual networks enable better invariance and lower parameter count?
- RQ4How does modularity affect performance on standard object recognition benchmarks with high-class similarity?
- RQ5What is the optimal balance between modular and distributed representations for robust visual generalization?
Key findings
- The VGG19-BN model achieved 2.27% average test error on the MNIST Parity task, while a ResMixNet with only 274K parameters achieved 1.98%, demonstrating a 70x reduction in parameters with comparable or better performance.
- On the colorized Pentomino task, non-modular models (VGG19-BN and ResNets) achieved ~30% test error, while a 193K-parameter ResMixNet achieved 0.88% test error, a 34x improvement in error rate.
- ResMixNets showed extreme parameter efficiency, generalizing better than non-modular models with over 10x more parameters on both relational reasoning tasks.
- On CIFAR-10 and SVHN, the ResMixNet with a parameter budget similar to ResNet50 achieved less than 1% gap in test error, indicating strong performance on standard recognition tasks.
- On CIFAR-100, the ResMixNet lagged behind ResNet50 by over 5%, suggesting modularity may be suboptimal when classes are highly similar and features are shared.
- The ResNet family exhibited sensitivity to random weight initialization on the MNIST Parity task, while ResMixNets showed consistent, robust performance across trials.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.