Locally orderless networks

Jon Sporring, Peidi Xu, Jiahao Lu, Francois Bernard Lauze, Sune Darkner

TL;DR

This paper introduces Locally Orderless Networks (LONs), a novel neural network architecture that bridges Convolutional Neural Networks (CNNs) and classical scale-space histograms. LONs offer a more flexible way to represent functions, particularly those involving non-linear operations like squaring, and demonstrate improved performance and explainability in tasks like gradient estimation and shape analysis compared to standard CNNs.

What Problem Does This Paper Address?

The paper addresses the challenge of representing complex image features and functions within neural networks. While CNNs are powerful, their internal representations are often tied to specific operations (like convolutions followed by non-linearities like ReLU or sigmoid). The authors aim to unify the understanding of CNNs with established concepts from scale-space theory and histogram-based image analysis. They propose LONs as a framework that can naturally capture concepts like local histograms and demonstrate how this perspective can lead to improved performance and a deeper theoretical understanding of what these networks can compute, especially for tasks involving boundaries and local feature extraction.

Methods

The core innovation is the introduction of Locally Orderless Networks (LONs). The key idea is to modify the standard CNN architecture by replacing the typical activation function (like sigmoid or ReLU) with a function that, when integrated over a specific range, effectively creates a local histogram. This is achieved by a regular sampling of the bias and the derivative of the activation function.

The paper establishes a theoretical link between LONs and CNNs, showing how they can emulate each other. Specifically, a CNN with a sigmoid activation function can approximate a LON, and vice-versa, under certain conditions. LONs are formulated as a linear combination of local histograms, where each histogram is computed using a kernel-based convolution and a specific activation function. The paper also explores how LONs can naturally express non-linear functions like squaring, which is crucial for tasks like gradient magnitude estimation.

Datasets

  • MNIST: Used for training and evaluating networks on the task of estimating gradient magnitude squared for handwritten digits.
  • Randomly generated shapes: A custom dataset was generated for evaluating regression (perimeter and area) and classification tasks. These shapes were created from i.i.d. normal noise, smoothed with a Gaussian kernel, thresholded, and then processed to isolate connected components. This dataset allowed for controlled experiments on shapes with varying properties and noise levels.

Key Insights and Ideas

  • Unifying CNNs and Histograms: LONs provide a theoretical bridge between CNNs and classical scale-space histogram representations, offering a more unified view of image analysis in deep learning.
  • Natural Non-linearity: LONs can naturally express non-linear functions like squaring, which is essential for tasks like gradient magnitude estimation, where CNNs might struggle to learn this directly.
  • Boundary vs. Area Focus: The paper suggests that LONs are inherently better at capturing boundary-related information (like perimeters), while CNNs with ReLU activations might be more suited for area-based tasks. This is reflected in their sensitivity maps.
  • Improved Explainability: Sensitivity maps generated by LONs appear to be more consistent and aligned with human intuition for tasks like perimeter and area classification, suggesting better interpretability.

Key Results

  • Gradient Magnitude Estimation: LONs produced results visually similar to direct gradient magnitude calculations and showed improved performance compared to CNNs in estimating it.
  • Shape Regression (Perimeter & Area):
    • For perimeter regression, LON with 2 bins outperformed CNN in terms of parameter efficiency.
  • For area regression, CNN generally outperformed LON, especially when LON used 8 bins (suggesting potential overfitting).
  • Shape Classification: LON with 2 bins was better at classifying objects by perimeter, while CNN was better at classifying by area.
  • Sensitivity Maps: LONs generated more consistent and interpretable sensitivity maps, particularly for perimeter estimation, highlighting their focus on object boundaries.

Limitations and Future Work

  • Parameter Count: The paper notes that LONs can have a higher parameter count than CNNs for a direct comparison, especially when considering the number of bins. However, they also suggest scenarios where LONs can be more parameter-efficient.
  • Overfitting: The paper observed potential overfitting in LONs when using a larger number of bins (e.g., 8 bins) for regression tasks.
  • Future Work: The authors suggest exploring the combination of LONs with existing networks, particularly for segmentation tasks, and further investigating their theoretical properties and empirical performance across a wider range of applications.

Summary updated

BibTeX
@inproceedings{sporring2025locally,
  author = {Jon Sporring and Peidi Xu and Jiahao Lu and Francois Bernard Lauze and Sune Darkner},
  title = {{Locally orderless networks}},
  booktitle = {NLDL},
  year = {2025},
  url = {https://openreview.net/forum?id=JNxddbPPWt},
}
Figure