Reinforced Multi-Label Image Classification by Exploring Curriculum

Shiyi He, Chang Xu, Tianyu Guo, Chao Xu, Dacheng Tao

Introduction

In real-world scenarios, images typically contain multiple objects, making multi-label classification a fundamental challenge in computer vision. Traditional approaches often treat labels as independent (Binary Relevance) or rely on fixed, pre-defined sequences (Classifier Chains). However, these methods fail to capture the dynamic correlations between objects—for instance, the presence of a "sky" significantly increases the probability of "clouds."

This paper introduces Reinforced Multi-Label Image Classification (RMIC), a framework that treats image tagging as a sequential decision-making process. By integrating Reinforcement Learning (RL) with Curriculum Learning, the model learns to identify "easy" objects first, using them as contextual anchors to predict more complex or occluded objects later in the sequence.

Methodology

The RMIC framework models multi-label classification as a Markov Decision Process (MDP) and utilizes Deep Reinforcement Learning to optimize the prediction sequence.

State Representation and Action Space

The state $s$ is defined by two primary components:

  1. Image Features: High-level visual representations extracted from a fine-tuned VGG-16 network.
  2. Action History: A vector tracking previously predicted labels, which allows the model to capture label dependencies and avoid redundancy.

The agent's action space consists of all possible category labels. To ensure the model explores the image fully without repetition, a modified $\epsilon$-greedy policy is employed, restricting the agent to "untaken" labels within each episode.

Deep Q-Network (DQN)

A Deep Q-Network is used to estimate the Q-values (expected future rewards) for each potential label given the current state. The architecture, shown below, integrates the visual features with the temporal context of previous predictions.

Architecture of the RMIC framework, combining a pre-trained CNN for feature extraction with a Deep Q-Network for sequential label prediction.

Reward Function

The agent receives a simple binary reward: $+1$ for a correct label prediction and $-1$ for an incorrect one. The objective is to maximize the total discounted reward over the entire sequence of predictions.

Dynamic Curriculum Learning

A key innovation of RMIC is its ability to discover an "inter-curriculum" tailored to each specific image. Rather than following a global frequency-based order, the model identifies what is easiest to recognize in the current context.

Predicting a prominent object (e.g., a "person") provides a "contextual bootstrap," making it easier to identify smaller or related objects (e.g., a "bottle" or "chair") in subsequent steps. Analysis of the model's behavior confirms this progression: frequent and larger objects are typically prioritized in the early stages of the sequence, while rarer and smaller objects are identified later.

Label distribution across prediction steps, demonstrating the model's tendency to predict frequent labels like 'person' in the first step before moving to a broader distribution.

Experimental Results

The model was evaluated on the PASCAL VOC 2007 and 2012 benchmarks, consisting of 20 object categories.

  • Performance: RMIC achieved a mean Average Precision (mAP) of 84.5% on VOC 2007 and 84.4% on VOC 2012.
  • Dynamic vs. Fixed Order: RMIC significantly outperformed a baseline (RMIC-fixed) that used a static, frequency-based label order, validating the effectiveness of the dynamic curriculum.
  • Competitive Accuracy: Despite training only on binary rewards rather than full ground-truth probability distributions, RMIC performed competitively with, and in some cases better than, fully supervised state-of-the-art methods.

Conclusion and Future Work

RMIC demonstrates that treating multi-label classification as a sequential game allows models to exploit object correlations through a self-discovered curriculum. While highly effective, the current model assumes the number of labels is known during training. Future research could involve training the agent to learn a "stop" action to autonomously determine when all objects have been identified. Additionally, more complex reward shaping could further refine the agent's ability to detect small or rare objects in highly cluttered scenes.

Summary updated

BibTeX
@inproceedings{he2018reinforced,
  author = {Shiyi He and Chang Xu and Tianyu Guo and Chao Xu and Dacheng Tao},
  title = {{Reinforced Multi-Label Image Classification by Exploring Curriculum}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11770},
}
Figure