NeurIPS 2026Coming to NeurIPS in Sydney?Explore papers, orals & directions

Density-embedding layers: a general framework for adaptive receptive fields

Francesco Cicala, Luca BortolussiarXiv 2020

Abstract

This paper introduces "density-embedding layers," a novel theoretical framework that redefines how artificial neurons interact with input data. By representing a neuron's receptive field as a learnable probability density function, the authors create a unified mathematical foundation that generalizes fully connected, convolutional, and pooling layers. This approach allows networks to dynamically adapt their receptive fields to the input, achieving comparable accuracy to standard networks with a fraction of the parameters.

Introduction

In visual tasks, a neural network's performance relies heavily on the "receptive field"—the specific region of the input image that a particular neuron processes. While standard Convolutional Neural Networks (CNNs) use fixed grids, recent research has attempted to make these fields more flexible through ad hoc heuristics like deformable convolutions. This paper addresses the lack of a unified mathematical ground for defining and optimizing adaptive receptive fields.

Methods

The authors generalize the standard affine transformation of a neuron into a continuous scalar product of functions: $y = \int w(t)x(t)dt + b$. By defining the input and weights as combinations of basis functions, they separate the standard weight matrix from a new interaction matrix, $\Gamma$. This matrix is populated by integrating probability density functions over the input space, which explicitly define the receptive field.

By choosing a density function with a known, easily computable cumulative distribution function (CDF)—such as the logistic distribution—the interaction matrix can be computed analytically. This enables the parameters defining the shape, size, and location of the receptive field to be optimized using standard backpropagation. Furthermore, because the receptive field is defined continuously, the number of parameters is decoupled from the input resolution, allowing for efficient processing of high-resolution signals. Key implementations include:

  • Logistic-embedding layer (Logistic-EL): Uses 2D logistic distributions to pool input images, learning optimal receptive field parameters.
  • Micro Neural Network (mNN) routing: A dynamic variant where a small "micro network" predicts density parameters on the fly, allowing the receptive field to adapt to specific images.

Results

Experiments on the MNIST dataset demonstrate the efficiency of the proposed framework. A Logistic-EL equipped with a micro-network achieved a 2.91% error rate using only 6,510 parameters, compared to a standard fully connected (FC) network which required 39,760 parameters for a similar error rate (2.96%).

Performance comparison on MNIST: Logistic-EL variants vs. standard fully connected (FC) networks.

Qualitative visualizations confirm that the micro-network successfully forces receptive fields to shift and adapt their shapes based on the specific input digit being processed. At initialization, the receptive fields are generic and centered, but after training, they focus on discriminative features of the input digits.

Visualization of adaptive receptive fields for MNIST digits before and after training.

Conclusion

The density-embedding framework offers a mathematically principled way to unify various layer types and decouple input resolution from parameter count. While currently tested on simple datasets like MNIST and CIFAR10, the results suggest significant potential for parameter-efficient architecture design. Future work will explore scaling these layers to deeper state-of-the-art networks and more complex visual tasks.

Summary updated

Abstract

The effectiveness and performance of artificial neural networks, particularly for visual tasks, depends in crucial ways on the receptive field of neurons. The receptive field itself depends on the interplay between several architectural aspects, including sparsity, pooling, and activation functions. In recent literature there are several ad hoc proposals trying to make receptive fields more flexible and adaptive to data. For instance, different parameterizations of convolutional and pooling layers have been proposed to increase their adaptivity. In this paper, we propose the novel theoretical framework of density-embedded layers, generalizing the transformation represented by a neuron. Specifically, the affine transformation applied on the input is replaced by a scalar product of the input, suitably represented as a piecewise constant function, with a density function associated with the neuron. This density is shown to describe directly the receptive field of the neuron. Crucially, by suitably representing such a density as a linear combination of a parametric family of functions, we can efficiently train the densities by means of any automatic differentiation system, making it adaptable to the problem at hand, and computationally efficient to evaluate. This framework captures and generalizes recent methods, allowing a fine tuning of the receptive field. In the paper, we define some novel layers and we experimentally validate them on the classic MNIST dataset.

Empirical ResultsBrowse all benchmarks →

BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10 · CIFAR10Logistic-EL with mNN (B=8, B_0=4)# parameters21322-132838 vs baselineImage Classification · B=8 · B0=4 · architecture=Logistic-EL with mNN
Source quote
L374: Logistic-EL with mNN (B=8, B_0=4) │ 50.07 ±\, 0.44 │ 21322
Reported baseline / comparator measurements (1)
BenchmarkMethodMetricScoreProtocol / Evidence
CIFAR-10 · CIFAR10FC (1 hidden layer, 50 neurons) baseline# parameters154160Image Classification · architecture=FC · hidden-layers=1 · hidden-neurons=50
Source quote
L368: FC (1 hidden layer, 50 neurons) │ 51.80 ±\, 0.50 │ 154160
BibTeX
@misc{cicala2020density,
  author = {Francesco Cicala and Luca Bortolussi},
  title = {{Density-embedding layers: a general framework for adaptive receptive fields}},
  year = {2020},
  eprint = {2006.12779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2006.12779},
}
Figure