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

Lightweight Pixel Difference Networks for Efficient Visual Representation Learning

Zhuo Su, Jiehua Zhang, Longguang Wang, Hua Zhang, Zhen Liu, Matti Pietikäinen, Li Liu · DOI

Abstract

Recently, there have been tremendous efforts in developing lightweight Deep Neural Networks (DNNs) with satisfactory accuracy, which can enable the ubiquitous deployment of DNNs in edge devices. The core challenge of developing compact and efficient DNNs lies in how to balance the competing goals of achieving high accuracy and high efficiency. In this paper we propose two novel types of convolutions, dubbed Pixel Difference Convolution (PDC) and Binary PDC (Bi-PDC) which enjoy the following benefits: capturing higher-order local differential information, computationally efficient, and able to be integrated with existing DNNs. With PDC and Bi-PDC, we further present two lightweight deep networks named Pixel Difference Networks (PiDiNet) and Binary Pixel Difference Networks (Bi-PiDiNet) respectively to learn highly efficient yet more accurate representations for visual tasks including edge detection and object recognition. Extensive experiments on popular datasets (BSDS500, ImageNet, LFW, YTF, etc.) show that PiDiNet and Bi-PiDiNet achieve the best accuracy-efficiency trade-off. For edge detection, PiDiNet is the first network that can be trained without ImageNet, and can achieve the human-level performance on BSDS500 at 100 FPS and with <1M parameters. For object recognition, among existing Binary DNNs, Bi-PiDiNet achieves the best accuracy and a nearly 2x reduction of computational cost on ResNet18.

Introduction

Deep Convolutional Neural Networks (DCNNs) have revolutionized computer vision but remain computationally expensive for edge deployment. While lightweight architectures like MobileNet utilize vanilla convolutions that focus on pixel intensities, they often struggle to capture fine-grained microstructures such as edges and textures. Conversely, Binary Neural Networks (BCNNs) offer extreme efficiency but suffer from significant accuracy degradation due to the loss of high-frequency information during global binarization. This paper addresses these challenges by introducing Pixel Difference Convolution (PDC) and its binary counterpart, Bi-PDC.

Methodology: Pixel Difference Convolution

The core innovation is the PDC, which integrates traditional local texture descriptors into the deep learning framework. Unlike vanilla convolutions that compute $w \cdot x$, PDC computes weights against the difference between pixels ($w \cdot (x_i - x_j)$).

Overview of the PDC and Bi-PDC strategies, illustrating the pattern probing and binarization processes.

The authors propose three specific probing strategies to capture diverse local patterns:

  1. Central PDC (CPDC): Compares peripheral pixels to the central pixel.
  2. Angular PDC (APDC): Compares adjacent pixels along a circular path.
  3. Radial PDC (RPDC): Compares pixels across different radii.

Re-parameterization and Bi-PDC

A key advantage of PDC is its "free lunch" re-parameterization. During inference, PDC weights can be folded into a standard convolutional format, allowing the network to run at the same speed as a vanilla counterpart while benefiting from superior feature extraction. For binary networks, Bi-PDC utilizes a dynamic threshold based on neighboring pixels rather than a global threshold, preserving critical microstructure information that is typically lost in standard BCNNs.

Key Insights and Results

Analysis using 2D Fast Fourier Transforms (FFT2) reveals that PDC acts as a high-pass filter. While vanilla convolutions are often biased toward low-frequency components (general shapes), PDC emphasizes high-frequency details (textures and edges), as shown in the comparison of feature maps.

Comparison of feature maps and FFT2 maps between vanilla operations and PDC/Bi-PDC. PDC captures sharper high-frequency details.

Performance Benchmarks

  • Edge Detection (PiDiNet): PiDiNet achieved an ODS F-measure of 0.807 on the BSDS500 dataset, reaching human-level performance (~0.803) with only 0.71M parameters. Notably, it is the first network to achieve such results without ImageNet pretraining, running at 100 FPS.
  • Object Recognition (Bi-PiDiNet): Integrated into a ResNet-18 backbone, Bi-PiDiNet achieved 62.8% Top-1 accuracy on ImageNet, outperforming state-of-the-art binary networks like ReActNet while significantly reducing computational operations.
  • Robustness: The models demonstrated enhanced stability against data corruptions (noise, blur), likely due to the inherent invariance of pixel differences compared to absolute intensities under varying conditions.

Conclusion

PDC and Bi-PDC provide a powerful yet efficient mechanism for capturing local microstructures in visual data. By breaking the dependency on massive pretraining for low-level tasks and improving the accuracy of binary networks, PiDiNet sets a new standard for lightweight visual representation. Future work may involve using Neural Architecture Search (NAS) to optimize probing strategies and extending the framework to other low-level semantic tasks.

Summary updated

BibTeX
@article{su2023lightweight,
  author = {Zhuo Su and Jiehua Zhang and Longguang Wang and Hua Zhang and Zhen Liu and Matti Pietikäinen and Li Liu},
  title = {{Lightweight Pixel Difference Networks for Efficient Visual Representation Learning}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2023.3300513},
}
Figure