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

Learning graph structure for multi-label image classification via clique generation

Mingkui Tan, Qinfeng Shi, Anton van den Hengel, Chunhua Shen, Junbin Gao, Fuyuan Hu, Zhen Zhang

Abstract

Multi-label image classification requires capturing dependencies between labels to improve accuracy. Traditional methods often rely on fixed heuristics or ignore dependencies entirely. This paper introduces the Clique Generating Machine (CGM), a framework that treats graph structure as a sparse selection problem. By iteratively activating relevant cliques based on visual features, CGM learns an optimal, sparse graph structure that enhances both classification performance and inference efficiency.

Introduction

In real-world images, objects rarely appear in isolation. A "ship" is frequently found with "water," and a "car" often appears with a "person." Capturing these semantic relationships is crucial for robust multi-label classification. While Probabilistic Graphical Models (PGMs) offer a way to model these dependencies, determining the correct graph structure—which labels should be connected—remains a significant challenge. Most existing methods either ignore these dependencies or use fixed heuristics like the ChowLiu Tree, which may not reflect the actual visual content of the images.

The Clique Generating Machine (CGM)

The authors propose a max-margin framework that avoids the limitations of manually defined or overly rigid structures. Instead of a fixed tree or a fully connected graph, CGM starts with an empty set of dependencies and iteratively identifies the most informative cliques.

Methodology

  • Clique Generation: The algorithm identifies groups of dependent labels (cliques) that most significantly improve the model's objective function. This avoids the exponential complexity of considering all possible label combinations.
  • Convex Relaxation: To solve the discrete selection problem, the authors employ a convex minimax formulation, ensuring mathematical stability and solvability.
  • Stochastic Optimization: Using Stochastic Proximal Dual Coordinate Ascent (SPDCA), the model scales effectively to large datasets by processing data in small batches rather than the entire set at once.
  • Efficient Inference: Once the sparse graph is learned, final label prediction is performed using Max-Product Linear Programming (MPLP).

Key Insights: Sparsity and the "Lone Wolf" Label

A core finding of this research is that not all labels benefit from being connected. Traditional tree-based methods force every label into a dependency chain, which can introduce noise and degrade performance.

Learned sparse graph structure where labels like 'plane' are correctly identified as independent nodes, while 'person' acts as a central hub.

As shown in the learned structure, categories like "plane" are often better modeled as independent nodes. This is because planes frequently appear against uniform backgrounds (like the sky) without other labeled objects. By allowing these "lone wolf" labels to remain isolated, CGM simplifies the model and improves accuracy. Furthermore, because CGM builds its graph based on visual features rather than just co-occurrence statistics, the structure is specifically tuned to the visual characteristics of the dataset.

Results and Performance

The CGM framework was evaluated on synthetic data, the Scene dataset, and PASCAL VOC 2007/2012 benchmarks using both hand-crafted (DSIFT) and deep learning (CNN) features.

Sample images from the PASCAL VOC dataset illustrating the visual context of the 'plane' category, which often appears in isolation.

Key results include:

  • Superior Accuracy: CGM consistently outperformed Binary Relevance and ChowLiu Tree baselines. On PASCAL VOC 2012, it achieved the lowest Hamming Loss (0.040).
  • Structure Recovery: In synthetic tests, CGM was the only method that successfully identified the exact ground-truth edges between labels.
  • CNN Synergy: The method showed a massive performance boost when using CNN features, proving it can effectively leverage modern deep learning representations.
  • Inference Speed: The learned sparsity leads to faster prediction times compared to denser graphical models, making it more practical for real-world applications.

Conclusion

By treating graph structure as a learnable variable, the Clique Generating Machine provides a principled way to model label dependencies in image classification. The method's ability to identify independent labels and focus on relevant cliques results in a model that is both more accurate and more efficient than traditional fixed-structure approaches.

Summary updated

BibTeX
@inproceedings{tan2015learning,
  author = {Mingkui Tan and Qinfeng Shi and Anton van den Hengel and Chunhua Shen and Junbin Gao and Fuyuan Hu and Zhen Zhang},
  title = {{Learning graph structure for multi-label image classification via clique generation}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2015},
  doi = {10.1109/cvpr.2015.7299037},
}
Figure