Joint Learning of Set Cardinality and State Distribution

Seyed Hamid Rezatofighi, Anton Milan, Qinfeng Shi, Anthony R. Dick, Ian D. Reid

TL;DR

This paper introduces a novel deep learning approach for predicting sets, which are inherently unordered and of variable size. By jointly learning the number of elements (cardinality) and the properties of those elements (state distribution) within a single network, they achieve state-of-the-art results on multi-label image classification tasks. This unified approach simplifies the learning process and improves performance compared to methods that handle cardinality and state prediction separately.

What Problem Does This Paper Address?

Traditional deep learning models excel at handling structured data like vectors and matrices, where the order and size of elements are fixed. However, many real-world problems naturally involve sets, where the number of items can vary, and their order doesn't matter. Examples include predicting multiple labels for an image, or identifying objects in a scene. Existing methods often struggle with this by either forcing set-like outputs into fixed-size vectors (requiring post-processing heuristics) or by using sequential models (like RNNs) that are sensitive to order and may not produce valid set outputs. This paper aims to bridge this gap by developing a principled deep learning framework for set prediction that is permutation-invariant and handles both the size and content of the output set simultaneously.

Methods

The core of the paper is a "Joint Deep Set Network" (JDS) that models the probability distribution of a set $Y$ given an input $x$. This distribution is decomposed into a cardinality distribution $p(m|x, w)$ (the probability of the set having $m$ elements) and a state distribution $p(\{y_1, \dots, y_m\}|x, w)$ (the probability of the elements having specific states, given $m$ elements).

Crucially, unlike prior work that used separate networks for cardinality and state prediction, JDS uses a single, unified network with parameters $w$. This network is trained end-to-end to jointly optimize both distributions. The authors adopt a Dirichlet-Categorical distribution for cardinality and a model based on independent probabilities for the state distribution of each element. For inference, they employ a Maximum A Posteriori (MAP) estimation to find the most likely set output. They also reformulate the problem for multi-label classification into a binary decision for each label, which can be solved efficiently.

Datasets

The proposed method is evaluated on two standard multi-label image classification benchmarks:

  • PASCAL VOC 2007: A widely used dataset for object detection and classification.
  • Microsoft COCO (MS COCO): A large-scale dataset for image captioning, recognition, and segmentation.

The authors note that they use the same experimental setup and data splits as previous relevant works to ensure comparability.

Key Insights and Ideas

  • Joint Learning is Superior: The paper strongly advocates for jointly learning cardinality and state distributions. They show that this unified approach leads to better performance than separate learning, suggesting that the two aspects of set prediction are interdependent and benefit from being optimized together.
  • Permutation Invariance is Key: The core challenge of set prediction is its inherent order-independence. The proposed JDS network is designed to be permutation-invariant, meaning the order in which elements are predicted or processed does not affect the final output or its probability.
  • Single Network Simplicity: Using a single deep network for both tasks simplifies the model architecture and reduces the number of learnable parameters, which can lead to more efficient training and potentially better generalization.
  • Principled Formulation: The authors derive a mathematical formulation for set prediction based on finite set statistics, providing a theoretically sound basis for their deep learning approach.

Key Results

  • State-of-the-Art Performance: The JDS model achieves state-of-the-art results on both PASCAL VOC 2007 and MS COCO datasets for multi-label image classification, outperforming previous methods in terms of F1-score.
  • Improved Cardinality Estimation: The joint learning approach leads to a lower mean absolute error in cardinality estimation compared to learning it independently.
  • Qualitative Improvements: Figure 3 shows qualitative examples where the JDS model reduces both cardinality and classification errors, producing more accurate and relevant sets of labels compared to baseline deep set networks.

Limitations and Future Work

  • Permutation Invariance in Training: The current framework is primarily applicable to set problems where permutation invariance is not strictly required during the training phase. For applications where the training data itself might have an inherent order that needs to be ignored, further work is needed. The authors suggest incorporating permutation variables into the training procedure to address this.
  • MAP Estimation: The current inference relies on MAP estimation. The authors suggest that exploiting the Bayesian nature of their model could allow for incorporating uncertainty estimation, which might be beneficial in certain applications.

Summary updated

Abstract

We present a novel approach for learning to predict sets using deep learning. In recent years, deep neural networks have shown remarkable results in computer vision, natural language processing and other related problems. Despite their success, traditional architectures suffer from a serious limitation in that they are built to deal with structured input and output data, i.e. vectors or matrices. Many real-world problems, however, are naturally described as sets, rather than vectors. Existing techniques that allow for sequential data, such as recurrent neural networks, typically heavily depend on the input and output order and do not guarantee a valid solution. Here, we derive in a principled way, a mathematical formulation for set prediction where the output is permutation invariant. In particular, our approach jointly learns both the cardinality and the state distribution of the target set. We demonstrate the validity of our method on the task of multi-label image classification and achieve a new state of the art on the PASCAL VOC and MS COCO datasets.
BibTeX
@inproceedings{rezatofighi2018joint,
  author = {Seyed Hamid Rezatofighi and Anton Milan and Qinfeng Shi and Anthony R. Dick and Ian D. Reid},
  title = {{Joint Learning of Set Cardinality and State Distribution}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2018},
  doi = {10.1609/aaai.v32i1.11639},
}
Figure