Efficient Relative Attribute Learning Using Graph Neural Networks

Zihang Meng, Nagesh Adluru, Hyunwoo J. Kim, Glenn Fung, Vikas SinghECCV 2018

Abstract: A sizable body of work on relative attributes provides evidence that relating pairs of images along a continuum of strength pertaining to a visual attribute yields improvements in a variety of vision tasks. In this paper, we show how emerging ideas in graph neural networks can yield a solution to various problems that broadly fall under relative attribute learning. Our main idea is the observation that relative attribute learning naturally benefits from exploiting the graph of dependencies among the different relative attributes of images, especially when only partial ordering is provided at training time. We use message passing to perform end to end learning of the image representations, their relationships as well as the interplay between different attributes. Our experiments show that this simple framework is effective in achieving competitive accuracy with specialized methods for both relative attribute learning and binary attribute prediction, while relaxing the requirements on the training data and/or the number of parameters, or both.

Introduction

In computer vision, visual attributes serve as human-interpretable properties—such as "smiling," "natural," or "furry"—that bridge the gap between low-level pixels and high-level semantics. While traditional binary classification (e.g., "is this person smiling?") is common, Relative Attribute Learning (RAL) offers a more nuanced approach by placing images on a continuum (e.g., "person A is smiling more than person B").

Despite its potential, RAL faces significant challenges. Most existing methods treat image comparisons in isolated pairs, failing to exploit the transitive nature of relationships (if A > B and B > C, then A > C). Furthermore, attributes are often correlated; for instance, a "furry" object is likely "four-legged." Capturing these inter-attribute dependencies typically requires computationally expensive multi-task models with separate convolutional branches for every attribute. This paper proposes a unified Graph Neural Network (GNN) framework designed to exploit both image-to-image and attribute-to-attribute relationships with high efficiency.

The Proposed GNN Framework

The core innovation of this work is the transition from pairwise comparisons to group-based comparisons using a GNN architecture. By treating a mini-batch of images as a graph, the model can refine individual image representations through global context.

Overview of the CNN-GNN pipeline for relative attribute learning.

Architecture Overview

As shown in Figure 1, the pipeline begins with a standard CNN backbone (such as AlexNet) that extracts initial visual features $f(I)$ for each image in a mini-batch. These images are then represented as nodes in a fully connected graph. The GNN module performs iterative message passing to share information across the group.

Message Passing and Updates

The internal mechanics of the GNN, detailed in Figure 2, involve several key steps:

  1. Edge Learning: The model learns a symmetric function $\phi_\theta$ to determine the relationship strength between nodes based on feature differences. Symmetry is crucial to ensure the model remains unbiased regardless of the order in which images are processed.
  2. Message Aggregation: Each node aggregates messages $m$ from its neighbors, allowing its representation to be informed by the "beliefs" of the rest of the group.
  3. Gated Updates: A Gated Recurrent Unit (GRU) updates the state of each node $x_i^{(k)}$ based on its previous state and the incoming messages. This iterative process allows the model to converge on a stable representation that respects the global ordering of the batch.
  4. Readout: A final function maps the updated features to a scalar value for ranking or a probability for classification.
Detailed view of the GNN message passing and update mechanism.

Multi-task Efficiency

In multi-task settings, the authors introduce "attribute nodes" into the graph. Unlike traditional methods that add entire CNN branches for new attributes, this approach only adds a single node. This allows the number of parameters to grow linearly ($O(K^2 + nK)$) rather than multiplicatively, enabling the model to learn inter-attribute correlations without a massive computational overhead.

Experimental Evaluation

The framework was evaluated on several standard benchmarks, including the Outdoor Scene Recognition (OSR) dataset, the PubFig face database, and the Clothing Attributes dataset.

  • State-of-the-Art Accuracy: On the PubFig dataset, the multi-task GNN achieved a mean accuracy of 98.55%, significantly outperforming previous deep learning approaches that hovered around 94.5%.
  • Computational Efficiency: The GNN's parameter sharing led to dramatic speedups. On the Clothing dataset, the model achieved results comparable to specialized multi-task CNNs (like MG-CNN) but required only 4 hours of training on a standard GPU, compared to the 1.5 days required by the baseline.
  • Multi-task Synergy: Learning multiple attributes simultaneously consistently yielded better results than single-attribute training, confirming that the GNN successfully captures latent correlations between different visual properties.

Discussion and Future Work

While the GNN framework is highly effective, its performance is tied to the "connectivity" of the graph. In datasets like UT-Zappos50K, where relationships are sparse and highly ordered, the benefits of message passing are less pronounced. Additionally, while fully connected graphs work well for small mini-batches (5-10 images), they may become computationally expensive at larger scales.

Future research directions include exploring sparse graph constructions for larger batches and applying this GNN framework to more modern backbones, such as ResNet or Vision Transformers, to further push the boundaries of relative attribute learning.

Summary updated

BibTeX
@inproceedings{meng2018efficient,
  author = {Zihang Meng and Nagesh Adluru and Hyunwoo J. Kim and Glenn Fung and Vikas Singh},
  title = {{Efficient Relative Attribute Learning Using Graph Neural Networks}},
  booktitle = {European Conference on Computer Vision},
  year = {2018},
  url = {https://openreview.net/forum?id=HJEtDKW_bH},
}

Loading related content...

Figure