Image Score: How to Select Useful Samples

Simiao Zuo, Jialin Wu

Abstract

Semi-supervised learning (SSL) often relies on pseudo-labeling unlabeled data based on softmax confidence scores. However, this approach frequently fails due to data redundancy and the reinforcement of model biases. This paper introduces "Image Score," a novel metric that evaluates the utility and trustworthiness of unlabeled samples by analyzing internal activation patterns within a neural network. By selecting images whose activation chains align with a class-wide consensus, the authors demonstrate significant performance gains in both image classification and object detection tasks.

Introduction

The primary challenge in semi-supervised learning is effectively utilizing a large pool of unlabeled data alongside a limited labeled dataset. Traditional "self-training" methods use the model's own predictions—specifically high softmax confidence scores—to select new training samples. This approach suffers from two major drawbacks:

  1. Redundancy: If a model is already highly confident about an image, adding it back to the training set provides little new information.
  2. Bias Reinforcement: Models may rely on spurious background features, leading to incorrect pseudo-labels that poison the training set. For example, a model might classify an image as an airplane simply because it detects a sunset sky rather than the object itself.
An example of a 'bad' sample where the model might rely on background features like the sunset sky rather than the airplane itself.

To address these issues, the authors propose shifting the focus from final output probabilities to internal feature representations through a metric called Image Score.

The Image Score Metric

The Image Score evaluates how well an individual image's internal activations match the "correct" activation pattern for a specific class. The process involves three main steps:

  1. Consensus Mask Generation: For each class in the labeled set, the method aggregates activation maps across all images to identify neurons consistently activated by that class. A binary "correct" mask is created using a threshold of half the maximum activation sum.
  2. Individual Masking: For an unlabeled image, the network generates a specific binary mask of its internal activations.
  3. Score Calculation: The Image Score is calculated as the log ratio of the overlap between the individual image mask and the class-wide consensus mask.
Comparison of activation masks for 'bad' samples (rows 1-2) versus 'good' samples (rows 3-4).

A high Image Score indicates that the image triggered the relevant object features rather than background noise, making it a high-quality candidate for pseudo-labeling.

Experimental Evaluation

The authors validated the Image Score method on standard benchmarks for classification and detection.

Image Classification (CIFAR-10)

In a simulated semi-supervised environment (30,000 labeled and 20,000 unlabeled images), the Image Score selection method led to statistically significant accuracy improvements. Using a VGG16 architecture, the method improved performance across all ten classes, whereas the traditional softmax baseline only improved two. With ResNet18, Image Score improved nine out of ten classes. Overall accuracy was boosted from 82.8% to 83.7% through the assembly of class-specific expert models.

Object Detection (Pascal VOC)

The method was applied to a Faster R-CNN with a VGG16 backbone using Pascal VOC 2007 as the labeled set and VOC 2012 as the unlabeled set. By selecting the top 30% highest-scoring images, the Mean Average Precision (mAP) increased from 0.706 to 0.719.

Key Insights

The core finding is that softmax is a flawed metric for SSL because it measures output certainty rather than feature quality. Image Score differentiates between "good" features (aligned with the object) and "bad" features (tied to background noise) by checking alignment with a consensus activation path. This approach effectively repurposes interpretability techniques as active data curation tools.

Discussion and Limitations

While the Image Score method provides a robust way to select training data, the authors noted that as models become more specialized, individual activation maps tend to diverge from the consensus, causing scores to decline. Additionally, while the method outperforms standard SSL baselines, it does not yet reach the performance of a fully supervised model trained on the combined dataset (which achieves 0.742 mAP on VOC). Future research will focus on refining the metric to close this performance gap.

Summary updated

Abstract

There has long been debates on how we could interpret neural networks and understand the decisions our models make. Specifically, why deep neural networks tend to be error-prone when dealing with samples that output low softmax scores. We present an efficient approach to measure the confidence of decision-making steps by statistically investigating each unit's contribution to that decision. Instead of focusing on how the models react on datasets, we study the datasets themselves given a pre-trained model. Our approach is capable of assigning a score to each sample within a dataset that measures the frequency of occurrence of that sample's chain of activation. We demonstrate with experiments that our method could select useful samples to improve deep neural networks in a semi-supervised leaning setting.
BibTeX
@misc{zuo2018image,
  author = {Simiao Zuo and Jialin Wu},
  title = {{Image Score: How to Select Useful Samples}},
  year = {2018},
  eprint = {1812.00334},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1812.00334},
}
Figure