Incorporating Side Information by Adaptive Convolution

Di Kang, Debarun Dhar, Antoni B. Chan

In the world of computer vision, we often have access to more than just an image. We might know the camera's height, its tilt angle, or the specific settings that resulted in a blurry photo. Usually, deep learning models throw this "side information" away, forcing the neural network to learn everything from scratch.

A paper from researchers at the City University of Hong Kong, titled "Incorporating Side Information by Adaptive Convolution," proposes a clever way to stop wasting this data. Instead of using fixed filters, they created a network that changes its own weights based on the context of the scene.

TL;DR

The authors introduce the Adaptive Convolutional Neural Network (ACNN), which uses auxiliary "side information" (like camera angles or noise levels) to dynamically generate convolution filters. By modeling filter weights as a low-dimensional manifold, the ACNN outperforms standard CNNs in crowd counting, deblurring, and noise-robust recognition while remaining parameter-efficient.

What Problem Does This Paper Address?

Standard Convolutional Neural Networks (CNNs) use the same set of learned filters for every image they process. However, the "content" of an image is often heavily influenced by its "context."

Take crowd counting: a person standing 50 feet away looks very different from a person 5 feet away due to perspective distortion. Similarly, a person viewed from a 10° camera tilt looks completely different than from a 60° tilt. A standard CNN has to be massive enough to learn filters that are "invariant" to all these changes, or it needs to be fine-tuned for every new camera setup. The authors argue that if we already know the camera angle (the side information), we should use it to help the network adjust its expectations.

Methods: The Adaptive Convolutional Layer

The core innovation of this paper is the Adaptive Convolutional Layer.

In a normal layer, the filter weights are fixed after training. In an ACNN, the weights are generated on the fly by a secondary sub-network called the Filter Manifold Network (FMN).

The Adaptive Convolutional Layer and Filter Manifold

Here is how it works:

  1. Input: The FMN takes the side information (e.g., a single number representing camera tilt) as its input.
  2. The Manifold: It treats the high-dimensional space of possible filter weights as a "manifold"—a smooth, low-dimensional surface.
  3. Output: The FMN outputs a specific set of filter weights tailored to that exact context.
  4. Convolution: These custom weights are then used to perform the actual convolution on the image.

This allows the network to "disentangle" variations. The main network focuses on finding features (like heads or shoulders), while the FMN handles how those features should look given the current perspective or noise level.

Datasets

The researchers evaluated ACNN across three distinct tasks to prove its versatility:

  • Crowd Counting: Evaluated on the standard UCSD dataset.
  • Corrupted Digit Recognition: Tested on MNIST with added salt-and-pepper noise.
  • Image Deblurring: Used the Flickr8k dataset, artificially blurred with disk kernels.
  • New Benchmark: The authors also introduced CityUHK-X, a new crowd-counting dataset containing 55 scenes (over 3,000 images) with ground-truth camera tilt angles and heights—crucial side information that was missing from previous public benchmarks.

Key Insights and Ideas

  • Interpolation is Key: Because the FMN learns a continuous "manifold" of filters, the network can handle contexts it has never seen before. If it was trained on 10° and 30° camera angles, it can effectively "guess" what the filters should look like for a 20° angle by interpolating along the manifold.
  • Moving Parameters, Not Adding Them: An ACNN doesn't necessarily need more parameters than a standard CNN. By reducing the number of feature channels in the main network and moving those "saved" parameters into the FMN, the model gains adaptability without becoming bloated.
  • Layer Placement Matters: The authors found that the type of side information dictates where the adaptive layer should go. For low-level issues like pixel noise, adapting the first layer is best. For high-level issues like perspective distortion (which affects the arrangement of features), adapting later layers is more effective.

Key Results

The ACNN demonstrated significant improvements across all tested domains:

  • Crowd Counting: On the UCSD "max" split, ACNN achieved a Mean Absolute Error (MAE) of 0.96. As shown below, this significantly beats the standard CNN (1.26) and the previous state-of-the-art MCNN (1.32).
Crowd Counting Performance Comparison
  • Noise Robustness: In digit recognition with varying noise levels, ACNN reduced the error rate from 3.58% (standard CNN) to 2.92%.
  • Deblurring: ACNN was able to deblur images across a wide range of blur radii using a single model. It nearly doubled the PSNR (Peak Signal-to-Noise Ratio) improvement compared to a standard CNN (+1.03dB vs +0.56dB).

Limitations and Future Work

While powerful, the ACNN approach has a few hurdles:

  • FMN Complexity: If the main network has many channels (e.g., 512 in, 512 out), the FMN's final layer becomes massive. The authors suggest a "FMN-in-FMN" approach to handle this, but it adds architectural complexity.
  • Manual Design: Currently, the researcher must decide which layers should be adaptive based on intuition about the side information.
  • Future Direction: The authors suggest that future work could involve automatically determining which layers benefit most from adaptation and exploring more complex types of side information, such as lighting conditions or geographic location.

Summary updated

BibTeX
@inproceedings{kang2017incorporating,
  author = {Di Kang and Debarun Dhar and Antoni B. Chan},
  title = {{Incorporating Side Information by Adaptive Convolution}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2017},
  url = {https://openreview.net/forum?id=S1N7FPZdWH},
}
Figure