Seeing is Believing: Brain-Inspired Modular Training for Mechanistic Interpretability
Ziming Liu, Eric Gan, Max Tegmark
TL;DR
This work introduces Brain-Inspired Modular Training (BIMT), a method that injects modularity into neural networks by embedding neurons in a geometric space, enforcing locality via distance-based regularization, and allowing neuron swapping to improve locality. BIMT is demonstrated across symbolic regression, simple classification, and algorithmic tasks, revealing clear modular and tree-like structures, and is extended to transformers and image-like tensor data. The results show that BIMT often yields interpretable, modular circuits with only modest performance penalties, and reveal group-theoretical and compositional structures in learned representations. These findings suggest BIMT as a practical tool for mechanistic interpretability and for visualizing how modules cooperate to solve complex tasks, with potential extensions to larger models.
Abstract
We introduce Brain-Inspired Modular Training (BIMT), a method for making neural networks more modular and interpretable. Inspired by brains, BIMT embeds neurons in a geometric space and augments the loss function with a cost proportional to the length of each neuron connection. We demonstrate that BIMT discovers useful modular neural networks for many simple tasks, revealing compositional structures in symbolic formulas, interpretable decision boundaries and features for classification, and mathematical structure in algorithmic datasets. The ability to directly see modules with the naked eye can complement current mechanistic interpretability strategies such as probes, interventions or staring at all weights.
