Learning Spatial Regularization with Image-Level Supervisions for Multi-label Image Classification

Feng Zhu, Hongsheng Li, Wanli Ouyang, Nenghai Yu, Xiaogang Wang

Abstract

Multi-label image classification typically leverages semantic correlations between labels but often overlooks spatial relationships due to the high cost of bounding box annotations. This paper introduces the Spatial Regularization Network (SRN), a framework that learns spatial priors using only image-level labels. By generating label-specific attention maps and applying spatial regularization through efficient decoupled convolutions, the SRN significantly improves classification accuracy across major benchmarks like NUS-WIDE, MS-COCO, and WIDER-Attribute.

Introduction

In multi-label image classification, an image can contain many different objects or attributes (e.g., "sky," "clouds," and "water"). Most state-of-the-art models focus on semantic relations—the statistical likelihood that "clouds" and "sky" appear in the same image. However, they often ignore spatial relations—the fact that "clouds" are usually found above "water."

Capturing this spatial context is difficult because standard datasets rarely provide the coordinates (bounding boxes) for every label. This paper addresses the challenge of learning these spatial priors using only "weak" supervision (the simple presence/absence of a label). The SRN acts as a "sanity check": if the main network is unsure about a label, the SRN can provide a boost if that label's predicted location makes sense relative to other confirmed labels.

The SRN improves classification by refining initial confidence scores based on learned spatial relationships.

Methods

The authors propose a unified framework consisting of a "Main Net" (a standard ResNet-101) and a novel Spatial Regularization Network (SRN). The SRN operates in two primary stages:

  1. Label Attention Mapping: The model generates individual attention maps for every possible label in the dataset. These maps highlight the regions most likely associated with a specific class (e.g., the "sun" map might glow in the upper-middle region).
  2. Spatial Regularization: These maps are weighted by the model's confidence and fed into a series of convolutions. This allows the network to "reason" about the layout. For instance, if the "sky" attention map is active at the top and the "water" map is active at the bottom, the SRN can reinforce the confidence for both.
The detailed architecture of the proposed framework, highlighting the interaction between the Main Net and the SRN.

To keep the model efficient, the authors used a decoupled convolution strategy. A naive implementation would require tens of millions of parameters to process 80+ label maps simultaneously. By using grouped convolutions, they captured complex spatial relations with only 6 million additional parameters—a fraction of the base ResNet-101's size.

Key Results

The SRN consistently outperformed baseline ResNet models and previous state-of-the-art methods across all metrics (mAP, F1-score, etc.):

  • NUS-WIDE: Achieved a Mean Average Precision (mAP) of 62.0%, a significant jump over the ResNet-101 baseline of 59.8%.
  • MS-COCO: Reached 77.1% mAP, outperforming the baseline by nearly 2%.
  • WIDER-Attribute: Achieved 86.2% mAP, surpassing specialized models that use full-image context.

Qualitatively, the authors visualized specific neurons in the SRN and found they specifically fire for attributes in expected locations, such as "long hair" at the top of a person or "flags" in specific vertical positions, proving the network truly internalized spatial layouts.

Discussion and Future Work

One of the most impressive findings is that the model learns highly accurate attention maps (essentially heatmaps of where objects are) without ever seeing a bounding box. It learns these purely by optimizing for classification accuracy. Weighting these maps by the label's confidence score was found to be crucial to prevent the model from learning spatial "noise" from labels that aren't actually present in the image.

While powerful, the SRN's performance is still tied to the quality of the initial features. For very rare classes (like "toaster" in MS-COCO), the model struggled to improve because there weren't enough examples to learn reliable spatial patterns. Future iterations might explore dynamic weighting between the Main Net and SRN or extend this logic to video, where temporal relations could provide even richer regularization.

Summary updated

BibTeX
@inproceedings{zhu2017learning,
  author = {Feng Zhu and Hongsheng Li and Wanli Ouyang and Nenghai Yu and Xiaogang Wang},
  title = {{Learning Spatial Regularization with Image-Level Supervisions for Multi-label Image Classification}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2017},
  doi = {10.1109/cvpr.2017.219},
}
Figure