Skip to content

Official implementation of Test-Time Amendment with a Coarse Classifier for Fine-Grained Classification

Notifications You must be signed in to change notification settings

kanji95/Hierarchical-Ensembles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Test-Time Amendment with a Coarse Classifier for Fine-Grained Classification (NeurIPS 2023)

Official PyTorch implementation | Paper

Abstract

We investigate the problem of reducing mistake severity for fine-grained classification. Fine-grained classification can be challenging, mainly due to the requirement of knowledge or domain expertise for accurate annotation. However, humans are particularly adept at performing coarse classification as it requires relatively low levels of expertise. To this end, we present a novel approach for Post-Hoc Correction called Hierarchical Ensembles (HiE) that utilizes label hierarchy to improve the performance of fine-grained classification at test-time using the coarse-grained predictions. By only requiring the parents of leaf nodes, our method significantly reduces avg. mistake severity while improving top-1 accuracy on the iNaturalist-19 and tieredImageNet-H datasets, achieving a new state-of-the-art on both benchmarks. We also investigate the efficacy of our approach in the semi-supervised setting. Our approach brings notable gains in top-1 accuracy while significantly decreasing the severity of mistakes as training data decreases for the fine-grained classes. The simplicity and post-hoc nature of HiE render it practical to be used with any off-the-shelf trained model to improve its predictions further.

motivation

Dataset

Prepare iNaturalist-19 and tieredImageNet-H datasets using this repo

Training

  • For supervised learning setting, refer to this fork of this repo
  • For semi-supervised learning setting, refer to this fork of this repo

Evaluation

python evaluate.py --dataset <dataset> --crm 0 --post_hoc 1 --model_path <model_path> --aux_path <aux_path>

Acknowledgements

Training codes are borrowed from https://github.com/07Agarg/HAF, https://github.com/cvl-umass/ssl-evaluation. Evaluation code is borrowed from https://github.com/sgk98/CRM-Better-Mistakes.

Citation

If you found our work useful to your research, please consider citing:

@misc{https://doi.org/10.48550/arxiv.2302.00368,
  doi = {10.48550/ARXIV.2302.00368},
  url = {https://arxiv.org/abs/2302.00368},
  author = {Jain, Kanishk and Karthik, Shyamgopal and Gandhi, Vineet},
  keywords = {Computer Vision and Pattern Recognition (cs.CV), Machine Learning (cs.LG), FOS: Computer and information sciences, FOS: Computer and information sciences},
  title = {Test-Time Amendment with a Coarse Classifier for Fine-Grained Classification},
  publisher = {arXiv},
  year = {2023},
  copyright = {Creative Commons Attribution 4.0 International}
}

About

Official implementation of Test-Time Amendment with a Coarse Classifier for Fine-Grained Classification

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages