A foundation for exact binarized morphological neural networks
Theodore Aouad, Hugues Talbot
TL;DR
This work offers a mathematically grounded foundation for binarized neural networks by marrying Binary Morphological Neural Networks (BiMoNN) with Mathematical Morphology (MM). It introduces the Binary Structuring Element (BiSE) neuron and the BiSEL/DenseLUI layers to realize morphologically meaningful, binarizable architectures that extend to grayscale and RGB inputs, along with exact and approximate binarization schemes. A key contribution is a morphological regularization framework that guides networks toward activable, morphology-consistent representations, improving binarized performance on tasks like denoising and MNIST classification. The approach challenges traditional STE-based BWNNs, showing that learning and binarization can be exact or approximately accurate when guided by MM principles, with practical benefits for efficiency and interpretability. Overall, BiMoNN establishes a robust pathway for morphology-aware binarization with demonstrated empirical potential and publicly available code.
Abstract
Training and running deep neural networks (NNs) often demands a lot of computation and energy-intensive specialized hardware (e.g. GPU, TPU...). One way to reduce the computation and power cost is to use binary weight NNs, but these are hard to train because the sign function has a non-smooth gradient. We present a model based on Mathematical Morphology (MM), which can binarize ConvNets without losing performance under certain conditions, but these conditions may not be easy to satisfy in real-world scenarios. To solve this, we propose two new approximation methods and develop a robust theoretical framework for ConvNets binarization using MM. We propose as well regularization losses to improve the optimization. We empirically show that our model can learn a complex morphological network, and explore its performance on a classification task.
