Abstract
Standard Convolutional Neural Networks (CNNs) rely on fixed spatial filters that often require massive parameter counts to achieve robustness against geometric deformations. Researchers from Tel-Aviv University have introduced the Co-occurrence Layer (CoL), a novel architectural component that replaces rigid convolutions with flexible filters based on learned pixel-value statistics. By incorporating a differentiable lookup table of co-occurrence weights, CoL can replace layers containing hundreds of thousands of parameters with just a few hundred, frequently improving accuracy while significantly compressing the model.
Introduction
Despite their success, standard CNNs suffer from two primary rigidities. First, shift-invariance forces a filter to seek the same pattern regardless of local context. Second, a fixed spatial layout makes filters highly sensitive to small geometric deformations or texture warps. To compensate, networks often learn redundant filters to handle every possible variation, leading to bloated parameter counts.
The Co-occurrence Layer (CoL) addresses these issues by adapting its behavior based on the actual distribution of values in a neighborhood. Instead of relying solely on exact spatial positions, the layer learns which pixel values frequently appear together and adjusts its filtering strategy dynamically.
Methodology: The Co-occurrence Layer
Inspired by classical statistical Co-occurrence Filters (CoF), the CoL modifies the standard convolution operation. In a standard convolution, the output is a weighted sum of neighbors. In a CoL, the weight assigned to a neighboring pixel $q$ relative to a center pixel $p$ is the product of two terms:
- Spatial Weight ($w$): A traditional distance-based weight similar to standard convolution.
- Co-occurrence Weight ($L$): A weight fetched from a "Deep Co-occurrence Matrix" based on the quantized values of $p$ and $q$.
Implementation and Differentiability
To make the process efficient, pixel values are quantized into $k$ discrete bins. The matrix $L$ acts as a learnable lookup table. Unlike traditional statistical filters, CoL is fully differentiable; the weights in the co-occurrence matrix are optimized via standard backpropagation. This allows the network to learn, for instance, that "sky blue" and "cloud white" should be smoothed together to minimize loss. Notably, $L$ can learn negative weights, enabling the layer to perform complex feature extraction or edge enhancement rather than just simple smoothing.
Experimental Results
The authors evaluated CoL across various benchmarks, including a synthetic toy dataset, CIFAR-10 (using ResNet), and the ADE20k semantic segmentation dataset.
Efficiency and Accuracy
On CIFAR-10, integrating CoL into the later stages of a ResNet reduced test error by 0.5% to 1.0% while simultaneously halving the total parameter count. In semantic segmentation tasks on ADE20k, replacing a large $7 \times 7$ convolutional layer with a $3 \times 3$ convolution paired with a CoL increased accuracy by 2.4% while significantly reducing the parameter footprint.
Robustness to Deformations
Because the co-occurrence term focuses on value distributions rather than exact spatial grids, it is inherently more robust to small geometric warps. In toy examples designed to distinguish patterns with identical mean values but different histograms, CoL converged faster and reached lower loss than both standard convolutional and fully-connected layers.
Discussion and Future Work
While CoL offers extreme parameter efficiency and improved robustness, it currently faces computational overhead, running approximately $k$ times slower than standard convolutions due to the quantization and lookup process. Furthermore, the current formulation requires input and output channel counts to be equal, limiting its placement in certain "bottleneck" architectures.
Future research aims to develop hardware-accelerated implementations and extend the co-occurrence logic to multi-channel interactions. Nevertheless, the Co-occurrence Layer represents a significant step toward more adaptive, statistically-aware neural architectures that can achieve higher performance with a fraction of the traditional parameter budget.
Summary updated