Beyond Accuracy: A CNN Baseline and Failure Analysis for Landmark Classification on WikiScenes
Abstract
Landmark classification remains a challenging task in computer vision due to high intra-class variation, long-tailed distributions, and real-world conditions such as occlusion and changes in viewpoint. This work introduces a systematic RGB-only formulation of the WikiScenes dataset, reframed as a 99-class benchmark that enables controlled evaluation of landmark recognition without relying on multimodal cues. We evaluate ResNet-18 and ResNet-50 across six distinct training regimes, including fine-tuning, training from scratch, and using frozen backbones. To address class imbalance, we apply weighted sampling and data augmentation, and assess performance using top-1 accuracy, micro-mAP*, and macro-mAP. Fine-tuned pretrained models consistently outperform other approaches. ResNet-18 achieves the highest micro-mAP of 0.8364 and macro-mAP of 0.7120, while ResNet-50 reaches the best top-1 accuracy at 84.3 percent. PCA embeddings and confusion matrices reveal that fine-tuned models produce compact and separable representations, whereas weaker training regimes result in diffuse and overlapping clusters. By establishing WikiScenes as a reproducible RGB-only benchmark and analyzing systematic failure modes, this study provides new insights into the limitations of image-only convolutional neural networks.
References
- Relja Arandjelovic, Petr Gronat, Akihiko Torii, Tomas Pajdla, ´ and Josef Sivic. Netvlad: Cnn architecture for weakly supervised place recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2016.
- Hyeonwoo Noh, Andre Araujo, Jack Sim, Tobias Weyand, and Bohyung Han. Large-scale image retrieval with attentive deep local features. In Proceedings of the IEEE International Conference on Computer Vision (ICCV), 2017.
- Daniel DeTone, Tomasz Malisiewicz, and Andrew Rabinovich. Superpoint: Self-supervised interest point detection and description. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 2018.
- James Philbin, Ondrej Chum, Michael Isard, Josef Sivic, and Andrew Zisserman. Object retrieval with large vocabularies and fast spatial matching. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2007.
- James Philbin, Ondrej Chum, Michael Isard, Josef Sivic, and Andrew Zisserman. Lost in quantization: Improving particular object retrieval in large scale image databases. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2008.
- Filip Radenovic, Giorgos Tolias, and Ondrej Chum. Fine-tuning ´ cnn image retrieval with no human annotation. In IEEE Trans6 actions on Pattern Analysis and Machine Intelligence (TPAMI), 2018.
- Tobias Weyand, Andre Araujo, Bingyi Cao, and Jack Sim. Google landmarks dataset v2: A large-scale benchmark for instance-level recognition. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2020.
- Dan Hendrycks and Thomas Dietterich. Benchmarking neural network robustness to common corruptions and perturbations. In International Conference on Learning Representations (ICLR), 2019.
- Pang Wei Koh, Shiori Sagawa, Henrik Marklund, Sang Michael Xie, Marvin Zhang, Akshay Balsubramani, Weihua Hu, Michihiro Yasunaga, Richard L. Phillips, Irena Gao, Tony Lee, Etan Dave, Ian Stavness, Yixuan Guo, Bruce Earnshaw, Casey LewWilliams, Christopher Re, Percy S. Liang, Sarah Carmichael, David Gomez, Chris Piech, Dinesh Ramasamy, Jascha SohlDickstein, and Percy Liang. Wilds: A benchmark of in-thewild distribution shifts. In International Conference on Machine Learning (ICML), 2021
- Benjamin Recht, Rebecca Roelofs, Ludwig Schmidt, and Vaishaal Shankar. Do imagenet classifiers generalize to imagenet? In International Conference on Machine Learning (ICML), 2019.
- Xiaoshi Wu, Hadar Averbuch-Elor, Jin Sun, and Noah Snavely. Towers of babel: Combining images, language, and 3d geometry for learning multimodal vision. In Proceedings of the IEEE/CVF International Conference on Computer Vision (ICCV), 2021.
- Kaiming He, Xiangyu Zhang, Shaoqing Ren, and Jian Sun. Deep residual learning for image recognition. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), pages 770–778, June 2016.
- Gao Huang, Zhuang Liu, Laurens Van Der Maaten, and Kilian Q Weinberger. Densely connected convolutional networks. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2017.
- Mingxing Tan and Quoc Le. Efficientnet: Rethinking model scaling for convolutional neural networks. In International Conference on Machine Learning (ICML), 2019.
- Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, and Saining Xie. A convnet for the 2020s. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition (CVPR), 2022.
- Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, and Neil Houlsby. An image is worth 16x16 words: Transformers for image recognition at scale. In International Conference on Learning Representations (ICLR), 2021
- Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, and Herve J ´ egou. Training data-efficient ´ image transformers & distillation through attention. In International Conference on Machine Learning (ICML), 2021.
- Ting Chen, Simon Kornblith, Mohammad Norouzi, and Geoffrey Hinton. A simple framework for contrastive learning of visual representations. In International Conference on Machine Learning (ICML), 2020.
- Jean-Bastien Grill, Florian Strub, Florent Altche, Corentin Tal- ´ lec, Pierre H. Richemond, Elena Buchatskaya, Carl Doersch, Bernardo Pires, Zhaohan Daniel Guo, Mohammad Gheshlaghi Azar, Bilal Piot, Koray Kavukcuoglu, Remi Munos, and Michal ´ Valko. Bootstrap your own latent: A new approach to selfsupervised learning. In NeurIPS, 2020.
- Olga Russakovsky, Jia Deng, Hao Su, Jonathan Krause, Sanjeev Satheesh, Sean Ma, Zhiheng Huang, Andrej Karpathy, Aditya Khosla, Michael Bernstein, Alexander C Berg, and Li Fei-Fei. Imagenet large scale visual recognition challenge. International Journal of Computer Vision (IJCV), 115(3): 211–252, 2015.
- Matthew D. Zeiler and Rob Fergus. Visualizing and understanding convolutional networks. In European Conference on Computer Vision (ECCV), 2014.
- Ekin D. Cubuk, Barret Zoph, Jonathon Shlens, and Quoc V. Le. Randaugment: Practical automated data augmentation with a reduced search space. In Proceedings of the IEEE/CVF Conference on Computer Vision and Pattern Recognition Workshops (CVPRW), 2020.
- Krishna Kumar Singh and Yong Jae Lee. Hide-and-seek: A data augmentation strategy for weakly-supervised localization. In Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018.
- Terrance DeVries and Graham W Taylor. Improved regularization of convolutional neural networks with cutout. arXiv preprint arXiv: 1708.04552, 2017.
- Hongyi Zhang, Moustapha Cisse, Yann N. Dauphin, and David Lopez-Paz. mixup: Beyond empirical risk minimization. In Proceedings of the International Conference on Learning Representations (ICLR), 2018.
- Jerome Revaud, Philippe Weinzaepfel, Martin Humenberger, and Yohann Cabon. R2d2: Reliable and repeatable detector and descriptor. In NeurIPS, 2019.
- Michal Tyszkiewicz, Pascal Fua, and Eduard Trulls. Disk: Learning local features with policy gradient. In NeurIPS, 2020.
- Florian Schroff, Dmitry Kalenichenko, and James Philbin. Facenet: A unified embedding for face recognition and clustering. In CVPR, 2015.
- Lei Zhu, Jialie Shen, Hai Jin, Liang Xie, and Ran Zheng. Landmark classification with hierarchical multi-modal exemplar feature. IEEE Transactions on Multimedia, 17(7): 981–993, 2015.
- Chen Dudai, Morris Alper, Hana Bezalel, Rana Hanocka, Itai Lang, and Hadar Averbuch-Elor. Halo-nerf: Learning geometryguided semantics for exploring unconstrained photo collections. In Computer Graphics Forum (Eurographics), volume 43, page e15006, 2024.