{"status":"ok","message-type":"work","message-version":"1.0.0","message":{"indexed":{"date-parts":[[2026,10,13]],"date-time":"2026-10-13T22:01:26Z","timestamp":1791928886741,"version":"4.3.4"},"reference-count":48,"publisher":"MDPI AG","issue":"2","license":[{"start":{"date-parts":[[2021,4,3]],"date-time":"2021-04-03T00:00:00Z","timestamp":1617408000000},"content-version":"vor","delay-in-days":0,"URL":"https:\/\/creativecommons.org\/licenses\/by\/4.0\/"}],"funder":[{"DOI":"10.13039\/501100001711","name":"Swiss National Science Foundation","doi-asserted-by":"publisher","award":["05320_179069"],"award-info":[{"award-number":["05320_179069"]}],"id":[{"id":"10.13039\/501100001711","id-type":"DOI","asserted-by":"publisher"}]},{"name":"PROCESS EU Horizon2020","award":["777533"],"award-info":[{"award-number":["777533"]}]}],"content-domain":{"domain":[],"crossmark-restriction":false},"short-container-title":["MAKE"],"abstract":"<jats:p>The diffused practice of pre-training Convolutional Neural Networks (CNNs) on large natural image datasets such as ImageNet causes the automatic learning of invariance to object scale variations. This, however, can be detrimental in medical imaging, where pixel spacing has a known physical correspondence and size is crucial to the diagnosis, for example, the size of lesions, tumors or cell nuclei. In this paper, we use deep learning interpretability to identify at what intermediate layers such invariance is learned. We train and evaluate different regression models on the PASCAL-VOC (Pattern Analysis, Statistical modeling and ComputAtional Learning-Visual Object Classes) annotated data to (i) separate the effects of the closely related yet different notions of image size and object scale, (ii) quantify the presence of scale information in the CNN in terms of the layer-wise correlation between input scale and feature maps in InceptionV3 and ResNet50, and (iii) develop a pruning strategy that reduces the invariance to object scale of the learned features. Results indicate that scale information peaks at central CNN layers and drops close to the softmax, where the invariance is reached. Our pruning strategy uses this to obtain features that preserve scale information. We show that the pruning significantly improves the performance on medical tasks where scale is a relevant factor, for example for the regression of breast histology image magnification. These results show that the presence of scale information at intermediate layers legitimates transfer learning in applications that require scale covariance rather than invariance and that the performance on these tasks can be improved by pruning off the layers where the invariance is learned. All experiments are performed on publicly available data and the code is available on GitHub.<\/jats:p>","DOI":"10.3390\/make3020019","type":"journal-article","created":{"date-parts":[[2021,4,3]],"date-time":"2021-04-03T22:03:36Z","timestamp":1617487416000},"page":"374-391","update-policy":"https:\/\/doi.org\/10.3390\/mdpi_crossmark_policy","source":"Crossref","is-referenced-by-count":24,"title":["On the Scale Invariance in State of the Art CNNs Trained on ImageNet"],"prefix":"10.3390","volume":"3","author":[{"ORCID":"https:\/\/orcid.org\/0000-0003-3456-945X","authenticated-orcid":false,"given":"Mara","family":"Graziani","sequence":"first","affiliation":[{"name":"Department of Computer Science (CUI), University of Geneva (UNIGE), 1227 Carouge, Switzerland"},{"name":"Institute for Business Information Systems, University of Applied Sciences Western Switzerland (HES-SO Valais), 3960 Sierre, Valais, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Thomas","family":"Lompech","sequence":"additional","affiliation":[{"name":"Institute National Polytechnique de Toulouse, Ecole Nationale Sup\u00e9rieure d\u2019Electrotechnique, d\u2019Electronique, d\u2019Informatique, d\u2019Hydraulique et des T\u00e9l\u00e9communications (INP-ENSEEIHT), 31000 Toulouse, France"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0001-6800-9878","authenticated-orcid":false,"given":"Henning","family":"M\u00fcller","sequence":"additional","affiliation":[{"name":"Department of Computer Science (CUI), University of Geneva (UNIGE), 1227 Carouge, Switzerland"},{"name":"Institute for Business Information Systems, University of Applied Sciences Western Switzerland (HES-SO Valais), 3960 Sierre, Valais, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"given":"Adrien","family":"Depeursinge","sequence":"additional","affiliation":[{"name":"Institute for Business Information Systems, University of Applied Sciences Western Switzerland (HES-SO Valais), 3960 Sierre, Valais, Switzerland"},{"name":"Nuclear Medicine and Molecular Imaging Department, Centre Hospitalier Universitaire Vaudois (CHUV), 1011 Lausanne, Vaud, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]},{"ORCID":"https:\/\/orcid.org\/0000-0003-0793-5821","authenticated-orcid":false,"given":"Vincent","family":"Andrearczyk","sequence":"additional","affiliation":[{"name":"Institute for Business Information Systems, University of Applied Sciences Western Switzerland (HES-SO Valais), 3960 Sierre, Valais, Switzerland"}],"role":[{"vocabulary":"crossref","role":"author"}]}],"member":"1968","published-online":{"date-parts":[[2021,4,3]]},"reference":[{"key":"ref_1","doi-asserted-by":"crossref","unstructured":"Szeliski, R. (2010). Computer Vision: Algorithms and Applications, Springer Science & Business Media.","DOI":"10.1007\/978-1-84882-935-0"},{"key":"ref_2","unstructured":"Kanazawa, A., Sharma, A., and Jacobs, D.W. (2014). Locally Scale-Invariant Convolutional Neural Networks. arXiv."},{"key":"ref_3","unstructured":"Marcos, D., Kellenberger, B., Lobry, S., and Tuia, D. (2018). Scale equivariance in CNNs with vector fields. arXiv."},{"key":"ref_4","unstructured":"Worrall, D.E., and Welling, M. (2019). Deep Scale-spaces: Equivariance Over Scale. arXiv."},{"key":"ref_5","unstructured":"Ghosh, R., and Gupta, A.K. (2019). Scale Steerable Filters for Locally Scale-Invariant Convolutional Neural Networks. arXiv."},{"key":"ref_6","unstructured":"Szegedy, C., Vanhoucke, V., Ioffe, S., Shlens, J., and Wojna, Z. (July, January 26). Rethinking the inception architecture for computer vision. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA."},{"key":"ref_7","unstructured":"He, K., Zhang, X., Ren, S., and Sun, J. (July, January 26). Deep residual learning for image recognition. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Las Vegas, NV, USA."},{"key":"ref_8","doi-asserted-by":"crossref","unstructured":"Deng, J., Dong, W., Socher, R., Li, L.J., Li, K., and Fei-Fei, L. (2009, January 20\u201325). ImageNet: A large-scale hierarchical image database. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Miami, FL, USA.","DOI":"10.1109\/CVPR.2009.5206848"},{"key":"ref_9","doi-asserted-by":"crossref","unstructured":"Lenc, K., and Vedaldi, A. (2015, January 7\u201312). Understanding image representations by measuring their equivariance and equivalence. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.","DOI":"10.1109\/CVPR.2015.7298701"},{"key":"ref_10","unstructured":"Huh, M., Agrawal, P., and Efros, A.A. (2016). What makes ImageNet good for transfer learning?. arXiv."},{"key":"ref_11","unstructured":"Graziani, M., Andrearczyk, V., and M\u00fcller, H. (2019). Visualizing and Interpreting Feature Reuse of Pretrained CNNs for Histopathology. Irish Mach. Vis. Image Process. (IMVIP), Available online: https:\/\/iprcs.scss.tcd.ie\/IMVIP.2019.html."},{"key":"ref_12","unstructured":"Yosinski, J., Clune, J., Bengio, Y., and Lipson, H. (2014). How transferable are features in deep neural networks?. arXiv."},{"key":"ref_13","unstructured":"Cohen, T., and Welling, M. (2016, January 19\u201324). Group equivariant convolutional networks. Proceedings of the 33rd International Conference on Machine Learning (ICML 2016), New York City, NY, USA."},{"key":"ref_14","doi-asserted-by":"crossref","first-page":"101756","DOI":"10.1016\/j.media.2020.101756","article-title":"Local rotation invariance in 3D CNNs","volume":"65","author":"Andrearczyk","year":"2020","journal-title":"Med. Image Anal."},{"key":"ref_15","doi-asserted-by":"crossref","first-page":"044504","DOI":"10.1117\/1.JMI.4.4.044504","article-title":"Context-aware stacked convolutional neural networks for classification of breast carcinomas in whole-slide histopathology images","volume":"4","author":"Bejnordi","year":"2017","journal-title":"J. Med. Imaging"},{"key":"ref_16","doi-asserted-by":"crossref","first-page":"34","DOI":"10.1016\/j.neucom.2016.05.084","article-title":"Automated grading of breast cancer histopathology using cascaded ensemble with combination of multi-level image features","volume":"229","author":"Wan","year":"2017","journal-title":"Neurocomputing"},{"key":"ref_17","doi-asserted-by":"crossref","unstructured":"Ot\u00e1lora, S., Atzori, M., Andrearczyk, V., and M\u00fcller, H. (2018, January 16\u201320). Image Magnification Regression Using DenseNet for Exploiting Histopathology Open Access Content. Proceedings of the MICCAI 2018\u2014Computational Pathology Workshop (COMPAY), Granada, Spain.","DOI":"10.1007\/978-3-030-00949-6_18"},{"key":"ref_18","doi-asserted-by":"crossref","first-page":"134","DOI":"10.1016\/j.patcog.2018.05.014","article-title":"Deep learning for image-based cancer detection and diagnosis\u2014A survey","volume":"83","author":"Hu","year":"2018","journal-title":"Pattern Recognit."},{"key":"ref_19","doi-asserted-by":"crossref","first-page":"60","DOI":"10.1016\/j.media.2017.07.005","article-title":"A survey on deep learning in medical image analysis","volume":"42","author":"Litjens","year":"2017","journal-title":"Med. Image Anal."},{"key":"ref_20","doi-asserted-by":"crossref","first-page":"1285","DOI":"10.1109\/TMI.2016.2528162","article-title":"Deep convolutional neural networks for computer-aided detection: CNN architectures, dataset characteristics and transfer learning","volume":"35","author":"Shin","year":"2016","journal-title":"IEEE Trans. Med. Imaging"},{"key":"ref_21","unstructured":"Raghu, M., Zhang, C., Kleinberg, J., and Bengio, S. (2019). Transfusion: Understanding transfer learning with applications to medical imaging. arXiv."},{"key":"ref_22","doi-asserted-by":"crossref","unstructured":"Graziani, M., Lompech, T., Depeursinge, A., and Andrearczyk, V. (2020, January 4\u20138). Interpretable CNN Pruning for Preserving Scale-Covariant Features in Medical Imaging. Proceedings of the iMIMIC at MICCAI, Lima, Peru.","DOI":"10.1007\/978-3-030-61166-8_3"},{"key":"ref_23","doi-asserted-by":"crossref","unstructured":"Graziani, M., Andrearczyk, V., and M\u00fcller, H. (2018). Regression concept vectors for bidirectional explanations in histopathology. Understanding and Interpreting Machine Learning in Medical Image Computing Applications, Springer.","DOI":"10.1007\/978-3-030-02628-8_14"},{"key":"ref_24","unstructured":"Alain, G., and Bengio, Y. (2016). Understanding intermediate layers using linear classifier probes. arXiv."},{"key":"ref_25","first-page":"103865","article-title":"Concept attribution: Explaining CNN decisions to physicians","volume":"2020","author":"Graziani","year":"2020","journal-title":"Comput. Biol. Med."},{"key":"ref_26","unstructured":"M\u00fcller, H., Andrearczyk, V., del Toro, O.J., Dhrangadhariya, A., Schaer, R., and Atzori, M. (2020, January 5\u20138). Studying Public Medical Images from the Open Access Literature and Social Networks for Model Training and Knowledge Extraction. Proceedings of the 26th International Conference, MMM 2020, Daejeon, Korea."},{"key":"ref_27","doi-asserted-by":"crossref","first-page":"583","DOI":"10.1016\/j.patcog.2016.06.005","article-title":"Learning scale-variant and scale-invariant features for deep image classification","volume":"61","author":"Postma","year":"2017","journal-title":"Pattern Recognit."},{"key":"ref_28","doi-asserted-by":"crossref","first-page":"1872","DOI":"10.1109\/TPAMI.2012.230","article-title":"Invariant scattering convolution networks","volume":"35","author":"Bruna","year":"2013","journal-title":"IEEE Trans. Pattern Anal. Mach. Intell."},{"key":"ref_29","unstructured":"Yosinski, J., Clune, J., Nguyen, A., Fuchs, T., and Lipson, H. (2015). Understanding neural networks through deep visualization. arXiv."},{"key":"ref_30","doi-asserted-by":"crossref","unstructured":"Aubry, M., and Russell, B.C. (2015, January 7\u201313). Understanding deep features with computer-generated imagery. Proceedings of the IEEE International Conference on Computer Vision, Santiago, Chile.","DOI":"10.1109\/ICCV.2015.329"},{"key":"ref_31","doi-asserted-by":"crossref","unstructured":"Worrall, D.E., Garbin, S.J., Turmukhambetov, D., and Brostow, G.J. (2017, January 22\u201329). Interpretable transformations with encoder-decoder networks. Proceedings of the IEEE International Conference on Computer Vision, Venice, Italy.","DOI":"10.1109\/ICCV.2017.611"},{"key":"ref_32","unstructured":"Azulay, A., and Weiss, Y. (2018). Why do deep convolutional networks generalize so poorly to small image transformations?. arXiv."},{"key":"ref_33","doi-asserted-by":"crossref","unstructured":"Kanbak, C., Moosavi-Dezfooli, S.M., and Frossard, P. (2018, January 18\u201322). Geometric robustness of deep networks: Analysis and improvement. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Salt Lake City, UT, USA.","DOI":"10.1109\/CVPR.2018.00467"},{"key":"ref_34","unstructured":"Molchanov, P., Tyree, S., Karras, T., Aila, T., and Kautz, J. (2016). Pruning convolutional neural networks for resource efficient inference. arXiv."},{"key":"ref_35","doi-asserted-by":"crossref","unstructured":"Liu, W., Anguelov, D., Erhan, D., Szegedy, C., Reed, S., Fu, C.Y., and Berg, A.C. (2016, January 11\u201314). Ssd: Single shot multibox detector. Proceedings of the 14th European Conference, Amsterdam, The Netherlands.","DOI":"10.1007\/978-3-319-46448-0_2"},{"key":"ref_36","doi-asserted-by":"crossref","first-page":"50674","DOI":"10.1109\/ACCESS.2020.2979926","article-title":"Adaptive pruning of transfer learned deep convolutional neural network for classification of cervical pap smear images","volume":"8","author":"Wang","year":"2020","journal-title":"IEEE Access"},{"key":"ref_37","doi-asserted-by":"crossref","first-page":"91","DOI":"10.1016\/j.ins.2020.12.086","article-title":"Pruning of generative adversarial neural networks for medical imaging diagnostics with evolution strategy","volume":"558","author":"Fernandes","year":"2021","journal-title":"Inf. Sci."},{"key":"ref_38","doi-asserted-by":"crossref","first-page":"30:31","DOI":"10.1145\/3236386.3241340","article-title":"The Mythos of Model Interpretability","volume":"16","author":"Lipton","year":"2018","journal-title":"Queue"},{"key":"ref_39","unstructured":"Kim, B., Wattenberg, M., Gilmer, J., Cai, C., Wexler, J., Viegas, F., and Sayres, R. (2018, January 10\u201315). Interpretability Beyond Feature Attribution: Quantitative Testing with Concept Activation Vectors (TCAV). Proceedings of the International Conference on Machine Learning, Stockholm, Sweden."},{"key":"ref_40","doi-asserted-by":"crossref","unstructured":"Graziani, M., M\u00fcller, H., and Andrearczyk, V. (2019, January 27\u201328). Interpreting Intentionally Flawed Models with Linear Probes. Proceedings of the SDL-CV workshop at the IEEE International International Conference on Computer Vision, Seoul, Korea.","DOI":"10.1109\/ICCVW.2019.00096"},{"key":"ref_41","unstructured":"Graziani, M., Brown, J., Andrearczyck, V., Yildiz, V., Campbell, J.P., Erdogmus, D., Ioannidis, S., Chiang, M.F., Kalpathy-Kramer, J., and Muller, H. (2019, January 16\u201321). Improved Interpretability for Computer-Aided Severity Assessment of Retinopathy of Prematurity. Proceedings of the Medical Imaging 2019: Computer-Aided Diagnosis, San Diego, CA, USA."},{"key":"ref_42","doi-asserted-by":"crossref","unstructured":"Yeche, H., Harrison, J., and Berthier, T. (2019). UBS: A Dimension-Agnostic Metric for Concept Vector Interpretability Applied to Radiomics. Interpretability of Machine Intelligence in Medical Image Computing and Multimodal Learning for Clinical Decision Support, Springer.","DOI":"10.1007\/978-3-030-33850-3_2"},{"key":"ref_43","unstructured":"Everingham, M., Van Gool, L., Williams, C.K.I., Winn, J., and Zisserman, A. (2021, April 02). The PASCAL Visual Object Classes Challenge 2008 (VOC2008) Results. Available online: http:\/\/host.robots.ox.ac.uk\/pascal\/VOC\/voc2008\/index.html."},{"key":"ref_44","doi-asserted-by":"crossref","first-page":"29","DOI":"10.4103\/2153-3539.186902","article-title":"Deep learning for digital pathology image analysis: A comprehensive tutorial with selected use cases","volume":"7","author":"Janowczyk","year":"2016","journal-title":"J. Pathol. Inform."},{"key":"ref_45","unstructured":"Touvron, H., Vedaldi, A., Douze, M., and J\u00e9gou, H. (2019). Fixing the train-test resolution discrepancy. arXiv."},{"key":"ref_46","doi-asserted-by":"crossref","unstructured":"Yan, E., and Huan, Y. (2020). Do CNNs Encode Data Augmentations?. arXiv.","DOI":"10.1109\/IJCNN52387.2021.9534219"},{"key":"ref_47","doi-asserted-by":"crossref","unstructured":"Bau, D., Zhou, B., Khosla, A., Oliva, A., and Torralba, A. (2017, January 21\u201326). Network dissection: Quantifying interpretability of deep visual representations. Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, Honolulu, HI, USA.","DOI":"10.1109\/CVPR.2017.354"},{"key":"ref_48","doi-asserted-by":"crossref","unstructured":"Olah, C., Mordvintsev, A., and Schubert, L. (2017). Feature Visualization. Distill, Available online: https:\/\/distill.pub\/2017\/feature-visualization.","DOI":"10.23915\/distill.00007"}],"container-title":["Machine Learning and Knowledge Extraction"],"original-title":[],"language":"en","link":[{"URL":"https:\/\/www.mdpi.com\/2504-4990\/3\/2\/19\/pdf","content-type":"unspecified","content-version":"vor","intended-application":"similarity-checking"}],"deposited":{"date-parts":[[2025,10,13]],"date-time":"2025-10-13T13:33:43Z","timestamp":1760362423000},"score":1,"resource":{"primary":{"URL":"https:\/\/www.mdpi.com\/2504-4990\/3\/2\/19"}},"subtitle":[],"short-title":[],"issued":{"date-parts":[[2021,4,3]]},"references-count":48,"journal-issue":{"issue":"2","published-online":{"date-parts":[[2021,6]]}},"alternative-id":["make3020019"],"URL":"https:\/\/doi.org\/10.3390\/make3020019","relation":{},"ISSN":["2504-4990"],"issn-type":[{"value":"2504-4990","type":"electronic"}],"subject":[],"published":{"date-parts":[[2021,4,3]]}}}