Skip to main content
QUICK REVIEW

[Paper Review] Angular Visual Hardness

Beidi Chen, Weiyang Liu|arXiv (Cornell University)|Dec 4, 2019
Optical measurement and interference techniquesComputer Science82 references10 citations
TL;DR

This paper introduces Angular Visual Hardness (AVH), a novel score measuring sample hardness in CNNs via the normalized angular distance between feature embeddings and classifier weights. AVH correlates strongly with human visual hardness and outperforms traditional confidence measures in self-training and domain generalization, demonstrating improved calibration and performance on hard examples.

ABSTRACT

Recent convolutional neural networks (CNNs) have led to impressive performance but often suffer from poor calibration. They tend to be overconfident, with the model confidence not always reflecting the underlying true ambiguity and hardness. In this paper, we propose angular visual hardness (AVH), a score given by the normalized angular distance between the sample feature embedding and the target classifier to measure sample hardness. We validate this score with an in-depth and extensive scientific study, and observe that CNN models with the highest accuracy also have the best AVH scores. This agrees with an earlier finding that state-of-art models improve on the classification of harder examples. We observe that the training dynamics of AVH is vastly different compared to the training loss. Specifically, AVH quickly reaches a plateau for all samples even though the training loss keeps improving. This suggests the need for designing better loss functions that can target harder examples more effectively. We also find that AVH has a statistically significant correlation with human visual hardness. Finally, we demonstrate the benefit of AVH to a variety of applications such as self-training for domain adaptation and domain generalization.

Motivation & Objective

  • To address the lack of reliable, semantics-aware confidence measures in deep learning, particularly for hard examples near decision boundaries.
  • To develop a proxy for human visual hardness that is scalable and does not require explicit human labeling.
  • To investigate whether improved performance on hard examples correlates with better generalization and model calibration.
  • To evaluate AVH's utility in self-training for domain adaptation and domain generalization.
  • To explore the limitations of standard cross-entropy loss in optimizing angular margins and improving generalization on hard samples.

Proposed method

  • AVH is computed as the normalized angular distance between the deep feature embedding of an input and the classifier weight vector of its true class.
  • Normalization is performed using angular distances to all other classes, ensuring robustness and scale invariance.
  • The AVH score is derived from the cosine similarity between the feature vector and the target classifier weight, adjusted by the angular distances to all other classes.
  • AVH is used as a confidence proxy in self-training frameworks, guiding pseudo-label selection by prioritizing harder, lower-confidence samples.
  • An AVH-based loss function is proposed for domain generalization, defined as a temperature-scaled softmax over angular distances: $\mathcal{L}_{AVH} = \sum_i \frac{\exp(s(\pi - \mathcal{A}(\mathbf{x}_i, \mathbf{w}_{y_i})))}{\sum_k \exp(s(\pi - \mathcal{A}(\mathbf{x}_i, \mathbf{w}_k)))}$.
  • The method is evaluated on ImageNet, PACS, and domain adaptation benchmarks using standard CNNs and self-training protocols.

Experimental results

Research questions

  • RQ1Does AVH correlate more strongly with human visual hardness than traditional confidence measures like softmax score or feature norm?
  • RQ2How does AVH evolve during training, and does it plateau earlier than training loss, indicating early convergence of angular alignment?
  • RQ3Can AVH improve self-training performance in domain adaptation by enabling better selection of pseudo-labeled hard examples?
  • RQ4Can an AVH-based loss function enhance generalization in domain generalization tasks compared to standard cross-entropy loss?
  • RQ5Is there a causal link between improved performance on hard examples and overall model accuracy and calibration?

Key findings

  • AVH scores plateau early in training, even as training loss continues to decrease, indicating that angular alignment stabilizes before norm scaling.
  • Models with state-of-the-art accuracy also exhibit the best AVH scores, supporting the hypothesis that improving performance on hard examples drives generalization.
  • AVH shows a statistically significant stronger correlation with Human Selection Frequency (HSF) than softmax score or feature norm, validating its role as a proxy for human visual hardness.
  • In self-training for domain adaptation, AVH-based selection yields a higher proportion of hard examples (lower average confidence: 0.961 vs. 0.976) while maintaining similar true positive rate (0.844 vs. 0.848), indicating better calibration.
  • On the PACS dataset, a simple 10-layer CNN trained with the AVH-based loss achieves 72.46% average accuracy, outperforming more complex baselines and matching or exceeding state-of-the-art methods.
  • The AVH-based loss improves performance on hard examples, especially in the sketch domain (61.26% accuracy), suggesting better robustness to domain shift.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.