Cargando…
A walk in the black-box: 3D visualization of large neural networks in virtual reality
Within the last decade Deep Learning has become a tool for solving challenging problems like image recognition. Still, Convolutional Neural Networks (CNNs) are considered black-boxes, which are difficult to understand by humans. Hence, there is an urge to visualize CNN architectures, their internal...
Autores principales: | , , |
---|---|
Formato: | Online Artículo Texto |
Lenguaje: | English |
Publicado: |
Springer London
2022
|
Materias: | |
Acceso en línea: | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9387423/ https://www.ncbi.nlm.nih.gov/pubmed/35996678 http://dx.doi.org/10.1007/s00521-022-07608-4 |
_version_ | 1784770015085461504 |
---|---|
author | Linse, Christoph Alshazly, Hammam Martinetz, Thomas |
author_facet | Linse, Christoph Alshazly, Hammam Martinetz, Thomas |
author_sort | Linse, Christoph |
collection | PubMed |
description | Within the last decade Deep Learning has become a tool for solving challenging problems like image recognition. Still, Convolutional Neural Networks (CNNs) are considered black-boxes, which are difficult to understand by humans. Hence, there is an urge to visualize CNN architectures, their internal processes and what they actually learn. Previously, virtual realityhas been successfully applied to display small CNNs in immersive 3D environments. In this work, we address the problem how to feasibly render large-scale CNNs, thereby enabling the visualization of popular architectures with ten thousands of feature maps and branches in the computational graph in 3D. Our software ”DeepVisionVR” enables the user to freely walk through the layered network, pick up and place images, move/scale layers for better readability, perform feature visualization and export the results. We also provide a novel Pytorch module to dynamically link PyTorch with Unity, which gives developers and researchers a convenient interface to visualize their own architectures. The visualization is directly created from the PyTorch class that defines the Pytorch model used for training and testing. This approach allows full access to the network’s internals and direct control over what exactly is visualized. In a use-case study, we apply the module to analyze models with different generalization abilities in order to understand how networks memorize images. We train two recent architectures, CovidResNet and CovidDenseNet on the Caltech101 and the SARS-CoV-2 datasets and find that bad generalization is driven by high-frequency features and the susceptibility to specific pixel arrangements, leading to implications for the practical application of CNNs. The code is available on Github https://github.com/Criscraft/DeepVisionVR. |
format | Online Article Text |
id | pubmed-9387423 |
institution | National Center for Biotechnology Information |
language | English |
publishDate | 2022 |
publisher | Springer London |
record_format | MEDLINE/PubMed |
spelling | pubmed-93874232022-08-18 A walk in the black-box: 3D visualization of large neural networks in virtual reality Linse, Christoph Alshazly, Hammam Martinetz, Thomas Neural Comput Appl Original Article Within the last decade Deep Learning has become a tool for solving challenging problems like image recognition. Still, Convolutional Neural Networks (CNNs) are considered black-boxes, which are difficult to understand by humans. Hence, there is an urge to visualize CNN architectures, their internal processes and what they actually learn. Previously, virtual realityhas been successfully applied to display small CNNs in immersive 3D environments. In this work, we address the problem how to feasibly render large-scale CNNs, thereby enabling the visualization of popular architectures with ten thousands of feature maps and branches in the computational graph in 3D. Our software ”DeepVisionVR” enables the user to freely walk through the layered network, pick up and place images, move/scale layers for better readability, perform feature visualization and export the results. We also provide a novel Pytorch module to dynamically link PyTorch with Unity, which gives developers and researchers a convenient interface to visualize their own architectures. The visualization is directly created from the PyTorch class that defines the Pytorch model used for training and testing. This approach allows full access to the network’s internals and direct control over what exactly is visualized. In a use-case study, we apply the module to analyze models with different generalization abilities in order to understand how networks memorize images. We train two recent architectures, CovidResNet and CovidDenseNet on the Caltech101 and the SARS-CoV-2 datasets and find that bad generalization is driven by high-frequency features and the susceptibility to specific pixel arrangements, leading to implications for the practical application of CNNs. The code is available on Github https://github.com/Criscraft/DeepVisionVR. Springer London 2022-08-18 2022 /pmc/articles/PMC9387423/ /pubmed/35996678 http://dx.doi.org/10.1007/s00521-022-07608-4 Text en © The Author(s) 2022 https://creativecommons.org/licenses/by/4.0/Open AccessThis article is licensed under a Creative Commons Attribution 4.0 International License, which permits use, sharing, adaptation, distribution and reproduction in any medium or format, as long as you give appropriate credit to the original author(s) and the source, provide a link to the Creative Commons licence, and indicate if changes were made. The images or other third party material in this article are included in the article's Creative Commons licence, unless indicated otherwise in a credit line to the material. If material is not included in the article's Creative Commons licence and your intended use is not permitted by statutory regulation or exceeds the permitted use, you will need to obtain permission directly from the copyright holder. To view a copy of this licence, visit http://creativecommons.org/licenses/by/4.0/ (https://creativecommons.org/licenses/by/4.0/) . |
spellingShingle | Original Article Linse, Christoph Alshazly, Hammam Martinetz, Thomas A walk in the black-box: 3D visualization of large neural networks in virtual reality |
title | A walk in the black-box: 3D visualization of large neural networks in virtual reality |
title_full | A walk in the black-box: 3D visualization of large neural networks in virtual reality |
title_fullStr | A walk in the black-box: 3D visualization of large neural networks in virtual reality |
title_full_unstemmed | A walk in the black-box: 3D visualization of large neural networks in virtual reality |
title_short | A walk in the black-box: 3D visualization of large neural networks in virtual reality |
title_sort | walk in the black-box: 3d visualization of large neural networks in virtual reality |
topic | Original Article |
url | https://www.ncbi.nlm.nih.gov/pmc/articles/PMC9387423/ https://www.ncbi.nlm.nih.gov/pubmed/35996678 http://dx.doi.org/10.1007/s00521-022-07608-4 |
work_keys_str_mv | AT linsechristoph awalkintheblackbox3dvisualizationoflargeneuralnetworksinvirtualreality AT alshazlyhammam awalkintheblackbox3dvisualizationoflargeneuralnetworksinvirtualreality AT martinetzthomas awalkintheblackbox3dvisualizationoflargeneuralnetworksinvirtualreality AT linsechristoph walkintheblackbox3dvisualizationoflargeneuralnetworksinvirtualreality AT alshazlyhammam walkintheblackbox3dvisualizationoflargeneuralnetworksinvirtualreality AT martinetzthomas walkintheblackbox3dvisualizationoflargeneuralnetworksinvirtualreality |