Skip to main content
QUICK REVIEW

[Paper Review] Evaluating Generalization Ability of Convolutional Neural Networks and Capsule Networks for Image Classification via Top-2 Classification

Hao Ren, Jianlin Su|arXiv (Cornell University)|Jan 29, 2019
Advanced Neural Network ApplicationsComputer Science25 references11 citations
TL;DR

This paper proposes Top-2 classification, a novel evaluation task that tests generalization by predicting the top two labels on randomly concatenated two-class images. It introduces a parameter-sharing capsule layer (PS CapsNet) that reduces parameters while achieving significantly higher accuracy than CNNs and FC CapsNets on this task, demonstrating superior generalization. A new visualization method, ProbAM, further reveals that PS CapsNets focus on relevant objects, unlike CNNs and FC CapsNets.

ABSTRACT

Image classification is a challenging problem which aims to identify the category of object in the image. In recent years, deep Convolutional Neural Networks (CNNs) have been applied to handle this task, and impressive improvement has been achieved. However, some research showed the output of CNNs can be easily altered by adding relatively small perturbations to the input image, such as modifying few pixels. Recently, Capsule Networks (CapsNets) are proposed, which can help eliminating this limitation. Experiments on MNIST dataset revealed that capsules can better characterize the features of object than CNNs. But it's hard to find a suitable quantitative method to compare the generalization ability of CNNs and CapsNets. In this paper, we propose a new image classification task called Top-2 classification to evaluate the generalization ability of CNNs and CapsNets. The models are trained on single label image samples same as the traditional image classification task. But in the test stage, we randomly concatenate two test image samples which contain different labels, and then use the trained models to predict the top-2 labels on the unseen newly-created two label image samples. This task can provide us precise quantitative results to compare the generalization ability of CNNs and CapsNets. Back to the CapsNet, because it uses Full Connectivity (FC) mechanism among all capsules, it requires many parameters. To reduce the number of parameters, we introduce the Parameter-Sharing (PS) mechanism between capsules. Experiments on five widely used benchmark image datasets demonstrate the method significantly reduces the number of parameters, without losing the effectiveness of extracting features. Further, on the Top-2 classification task, the proposed PS CapsNets obtain impressive higher accuracy compared to the traditional CNNs and FC CapsNets by a large margin.

Motivation & Objective

  • To address the lack of quantitative methods for comparing generalization ability between CNNs and CapsNets.
  • To develop a more effective evaluation protocol than standard single-label image classification for assessing model robustness and generalization.
  • To reduce the high parameter count in traditional CapsNets while preserving or improving feature representation.
  • To provide intuitive visualization tools to understand how CapsNets focus on relevant image parts during inference.
  • To validate that CapsNets generalize better than CNNs on complex, unseen multi-object inputs.

Proposed method

  • Propose Top-2 classification: train on single-label images but test on randomly concatenated two-image samples with different labels.
  • Introduce a parameter-sharing (PS) mechanism between capsules to reduce the number of parameters in capsule layers.
  • Design a PS CapsNet model using PS capsule layers instead of fully connected capsule layers.
  • Develop Probability-guided Activation Mapping (ProbAM), a visualization technique that highlights image regions most attended by capsules based on prediction probabilities.
  • Use Grad-CAM for CNNs and ProbAM for CapsNets to enable comparative visualization of attention mechanisms.
  • Train models on five benchmark datasets (including STL-10, CIFAR-10, etc.) and evaluate performance on the Top-2 classification task.

Experimental results

Research questions

  • RQ1Can Top-2 classification serve as a more effective quantitative benchmark than standard image classification for evaluating model generalization?
  • RQ2Does the proposed PS CapsNet achieve better generalization than standard CNNs and FC CapsNets on multi-object image inputs?
  • RQ3How do attention patterns in CapsNets differ from those in CNNs when classifying complex, unseen two-object images?
  • RQ4To what extent does the ProbAM visualization method reveal meaningful, interpretable attention regions in CapsNets?
  • RQ5Can parameter sharing in capsule layers reduce model complexity without sacrificing performance or generalization?

Key findings

  • PS CapsNets achieved significantly higher accuracy than both CNNs and FC CapsNets on the Top-2 classification task across five benchmark datasets, demonstrating superior generalization.
  • On the STL-10 dataset, PS CapsNets achieved 75.36% test accuracy on single-label images and maintained strong performance on two-label images, indicating effective feature learning.
  • ProbAM visualization showed that PS CapsNets correctly focus on both objects in two-label images, while CNNs fail to distinguish objects from background and FC CapsNets focus only on one object.
  • The first convolutional layers in all models (CNNs, FC CapsNets, PS CapsNets) learned to detect object outlines and suppress background noise, aligning with human visual processing principles.
  • The PS capsule layer reduced the number of parameters compared to FC capsule layers, improving model efficiency without compromising performance.
  • The qualitative results from ProbAM confirmed that PS CapsNets learn more robust, semantically meaningful representations than CNNs and FC CapsNets, especially in multi-object scenarios.

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.